TeamWin / Team-Win-Recovery-Project-1.x-NO-GUI

AOSP based recovery that is highly customized
www.teamw.in
52 stars 11 forks source link

how do I instruct twrp to flash a particular update.zip automatically upon rebooting to recovery? #14

Closed myn closed 13 years ago

myn commented 13 years ago

I have an application that I use to update my Roms called Warm Updater (forked from cmupdater) in my roms today that downloads an update.zip and automatically reboots to recovery flashing the downloaded update.zip.

This works fine in amon_ra's recovery today and was wondering what the implementation is in twrp? I'd like to adjust my code accordingly so my users are able to use twrp.

Thanks.

For reference here is the source to the class that performs these activities today:

https://github.com/myn/warmupdater/blob/master/src/warmupdaterapp/ui/ApplyUpdateActivity.java

/*

myn commented 13 years ago

Looks like TWRP already supports script updates pushed through command :)

The implementation assumes > Froyo recovery. As such I have adjusted my Warm Updater app and confirmed this works on the HTC EVO 3D.

https://github.com/myn/warmupdater/commit/d9310b76fd3bfd1043da08080f9d2640931cc979