forked from GitHub-Mirror/riotX-android
WIP
This commit is contained in:
10
tools/tests/app_standby_off.sh
Executable file
10
tools/tests/app_standby_off.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Ref: https://developer.android.com/training/monitoring-device-state/doze-standby#testing_your_app_with_app_standby
|
||||
|
||||
echo "Standby OFF"
|
||||
echo "adb shell dumpsys battery reset"
|
||||
adb shell dumpsys battery reset
|
||||
|
||||
echo "adb shell am set-inactive im.vector.riotredesign false"
|
||||
adb shell am set-inactive im.vector.riotredesign false
|
10
tools/tests/app_standby_on.sh
Executable file
10
tools/tests/app_standby_on.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/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.riotredesign true"
|
||||
adb shell am set-inactive im.vector.riotredesign true
|
11
tools/tests/doze_mode_disable.sh
Executable file
11
tools/tests/doze_mode_disable.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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
|
7
tools/tests/doze_mode_enable.sh
Executable file
7
tools/tests/doze_mode_enable.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/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
|
Reference in New Issue
Block a user