Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Android recovery) how to let /cache/recovery/command execute more orders?

I want to install zip from sdcard by recovery and I write a file named command :

--update_package=/sdcard/my-rom.zip

put the file into /cache/recovery then run

*adb reboot recovery*

It works.

but if not wipe_data ,there are problems about android system sometimes. so I write the code into command file.

--wipe_data

--update_package=/sdcard/my-rom.zip

it is not working only run the last command ,not wipe_data.

How can I let the command execute by order?

like image 994
sss Avatar asked May 10 '12 02:05

sss


People also ask

Does recovery mode erase data Android?

Wipe data/factory reset: As a last resort, you can use recovery mode to factory reset your Android phone, which will wipe all apps, data, and files, including text messages and photos.

What does reboot to recovery mode mean?

All Android phones ship with a mode called recovery mode that, although built for helping you recover your device when things go wrong, also helps you tweak a number of options on the phone. You can also use the recovery mode if there's an issue with your system and you think your device could use some help.

How do I boot my Android into recovery mode?

Press and hold the Power key and then press the Volume up key once while still holding down the Power key. You should see the Android system recovery options pop up at the top of the screen. Use the Volume keys to highlight the options and the Power key to select the one you want.


1 Answers

Try this:

-> cache/recovery/openrecoveryscript

wipe data

install /sdcard/my-rom.zip

like image 117
tunk3r Avatar answered Sep 27 '22 19:09

tunk3r