How to disable device administrator that stops Settings app?
4
votes
2
answers
8721
views
I try to disable two apps: Tasker and Applock, from device administrators, but when I tap to uncheck it, the Settings app stops. Other device admins like Cerberus can be enabled/disabled.
I sent an email to Tasker developer but received this answer:
> Have you disabled Tasker and restarted the device ?
>
> In any case, if the Settings app is stopping that's a bug in the
> Settings app on your device, not in Tasker, I'm sorry to say. Tasker
> has no influence on what Settings does when the button is checked or
> unchecked, and you're the first person in 6 years to report a crash
> in Settings from disabling the Device Admin.
**logcat via adb** shows an uncaught exception:
12-01 18:46:20.764 22303 22303 E AndroidRuntime: FATAL EXCEPTION: main
12-01 18:46:20.764 22303 22303 E AndroidRuntime: Process: com.android.settings, PID: 22303
12-01 18:46:20.764 22303 22303 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.DeviceAdminAdd}: java.lang.SecurityException: net.dinglisch.android.taskerm from uid 10134 not allowed to perform SYSTEM_ALERT_WINDOW
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3124)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3155)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2498)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5459)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: Caused by: java.lang.SecurityException: net.dinglisch.android.taskerm from uid 10134 not allowed to perform SYSTEM_ALERT_WINDOW
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.AppOpsManager.checkOp(AppOpsManager.java:1521)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at com.android.settings.DeviceAdminAdd.onResume(DeviceAdminAdd.java:384)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1281)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.Activity.performResume(Activity.java:6335)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3113)
12-01 18:46:20.764 22303 22303 E AndroidRuntime: ... 10 more
12-01 18:46:30.174 23612 23612 E AndroidRuntime: FATAL EXCEPTION: main
12-01 18:46:30.174 23612 23612 E AndroidRuntime: Process: com.android.settings, PID: 23612
12-01 18:46:30.174 23612 23612 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.DeviceAdminAdd}: java.lang.SecurityException: com.domobile.applock from uid 10161 not allowed to perform SYSTEM_ALERT_WINDOW
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3124)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3155)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2498)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5459)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: Caused by: java.lang.SecurityException: com.domobile.applock from uid 10161 not allowed to perform SYSTEM_ALERT_WINDOW
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.AppOpsManager.checkOp(AppOpsManager.java:1521)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at com.android.settings.DeviceAdminAdd.onResume(DeviceAdminAdd.java:384)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1281)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.Activity.performResume(Activity.java:6335)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3113)
12-01 18:46:30.174 23612 23612 E AndroidRuntime: ... 10 more
**Device info**
ro.bootimage.build.fingerprint]: [motorola/harpia_retail/harpia:6.0.1/MPI24.241-15.3/3:user/release-keys]
Is it possible to disable these device admins without resetting the device?
Asked by angel
(141 rep)
Dec 2, 2016, 12:59 AM
Last activity: Jul 22, 2021, 01:02 AM
Last activity: Jul 22, 2021, 01:02 AM