How to Root Nexus 5 in Linux (in 5 steps)!

Discussion in 'Your device' started by telplaza07, Jun 5, 2015.

  1. telplaza07

    telplaza07 Administrator Staff Member

    [​IMG] [​IMG][​IMG]
    1. Enable Developer Mode and USB Debugging
    1. Go to settings on your phone
    2. Go to "About Phone"
    3. Tap "Built Number" a bunch of times
    4. Go back
    5. Go to "Developer Options"
    6. Check "USB Debugging"
    7. Click "OK"
    2. Install ADB and Fastboot tools
    This is how you install ADB and Fastboot in Ubuntu Linux. I'll let you figure it out for other Linux operating system.
    sudo apt-get install android-tools*
    After installing, you should be able to run both adb and fastboot.

    3. Unlock Bootloader
    First, make sure adb can see your device:
    adb devices
    Reboot to bootloader:
    adb reboot bootloader
    Then, unlock the bootloader (this may need "sudo"):
    fastboot oem unlock
    4. Flash Root
    First, download CF-Auto_root
    For N5 Download

    Then, run:
    cd image/
    sudo fastboot boot CF-Auto-Root-hammerhead-hammerhead-nexus5.img
    This takes about a minute or two. It will reboot on its own...

    5. Done!
    And that's it! When your phone reboots, it should walk you through the setup process again. To make sure if this worked, make sure the SuperSU app is intalled.

    Last edited: Jun 5, 2015