diff --git a/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java b/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java index f692b7649..a970fe9f1 100644 --- a/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java +++ b/app/src/main/java/com/topjohnwu/magisk/services/TileServiceNewApi.java @@ -87,12 +87,20 @@ public class TileServiceNewApi extends android.service.quicksettings.TileService switch (rootsState) { case 2: Utils.toggleRoot(true, getApplicationContext()); + if (!Utils.hasServicePermission(getApplicationContext())) { + Intent it = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); + sendBroadcast(it); + } Utils.toggleAutoRoot(false, getApplicationContext()); break; case 1: Utils.toggleRoot(false, getApplicationContext()); break; case 0: + if (!Utils.hasServicePermission(getApplicationContext())) { + Intent it = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); + sendBroadcast(it); + } Utils.toggleAutoRoot(true, getApplicationContext()); break; } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f805253e2..61321e97e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -32,7 +32,7 @@ Root enabled. Safety Net (Android Pay) will NOT work Root disabled Safety Net (Android Pay) should work, but no root temporarily\nYou might need to manually add a card in Android Pay app to refresh the root status of AP - Root set to auto-mount + Root set to auto-toggle Root will auto unmount for selected applications. Safety Net (Android Pay) should work. Magisk Incompatible Root Detected Root improperly installed. Safety Net (Android Pay) will NOT work, and impossible to toggle.