diff --git a/app/src/main/java/xtr/keymapper/activity/MainActivity.java b/app/src/main/java/xtr/keymapper/activity/MainActivity.java index 787a3b41..9d459fb9 100644 --- a/app/src/main/java/xtr/keymapper/activity/MainActivity.java +++ b/app/src/main/java/xtr/keymapper/activity/MainActivity.java @@ -102,8 +102,11 @@ public void startPointer(){ setButtonState(false); requestNotificationPermission(); } - if (!RemoteServiceHelper.isRootService) + if (RemoteServiceHelper.useShizuku) { + if (!Shizuku.pingBinder()) alertShizukuNotAuthorized(); + } else if (!RemoteServiceHelper.isRootService) { alertRootAccessAndExit(); + } } private void setButtonState(boolean start) {