Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,675 Members 46,890 Now Online
XDA Developers Android and Mobile Development Forum

Data-safe Disaster Recovery via NVFlash

Tip us?
 
Rusty!
Old
(Last edited by Rusty!; 1st November 2011 at 02:37 PM.) Reason: Updated included version of CWM
#1  
Rusty!'s Avatar
Recognized Contributor - OP
Thanks Meter 1748
Posts: 7,914
Join Date: Jan 2010
Location: Portsmouth
Thumbs up Data-safe Disaster Recovery via NVFlash

OK so on Sunday whilst pissing about, I flashed a broken recovery to my phone. This resulted in a near brick, the phone wouldn't boot at all, and wouldn't even enter Smartflash. I didn't have a recent backup, so needless to say I was pissed.

However, this presented me with a challenge, could I recover my phone without losing anything? Turns out the answer was yes

I was able to NVFlash (battery out, hold both vol keys and plug in USB) over a good recovery, and the phone booted straight to it, from there I restored the old boot.img that I had, rebooted and held my breath.

Success! OK, so wifi didn't work due to the old kernel, but whatever, quick CM reflash fixed that (in hindsight, I could probably have just done that straight away anyway).

I created a little batch menu system to handle the command and let you pick from an internal or external recovery (depending on what you normally use) and a couple scripts for Linux users. Hopefully anyone that has bust their phone to the point of NVFlashing will be able to do this instead and keep all their stuff

http://www.mediafire.com/file/t0casp...ecovery_v5.rar
Google Nexus 5 on Three UK
The Following 40 Users Say Thank You to Rusty! For This Useful Post: [ Click to Expand ]
 
sibbor
Old
#2  
sibbor's Avatar
Senior Member
Thanks Meter 332
Posts: 650
Join Date: Jul 2008

 
DONATE TO ME
Downloading and keeping in my O2X stash of files. Just in case of emergency. Thank you!
Developer of GetRIL (XDA thread)
See your device's RIL and baseband version and download & install a new RIL even without on-the-fly!



HTC One X
ROM: CM 10.1 (official) or AOSP 4.2.2 - Thanks pabx, tbalden & Co
Hboot: 1.39

ASUS Transformer Pad TF300T
CM 10.1 (official) - Thanks XpLoDWilD!

LG Optimus 2X
CM 10.1 (official) - Thanks Ricardo Cerqueira!
 
action294
Old
#3  
action294's Avatar
Member
Thanks Meter 10
Posts: 73
Join Date: Dec 2009
Great job!

Sent from my Optimus 2X using XDA App
 
salisbury_steak
Old
#4  
salisbury_steak's Avatar
Senior Member
Thanks Meter 648
Posts: 2,227
Join Date: Oct 2010
Location: Manila
Nice work. Thanks Rusty!
Thank you for thanking!

LG G2 D802 ESA
ROM: Stock (4.4.2) rooted
LG Optimus 2X P990
ROM: CyanogenMod 7 Temasek Unofficial (2.3.7)
Recovery: CWM Recovery (6.0.2.5)

Acer Iconia Tab A510
ROM: Stock (4.1.2) rooted
Recovery: CWM Recovery (6.0.4.9)


Don't have Dropbox yet? Get an additional 500MB cloud storage free (on top of 2GB) by clicking this referral link!
 
fabioccoelho
Old
#5  
fabioccoelho's Avatar
Senior Member
Thanks Meter 107
Posts: 1,395
Join Date: Jan 2009
Location: Manaus

 
DONATE TO ME
Great job man


Congratulations...
Timeline devices: Nokia N80 // HTC Touch // HTC G1/Dream // HTC Magic // HTC Hero // HTC Desire // Google N1 // Sony Xperia // HTC Wildfire // LG O2X (donated to my bro) // Xperia ARC (donated to my wife) // HTC Sensation (Sold) // SGSII (sold) Sensation XE (sold) HTC Flyer 3G 32G (sold) // SGS III (sold) // HTC One X (sold)

Your fingers will not fall if you click in Thanks button!


Current: Google Nexus 4 // Unlocked // CM 11-Nexus 5 Experience ROM by @andersonaragao
 
NickHu
Old
#6  
Senior Member
Thanks Meter 32
Posts: 250
Join Date: Oct 2010
Location: Rugby

 
DONATE TO ME
You can flash entire partitions with the nvflash download command.. There's even a guide to flash clockwork recovery using it on the G2x forums.. I assume you'd just change the 5 to a 7 to compensate for the different partition layouts but don't quote me on it.

Sent from my Optimus 2X using XDA Premium App
 
Rusty!
Old
#7  
Rusty!'s Avatar
Recognized Contributor - OP
Thanks Meter 1748
Posts: 7,914
Join Date: Jan 2010
Location: Portsmouth
Yeah you don't wanna be quoted on that, you change 5 to 14

It's the same thing, only it's never been mentioned for O2X before, clearly useful though.
Google Nexus 5 on Three UK
 
el_liberator
Old
(Last edited by el_liberator; 25th October 2011 at 08:46 PM.)
#8  
el_liberator's Avatar
Senior Member
Thanks Meter 1152
Posts: 1,123
Join Date: Apr 2011
Location: Vexin

 
DONATE TO ME
@Rusty , Great Job , thanks
 
Rusty!
Old
#9  
Rusty!'s Avatar
Recognized Contributor - OP
Thanks Meter 1748
Posts: 7,914
Join Date: Jan 2010
Location: Portsmouth
Seriously? It's a batch file? Double-click it and press 1,2 or X
Google Nexus 5 on Three UK
 
erestor6
Old
#10  
Senior Member
Thanks Meter 228
Posts: 358
Join Date: Mar 2008

 
DONATE TO ME
Quote:
Originally Posted by Rusty! View Post
Seriously? It's a batch file? Double-click it and press 1,2 or X
battery out, hold both vol keys and plug in USB and start flash-recovery.bat but don't work.

I see this on cmd:

Quote:
-------------------------------
Russ' NVFlash Recovery Flasher

1. CWM 4.0.1.5 Internal
2. CWM 4.0.1.5 External
X. Exit
-------------------------------

Please pick a recovery, or exit [1,2,X]?2
Attempting to flash external recovery...
Nvflash started
USB device not found
-------------------------------
Program will now exit
What I've to do?

Tags
no wipe, nvflash, recovery
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes