Sunday, 7 July 2013

Filled Under: , ,

HOW TO ROOT NEXUS 4 FOR [WINDOWS/MAC OSX/LINUX/UBUNTU]

Share



  • This works for all Android versions including Android 4.2.1 and 4.2.2.
  • This rooting guide will allow you to also backup and restore your apps/settings.

REQUIREMENTS

1.Back up all the data
2.Make sure you have about 70% charge on your battery
3.Download the file given below
This zip package contains everything you need including drivers for Windows and rooting files for all Windows, Mac, and Linux. Download and extract it


Download

INSTRUCTIONS
  

1. Go to Settings->About Phone on your Nexus 4.



2.Hit the “Build Number” couple times until your phone says, “You are now a 

   developer”.  Hit the back button. 



3.You will now see extra menu called “Developer options”, hit it.



4.Make sure Developer options is ON and USB debugging is also checked then 

   connect a micro-USB cable from your Nexus 4 to your computer.  



5.For Windows, you will need to install drivers. If you have Linux/Ubuntu or Mac 

   OSX, skip to Step 7.



6.Open Device Manager on your computer and update the Nexus 4 with 

   exclamation mark with drivers provided in Nexus4Root.zip.


If you see something like “Android ADB Interface” you are ready for the next step.

7.Open a command prompt (or terminal for Linux/Ubuntu or Mac) and type:


For Windows: 
cd Downloads
cd Nexus4Root
adb backup -apk -all -f backup.ab
 
For Linux/Ubuntu:
sudo -i
cd /home/UserName/Downloads/Nexus4Root
chmod 755 *
./adb-linux backup -apk -all -f backup.ab
 
For Mac OSX:
cd Downloads
cd Nexus4Root
chmod 755 *
./adb-mac backup -apk -all -f backup.ab

8.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, wifi passwords, etc…etc…  It will NOT BACKUP 

   contents of your internal storage such as your personal videos/photos (you 

   should have done that before following this guide!!!).



9.Once backup is done, go ahead and turn your Nexus 4 power off.  Then hold 

   down the Volume Down and Power buttons together for about 5 seconds.  



10.Once in bootloader menu, connect a micro-USB cable from your Nexus 4 to 

      your computer.



11.Open up Device Manager again, if you don’t see “Android ADB Interface” you 

     will have to install drivers again.  Repeat Step 5 to install drivers.  For 

     Ubuntu/Linux or Mac OSX, skip to Step 12, no drivers required!



12.Next go back to command prompt/terminal and type:


For Windows: 
adb oem unlock
 
For Linux/Ubuntu:
./adb-linux oem unlock
 
For Mac OSX: 
./adb-mac oem unlock

13.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



14.Once re-booted, your Nexus 4 will be like the day you got it, everything wiped 

      and starting from scratch. Go ahead and sign in.  



15.Connect your Nexus 4 to your computer and copy the file CWM-SuperSU-

      v0.99.zip to anywhere on your Nexus 4.


If you have trouble on Mac OSX connecting to your Nexus 4, 
download and install Android File Transfer.
Also, if you have more trouble, you can 
download this file (It will be saved in your Downloads folder btw.)

16.Re-boot into the bootloader like you did in Step 9 and connect a micro-USB 

     cable from your Nexus 4 to your computer.  



17.Go back to your command prompt/terminal and type:


For Windows:
fastboot flash recovery recovery-clockwork-touch-6.0.2.3-mako.img
 
For Linux/Ubuntu:
./fastboot-linux flash recovery recovery-clockwork-touch-6.0.2.3-mako.img
 
For Mac/OSX:
./fastboot-mac flash recovery recovery-clockwork-touch-6.0.2.3-mako.img

18.Go back to your Nexus 4, choose “Recovery mode” using Volume buttons 

     and hit the Power button.  



19.Once in ClockworkMod(CWM) Recovery, choose “install zip from sdcard”.



20.Next, choose “choose zip from sdcard”.  



21.Choose “0/”.



22.Choose “CWM-SuperSU-v0.99.zip” and hit “Yes”.  This is the actual rooting 

     file, which included su binaries and SuperSU app, giving your phone root.  

    This is the only part of this tutorial that actually roots your Nexus 4.  We only 

    did all the other steps to unlock the bootloader and install CWM Recovery 

    which allows us to install this file on our phone.  



23.Choose “Reboot” from the main menu, if you see the following screen, make 

     sure to choose “Yes – Disable recovery flash”.  This is so you will have 

     permanent CWM recovery as stock Android operating system overwrites it on 

     re-boot if you don’t say yes here.



24.Once rebooted you should find an extra app in the app drawer called 

     “SuperSU”.  Congratulations!  You’ve successfully rooted your Nexus 4!  You 

     can download rooted apps like Titanium Backup app (which I highly 

     recommend you to run once) and verify you have full root.  



25.Now, let’s try to restore some of your settings, apps, and app data.  If you did 

     make a backup of your internal storage before you started rooting, go ahead 

     and copy all your files back into Nexus 4 internal storage.


Next, go back to command prompt/terminal and type:

For Windows: 
adb restore backup.ab
  
For Linux/Ubuntu: 
./adb-linux restore backup.ab
  
For Mac OSX: 
./adb-mac restore backup.ab 



Congratzzz you have successfully rooted your Nexus 4!!!!!!!!!!!!!!

0 comments: