Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98db5c8e authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

solve timing issue in install-from-recovery.sh

parent 97760d70
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -46,17 +46,25 @@ if [ -z "$ARCHIVE_PATH" ]
then
  exit 102
fi
# "$ADB_PATH" kill-server
# "$ADB_PATH" devices

sleep 10

"$ADB_PATH" -s "$DEVICE_ID" shell "twrp wipe system" ;

echo "system wiped"

sleep 10

"$ADB_PATH" -s "$DEVICE_ID" shell "twrp wipe cache" ;

echo "cache wiped"

sleep 10
"$ADB_PATH" -s "$DEVICE_ID" shell "twrp wipe data" ;

echo "data wiped"

sleep 10


if ! "$ADB_PATH" -s "$DEVICE_ID" push "$ARCHIVE_PATH" /sdcard ;