kernel: KSU_NEXT v2 signature size/hash added

This commit is contained in:
Rifat Azad
2024-12-24 06:59:24 +06:00
parent 1a84f69f5c
commit 1f58c7bf12
3 changed files with 27 additions and 12 deletions

View File

@@ -316,5 +316,6 @@ module_param_cb(ksu_debug_manager_uid, &expected_size_ops,
bool is_manager_apk(char *path)
{
return check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH);
return (check_v2_signature(path, EXPECTED_NEXT_SIZE, EXPECTED_NEXT_HASH)
|| check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH));
}