From 4501a6c085460937ce83b3b4420fef1487dc569f Mon Sep 17 00:00:00 2001 From: RobinChen Date: Thu, 4 Jul 2024 20:43:10 +0800 Subject: [PATCH] ksud: [Fix] grant root to the shell in debug mode Failed to check app_profile version --- kernel/allowlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/allowlist.c b/kernel/allowlist.c index 9daceef2011b..136cd58d4f27 100644 --- a/kernel/allowlist.c +++ b/kernel/allowlist.c @@ -108,6 +108,7 @@ void ksu_show_allow_list(void) static void ksu_grant_root_to_shell() { struct app_profile profile = { + .version = KSU_APP_PROFILE_VER; .allow_su = true, .current_uid = 2000, };