Skip to content

Commit 00a0a2a

Browse files
committed
kernel: apk_sign: add more size/hash pairs
this will make it support - this repo's manager - official manager, should be usable for 5.4 - 5ec1cff's MKSU - kowx712's KowSU - rsuntk's RKSU Signed-off-by: backslashxx <[email protected]>
1 parent 360ad2b commit 00a0a2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/apk_sign.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ bool is_manager_apk(char *path)
352352

353353
return (check_v2_signature(path, 0x363, "4359c171f32543394cbc23ef908c4bb94cad7c8087002ba164c8230948c21549") // dummy.keystore
354354
|| check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH) // ksu official
355-
/* || check_v2_signature(path, custom_size, custom_hash) // add more as you like */
355+
|| check_v2_signature(path, 384, "7e0c6d7278a3bb8e364e0fcba95afaf3666cf5ff3c245a3b63c8833bd0445cc4") // 5ec1cff/KernelSU
356+
|| check_v2_signature(path, 0x375, "484fcba6e6c43b1fb09700633bf2fb4758f13cb0b2f4457b80d075084b26c588") // KOWX712/KernelSU
357+
|| check_v2_signature(path, 0x396, "f415f4ed9435427e1fdf7f1fccd4dbc07b3d6b8751e4dbcec6f19671f427870b") /* rsuntk/KernelSU - should be compliant now atleast for core functionality - 251113 */
356358
);
357359
}

0 commit comments

Comments
 (0)