flash nexus 4 back to stock? so stuck

Joined
12 Feb 2006
Posts
17,651
Location
Surrey
i've sold my nexus 4 which has a custom rom on it so i need to put it abck to stock.

i've tried downloading the 4.4 version, but it comes as a .tgz file, so i extract, and then that comes out as a .tar, so i extra again, and then it's all the files in seperate folders, one of which has a image-occam-xxxx.zip file.

i've put all 3 of these stages onto the phone, with the .zip file being the only one the recovery mode recognises, but it always fails, says no md5 something, or whatever else reasons.

i've then tried 4.3, same issue.

now going to try 4.2 but wondered if i'm putting the wrong file there? am i supposed to put the .tgz or the .tar on but convert it to a .zip or something?

thanks
 
I think there's programs on XDA to do this automatically but having never used any of them I can't recommend any. Downloading one of them would probably be the easiest way, but as a plan b you can do it manually (how I did it), obviously disclaimer I'm not responsible if this causes your phone to spontaneously combust ;):

Download ADB/Fastboot (part of the Android SDK, but you might be able to download them on their own).

Connect phone via USB, enable USB debugging, install drivers.

Add platform-tools directory to PATH.

to unlock the bootloader open command prompt and run "adb reboot bootloader", then once it's rebooted run "fastboot oem unlock"

once that's done run flash-all.bat on the computer, to flash back to stock.

to re-lock the bootloader, once it's done and booted up run "adb reboot bootloader" again, followed by "fastboot oem lock"
 
Just run the flash_all.bat file that's included in the archive.

Yeah - Make sure you have the latest SDK installed, Stick everything that's in the .tar file (extract it) into the C:\adt-bundle-windows-x86_64-**********\sdk\platform-tools directory, Shut down your phone and then boot it holding the Power and Vol- buttons, Plug the Phone into your Computer, then open a Command prompt in the above directory (Shift -> Wrong Click -> Open Command Prompt Here) then run the 'flash_all.bat

Sit back and wait for it to flash your phone to Stock... Then use WUG's Toolkit to Root if you want!! :)
 
Back
Top Bottom