Index: platform_tools/android/bin/adb_wait_for_device |
diff --git a/platform_tools/android/bin/adb_wait_for_device b/platform_tools/android/bin/adb_wait_for_device |
index 882cd3fed47a4d078c4574d7bbcec680a288a753..914b5fb5cef076d664d5e6cdacff5ea27d594877 100755 |
--- a/platform_tools/android/bin/adb_wait_for_device |
+++ b/platform_tools/android/bin/adb_wait_for_device |
@@ -16,7 +16,8 @@ function get_battery_level { |
fi |
done |
echo "Could not determine battery level!" 1>&2 |
- echo "0" |
+ # Just exit to prevent hanging forever or failing the build. |
+ exit 0 |
} |
set -e |