New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
atr0phy
Old
(Last edited by atr0phy; 25th May 2011 at 02:39 AM.)
#1  
Junior Member - OP
Thanks Meter 3
Posts: 24
Join Date: Feb 2011
Thumbs up [HOWTO] Unbrick After Factory Reset From Privacy Screen

So everyone says never do this, but what can I say, I was curious

My Optimus was previously rooted using sublimewolf's method: http://forum.xda-developers.com/showthread.php?t=935312
I then proceeded to brick it by using the Factory Reset found in the Privacy Screen. This forced my phone into a recovery loop.
If you can't even get to your custom recovery, your phone might be your newest paperweight But as long as you can both get to recovery and access the phone via adb, you'll be okay.

So here's how to unbrick it:

This is the flash_image: http://www.mediafire.com/?bx14hzq5i2pq3ps
And here's the stock recovery image + nand backup: http://www.mediafire.com/?ac0e2ksq0eslytk

(In my case, I was able to skip to Step 4 in the Nandroid Instructions because I had performed a Nand Backup when I rooted, therefore the necessary files were already in place)

Nandroid Instructions:
1) Unzip both downloaded archives
2) Move the BCDS-20110203-0357 dir into /sdcard/nandroid/mem=477M (also extract recovery.img and flash_image to root dir of your SD card, as you will need to later anyway)
2a) For Clockwork Recovery, place the BCDS-20110203-0357 dir into /sdcard/clockworkmod/backup
3) Mount SD into phone if it isn't already, boot into recovery if your phone isn't already there
4) Go into the "Backup/Restore" menu, and select "nand restore", confirm and wait
5) Reboot, proceed to Recovery Instructions below

Recovery Instructions:
1) Extract recovery.img and flash_image to root dir of your SD card if you haven't already done so
2) Connect to your phone via the adb shell and input the following commands:
# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
# cat /sdcard/flash_image > /system/bin/flash_image
# chmod 755 /system/bin/flash_image
# mount -o remount,ro -t yaffs2 /dev/block/mtdblock5
# flash_image recovery /sdcard/recovery.img
# reboot recovery

3) If everything was done correctly, your phone should boot up normally to the OS

If the links above go down, let me know and I'll re-up



(thanks to tankhull for putting this info together)
(oh and you're welcome for being a guinea pig )
The Following User Says Thank You to atr0phy For This Useful Post: [ Click to Expand ]
 
xdaallen
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jun 2011
Default Thank you very much for putting this together

I am one of the curious one too.

You saved me....
 
overthinkingme
Old
#3  
overthinkingme's Avatar
Senior Member
Thanks Meter 45
Posts: 624
Join Date: Feb 2010
Location: Los Angeles
If you can't get into recovery, I'm sure you can flash one through fastboot. No?

Sent from my VM670 using XDA App
--| Nexus 4 | CM10: Nightly |--
Dropbox +500MB Referral
Phone History:
2008: Moto v557_ATT
2009: Blackberry 8310_ATT
2010: HTC Hero_Sprint | Blackberry 9630_Sprint | HTC Evo_Sprint | Nexus One_TMO
2011: LG Optimus V_VM | myTouch 4G_TMO | SGS4G_TMO | HTC HD2_TMO | Vibrant_TMO | iPhone 3Gs_TMO | iPhone 4_TMO | Sensation 4G_TMO
2012: Galaxy Nexus_TMO | Nexus 4_TMO

 
Wreak_Peace
Old
#4  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Nov 2010
Hi!
I had stock rom, but my phone was rooted.
So if whenever I turn my phone on, it goes to Clockwork Mod, does that mean it is bricked?
And will there be any way to unroot my phone after I do this? BC my 3G wasn't working at all, it should be working, but its not, so I did a factory reset.
 
overthatscreen
Old
#5  
Member
Thanks Meter 4
Posts: 80
Join Date: Mar 2010
Default Didn't work for me

when typing su after nand restore i get

/sbin/sh: su: not found
 
Forrest250r
Old
#6  
Forrest250r's Avatar
Member
Thanks Meter 2
Posts: 52
Join Date: Jul 2010
Location: redding KOMMIFORNIA
Ok so I have followed the instructions to the letter. And am attemptingto access adb shell. But in cmd prompt when I type adb devices it comes up with list of devices attached and says nothing. So how are we supposed to be accessing adb shell?
 
Wreak_Peace
Old
#7  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Nov 2010
In clockworkmod, I went to the option for mounting and mounted the sd card, and a folder popped up on my comp, and there was no folder called Nandroid or clockworkmod
 
Forrest250r
Old
#8  
Forrest250r's Avatar
Member
Thanks Meter 2
Posts: 52
Join Date: Jul 2010
Location: redding KOMMIFORNIA
Any help guys?
 
Wreak_Peace
Old
#9  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Nov 2010
I don't understand how to do the Nandroid instructions part... do I have to go to ADB?
 
Wreak_Peace
Old
#10  
Junior Member
Thanks Meter 0
Posts: 13
Join Date: Nov 2010
Quote:
Originally Posted by atr0phy View Post
So everyone says never do this, but what can I say, I was curious

My Optimus was previously rooted using sublimewolf's method: http://forum.xda-developers.com/showthread.php?t=935312
I then proceeded to brick it by using the Factory Reset found in the Privacy Screen. This forced my phone into a recovery loop.
If you can't even get to your custom recovery, your phone might be your newest paperweight But as long as you can both get to recovery and access the phone via adb, you'll be okay.

So here's how to unbrick it:

This is the flash_image: http://www.mediafire.com/?bx14hzq5i2pq3ps
And here's the stock recovery image + nand backup: http://www.mediafire.com/?ac0e2ksq0eslytk

(In my case, I was able to skip to Step 4 in the Nandroid Instructions because I had performed a Nand Backup when I rooted, therefore the necessary files were already in place)

Nandroid Instructions:
1) Unzip both downloaded archives
2) Move the BCDS-20110203-0357 dir into /sdcard/nandroid/mem=477M (also extract recovery.img and flash_image to root dir of your SD card, as you will need to later anyway)
2a) For Clockwork Recovery, place the BCDS-20110203-0357 dir into /sdcard/clockworkmod/backup
3) Mount SD into phone if it isn't already, boot into recovery if your phone isn't already there
4) Go into the "Backup/Restore" menu, and select "nand restore", confirm and wait
5) Reboot, proceed to Recovery Instructions below

Recovery Instructions:
1) Extract recovery.img and flash_image to root dir of your SD card if you haven't already done so
2) Connect to your phone via the adb shell and input the following commands:
# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
# cat /sdcard/flash_image > /system/bin/flash_image
# chmod 755 /system/bin/flash_image
# mount -o remount,ro -t yaffs2 /dev/block/mtdblock5
# flash_image recovery /sdcard/recovery.img
# reboot recovery

3) If everything was done correctly, your phone should boot up normally to the OS

If the links above go down, let me know and I'll re-up



(thanks to tankhull for putting this info together)
(oh and you're welcome for being a guinea pig )
In the nandroid instructions, for placing BCDS-20110203-0357 into the /sdcard/nandroid/mem=477M
Do I have to do that, or step 2a if I have Clockworkrecoverymod, "For Clockwork Recovery, place the BCDS-20110203-0357 dir into /sdcard/clockworkmod/backup"

Also, how do I put this directory into the /sdcard/clockworkmod/backup folder or /sdcard/nandroid/mem=477M

Do I use ADB? And if so, how do I, because I have no idea about what commands/etc to use.. or could somebody please link me to a guide on how to push a file/folder into a folder like the ones I previously mentioned (/sdcard/clockworkmod/backup folder or /sdcard/nandroid/mem=477M)

Thank you in advance for your help!