aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/adb_wait_for_device
diff options
context:
space:
mode:
authorGravatar borenet <borenet@google.com>2016-01-04 10:44:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-04 10:44:03 -0800
commit50850b152fce606f2015facf287f04224e647a9c (patch)
treeb91593d28e7144445e2d8465951daff416a7acd4 /platform_tools/android/bin/adb_wait_for_device
parentb3a835891cf221bdf4c6eeb4cf404b374955015f (diff)
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
Diffstat (limited to 'platform_tools/android/bin/adb_wait_for_device')
-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 acf73b1bcc..748ada3ddf 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}"