The definitive guide on hacking the Nexus 4, part 7
This is part 7 of an 8 part series of articles on the Nexus 4. This guide assumes that you have successfully installed the ADB drivers (part 1), Nexus 4 Toolkit (part 2) and that you have installed a custom ROM (part 3). This guide will describe how to revert back to stock Android 4.2.2, remove ClockworkMod, remove root and relock the bootloader.
- Part 1: How to install ADB drivers for the Nexus 4 on Windows 8
- Part 2: How to unlock, root and install Clockworkmod on a Nexus 4
- Part 3: How to install a custom ROM on a Nexus 4
- Part 4: How to install a custom Kernel on a Nexus 4
- Part 5: How to permanently enable LTE on a Nexus 4 running Android 4.2.2
- Part 6: How to permanently fix LTE wifi tethering on a Nexus 4 running Android 4.2.2
- Part 7: How to revert back to stock Android on a Nexus 4
- Part 8: How to maximize and optimize battery life on a Nexus 4
Legal disclaimer: We are not responsible for any damage or loss to your device or computer system. Therefore, should you decide to follow these steps, you do so at your own risk and peril and agree to hold us harmless from any damage or loss you may experience. Should you disagree with the foregoing, please do not read any further.
This is a step by step guide on how to restore stock Android 4.2.2 on your Nexus 4. Therefore, if you’re tired of your custom ROM or if you’d like to send your phone back to Google for warranty purposes or for whatever reason would like to revert back to 100% stock Android 4.2.2, you can do so by following these steps. This method will make you lose nearly everything in your phone (similar to a factory reset). Also, you will lose root and the custom recovery. However, you will regain the ability to get over the air (OTA) updates from Google.
How to revert back to stock Android 4.2.2
1) On your PC, download the factory image of Android 4.2.2 from this page. The factory image for Android 4.2.2 for the Nexus 4 is called occam-jdq39-factory-345dc199.tgz (328MB). Download the file to your computer, but do not unzip the file.
2) Assuming you have the Nexus 4 Toolkit already installed at the default location (follow step 1 and step 2 in part 2), place occam-jdq39-factory-345dc199.tgz in this folder “C:\Google Nexus 4 ToolKit\put_google_factory_image_here”
3) Connect your phone to your computer via a mini USB cable. Turn off your phone and enter fastboot mode. You can do that by holding the up and down volume buttons down (while still holding them down) push and hold the power button until you see the following screen then let go of all 3 buttons.
4) Execute the Nexus 4 Toolkit. The default location is “C:\Google Nexus 4 ToolKit\ToolKit.exe”
5) When prompted, click “No, do not check for update“. Click “1” for Android 4.2, Select “9” to download, extract and flash the google factory stock ROM, as seen below.
6) Push “2” to Flash Google Factory Image
7) If your phone is in fastboot mode and it’s connected to your PC, type “yes“.
8) The toolkit will extract the archive and send it to your phone. Your phone will now reboot in stock Android.
9) If you’re sending your phone back to Google make sure that the bootloader is locked. In order to check, go back into fastboot mode and if it says UNLOCKED, you need to lock the bootloader by choosing “3” in the Nexus 4 Toolkit.
10) Once you see the screen below, select “2” and type “yes” to lock the bootloader.
11) Go back into Android and you should be running stock Android 4.2.2. The bootloader has been locked. The custom recovery has removed, the phone has been unrooted, the stock kernel and radio has been re-installed. The phone is now 100% stock.
In the final part 8, we will discuss how to optimize and extend battery life for the Nexus 4.
The post The definitive guide on hacking the Nexus 4, part 7: How to revert back to stock Android appeared first on Hippowise.