In b4 I need to say that I'm not a professional developer and standing upon compliance test for Android for the first time and for my own. I need to test whether an app behaves correctly after restoring from Doze / App standby. The thing is that when I use commands from android dev site, nothing happens neither with app nor with the device itself. Cmd prompt seems to respond correctly, tho.
Commands for Doze:
adb shell dumpsys deviceidle unforce
adb shell dumpsys battery reset
Commands for App Standby:
adb shell dumpsys battery unplug
adb shell am set-inactive true
Wake up from App Standby:
adb shell am set-inactive false
adb shell am get-inactive
Do you think that if nothing bad happens to the app, it means that it just behaves correctly or I made some mistakes during tests. I'm asking becouse from what I read throughout the internet, the Doze should trigger with at least locked screen, so it all looks suspicious to me. I don't have any other ideas how to confirm whether these commands actually work.
Aucun commentaire:
Enregistrer un commentaire