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

Post Reply
gj13
Android 1.0
Posts: 6
Joined: Thu Dec 08, 2011 8:05 am
GTV Device Owned: Logitech Revue

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

Post by gj13 » 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

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.
Last edited by gj13 on Sun Aug 11, 2013 2:07 pm, edited 1 time in total.

sirlinux
Android 1.0
Posts: 4
Joined: Sat Aug 11, 2012 9:24 am
GTV Device Owned: Sony NSZ-GS7 (v2 streamer)

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

Post by sirlinux » Sun Aug 11, 2013 5:19 am

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
SONY NSZ-GS7

gj13
Android 1.0
Posts: 6
Joined: Thu Dec 08, 2011 8:05 am
GTV Device Owned: Logitech Revue

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

Post by gj13 » Sun Aug 11, 2013 12:43 pm

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.

mruno
Android 1.0
Posts: 13
Joined: Fri Dec 28, 2012 6:23 am
GTV Device Owned: Sony NSZ-GS7 (v2 streamer)

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

Post by mruno » Sun Aug 11, 2013 4:18 pm

thanks for coming back and posting the solution
:)

Post Reply
 

 

cron

Login  •  Register