From 4cc51aeb327f96124495805cb46398005b4539ca Mon Sep 17 00:00:00 2001 From: Xtr126 <80520774+Xtr126@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:23:08 +0530 Subject: [PATCH] fix: alert when shizuku not authorized --- app/src/main/java/xtr/keymapper/activity/MainActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {