Root Nexus 4 (Stock Android 4.2.2 a.k.a. Jelly Bean)

Posted on Posted in Android, GOOGLE

Before we start you need to make sure you backup the data you wish to keep as this will wipe your phone back to factory. 

Please read the steps atleast one so you are aware of whats going to happen and when.

Pre-requisite:

  • Download the tool kit: Nexus4Root.zip.
  • Nexus 4 with at least 50% battery.
  • micro-USB cable.
  • Computer.

Optional:

Backing up:

I could show you how to backup your phone using command line (adb backup -apk -all -f backup.ab) and if you know how to be all means do.

Or head over to http://omegavesko.github.io/SimpleADBBackup/ and us the Holo backup program (nee:Simple adb backup) you will still have to install the drivers for your phone is not already done so so follow next few steps.

  • Make sure Developer Options ON and USB debugging Ticked. Can access by going to Setting and down to System. If you done see {} Developer Options  go into About phone and tap the build number until it pops up “You are now a developer”, then hit back and go into the Developer Options. 
  • Plug your phone into your computer with micro USB cable, open Device Manager on your computer and update the Nexus 4 with exclamation mark with drivers provided in the Nexus4Root.zip.

Now simply run the Holo program and select the backup option you want. Go to your phone and you should see a Pop-up window asking you if you want to backup your data, hit “Back up my data”.  This will backup all of your settings, apps, app data, etc… when ever option(s) you picked.

Once backup is done (this may take some time) unplug the phone from the computer and power off.

Now with a backup you can Root with peace of mind.

Rooting:

  • With the phone powered off, hold down the Volume Down and Power button together for about about 5 seconds. this will put the phone into bootloader. Open up Device Manager again, if you don’t see “Android ADB Interface” you will have to install drivers again.
  • Next go back to command prompt and type:

[quote]Note, this part will wipe your phone, please make sure you have a full backup of data you wish to keep.[/quote] For Windows: [quote]adb oem unlock[/quote] For Linux: [quote]./adb-linux oem unlock[/quote] For Mac: [quote]./adb-mac oem unlock[/quote]  

  • Go to your Nexus 4, hit the Volume Up button to select “Yes” and hit the Power button.  Then hit the Power button again to re-boot your phone.
  • Once re-booted, your Nexus 4 will be back to factory, you will need to sign in.

But this is only half the battle, we want root access!

  • Connect your Nexus 4 to your computer and copy the file CWM-SuperSU-v0.99.zip onto your Nexus 4 (any place).
  • Re-boot into the bootloader. Hold down the Volume Down and Power buttons together for about 5 seconds, connect the micro-USB cable from your Nexus 4 to your computer.
  • Go back to your command prompt/terminal and type:

For Windows:

[quote]fastboot flash recovery recovery-clockwork-touch-6.0.2.3-mako.img[/quote]

For Linux/Ubuntu:

[quote]./fastboot-linux flash recovery recovery-clockwork-touch-6.0.2.3-mako.img[/quote]

For Mac/OSX:

[quote]./fastboot-mac flash recovery recovery-clockwork-touch-6.0.2.3-mako.img[/quote]

  • Go back to your Nexus 4, choose “Recovery mode” using Volume buttons and hit the Power button.
  • Once your into the ClockworkMod(CWM) Recovery, choose “install zip from sdcard”.
  • choose “choose zip from sdcard”.
  • Choose “0/”.
  • Choose “CWM-SuperSU-v0.99.zip” and hit “Yes”.
  • Choose “Reboot” from the main menu,
  • If you see “Rom may flash stock recovery on boot. fix?“, make sure to choose “Yes – Disable recovery flash”.

Restore: If you did a Holo (adb) backup, now is time to restore. Simply run the Holo program with the Nexus 4 puged into the computer. Select restoe and choose your back file. Alternative if you did it via command prompt following command line can be used:

For Windows:

[quote]adb restore backup.ab[/quote]

For Linux/Ubuntu:

[quote]./adb-linux restore backup.ab[/quote]

For Mac OSX:

[quote]./adb-mac restore backup.ab[/quote]

 

 

Installing this update will invalidate your manufacturer warranty; this website and its owner take absolutely no responsibility whatsoever for any damage you may inflict on your phone/tablet as a result of following this guide.

Leave a Reply

Your email address will not be published. Required fields are marked *