Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patching: Detecting device status error #26

Open
wants to merge 1 commit into
base: nougat-7.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions config/makeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ ERR_MISSION_FAILED=209
function checkAdbConnect()
{
echo ">>> Check connecting state"
adb shell ls /system > /dev/null 2>&1
adb devices | grep -w "device" > /dev/null 2>&1
if [ $? != "0" ];then
echo ">>> Device is not found, Please connect device and pc with USB cable, and open Adb Debug in device."
exit $ERR_USB_NOT_CONNECTED
#exit $ERR_USB_NOT_CONNECTED
fi
}

Expand All @@ -66,7 +66,7 @@ function waitForDeviceOnline ()
local timeout=30
while [ $timeout -gt 0 ]
do
if adb shell ls /system > /dev/null 2>&1; then
if adb devices | grep -w "device" > /dev/null 2>&1 > /dev/null 2>&1; then
echo ">>> device is online"
break
fi
Expand Down Expand Up @@ -139,7 +139,7 @@ function checkEnvironment()
exit $ERR_MISSION_FAILED
fi

adb shell ls / > /dev/null 2>&1
adb devices | grep -w "device" > /dev/null 2>&1
if [ $? != 0 -a -f $OTA_PACKAGE ];then
echo ">>> Device is not online, but ota.zip is exist."
echo ">>> Config Makefile from $OTA_PACKAGE."
Expand Down