Enable avd hack for debug build

This commit is contained in:
vvb2060
2023-04-25 04:37:28 +08:00
committed by John Wu
parent 83d837d868
commit 68c2817d40
6 changed files with 13 additions and 32 deletions

View File

@@ -244,7 +244,6 @@ void MagiskInit::patch_ro_root() {
xrename("overlay.d", ROOTOVL);
#if ENABLE_AVD_HACK
// Handle avd hack
if (avd_hack) {
int src = xopen("/init", O_RDONLY | O_CLOEXEC);
@@ -257,7 +256,6 @@ void MagiskInit::patch_ro_root() {
close(src);
close(dest);
}
#endif
load_overlay_rc(ROOTOVL);
if (access(ROOTOVL "/sbin", F_OK) == 0) {