envsetup: s/wait-for-online/wait-for-device-recovery/g
Change-Id: I3fd52aa99d281837fdbdba3b1d268572061a900d
diff --git a/build/envsetup.sh b/build/envsetup.sh
index 9d86436..03c83e3 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -100,7 +100,7 @@
return 1
fi
echo "Waiting for device..."
- adb wait-for-online
+ adb wait-for-device-recovery
echo "Found device"
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD"); then
echo "Rebooting to sideload for install"
@@ -364,9 +364,9 @@
return 1
fi
fi
- adb wait-for-online
+ adb wait-for-device-recovery
adb root
- adb wait-for-online
+ adb wait-for-device-recovery
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD");
then
adb push $OUT/boot.img /cache/
@@ -402,9 +402,9 @@
return 1
fi
fi
- adb wait-for-online
+ adb wait-for-device-recovery
adb root
- adb wait-for-online
+ adb wait-for-device-recovery
if (adb shell getprop ro.lineage.device | grep -q "$LINEAGE_BUILD");
then
adb push $OUT/recovery.img /cache/
@@ -804,7 +804,6 @@
adb connect "$TCPIPPORT"
fi
adb wait-for-device &> /dev/null
- sleep 0.3
adb remount &> /dev/null
mkdir -p $OUT