Remove unexpected files

This commit is contained in:
vvb2060 2023-02-13 02:06:12 +08:00 committed by John Wu
parent 85d9756f62
commit 2c53356bfd
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ void LegacySARInit::first_stage_prep() {
bool SecondStageInit::prepare() {
umount2("/init", MNT_DETACH);
umount2("/proc/self/exe", MNT_DETACH);
unlink("/data/init");
// Make sure init dmesg logs won't get messed up
argv[0] = (char *) INIT_PATH;

View File

@ -185,7 +185,7 @@ fi
"mkdir 000 .backup" \
"add 000 .backup/.magisk config"
rm -f ramdisk.cpio.orig config magisk*.xz stub.xz
rm -f ramdisk.cpio.orig config magisk*.xz stub.xz stub.apk
#################
# Binary Patches