From cd1edc5d56cb83215b631fd9f779f116c8940b6d Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Wed, 23 Mar 2022 14:36:38 +0800 Subject: [PATCH] Use svc for reboot to recovery --- app/src/main/java/com/topjohnwu/magisk/events/RebootEvent.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/events/RebootEvent.kt b/app/src/main/java/com/topjohnwu/magisk/events/RebootEvent.kt index 6843e3039..7197c36ff 100644 --- a/app/src/main/java/com/topjohnwu/magisk/events/RebootEvent.kt +++ b/app/src/main/java/com/topjohnwu/magisk/events/RebootEvent.kt @@ -8,7 +8,6 @@ import android.widget.PopupMenu import androidx.core.content.getSystemService import com.topjohnwu.magisk.R import com.topjohnwu.magisk.core.base.BaseActivity -import com.topjohnwu.superuser.Shell import com.topjohnwu.magisk.ktx.reboot as systemReboot object RebootEvent { @@ -20,7 +19,7 @@ object RebootEvent { R.id.action_reboot_bootloader -> systemReboot("bootloader") R.id.action_reboot_download -> systemReboot("download") R.id.action_reboot_edl -> systemReboot("edl") - R.id.action_reboot_recovery -> Shell.cmd("/system/bin/reboot recovery").submit() + R.id.action_reboot_recovery -> systemReboot("recovery") else -> Unit } return true