diff --git a/app/src/main/java/io/github/lsposed/manager/util/RebootUtil.java b/app/src/main/java/io/github/lsposed/manager/util/RebootUtil.java index 2396c613..a9da34ae 100644 --- a/app/src/main/java/io/github/lsposed/manager/util/RebootUtil.java +++ b/app/src/main/java/io/github/lsposed/manager/util/RebootUtil.java @@ -38,7 +38,6 @@ public class RebootUtil { try { if (mode == RebootType.USERSPACE && !supportUserspaceReboot()) { ShizukuSystemProperties.set("ctl.restart", "surfaceflinger"); - ShizukuSystemProperties.set("ctl.restart", "zygote"); } else { POWER_MANAGER.get().reboot(BuildConfig.DEBUG, mode.toString(), false); } @@ -80,7 +79,7 @@ public class RebootUtil { if (supportUserspaceReboot()) { command = "/system/bin/svc power reboot userspace"; } else { - command = "setprop ctl.restart surfaceflinger; setprop ctl.restart zygote"; + command = "setprop ctl.restart surfaceflinger"; } } else if (mode == RebootType.NORMAL) { command = "/system/bin/svc power reboot"; @@ -96,4 +95,4 @@ public class RebootUtil { private static boolean supportUserspaceReboot() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && ((PowerManager) App.getInstance().getSystemService(Context.POWER_SERVICE)).isRebootingUserspaceSupported(); } -} \ No newline at end of file +}