[GUIDE] Nexus 4 - Factory Image Restore

Hello, thanks for the awesome guide, it's very well explained and even for mac users :)
However, I juste want to make sure I have to follow this, so here's my situation :
I'm using a 4.2.2 nexus 4 with stock rom/kernel but with TWRP installed ( in fact, I even had franco but flashed back the stock kernel ).
So my question is : do I need to completely go back to the factory image to be able to apply OTA? I don't really care about root and twrp anymore, as long as I can get OTA in the future. I know I could flash a 4.3 zip but I want to be able to simply apply OTA updates in the future.
And if I actually need to perform this, does it also erase Helium backup data? ( I want to save my SMS and apps data ... )
Thanks a lot !

If you reflash the stock recovery you ought to be able to get the OTA. Pull the recovery.img out of the factory image and flash it via fastboot using:
fastboot flash recovery recovery.img

@2defmouse. i am doing this from Mac (OSX 10.8.4). Its actually a macbook pro so the direct usb ports in there. Stupid questions: reinstalling what driver ? for the phone ?
Check that you're using the updated adb/fastboot files for Mac I recently added to the Files tab..


Sent from my Nexus 4 using Tapatalk 2
 
If you reflash the stock recovery you ought to be able to get the OTA. Pull the recovery.img out of the factory image and flash it via fastboot using:
fastboot flash recovery recovery.img
Sent from my Nexus 4 using Tapatalk 2

Thanks for the answer
Is that all I need to do? No wipe required?
Sorry for asking so much, the phone isn't mine so the pressure is quite high :p
 
@2defmouze yup i am using updated fastboot files and my adb is up to date. Still seeing the same message "FAILED (remote: flash write failure)".

:(
 
Thanks for the answer
Is that all I need to do? No wipe required?
Sorry for asking so much, the phone isn't mine so the pressure is quite high :p

Theoretically yes, lol.. If anything else isn't stock on the phone though it would probably fail the OTA check. In which case you'd have to factory image restore and yeah that would wipe everything. Good idea to back up any apps/data/etc you need to your computer before you get started, using TiBu or something.

Sent from my Nexus 4 using Tapatalk 2
 
I keep getting a network error when I try to download the factory image link. I've tried both of the links and get it with both of them. Any suggestions?
 
Hello Everybody,
I have this weird issue with my Nexus 4,
I flashed a 4.2.2 ROM, while I was on 4.3 which was rooted and had the latest TWRP installed onto it.
The ROM that I installed was Rootbox V4.2.

Now the problem occurs from here,
While I installed Rootbox, I accidentally ticked wipe SYSTEM, and then installed Rootbox ROM onto my Nexus 4,
The phone was not stuck in a bootloop, it was stuck at the "Google" logo

So, I thought that I should use Android SDK and flash 4.3 image from there,
Which I did, and flashed the 4.3 image too, again no luck there either, (even tried to do factory reset after flashing a fresh factory image)
Later then, I flashed 4.2.2 (Luckily the phone booted up, but again, it had its baseband as UNKNOWN)
Which means I have a phone that can just boot a OS, and cannot do anything else, apart from taking notes and saving images, or an expensive calculator,

I also tried this method,
Yet I have NO luck what so ever,
Even tried to lock and unlock the bootloader after flashing the 4.3 ROM,
Again the same thing,

I have used Toolkits, but nothing happens here
Phone seems tobe booting with 4.2.2 but without a baseband being installed,
To solve this, I extracted the RADIO from 4.2.2 Factory image and used the command "fastboot flash radio radio-mako" it was flashed but again no luck.
Please guys someone help me,

My Nexus is just a month old and I'm into this situation.

I will attach some errors that I have got during the process.
Have damaged the partition of my phone??
Any clue??
I cannot see the internal memory of my phone when I connect to my PC.

x7g9.png


When goto the camera application I find this error.
Note: Ic an sideload ROM files using ADB Sideload

jys1.jpg
 
Last edited:
Help me somebody. My phone is on 4.2.2. rooted on TWRP. It is stuck on the page where there is Google logo. Nothing seems to work help me please!
 
Dude, thank you so much! I failed rooting my nexus and i knew it would be possible to get it to boot again but did not know how. Thank you so much, again, for creating this tutorial!
 
When i do the last command in step 6 this comes up what should i do?
4cho.jpg
<<-------- right click on the image and open in a new tab to view it
 
Last edited:
Thank you soooo much OP you saved my Nexus, why I didn't look at this 3 days ago, I don't know.....
Anyway thanks!
 
The "fastboot oem lock
followed by
fastboot oem unlock"

Was so key! That's what ended up fixing my device. I recommend anyone having issues definitely try that.
 
Last edited:
Everything works fine until i try to send the image, it sends properly but stops when it is writing 'system'. I have also tried re-downloading the Image, different Usb ports, have also tried Wugs Toolkit and the same error happens.Untitled.jpg
 

Forum statistics

Threads
955,425
Messages
6,964,756
Members
3,163,279
Latest member
thajokersboss