SchildiChat-android/tools/tests/app_standby_on.sh

11 lines
332 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_your_app_with_app_standby
echo "Standby ON"
echo "adb shell dumpsys battery unplug"
adb shell dumpsys battery unplug
echo "adb shell am set-inactive im.vector.riotx true"
adb shell am set-inactive im.vector.riotx true