From 4bb4ad7f836490682ba9841dd91f4f184da34544 Mon Sep 17 00:00:00 2001 From: GarfieldHan <2652609017@qq.com> Date: Sat, 26 Oct 2024 11:43:55 +0800 Subject: [PATCH] userd: Fix `boot-completed` event trigger Signed-off-by: GarfieldHan <2652609017@qq.com> --- kernel/patch/android/userd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/patch/android/userd.c b/kernel/patch/android/userd.c index a259752..8dc1538 100644 --- a/kernel/patch/android/userd.c +++ b/kernel/patch/android/userd.c @@ -62,10 +62,10 @@ static const char user_rc_data[] = { // "on property:vold.decrypt=trigger_restart_framework\n" " exec -- " SUPERCMD " su exec " USER_INIT_SH_PATH " %s services\n" "on property:sys.boot_completed=1\n" + " exec -- " SUPERCMD " su exec " USER_INIT_SH_PATH " %s boot-completed\n" " rm " REPLACE_RC_FILE "\n" " rm " USER_INIT_SH_PATH "\n" " mv -f " DEV_LOG_DIR AP_LOG_DIR "\n" - " exec -- " SUPERCMD " su exec " USER_INIT_SH_PATH " %s boot-completed\n" "" }; @@ -379,4 +379,4 @@ int android_user_init() } return ret; -} \ No newline at end of file +}