From 50850b152fce606f2015facf287f04224e647a9c Mon Sep 17 00:00:00 2001 From: borenet Date: Mon, 4 Jan 2016 10:44:03 -0800 Subject: [PATCH] Android devices: wait for 100% charge Some devices are getting pretty low by the end of the build (3%). No reason to cut it close, bump to 100% charge. This will cause some devices to sit for a while as they charge up. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1556023002 Review URL: https://codereview.chromium.org/1556023002 --- platform_tools/android/bin/adb_wait_for_device | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform_tools/android/bin/adb_wait_for_device b/platform_tools/android/bin/adb_wait_for_device index acf73b1..748ada3 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=30 +DESIRED_BATTERY_LEVEL=100 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}" -- 2.7.4