diff options
author | borenet <borenet@google.com> | 2016-01-04 10:44:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-04 10:44:03 -0800 |
commit | 50850b152fce606f2015facf287f04224e647a9c (patch) | |
tree | b91593d28e7144445e2d8465951daff416a7acd4 /platform_tools/android/bin/adb_wait_for_device | |
parent | b3a835891cf221bdf4c6eeb4cf404b374955015f (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-x | platform_tools/android/bin/adb_wait_for_device | 2 |
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}" |