From aa6f1dcf6c5468aa1e1b282b0dc45250279d16eb Mon Sep 17 00:00:00 2001 From: GarfieldHan <2652609017@qq.com> Date: Wed, 27 Nov 2024 13:26:59 +0800 Subject: [PATCH] userd: Fix `/dev/user_init_log` moving Co-authored-by: NepXIN Signed-off-by: GarfieldHan <2652609017@qq.com> --- kernel/patch/android/userd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/patch/android/userd.c b/kernel/patch/android/userd.c index 8dc1538..8e73f0c 100644 --- a/kernel/patch/android/userd.c +++ b/kernel/patch/android/userd.c @@ -65,7 +65,7 @@ static const char user_rc_data[] = { // " 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 -c \"mv -f " DEV_LOG_DIR " " AP_LOG_DIR "\"\n" "" };