aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin
diff options
context:
space:
mode:
authorGravatar borenet <borenet@google.com>2016-01-04 12:33:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-04 12:33:26 -0800
commitf8d4d5c995cac3e525ba23c8a6ca169ec2c8ce51 (patch)
tree44204360b4ec1f787d9b6bbf8eb5530f6d9be051 /platform_tools/android/bin
parentc149f0e36e0ca0ff35ec6e2f79419b58d529db40 (diff)
Android bots: set battery threshold to 80%
Diffstat (limited to 'platform_tools/android/bin')
-rwxr-xr-xplatform_tools/android/bin/adb_wait_for_device2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform_tools/android/bin/adb_wait_for_device b/platform_tools/android/bin/adb_wait_for_device
index 748ada3ddf..a1f8c1645e 100755
--- a/platform_tools/android/bin/adb_wait_for_device
+++ b/platform_tools/android/bin/adb_wait_for_device
@@ -72,7 +72,7 @@ while [ "$($ADB $DEVICE_SERIAL shell getprop sys.boot_completed | tr -d '\r')" !
done
# Wait for battery charge.
-DESIRED_BATTERY_LEVEL=100
+DESIRED_BATTERY_LEVEL=80
CURRENT_BATTERY_LEVEL="$(get_battery_level)"
while [ "${CURRENT_BATTERY_LEVEL}" -lt "${DESIRED_BATTERY_LEVEL}" ]; do
echo "Battery level is ${CURRENT_BATTERY_LEVEL}; waiting to charge to ${DESIRED_BATTERY_LEVEL}"