envsetup: s/wait-for-online/wait-for-device-recovery/g
Change-Id: I3fd52aa99d281837fdbdba3b1d268572061a900d
This commit is contained in:
@@ -100,7 +100,7 @@ function eat()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo "Waiting for device..."
|
echo "Waiting for device..."
|
||||||
adb wait-for-online
|
adb wait-for-device-recovery
|
||||||
echo "Found device"
|
echo "Found device"
|
||||||
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD"); then
|
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD"); then
|
||||||
echo "Rebooting to sideload for install"
|
echo "Rebooting to sideload for install"
|
||||||
@@ -364,9 +364,9 @@ function installboot()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
adb wait-for-online
|
adb wait-for-device-recovery
|
||||||
adb root
|
adb root
|
||||||
adb wait-for-online
|
adb wait-for-device-recovery
|
||||||
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD");
|
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD");
|
||||||
then
|
then
|
||||||
adb push $OUT/boot.img /cache/
|
adb push $OUT/boot.img /cache/
|
||||||
@@ -402,9 +402,9 @@ function installrecovery()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
adb wait-for-online
|
adb wait-for-device-recovery
|
||||||
adb root
|
adb root
|
||||||
adb wait-for-online
|
adb wait-for-device-recovery
|
||||||
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD");
|
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD");
|
||||||
then
|
then
|
||||||
adb push $OUT/recovery.img /cache/
|
adb push $OUT/recovery.img /cache/
|
||||||
@@ -804,7 +804,6 @@ function dopush()
|
|||||||
adb connect "$TCPIPPORT"
|
adb connect "$TCPIPPORT"
|
||||||
fi
|
fi
|
||||||
adb wait-for-device &> /dev/null
|
adb wait-for-device &> /dev/null
|
||||||
sleep 0.3
|
|
||||||
adb remount &> /dev/null
|
adb remount &> /dev/null
|
||||||
|
|
||||||
mkdir -p $OUT
|
mkdir -p $OUT
|
||||||
|
Reference in New Issue
Block a user