AOD settings with Oneplus/Oppo OS

Hi,

Since Android 12 upgrade on my OP8T, MD is unable to turn on and off AOD.
I tried playing with these ADB shell commands :
Setting_AodEnable=1
Setting_AodSwitchEnable=1

Although it's done without any error, AOD won't be activated this way. I must miss something I suppose...
 

Dimlos

Well-known member
I tried it on Xiaomi, so it may not work on OPPO, but I confirmed that the toggle works in System Setting.
 

Attachments

  • AOD Turn ON Off.jpg
    AOD Turn ON Off.jpg
    396.2 KB · Views: 18
Yes but the toggle you show is for Doze, isn't it ?
The AodSwitchEnable is in Secure settings, I don't know if it's relevant.
 

Dimlos

Well-known member
I have had success with Xiaomi POCO F3 and Google Pixel 5a on Android 12, could you please try once?
 
Is this what I should try?
How do you specify the "secure" category of the specified setting you want to change? (System, secure, or global?)
 

Attachments

  • Screenshot_2022-05-14-20-12-56-37_c500bd22b8b6ce50d92894d3df6c85b3.jpg
    Screenshot_2022-05-14-20-12-56-37_c500bd22b8b6ce50d92894d3df6c85b3.jpg
    248.1 KB · Views: 10

Dimlos

Well-known member
To do this with the ADB command, make the following changes
before > doze_always_on=0 after > settings put secure doze_always_on 0
 

Attachments

  • AOD Turn Off ADBPlugin.jpg
    AOD Turn Off ADBPlugin.jpg
    280.8 KB · Views: 7
Doze setting didn't work but Aod(Switch)Enable did! It triggers AOD on and off now (disregard the many disabled actions in the joined picture). Problem now is that horizon light doesn't work when AOD off but I'm getting there. Thank you!

EDIT : apparently it's the AodSwitchEnable that works. I didn't find out which setting was associated to AodEnable.
 

Attachments

  • Screenshot_2022-05-15-10-00-34-46_2e840d222d67ef3caca3a1c67d71d48f.jpg
    Screenshot_2022-05-15-10-00-34-46_2e840d222d67ef3caca3a1c67d71d48f.jpg
    537.8 KB · Views: 19
Last edited:
Another problem now : Horizon light doesn't work when AOD is off apparently. I'd like MD to turn on AOD only when notifications of specific apps are received. It works but not instantly : AOD gets on, but I have to put the screen on then off in order to see AOD active (ie the clock, battery %, and notification icons). The reception of a notification doesn't show the AOD clock nor horizon light instantly... I don't know if I'm clear...
 

Dimlos

Well-known member
I don't have an Oneplus device, so this may not be helpful, but if the condition for Horizon light to work is that AOD is turned on, wouldn't AOD have to be turned on before the notification is displayed?

In other words, wouldn't it be too late to turn on AOD after the notification is displayed?
 
Top