Update Your Nexus 4 to Android 4.3 JWR66V & Root It

Google has recently announced Android 4.3 and surprisingly put up the factory images for the Nexus 4, Nexus 7, Nexus 10 and the Galaxy Nexus online. The OTA updates have also been rolled out but may not be available to everyone around the world as of now. OTA updates are regional and depend on country restrictions too. Some devices may not receive it because they might be running a custom ROM that doesn’t support any official OTA updates from Google.

Keep that apart, with this post you will know how to update your Nexus 4 to Android 4.3 JWR66V that was just announced yesterday. Also, you will not lose any data with this update. You do not need root access for this update but surely it would cause less pain in the a** if you have root access on your device with a working recovery partition.

We’ll split the tutorial according to the current system on your device.

1. Stock Android 4.2.2 Unrooted with Locked/Unlocked Bootloader

Use this method if you haven’t made any changes to your system files and if your device is not rooted. The bootloader’s lock isn’t a piece of concern at this moment. In this procedure, you will be using adb sideload command to update your device. Using adb sideload, you can flash zip files to your device using adb commands on your PC. It requires a recovery on your device that has an option to apply update from adb. Nexus 4 does have that option so you don’t need to flash any custom recovery images at all. And of course, you need the latest ADB files to run the commands. Some people have reported that the older files don’t work anymore with Android 4.2.2 as Google has updated the ADB binaries. You can either download the Android SDK (instructions here) or follow these steps.

  1. Download Android 4.3 OTA zip to your computer and place it in the same folder where you have adb.exe and fastboot.exe files.
  2. Connect your phone to the PC via USB Cable and boot it into bootloader either by the button combination or by executing the command:
    adb reboot bootloader
  3. Select recovery mode by using the power button. You will see android laying down. Press Power and volume up button and release the volume up button within a second.
  4. You will not see a menu where you will find the option “apply update from adb” – this is where you can run adb sideload command.
  5. After you select “apply update from adb”, head over to the computer and open command prompt in the location where you have the ADB files. The same location has the OTA update zip file too.
  6. Rename the OTA update file to update.zip and run the following command to flash the update to your device
    adb sideload update.zip
  7. Reboot after the update is conplete.

2. Stock Android 4.2.2 Rooted with/without Custom Recovery

Use this procedure if you have a rooted device. You can probably get a custom recovery too if you have a rooted device as that will make the steps much easier for you. ROM Manager can help you with recovery (at your own risk) or you can browse around XDA forums to find a custom recovery image for your Android 4.2.2 running Nexus 4.  Flash the image using fastboot flash recovery nameoffile.img

  1. Place the OTA update zip file in your device’s storage. Download the Android 4.3 Supersu zip (thanks to Chainfire) and again place it in the storage.
  2. Boot it into recovery mode.
  3. Flash both zips using the option “Install zip from SD card”.
  4. After the flashing is complete, reboot your device.

3. Custom ROM/Custom Kernel Running Nexus 4

You can not use the above two methods if your Nexus 4 is running a custom kernel or a custom ROM. But yes, you can use these methods if you roll back to stock Android 4.2.2. The guide to roll back to stock Android 4.2.2 can be found here.

Yet another option is to flash the images manually in fastboot mode without losing any data. You can flash the system, bootloader, recovery and kernel manually. Follow the steps below to continue with this method.

  1.  Download the occam factory image and extract the files to a separate folder within which you will get all the img files that you need to flash to your device.

  2. Copy the files bootloader-mako-makoz20i.img, radio-mako-m9615a-cefwmazm-2.0.1700.84.img, system.img and boot.img to the folder where you have the adb files.
  3. Boot your device into fastboot mode (command: adb reboot bootloader) and connect it to the PC via USB cable.
  4. Run the following fastboot commands from Command prompt in the location where you have the adb files
    fastboot flash bootloader bootloader-mako-makoz20i.img
    fastboot reboot-bootloader
    fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img
    fastboot reboot-bootloader
    fastboot flash system system.img
    fastboot flash boot boot.img
    fastboot format cache
    fastboot reboot
  5. Once your phone reboots, you will have Android 4.3 running on your device.

TWRP Recovery + Root

Official TWRP recovery for Nexus 4 running Android 4.3 is available and can be found here. You can flash it to your device in fastboot mode using the command fastboot flash recovery filename.img (replace filename.img with the file name of the recovery image that you download). Boot into recovery mode using adb reboot recovery and flash the SuperSu zip file (Refer Section 2 step 1 of this post).

If you face any issues, feel free to comment below or join our Facebook group for more discussion.

Source: XDA-Developer Forums | Android Police