Make recovery installed on on system_root devices normal

This commit is contained in:
topjohnwu 2018-08-12 00:16:59 +08:00
parent 0f34f0033c
commit d8405f0d05

View File

@ -374,8 +374,11 @@ int main(int argc, char *argv[]) {
}
// Do not go further if system_root device is booting as recovery
if (!cmd.skip_initramfs && access("/sbin/recovery", F_OK) == 0)
if (!cmd.skip_initramfs && access("/sbin/recovery", F_OK) == 0) {
// Remove Magisk traces
rm_rf("/.backup");
goto exec_init;
}
/* ************
* Early Mount