by Jung Y
Version 3 (December 27, 2022)
Download (30 downloads)
turns off display (via virtual power button press) when placed upside down or screen-down on a surface or in a pocket.
no accessibility service needed but needs root.
disabled in landscape mode and [hopefully] all cameras.
detects camera via secure settings "flashlight_available"
why root?!?
for some reason, Automate seems like it pulls in lots of memory-intensive google play services once accessibility permission is enabled. it might be just a little android quirk, but it doesn't look good to me... anyways, gotta make use of my newly-gained unlock/root that I lost all my data for!
possible bug: the proximity wait can get stuck, but it's unlikely to happen in normal use, and the fix is to simply block and unblock the sensor... still undecided if I should replace it with a 1s delay loop...
changelog:
- change blocking camera check to a 1s delay loop: sometimes Automate gets killed while camera is started and it'll restart on that wait block and sit there forever waiting for a camera exit that's already happened.
- remove power-intensive orientation wait and have it loop instead
- added in-call detection. for some reason it still works without needing the phone status permission...
5 stars | 0 | |
4 stars | 1 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.