Need help with flow to enable/disable screen overlays

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
AMChris
Posts: 42
Joined: 22 Oct 2014 08:39

Need help with flow to enable/disable screen overlays

Post by AMChris » 07 Sep 2018 06:54

I love my LG G4 but one thing is annoying: I can't grant permissions for apps without disabling and re-enabling all screen overlay apps ('draw over other apps permission') one by one.

Now I think of doing this with automagic.
Before I start doing this with a cumbersome sequence of 'control UI' actions I am asking for your advice:

>> Is there a way to directly enable and disable the 'Draw over other apps permission'?

Thanks
Chris

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Need help with flow to enable/disable screen overlays

Post by Desmanto » 07 Sep 2018 17:28

I don't know if the ROM will block the control UI in the draw over other apps permission settings. But at mine, RR 6.1 Oreo 8.1, Control UI can enable/disable that permission in the app info. So it is possible to run thru all app permission and enable/disable them.

But this is the system problem, actually shouldn't be fixed using Automagic. You can disable the app using overlay temporary when granting permission, this is to prevent hijacking.

What overlay app you are using all the day? You can use Automagic to stop its service and restart it again after enabling the permission. To detect the permission windows, you can use UI Event trigger. There is some more complex method to grant/deny the permission using cmd appops, but it is probably much better to use the Control UI.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply