fix: not umounting properly module.prop

This commit fixes the issue where module.prop wouldn't be umounted properly.
This commit is contained in:
ThePedroo
2024-06-30 19:25:24 -03:00
parent c2cb29b717
commit 5da73dd053

View File

@@ -346,8 +346,6 @@ struct SocketHandler : public EventHandler {
PLOGE("failed to mount prop"); PLOGE("failed to mount prop");
} }
umount2(prop_path, MNT_DETACH);
break; break;
} }
} }
@@ -387,7 +385,7 @@ CREATE_ZYGOTE_START_COUNTER(32)
static bool ensure_daemon_created(bool is_64bit) { static bool ensure_daemon_created(bool is_64bit) {
Status *status = is_64bit ? &status64 : &status32; Status *status = is_64bit ? &status64 : &status32;
if (is_64bit) { if (is_64bit) {
LOGD("new zygote started, unmounting prop ..."); LOGD("new zygote started.");
umount2("/data/adb/modules/zygisksu/module.prop", MNT_DETACH); umount2("/data/adb/modules/zygisksu/module.prop", MNT_DETACH);
} }