I am making a automated script to compile the latest Cyanogen Mod for milestone and it is working good except for auto updating the phone. I have a couple steps I can't figure out how to automate and one that is not working for some unknown to me reason.
I would like to know adb shell commands that would wipe the cache (I already know dalvik) and apply the update (will have a uniform name that can be hard coded)
Here is just the relevant section of the script with the problem I can't figure out why it wont work.
After rebooting into recovery it never finds the phone again and start the rest of the script
if [ "$1" == "-f" ]
then
echo "Waiting for phone if not connected; connect it"
adb wait-for-device
echo "Pushing update archive to phone"
adb push out/target/product/umts_sholes/update-cm-*-Milestone-signed.zip /sdcard/OpenRecovery/updates/update-cm-latest.zip
echo "Rebooting to recovery mode"
adb reboot recovery
echo "Please hold volume up and hit the camera button then apply update.zip" #Can't be automated
adb wait-for-device #Does not work for some reason
adb shell wipe_dalvik_cache.sh
echo "Please wipe cache and apply update until I find out how to automate"
adb reboot
exit 0
fi
I would like to know adb shell commands that would wipe the cache (I already know dalvik) and apply the update (will have a uniform name that can be hard coded)
Here is just the relevant section of the script with the problem I can't figure out why it wont work.
After rebooting into recovery it never finds the phone again and start the rest of the script
if [ "$1" == "-f" ]
then
echo "Waiting for phone if not connected; connect it"
adb wait-for-device
echo "Pushing update archive to phone"
adb push out/target/product/umts_sholes/update-cm-*-Milestone-signed.zip /sdcard/OpenRecovery/updates/update-cm-latest.zip
echo "Rebooting to recovery mode"
adb reboot recovery
echo "Please hold volume up and hit the camera button then apply update.zip" #Can't be automated
adb wait-for-device #Does not work for some reason
adb shell wipe_dalvik_cache.sh
echo "Please wipe cache and apply update until I find out how to automate"
adb reboot
exit 0
fi