Page 1 of 1

Updater script for factory reset in update.zip? [Solved]

Posted: Sat Aug 10, 2013 2:08 pm
by gj13
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

Code: Select all

run_program("/system/etc/install-recovery.sh");
to the updater script of the rel10 update! :D
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.

Re: Updater script for factory reset in update.zip?

Posted: Sun Aug 11, 2013 5:19 am
by sirlinux
you might try this

Follow the below steps to reset the Player.
1) Unplug the power cord from the Internet TV device.
2) Use a ballpoint pen to press and hold the CONNECT button on the bottom of the Internet Player.
3) Plug the power cord back into the Internet TV device.
4) When the System Recovery screen appears, release the CONNECT button.

NOTE: It make take around 30 seconds before the screen displays.
5) Press the CONNECT button once to select Factory Reset and un-pair Remote Control.
6) Press and hold the CONNECT button for just over 5 seconds.
7) Release the CONNECT button.
8) Press the CONNECT button to select Yes.
9) After choosing the desired reset option, press and hold the CONNECT button for just over 5 seconds.
10) Release the CONNECT button.

info taken from here http://community.sony.com/t5/Internet-T ... td-p/41805

Re: Updater script for factory reset in update.zip?

Posted: Sun Aug 11, 2013 12:43 pm
by gj13
Thank you for the response, but I'm afraid that process will only work with the stock recovery. Perhaps I can flash back the stock recovery from one of the updates though.

Re: Updater script for factory reset in update.zip? [Solved]

Posted: Sun Aug 11, 2013 4:18 pm
by mruno
thanks for coming back and posting the solution
:)