element-android/tools/tests/doze_mode_disable.sh

12 lines
310 B
Bash
Raw Normal View History

2019-06-19 11:46:59 +03:00
#!/usr/bin/env bash
# Ref: https://developer.android.com/training/monitoring-device-state/doze-standby#testing_doze
echo "Exit doze mode"
echo "shell dumpsys deviceidle unforce"
adb shell dumpsys deviceidle unforce
echo "Reactivate device"
echo "shell dumpsys battery reset"
adb shell dumpsys battery reset