yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] sameer22:
Also is there any way to check whether the ROM I'd download is correct, as in not corrupt or something. And does every ROM need Gaps?

http://xdaforums.com/showthread.php?p=48915118#post48915118

Is this the thing you mentioned? :)
[Nexus 5 General] jd1639:
Yes, it's what I suggested. Not every Rom needs gapps. Check with where you downloaded the Rom from.

Usually there is a checksum which you can check the Rom you downloaded against to ensure it's not corrupt.
[Nexus 5 General] overclock360:
Thanks I'll try this out
[Nexus 5 General] sameer22:
Also what I've interpreted reading this thread is I don't need SuperSU if I straight away install a custom ROM? Am I right?

I only need it if I plan to root my stock ROM?
[Nexus 5 General] jd1639:
Some roms are pre-rooted. Others aren't. You'll need to check with the roms site.
[Nexus 5 General] overclock360:
So im new here and i unlocked my bootloader, installed TWRP then flashed superSU. i dont have a lot of knowledge about all the roms, i want a stock like rom with good battery performance, can someone recommend me a custom rom and how to install it

btw my nexus 5 build is MOB30Y is this important when flashing roms?
[Nexus 5 General] audit13:
Being on the latest build means the phone is running the latest bootloader and modem which is a good place to be before flashing custom ROMs.

In order to run a custom ROM, you just need to copy the ROM to the phone's internal memory, boot into TWRP, perform a full wipe, and flash the ROM. There are plenty of ROMs to choose from. It is recommended that you try a few ROMs to better understand how to flash ROMs, and make backups.

Everyone's usage and needs can be quite different; therefore, I recommend trying a few ROMs to discover their benefits before settling on a single ROM.
[Nexus 5 General] Vikings09876:
I have a question. How to I root my Nexus 5 on the latest build? I've tried a few programs, but can't seem to figure it out.
[Nexus 5 General] Primokorn:
Flash SuperSU from TWRP.
[Nexus 5 General] Neffstarr:
Still Locked

i am stuck on a bootloop but i am able to get into Bootloader mode so i can re flash sock images but after unlocking my Bootloader in my nexus 5 and then it reboots it still says its locked .so i cant flash anything .any ideas why .also when i go into recovery mode then the no command screen it reboots and wont give me the Recovey mode OPTIONS .even though i pressed Power then the vol up key
[Nexus 5 General] audit13:
If the bootloader relocks itself at reboot, the Emmc chip is damaged. The phone will need a motherboard replacement.
[Nexus 5 General] json03:
I've been to that situation, I Just rerom my phone using sp flash tool. Im not expert or anything but im just trying to help :)
[Nexus 5 General] ethem606:
what is the best way to back up?
[Nexus 5 General] Primokorn:
adb
[Nexus 5 General] HotCoded:
ThankYou Sir

Hello Sir,

I want to thank you for such a detailed and accurate information. Sir because of You I rooted my phone successfully.

Actually I only have this mobile, and I don't have much money to spend on mobiles. So it's a dare move to root my only Nexus 5 and take a chance to Brick it. Also the different methods, apps and software available in the Google market confused me.

But after reading your explanation I was fear free and without thinking twice I was ready to go.. Your hard work to create this document is something everyone will praise as many people had did.. From my side also thank for being there for helping me.. :)
[Nexus 5 General] Bambora:
I am rooting again the best smartphone of all times! But something went wrong. I have done everything as in the tutorial but I forgot to write/sdcard/ in the last step in order to install the SuperSU. When I realized I've tried again but I have the message on cmd of 'no found device'. I rebooted via twrp and I received a message to slide to install SuperSU (?!) I have done it and now I have the initial animation for over 20min. I have tried to "adb push" SuperSU and cm13 but I have always the error 'no found devices' on cmd. I used the "fastboot devices" and mine is listed, so and don't believe this is a driver problem.

Can anyone knows how to help?
[Nexus 5 General] Primokorn:
Did you keep the System read only option in TWRP? If so then flash TWRP again. You should be able to get write access.

BTW do not use the buit-in solution of SuperSU. AFAIR it's no longer recommended. Download SuperSU or Phh's Superuser zip and flash it from TWRP.
[Nexus 5 General] Bambora:
I believe it was a drivers problem so I put the.zip files on USB pen and flashed via OtG ;)
[Nexus 5 General] johnhux7:
Any body got an updated TWRP link for me please
[Nexus 5 General] abde4ind:
https://dl.twrp.me/hammerhead/
[Nexus 5 General] johnhux7:
Thanks buddy
[Nexus 5 General] davehx:
Hi all

I rooted my first Nexus 5 ages ago using towelroot. I have recently picked up another Nexus 5 running 6.0.1 (M4B30X). Obviously, towelroot will not work on this so I thought it was about time I looked at rooting "properly". The guide here looks very well written and easy to follow but I'm obviously keen to make sure I don't screw things up so wanted to ask some questions first.

1) The guide was written over 3 years ago for Android K. Is everything still the same for newer versions?

2) I read in this thread about someone using M4B30Y who was told to use the latest SuperSU. That post was made in August. My M4B30X build says 5th October 2016, is this still doable?

3) I plan on using TWRP, is it simply a case of "use the latest version" (2.8.5.2 right now) or is there a specific version for particular android builds?

4) I appreciate this quetion may seem completely obvious, but when pushing the SuperSU to the sdcard, it says UPDATE-SuperSU-vX.XX.zip but my SuperSU is named very differntly (I'm guessing the crazily name zip file I downloaded was just renamed to make typing correctly easier). I sure that's the case but, hey, better safe than sorry.

I have TWRP downloaded and renamed

I have SuperSU downloaded and renamed

fastboot devices is recognosing my phone

I think I'm all ready to go once I get confirmation about the above points

Thanks in advance for the help

Dave
[Nexus 5 General] magicmaia:
1,2,3

You can safely use this guide. It's always a good idea to use the latest versions of SuperSU and TWRP unless it's started specificity as not compatible with your device.

4

I remember seeeing something that wasn't mentioned in the guide, but I can't remember whether I went on with it or tried something else.
[Nexus 5 General] davehx:
Thanks for the reply mate. Can anyone shed some light on what he might be referring to?

Extra question (sorry to be a pain).

5) The TWRP link leads to a page that doesn't seem to be official whereas this link - dl.twrp.me/hammerhead/ - (can't post links as I'm new) shows 3.0.3.0 for hammerhead. Is there a reason I wouldn't want this newer version?
[Nexus 5 General] davehx:
Instructions worked a treat (not that I doubted they would)

Nexus 5 running 6.0.1 (M4B30X)

TWRP 3.0.2.0

SuperSU 2.79 (3rd January build , filename - SR2-SuperSU-v2.79-SR2-20170103215521.zip)

Sorry for the double post - but wanted to share the exact files that worked for me as I saw others asking about various builds
[Nexus 5 General] Facebooook:
I am on full stock rom but suddenly my phone shutdown .Now when I on it it's stuck on boot animation and doesn't start.

Then I tried to factory reset with recovery but it's doesn't go in recovery say no command.

But it's go on fastboot mode....

Then I tried to flash stock rom via ADB but when I unlock bootloader it's automatically locked and when I flash something it's say remote write failure.

Then I tried to use lgflash tool but driver doesn't install.something like hold vol up and connect cable to PC....It's doesn't install any driver. Only show MTP in device manager.[/QUOTE]
[Nexus 5 General] juniper1982:
Hello all,

I am going to give this a whirl. I have read in countless places that unlocking the bootloader will wipe the device, but i sort of recall that the Nexus 5 is an exception. Is that true or am i just totally misremembering?
[Nexus 5 General] davehx:
When I did it a couple of months ago, using this guide, it DID wipe the device.

When I did it a couple of years back having Towelrooted my phone, it could be unlocked after rooting using an app which DIDN'T wipe it.

If you are following this guide, expect to have it wiped
[Nexus 5 General] juniper1982:
ok. Thanks.

I am going to unlock it. What, if any, is a good way to back up the phone? I would ordinarily use the TWRP backup, but of course my phone will get wiped before I get to that.

After unlocking, I will slap TWRP on it. Then, I will throw on one of the new nougat roms. People seem to be very happy with the nougat roms on this phone. If I am optimizing for trouble free, should I go straight for the lineage rom? I do like the dark rom look though.
[Nexus 5 General] Hiyaslalabs:
Still can't install TWRP stock marshmallow final build. I already unlocked the boot loader but the red exclamation still persists everytime I enter recovery via fastboot. Any tips?

Edit: Successfully rooted my device but when I rebooted on fastboot and clicked recovery the logo just comes up and booted to system. Still no TWRP! What is wrong?
[Nexus 5 General] AlA777:
If you already root, try twrp apk working great..
[Nexus 5 General] BackToAndroid:
fastboot doesn't detect my device

using

adb devices

I am able to view my device but when I use,

fastboot devices

nothing shows up. Tried even after rebooting in bootloader still none.

I have rooted Honor 6x previously on my current laptop so I'd installed drivers for it, so I used USBDeview tool to uninstall ALL the drivers which looked familiar with Honor / Huwaei / adb and android.

Then I connected my Nexus waited for drivers to be installed then uninstalled it now again connected with USB debugging mode on.

When I try to update my driver under both Portable devices->Nexus 5 and USB devices->Nexus 5 I get "The best drivers for your device is already installed"

Not sure what else to try.
[Nexus 5 General] MAbouHager:
using fastboot devices gives me wrong serial acombination of numbers and letters while the serial is just numbers

tried going on with the instructions the phone after uploading rom gets stuck on the animation 4 dots logo

what should i do?

how to know whic build is my phone
[Nexus 5 General] Petrovski80:
That thought crossed my mind as well when I wrote a post regarding unlocking the Galaxy Nexus bootloader and leaving it that way. You'd have to estimate the odds that if you lose your phone (or it gets stolen) the thief or person who finds it has enough knowledge or is willing to invest time to learn how to access your phone. Without getting into numbers here, I agree with you the chance seems remote at best.

TL;DR: if you are paranoid, use encryption. It offers the highest level of security.
[Nexus 5 General] gregb882:
Am I hosed?

Not sure what I've done wrong, but I got through the guide with relative ease except for having to use BlackFlag79's trick of reflashing the recovery image a couple of times, but it worked. Earlier when it restarted after unlock, I noticed that I no longer had 3 home pages, only two, and since I couldn't find a setting that allows one to change the number of home pages I assumed a bad flash. So I booted into recovery mode, wanted to do a factory reset but absent mindedly did an advanced wipe. It seems to have gone through the process but it's stuck at E:Unable to mount 'usb-otg'. When I look to do most commands like bootloader or recovery, it says "No OS Installed! Are you sure you wish to reboot?" Looking at "Install" from within recovery (I used TWRP), I don't see a factory image anywhere to try to reflash. Also, I can't see the internal storage on my Windows 7 PC.

Anyone have any thoughts? Am I totally hosed?

Thanks,
[Nexus 5 General] Chromium:
It looks like everything went fine to me, so im not sure why you were compelled to wipe :confused: When you did advanced wipe im assuming you selected everything...that means that you wiped your /system partition which contains your operating system. Therefore you have no OS, and you need to install one. Read the second post of this thread where it says "My phone wont boot into android. I can only access the bootloader and custom recovery. What do I do?" Suggestion 2.
[Nexus 5 General] Petrovski80:
As long as you have fastboot, you are not hosed on a Nexus device. Read this post and use method 2: http://xdaforums.com/showthread.php?t=2513701
[Nexus 5 General] brenmi:
Hi,

I'm trying to get my PC ready so i can unlock and root my new nexus 5 ( first timer).

But cannot get past step 7 where i have to paste ;C:\android-sdk-windows\platform-tools into Environmental Variables.

I have done this numerous times, what shall i do?
[Nexus 5 General] Chromium:
You haven't said specifically whats wrong... Whats the problem?
[Nexus 5 General] brenmi:
Sorry, i get to the nexy step and type adb version in a new command window and come up with the error not recognized command.
[Nexus 5 General] Chromium:
Go to this directory on your computer:

C:\android-sdk-windows\platform-tools\

Do you see a file named "adb.exe"
[Nexus 5 General] brenmi:
There is a adb file not .exe though
[Nexus 5 General] Chromium:
Can you upload a screenshot of the Environmental variables window where you pasted the thing?
[Nexus 5 General] brenmi:
Having trouble uploading a screenshot

But this is the PATH after pasting

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\android-sdk-windows\platform-tools
[Nexus 5 General] Chromium:
Hmm, seems like it should be working. Have you tried rebooting?

If that doesnt fix it, i would just recommend not trying to add it to the path. This will change a few things. Instead of putting the recovery.img in the nexus folder on your desktop you will have to put it inside of the platform tools folder. Then when you run the fastboot flash recovery command you will need to open a command prompt from the platform tools directory. You can do this by opening the platform tools folder, shift + right click in an empty area, and choosing open command window here. To test if its working do this, then run "adb version".
[Nexus 5 General] brenmi:
Hey thanks.

Will give this a try when I get back on my pc, have to do something else now,

Will let you know how I get on.
[Nexus 5 General] mtucker:
Wow, that makes sense. I have used TWRP and CWM on other phones and always thought it was too bad that you could only make a Nandroid backup after you installed a custom recovery/rooted. Now I understand that I can just boot (instead of flash) the recovery.img (probably use TWRP) and it will just be temporary. Then using TWRP I can make a nandroid and then flash the SU file as you suggested. Reboot and I should be rooted, but still have the stock recovery. Beautiful!

Using ADB and doing the steps line by line really helps understand what is going on here. I unlocked the boot loader yesterday since I was only one day into it and figured I might as well unlock before I set things up (since unlocking the BL erases all user data). Thanks for the guide Chromium_
[Nexus 5 General] peste76:
Meanwhile i would not bet on that. You think all thiefs are idiots ? Do not underestimate them. And it is not always someone who wants only the device...
[Nexus 5 General] Natakranta:
Exactly, you've got my point. If the root application has an option for unroot, and you did not change anything in system apps or modded anything, then you ready for automatic OTA when Google sends new Android.

If you are patient enough to wait for it. I just fastboot flash it when the factory image is available instead of waiting for OTA :D
[Nexus 5 General] kilometers4:
Can anyone running windows 8.1 get this to work?
[Nexus 5 General] gregb882:
Stupidity...Thanks for your patience. I saw post #2 but since it didn't use the same words I saw, I assumed the worst. Unfortunately for me, method 1 in Post #2 didn't work. It would get about half way through and fastboot.exe would stop working. I tried several times and it would stop at the same place. So I went through method 2. That seems to have worked but I noticed a couple anomalies.

As I go into Recovery mode after the last step of method 2, it opens to an Android on it's side with a red triangle in it's open stomach. I can still hit volume up and it allows me to do the "wipe data/factory reset", but as it's going through that it has numerous references to failing to mount or open E:cache. It does say, though that the data wipe is complete and it's started up normally. Is the Android on it's side significant? UPDATE: Spoke too soon, now it won't move from the Android on it's side.

Also, I am still unable to see the Media device (MTP) on my Windows 7 PC. I can see it as a Camera (PTP), but not as a Media device. I've tried re-installing/updating the driver using theAndroidSole instructions. Any thoughts or comments?

UPDATE: After a lot of searching and trying several methods, I saw MaxRabbit's guide to Diagnosing USB Driver and ADB Issues in Windows (http://xdaforums.com/showthread.php?t=2514396). Step 2 fixed my problem of not seeing the Media Device on my PC.

As far as the KOed Android symbol with the red warning triangle on it, from what I see it appears to be a common, if not normal, indicator presumably after unlocking and/or rooting. I've seen numerous posts describing some other aspect of unlocking and rooting with the recovery android bot on it's side with the caution triangle. Since everything seems to be working just fine, I'm going to leave well enough alone. Now that I'm up to snuff, I'll go back through and re-root and install a custom recovery.

Thanks again for all of your help!
[Nexus 5 General] DestroytheNexus:
If the phone needs to be sent back to google for repair or whatever reason, do we have to unroot the phone?
[Nexus 5 General] Whyzor:
My windows drivers got 'borked' up, and during my research combed through this thread & a few others. For future reference, I got around my Windows driver issue by going into Nexus - Settings - Storage - USB computer connection, toggle to Camera (PTP) and Media device (MTP), that reinitialized windows to recognize it in Device Manager again.
[Nexus 5 General] iiPostMaster:
After flashing SuperSU and rebooting the phone, the phone was stuck at those 4 colored dots jumping around for around 30 minutes so I decided to just power off my phone and see if anyone here had a solution for a bootloop.
[Nexus 5 General] Quoddity:
Platform Tools updated Link

Well, I'm completely new to doing this, and want to give new life to my old Nexus 5.

The guide looks great, but I believe the Platform Tools no longer need to be downloaded via a larger zip file.

In fact, the zip file I downloaded contained a sdkmanger.bat, not an sdkmanger.exe file, and it doesn't seem that the commands listed to download these Platform Tools still work with the .bat file. (It may have been a non-reported configuration issue on my system.)

Since I'm new, I'm unable to provide the link directly.

https:

developer.android.com

/studio

/releases

/platform-tools
[Nexus 5 General] audit13:
If you want to unlock the bootloader, flash TWRP, or flash a stock ROM via fastboot commands, do this:

Download the fastboot files: https://xdaforums.com/android/software/revive-simple-adb-tool-t3417155

Boot the phone into fastboot mode to unlock the bootloader.

Download the Nexus 5 TWRP img file from the TWRP website: https://twrp.me/Devices/

Run the fastboot commands to flash TWRP.
[Nexus 5 General] Maxi55:
Hello everyone, I'm trying to give new life to a Nexus 5. It continuously reboot and occasionally manages to actually start the system, which however then turns off again after a few minutes. A factory reset didn't work and I cannot access Recovery Mode (I can enter the bootloader, select Recovery but then the phone starts to constantly reboot again.). So I tried this well-made guide, but I fail already quite early: when executing "fastboot oem unlock" in the terminal I get "FAILED (remote: 'oem unlock is not allowed')". Any ideas? I'm quite a noob, did I do something wrong?
[Nexus 5 General] Maxi55:
I managed to take advantage of one of the rare times the system actually starts up and is stable long enough to allow the unlocking of the bootloader in the developer settings. I'm not sure if the final "fastboot reboot" in step 1 worked as the phone entered a bootloop again. Anyway, I was able to flash the recovery (I even tried different ones) but I'm still unable to access it. When I try the phone tells me "Your device can't be checked for corruption. Please lock the bootloader" and remains stuck there. If I do so using "fastboot oem lock" the message changes to a menacing "Your device is corrupt. It can't be trusted and may not work properly". And again, it stays stuck there.
[Nexus 5 General] RVC46:
I attempted to unlock my bootloader using the OP's method but, after downloading the zipfile and extracting it I could not locate the sdk manager executable? This should be an easier method than installing the complete Android Studio and I have no real desire to develop apps. Can anyone help me with this? I suspect the structure of the SDK may have changed such that these instructions may no longer be valid. I searched exhaustively to find the sdkmanager.exe but, failed...this should have been easy.

Is El Daddy's slimmed SDK still available anywhere? Since I was unable to locate the SDK Manager executable I could not install the (4) extra files recommended.

Maybe there are newer instructions posted somewhere? My N5 is new/unused and has Android 6.0.1.
[Nexus 5 General] hubi_nexus5:
don't find sdk manager.exe

Hi, and thanks for such a detailed descpription. After downloading the full sdk file, there are only similar sounding files, that don't lead to nothing. Where exactly can I find the sdk manager.exe? Or what might have led to not having it?

Thanks for help…
[Nexus 5 General] _TVC15:
I was trying to take a screenshot by holding the power and volume buttons down (Nexus 5, Android ver. 7) and I ended up with a black screen, green robot image and some text below:

FASTBOOT MODE

PRODUCT NAME - bullhead

VARIANT - bullhead LGH790 16GB

NW VERSION - rev 1.0

BOOTLOADER VERSION - BHZ11h

BASEBAND VERSION - N8994F-2.6.36.2.20

CARRIER INFO - N/A

SERIAL NUMBER

SIGNING - production

SECURE BOOT - enabled

DEVICE STATE - locked

How do I navigate away from this screen?

From what I've read, It looks like if I do anything I could loose everything on the phone.

Power off, start, restart bootloader and recovery mode are the only choices I have from the volume control.

I'm thinking "Power off" might be the right one to back out of this.

Or, maybe I could let the battery die and get back my normal screen and content after a recharge.

Any suggestions?

Thanks
[Nexus 5 General] Lughnasadh:
First off, you are in the wrong forum I believe. This forum is for the Nexus 5 and you have a Nexus 5X according to your product name (unless you did something to change your device's name).

That being said, sounds like you held power + volume down just a little too long and booted into the bootloader. No big deal. Just choose start and it should boot up unless something else is wrong.
[Nexus 5 General] Constrabus:
Remember that part where you said rebooting after unlocking is important?

Yeah I didn't do that and I've lost my IMEI and I feel like an idiot.

What can i do to fix this?

---------- Post added at 08:53 PM ---------- Previous post was at 08:42 PM ----------

SO I thought I was in trouble BC I had restored from factory via fastboot and it was still missing.

Turns out I hadn't factory reset properly after the restore

I feel like a lot of people are having issues with IEMI and it spooked me.

Anyway, for the record... lost IMEI? Factory Restore & Factory Reset!
[Nexus 5 General] mrro82:
I did earlier. I had to google some help installing the drivers and run the adb commands to flash the twrp recovery twice.

Sent from the jaws of my Hammerhead!