-
-
Save delmain/5636f6a3b3fbac1f2ab966a469dc327e to your computer and use it in GitHub Desktop.
Tasker Troubleshooting - Status Bar action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove all permissions from tasker and tasker settings EXCEPT those that can be granted from inside Android (default state). Reboot phone. | |
Attempt to run task, get error: | |
21.35.03/E Status Bar: expand: true | |
21.35.03/MAS Status Barunsupported | |
21.35.03/E Status Bar: accessibility service unavailable or failed, check SBS | |
21.35.03/E Status Bar: SBS available, let's try it | |
21.35.03/Mirror no sbs method available | |
21.35.03/Mirror set status bar: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference | |
21.35.03/E result: stop task (error) | |
21.35.03/E Error: 1 | |
21.35.03/MacroEdit action finished exeID 1 action no 4 code 512 status: Err next 4 | |
Grant Write Secure Settings, run task, get same error. | |
Grant Read System Logs, run task, get same error. | |
Grant Running Services (tasker restarts as part of grant action in app), run task, get same error. | |
Grant Long-click Volume Buttons, run task, get same error. | |
Grant Media Buttons, run task, get same error. | |
Grant Capture Screen, run task, get same error. | |
Grant Change System Locale, run task, get same error. | |
Grant Package Usage Statistics, run task, get same error. | |
Grant Access Hidden Apis, Tasker restarts as part of grant, task completes successfully. | |
Remove all permissions again (except Android-grantable ones) and reboot again. | |
Run task without hidden apis: fail | |
Run task with hidden apis: success | |
It appears that the required configuration is (all Android grant-able permissions) + accessibility service enabled + Access Hidden APIs permission. | |
With the Hidden APIs permission missing, we get the null reference error. With it, the action succeeds. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment