Updater script for factory reset in update.zip? [Solved]
Posted: Sat Aug 10, 2013 2:08 pm
What needs to be added to an updater script in order to do a proper factory reset when flashing a zip in custom recovery?
My box won't boot, so I wanted to see if a factory reset would help. However, the GTVHacker custom recovery doesn't have a factory reset function yet, and I can't boot to do a reset from settings. It looks like this may be the only way.
Edit: I was able to get the box to boot again by adding to the updater script of the rel10 update!
I'm not sure if this actually performed a factory reset, however, as I have formatted the data and cache via update script previously. Just formatting data and cache wasn't enough to get it booting again, though. Running the install recovery script got it back up.
My box won't boot, so I wanted to see if a factory reset would help. However, the GTVHacker custom recovery doesn't have a factory reset function yet, and I can't boot to do a reset from settings. It looks like this may be the only way.
Edit: I was able to get the box to boot again by adding
Code: Select all
run_program("/system/etc/install-recovery.sh");
I'm not sure if this actually performed a factory reset, however, as I have formatted the data and cache via update script previously. Just formatting data and cache wasn't enough to get it booting again, though. Running the install recovery script got it back up.