Hot topics

How to root the Nexus 5: tutorial

root nexus 5 teaser
© nextpit

Ok, the Google Nexus 5 has been out there for a couple of weeks and we think it's about time for a root tutorial. So, without further ado, here is our step by step guide with images.  

root nexus 5 teaser
© NextPit

As always, gaining root access is risky, and if you do not follow the procedure properly, you can end up with an unusable phone. Also, please note that all data is deleted during the operation so back up all your data first. Neither AndroidPIT or myself will be held responsible for anything unflattering that may happen to your Nexus 5.

The following procedure is valid only for the Google Nexus 5.

Prerequisites

Install the Nexus 5 drivers on your PC (just plug it in and wait a few minutes, it will install them automatically).
Ensure that you have Administrator rights on Windows (if you do not know what these are, you probably haven't got them).
Make sure your Nexus 5 has at least 60% of battery. 70% is better, and fully charged is... you get the drift.

Downloads

Android SDK:

Windows 32- & 64-bit
Mac OS X 32- & 64-bit
Linux 32- & 64-bit 

The general procedure is the same as on Windows, but the commands to use in the terminal are different on Mac and Linux. This tutorial is for a PC running Windows.

Custom Recovery:

ClockworkMod (CWM)

Root:

SuperSU v1.65

I. Installing ADB and Fastboot

1. Download the Android SDK for your computer's operating system and unzip it in a folder named "Android SDK''.

2. Launch "SDK-Manager.exe" and install the following packages:

  • Tools > Android SDK Tools, Android SDK Platform-Tools
  • Extras > Android Support Library, Google USB Driver

3. Look for the new "Platform-Tools" folder in the "Android SDK" directory.

nexus 5 root sdk
The download takes a certain time, but everything is automatic. Aint life grand? / © NextPit

II. Unlocking the bootloader

1. Turn off your Nexus 5.

2. Reboot into fastboot mode by pressing and holding the Volume Down + Power button.

3. Connect your Nexus 5 to your computer with a USB cable.

4. Open the Android SDK > SDK > Platform-Tools directory then right-click in an empty area while holding the shift key.

5. Click "Open the command prompt here".

6. Enter the following command:

fastboot devices

nexus 5 root fastboot devices
If you do not get a serial number (as above), your drivers are not installed. / © NextPit

If you get a serial number, it's good and you can continue. Otherwise, your drivers are not installed correctly.

7 . Enter the following command:

fastboot oem unlock

8 . On your Nexus 5, confirm with "Yes" using the Volume keys to move and the Power button to confirm.

9 . Enter the following command:

fastboot reboot

III. Installing the custom recovery

1. Turn off your Nexus 5

2. Reboot into fastboot mode (as in Section II)

3. Copy the custom recovery file downloaded earlier into the Android SDK > SDK > Platform-Tools directory. Rename the file "recovery.img". If it does not work, simply rename the file "recovery" without the "img".

4. In the command prompt window (as per Section II), enter the following command:

fastboot flash recovery recovery.img

nexus 5 root fastboot flash recovery
The custom recovery installation procedure only takes a few seconds. / © NextPit

5. On your Nexus 5, use the unusable Volume buttons to select the "Restart bootloader" option and press the Power button.

6. You can now verify the custom recovery installation by entering "Recovery Mode". If you arrive on the CWM screen, the recovery is all good.

IV. Root

1 . Reboot your Nexus 5 normally. Copy the previously downloaded file "SuperSU v1.65" to the root of your smartphone.

2 . Reboot into fastboot mode (as in Section II) and choose Recovery Mode.

3 . Choose the "install zip from sdcard" option.

4 . Select "choose zip from sdcard".

root nexus 5 recovery
© NextPit

5 . Locate the "SuperSU v1.65" file and select it.

6 . Confirm with "Yes".

7 . Once the file installation is complete, restart by selecting "go back" then "reboot now".

8 . Final check: install an application to verify root such as Root Checker. If everything is green, it's all good! Congratulations, your Google Nexus 5 is rooted!

Any questions can be directed to the Nexus 5 Root forum.

Source: XDA Developers

Top Samsung Galaxy Watches: Choosing Your Best Fit

  2023 models 2023 models 2022 models 2022 models 2021 models 2021 models
Product
Image Samsung Galaxy Watch 6 Product Image Samsung Galaxy Watch 6 Classic Product Image Samsung Galaxy Watch 5 Product Image Samsung Galaxy Watch 5 Pro Product Image Samsung Galaxy Watch 4 Product Image Samsung Galaxy Watch 4 Classic Product Image
Review
Review: Samsung Galaxy Watch 6
Not yet tested
Not yet tested
Review: Samsung Galaxy Watch 5 Pro
Review: Samsung Galaxy Watch 4
Not yet tested
Offers*
Go to comment (7)
Quentin Ducreux L.

Quentin Ducreux L.
Editor-in-Chief

Quentin is Editor-in-Chief for AndroidPIT.fr. Since his first video game console, a NES, he's been a tech enthusiast. Now that he owns or think he owns all the test devices in the office, he's always trying to find the best apps, the best mods and the last secret about the next Android update.

View all articles
Liked this article? Share now!
Recommended articles
Latest articles
Push notification Next article
7 comments
Write new comment:
All changes will be saved. No drafts are saved when editing
Write new comment:
All changes will be saved. No drafts are saved when editing

  • 1
    Mike Carthew Dec 2, 2013 Link to comment

    All good until i get to flashing the recovery img and it just says "Error:cannot open 'recovery.img'." tried renaming it just 'recovery' but still the same result. any suggestions?


  • 6
    Deactivated Account Nov 27, 2013 Link to comment

    I meant to say "/xbin/su", not "/xbin/such" which is a figment of my keyboard's imagination.


    • Quentin Ducreux L. 38
      Quentin Ducreux L. Nov 27, 2013 Link to comment

      :D


  • 6
    Deactivated Account Nov 27, 2013 Link to comment

    The very same procedure, just with a different CWM file can be used on Nexus 7.
    What does the "Secure Boot - Enabled" in green mean?
    Should people not use SuperSu 1.69?
    Check-Root in "all green" output does not guarantee correct installation. one has to make sure that the /xbin/such file has correct permissions (mode 6755)/seuid + setegid root.
    This looks like "-srwsrw-xrw. root root ...". If you see xrwxr-xr- then you did not quite make it.
    Finally, you still have to install the SuperSU app from the market. It contains the utilities the /xbin/such needs to grant root to other apps.


    • Quentin Ducreux L. 38
      Quentin Ducreux L. Nov 27, 2013 Link to comment

      Hey, thanks for your comment.

      You definitely can install SuperSU 1.69, it's the latest version. But anyway 1.65 is updatable to 1.69 through the Play Store.

      About the root, you're right but rooting using this method always worked for me, on all devices.

      The procedure is indeed the same on all Nexus virtually, just don't mix the files :)


  • 6
    Trent Neuman Nov 26, 2013 Link to comment

    I just used wug's nexus root toolkit. Worked like a charm.


    • Quentin Ducreux L. 38
      Quentin Ducreux L. Nov 27, 2013 Link to comment

      Will give it a try, thanks !

Write new comment:
All changes will be saved. No drafts are saved when editing