by Abdelali Elbihari Elmersy
Version 1 (February 28, 2023)
Download (38 downloads)
Flow to control AOD mode based on certain conditions
[ADB/ROOT]
[FREE]
This flow toggles the 'Always On Display' mode based on only posted notifications definded in variable include_packages, battery charging and the 'Do Not Disturb' mode.
The flow has been created based on AOD Controller for Pixel 4a and tested on a Google Pixel 7 pro (Android 13), so no warranties are given it will run smoothly on any other device.
Setting the AOD mode requires the WRITE_SECURE_SETTINGS right on the device. You may be able (as me) to unlook it using the 'Android Debug Bridge' (ADB). Consult the Automate documentation for further details. There should be no issues on a rooted device either.
Synchronization between the processing fiber and the blocking fibers monitoring the conditions is done by applying 'Variables Give' and 'Variables Take' blocks.
Since disabling AOD does not take effect until it is inactive (at least on the Google Pixel 4a, Pixel 7), the device needs to be woken up with a 'Device Keep Awake' block for that matter.
5 stars | 1 | |
4 stars | 0 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.