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

I want to install zip from sdcard by recovery, and I am writing a file called command:

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

put the file in /cache/recovery , then run

 *adb reboot recovery* 

He works.

but if not wipe_data, sometimes there are problems with the Android system. so I am writing code in a command file.

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

only the last command does not work in it, not wipe_data.

How can I let the team fulfill an order?

+4
source share
1 answer

Try the following:

-> cache / recovery / openrecoveryscript

erase data

install / sdcard / my-rom.zip

0
source

Source: https://habr.com/ru/post/1411675/


All Articles