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?
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.
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.
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.
Try this:
-> cache/recovery/openrecoveryscript
wipe data
install /sdcard/my-rom.zip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With