Skip to content

Commit

Permalink
Update gen_jni_hooks.py
Browse files Browse the repository at this point in the history
Signed-off-by: ggsasda <[email protected]>
  • Loading branch information
ggsasda authored Sep 11, 2024
1 parent 57cc24d commit ed1a5d1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions loader/src/injector/gen_jni_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ def gen_jni_def(clz, methods):

methods = [server_l, server_samsung_q]
f.write(gen_jni_def(zygote, methods))
with fileinput.FileInput(jni_hooks.hpp, inplace=True) as file:
for line in file:
line = re.sub(pattern, replacement, line)
print(line, end='')

f.write('\n} // namespace\n')

Expand Down Expand Up @@ -311,7 +307,3 @@ def gen_jni_def(clz, methods):
jni_hook_list->emplace(clz, std::move(hooks));
}
""")
with fileinput.FileInput(jni_hooks.hpp, inplace=True) as file:
for line in file:
line = re.sub(pattern, replacement, line)
print(line, end='')

0 comments on commit ed1a5d1

Please sign in to comment.