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
gugelfrei
Steve Kondik 8 years ago committed by Steve Kondik
parent a70323c1d0
commit 7561d19795

@ -499,8 +499,7 @@ EOF
# 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

Loading…
Cancel
Save