Skip to content

Commit 972f150

Browse files
committed
Update jni hook signatures for A17 QPR2
1 parent ede844b commit 972f150

2 files changed

Lines changed: 118 additions & 18 deletions

File tree

native/src/core/zygisk/gen_jni_hooks.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ def init_args(self):
176176
# b qpr2
177177
use_fifo_ui = Argument("use_fifo_ui", jboolean, False)
178178

179+
# c qpr2
180+
cgroup_uid = Argument("cgroup_uid", jboolean, False)
181+
179182
# server
180183
permitted_capabilities = Argument("permitted_capabilities", jlong)
181184
effective_capabilities = Argument("effective_capabilities", jlong)
@@ -330,6 +333,33 @@ def init_args(self):
330333
],
331334
)
332335

336+
fas_c = ForkApp(
337+
"c",
338+
[
339+
uid,
340+
cgroup_uid,
341+
gid,
342+
gids,
343+
runtime_flags,
344+
rlimits,
345+
mount_external,
346+
se_info,
347+
nice_name,
348+
fds_to_close,
349+
fds_to_ignore,
350+
is_child_zygote,
351+
instruction_set,
352+
app_data_dir,
353+
is_top_app,
354+
use_fifo_ui,
355+
pkg_data_info_list,
356+
whitelisted_data_info_list,
357+
mount_data_dirs,
358+
mount_storage_dirs,
359+
mount_sysprop_overrides,
360+
],
361+
)
362+
333363
fas_samsung_m = ForkApp(
334364
"samsung_m",
335365
[
@@ -517,6 +547,31 @@ def init_args(self):
517547
],
518548
)
519549

550+
spec_c = SpecializeApp(
551+
"c",
552+
[
553+
uid,
554+
cgroup_uid,
555+
gid,
556+
gids,
557+
runtime_flags,
558+
rlimits,
559+
mount_external,
560+
se_info,
561+
nice_name,
562+
is_child_zygote,
563+
instruction_set,
564+
app_data_dir,
565+
is_top_app,
566+
pkg_data_info_list,
567+
whitelisted_data_info_list,
568+
mount_data_dirs,
569+
mount_storage_dirs,
570+
mount_sysprop_overrides,
571+
Anon(jstring),
572+
],
573+
)
574+
520575
spec_xr_u = SpecializeApp(
521576
"xr_u",
522577
[
@@ -648,6 +703,7 @@ def gen_jni_def(field: str, methods: list[JNIHook]):
648703
fas_r,
649704
fas_u,
650705
fas_b,
706+
fas_c,
651707
fas_samsung_m,
652708
fas_samsung_n,
653709
fas_samsung_o,
@@ -660,7 +716,7 @@ def gen_jni_def(field: str, methods: list[JNIHook]):
660716
f.write(
661717
gen_jni_def(
662718
"specialize_app_methods",
663-
[spec_q, spec_q_alt, spec_r, spec_u, spec_xr_u, spec_samsung_q, spec_nubia_u],
719+
[spec_q, spec_q_alt, spec_r, spec_u, spec_c, spec_xr_u, spec_samsung_q, spec_nubia_u],
664720
)
665721
)
666722

0 commit comments

Comments
 (0)