Friday, 5 June 2015

How to Root Nexus 6, Unlock Bootloader And Install Custom Recovery (All-In-One Beginner's Guide)


------------------------------------------------------------------------------------------------------------
Step 1: Installing The Necessary Desktop Tools

ADB and Fastboot Installation
  1. Download the full Android SDK from here (scroll to the bottom of the page>DOWNLOAD FOR OTHER PLATFORMS>SDK Tools Only).                                                                                               
  2. Extract the zip and place the android-sdk-windows folder on your desktop.                                          
  3. **If you chose to download the slimmed sdk skip to step 5**                                                               
  4. Only if you downloaded the full sdk: Go into the android-sdk-windows folder and run SDK Manager.exe. Install the following packages (there are a total of 4 packages):                                     
  5. - Tools > Android SDK Tools, Android SDK Platform-tools                                                                 
  6. - Extras > Android Support Library, Google USB Driver                                                                      
  7. Only if you downloaded the full sdk: Go back into the android-sdk-windows directory, and you should see a new folder named platform-tools. If you don't see this new folder, repeat the step above.                                                                                                                                                   
  8. To confirm that it is indeed working, open a command prompt window and enter the following commands:
command line:
cd Desktop/android-sdk-windows/platform-tools
adb version

If it displays "Android Debug Bridge version x.x.xx" it is working. If it is gives an error saying thatadb is not a recognized command, it has not been successful. Carefully repeat the steps above if this is the case. Close the command prompt window when you are done.
------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------------------
    Step2: Unlock, Root & Custom Recovery


    >>>>>>Before you begin, make sure your N6 has USB Debugging Mode switched on<<<<<<
    Before continuing, users must enable Developer Options in the devices settings and select the OEM Unlock option. To do so:


    • Go into Settings
    • Under About Phone, you'll be able to locate your Build Number
    • Tap Build Number until you are notified that you have activated Developer options
    • Go into Developer Options, ensure it is enabled and check the Enable OEM Unlock box
    • While in Developer Options, ensure the USB Debugging box is checked
    ------------------------------------------------------------------------------------------------------------

    Unlock The Bootloader:

    • Turn the phone off. Then boot it into the bootloader/fastboot mode by holding volume down + power.
    • Plug the phone into your PC, then open a command prompt window and type:
      command line:
      cd Desktop/android-sdk-windows/platform-tools
      command line:
      fastboot devices
      This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue you must fix your drivers so that your phone is listed underfastboot devices.
    • If the phone has been recognized by the command above, proceed to unlocking the bootloaderwith the following command:
      Remember that this step will wipe EVERYTHING off the phone
      command line:
      fastboot oem unlock
      On the phone a screen should pop up asking whether or not you would like to unlock the bootloader. Use the volume rockers to highlight "Yes" then press power to confirm the action.
    • After the above command has finished executing, run the following (DO NOT skip this step, it is more important than you think):
      command line:
      fastboot reboot
      The phone will reboot. Next you will be presented with a screen containing an android logo and a progress bar (this may take up to ten minutes to complete). Wait until the phone has fully booted up into android, then proceed onto the next section of the guide.
    • Close the command prompt window.

    ------------------------------------------------------------------------------------------------------------
    Obtain Root:

    • Extract the ZIP file
    • Boot your device in bootloader/fastboot mode. Usually this can be done by turning your device off, then holding VolUp+VolDown+Power to turn it on.
    • Connect your device to your computer using USB

    - Windows:
    --- Run root-windows.bat

    - Linux
    --- chmod +x root-linux.sh
    --- Run root-linux.sh

    - Mac OS X
    --- chmod +x root-mac.sh
    --- Run root-mac.sh

    Follow the on-screen instructions - watch both the computer and the device!
    ------------------------------------------------------------------------------------------------------------


    ------------------------------------------------------------------------------------------------------------
    Installing A Custom Recovery:

    Go HERE to download the latest TWRP recovery for the Nexus 6.

    • Turn the phone off. Then boot it into the bootloader/fastboot mode by holding volume down + power.
    • Rename the recovery file that you downloaded above to recovery.img. Remember that you should place the file in the platform-tools folder inside of the android-sdk-windows folder on your desktop.
    • Open command prompt and run the following commands:
      command line:
      cd Desktop/android-sdk-windows/platform-tools
      command line:
      fastboot flash recovery recovery.img
    • On the phone, use the volume buttons to scroll onto "Restart Bootloader" and hit powerto select it. After the bootloader reloads, use the volume buttons to scroll onto "Recovery Mode" and power to select it. You should then be greeted with your newly installed custom recovery.
    • Close the command prompt window.
    ------------------------------------------------------------------------------------------------------------

    0 comments:

    Post a Comment