extract_utils: Fix device online check
* No need to look for /sbin/recovery as adbd will report
the device as being in recovery mode already. Also, this
check appears to hang on N.
Change-Id: I3bcb427835ae3cd37c7ea56cbc57bba0d18fcc04
diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh
index e6951d6..8a0b3f2 100644
--- a/build/tools/extract_utils.sh
+++ b/build/tools/extract_utils.sh
@@ -499,8 +499,7 @@
# Return success if adb is up and not in recovery
function _adb_connected {
{
- if [[ "$(adb get-state)" == device &&
- "$(adb shell test -e /sbin/recovery; echo $?)" == 0 ]]
+ if [[ "$(adb get-state)" == device ]]
then
return 0
fi