Skip to content

Commit 7588bc2

Browse files
committed
kernel: apk_sign: add more size/hash pairs
this will make it support - this repo's manager - official manager - kowx712's KowSU - rsuntk's RKSU Signed-off-by: backslashxx <[email protected]> Update apk_sign.c
1 parent e9111b0 commit 7588bc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kernel/apk_sign.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ bool is_manager_apk(char *path)
352352
}
353353

354354
return (check_v2_signature(path, 0x363, "4359c171f32543394cbc23ef908c4bb94cad7c8087002ba164c8230948c21549") // dummy.keystore
355-
|| check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH) // ksu official
356-
/* || check_v2_signature(path, custom_size, custom_hash) // add more as you like */
355+
|| check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH) // kernelsu official
356+
|| check_v2_signature(path, 0x375, "484fcba6e6c43b1fb09700633bf2fb4758f13cb0b2f4457b80d075084b26c588") // KOWX712/KernelSU
357+
|| check_v2_signature(path, 0x396, "f415f4ed9435427e1fdf7f1fccd4dbc07b3d6b8751e4dbcec6f19671f427870b") // rsuntk/KernelSU/
357358
);
358359
}

0 commit comments

Comments
 (0)