ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

How to root, unlock and install custom rom on your Google Nexus 5

Updated on January 16, 2014

So, bought a cool new nexus 5, eh? Not satisfied with the way it's tweaked, eh? Wanna play around a bit, eh? Well, you're in the right place my friend. In this tutorial i'll guide you on how to root your device, unlock the bootloader and install a custom recovery. I'll try to make it as elaborate as I can, but if it so happens that you don't understand any bit of the process or do something wrong, I request you to please stop right there and then. It is very possible that you may screw up your device and then it'll be as good as a paperweight. So whenever in doubt, comment and ask! Let's get on with it then, shall we?

*Disclaimer: Attempt the following on your own risk. I will not be held responsible if your device stops working, behaves in a weird way or gets spontaneously combusted (stops laughing, it's possible!)*

.

Things that you'll need:

*Phone

*USB cable

*A windows system with various USB and other phone drivers installed. Here.

You will be required to download some stuff so make sure your internet connection is well and up.


Setting up adb

1) Download the Android SDK components required, here.(Thanks to xda developer El Daddy)

2) Extract and place the android-sdk-windows folder on your DESKTOP.

3) Now, to check if it's working, open a command prompt (start > type "cmd"), and type the following and press enter after each line:


cd Desktop/android-sdk-windows/platform-tools

adb version

4)If it shows "Android Debug Version x.x.xx", move ahead. If it shows some error that adb is not a recognised command, try again. Make sure you placed the folder on your desktop!

5)Close the command prompt when you're through.

Now, download these two files and put them in the "platform-tools" folder inside the "android-sdk-windows" folder on you desktop.

-Clockworkmod recovery

-Root

Rename the clockworkmod recovery file to "recovery.img" without the quotes. Remember it's recovery.img and not recovery.img.img!

Unlocking bootloader

*Unlocking your bootloader gives you access to the phone's internal memory. It will also format your internal memory including all apps, settings and all media (photos, music etc). So please make a backup on your PC before continuing. *

1) Make sure your device is at least 60% charged.

2) Go to settings > about phone > tap on build number seven times. Now again go to settings and scroll down to see a new menu option "Developer Options". Tap on it and select Enable USB Debugging.

Source

3) Switch off your phone. Hold volume down + power button. It'll take you to bootloader/fastboot mode.

Source

4) Connect your phone to your PC via USB cable and open a command prompt window. Type the following:

cd Desktop/android-sdk-windows/platform-tools

fastboot devices

This should show your phone's serial number on the screen and you're good to go. If not, make sure your drivers are properly installed or try re-installing them. DO NOT attempt anything further if your phone's serial number does not appear.

5) If your phone gets recognised, type the following and press enter:

fastboot oem unlock

On your phone screen you will be asked if you want to unlock your bootloader or not. Use the volume buttons to highlight YES and press the power button to confirm.

Source

5) Wait for the above command to finish executing then type the following into the command prompt and press enter:

fastboot reboot

Your phone will reboot and you'll be greeted with an android logo. Don't panic! Wait for the progress bar to load. This may take sometime so don't panic and try to do something stupid as disconnecting the USB or powering off your device.

6) When your phone has booted up properly ( you can use it normally now), disconnect the USB and close the command prompt window.

Installing custom recovery


1) Switch off your phone and boot into the fastboot/bootloader mode again by holding volume down + power buttons.

2) Make sure that you did rename the recovery file as recovery.img and moved it to the platform-tools folder inside the android-sdk-windows folder on your desktop.

3) Open up a command prompt window and type and press enter after each line:

cd Desktop/android-sd-windows/platform-tools

fastboot flash recovery recovery.img

4) On the phone scroll to "Restart Bootloader" using the volume buttons and press power button to confirm.

5) After it reboots, scroll to "Recovery mode" and press power to select. This is your new custom recovery. Do not play around with it just yet! Scroll to "reboot phone" and power to select. Let your phone reboot and close the command prompt.


Rooting


Now that you have an unlocked bootloader and a custom recovery installed on your phone, you're ready to root your phone.

1) Flashing Super SU: this will give you root access with the stock android rom which came pre-installed on your phone.

Make sure that you copied the "root" file that you downloaded earlier into the platform-tools folder.

2) Switch off your phone and boot to bootloader mode by holding volume down + power buttons. Scroll to "Recovery mode" and press power to select. Now connect your phone to your PC via USB cable.

3) Open up a command prompt window and type the following commands (where the "X.XX" in the second line is the version number you downloaded, make sure you type it correctly) :

cd Desktop/android-sdk-windows/platform-tools

adb push UPDATE-SuperSU-vX.XX.zip /sdcard/

4) Once it's finished executing, disconnect your phone form your PC. In the recovery mode on your phone scroll to "install zip from sdcard" > choose zip from sdcard.

5) Scroll down till you find SuperSU.zip and select it.

6) On the next screen scroll down to "Yes". and select it. It may take sometime.

7) When it's completed you can reboot.

It's done!

Comments

    0 of 8192 characters used
    Post Comment

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)