From e9d9f0eb85c0a138689522dbeddf59c12dce0b4d Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 5 Nov 2012 20:35:27 +0100 Subject: [PATCH] remove old update.zip and wipe cache --- adb-install-update.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adb-install-update.sh b/adb-install-update.sh index 978490c..42c4e67 100755 --- a/adb-install-update.sh +++ b/adb-install-update.sh @@ -18,11 +18,13 @@ if [ ! -e "$1" ] ; then exit 1 fi -#adb push $1 /sdcard/update.zip +adb shell "rm /sdcard/update.zip" + +adb push $1 /sdcard/update.zip || exit 1 adb remount adb shell "echo 'boot-recovery ' > /cache/recovery/command" adb shell "echo '--update_package=/sdcard/update.zip' >> /cache/recovery/command" -#adb shell "echo '--wipe_cache' >> /cache/recovery/command" +adb shell "echo '--wipe_cache' >> /cache/recovery/command" adb shell "echo 'reboot' >> /cache/recovery/command" adb shell "reboot recovery" -- 2.20.1