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
This commit is contained in:
committed by
Steve Kondik
parent
a70323c1d0
commit
7561d19795
@@ -499,8 +499,7 @@ EOF
|
|||||||
# Return success if adb is up and not in recovery
|
# Return success if adb is up and not in recovery
|
||||||
function _adb_connected {
|
function _adb_connected {
|
||||||
{
|
{
|
||||||
if [[ "$(adb get-state)" == device &&
|
if [[ "$(adb get-state)" == device ]]
|
||||||
"$(adb shell test -e /sbin/recovery; echo $?)" == 0 ]]
|
|
||||||
then
|
then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user