Page 1 of 1

Need help with flow to enable/disable screen overlays

Posted: 07 Sep 2018 06:54
by AMChris
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

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

Posted: 07 Sep 2018 17:28
by Desmanto
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.