SchildiChat-android/tools/tests/doze_mode_enable.sh

8 lines
229 B
Bash
Raw Normal View History

2019-06-19 10:46:59 +02:00
#!/usr/bin/env bash
# Ref: https://developer.android.com/training/monitoring-device-state/doze-standby#testing_doze
echo "Enable doze mode"
echo "adb shell dumpsys deviceidle force-idle"
adb shell dumpsys deviceidle force-idle