yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] SlimSnoopOS:
Just so you have an answer, I don't know. I always operate under the belief that OEM's have a method to detect user flashed software on their phones. I haven't noticed a user facing method that displays a tamper flag/flash counter on either 2015 Nexus.
[Nexus 5X General] naknul:
Hello [MENTION=3576831]SlimSnoopOS[/MENTION] i have tested method 10 in your guide to return to stock becasue of a bootloop but i ran into the problem that when i flash the files into my phone from the computer the files arent there on the phone any thoughts about what could be the problem?
[Nexus 5X General] SlimSnoopOS:
What does terminal state when you flash the factory images? Provide screenshots if you can take them.
[Nexus 5X General] naknul:
I'm currently trying to install the pixel rom for my phone with adb/fastboot to see if it makes a difference but i may get some logs that i can send if it dosent work. [MENTION=3576831]SlimSnoopOS[/MENTION]

---------- Post added at 06:11 PM ---------- Previous post was at 05:32 PM ----------

Alright now i have tryed the pixel rom with no sucess and i tried you method once again and i took some screenshoots from the process. [IMG="first"]http://imgur.com/a/c6xnz[/IMG] [IMG="second"]http://imgur.com/a/ufydC[/IMG] [IMG="third"]http://imgur.com/a/4CP0g[/IMG]
[Nexus 5X General] naknul:
This is what i get when i run the .bat file from the factory zip file i got from google. [MENTION=3576831]SlimSnoopOS[/MENTION]
[Nexus 5X General] SlimSnoopOS:
What happened after you flashed the factory image? The screenshots look as if each file flashed fine. What does the phone do when you boot into the rom?
[Nexus 5X General] naknul:
Well it just continue to bootloop like it always have
[Nexus 5X General] thereal_bigjake:
You have to flash the vendor image again separately for some reason
[Nexus 5X General] naknul:
Sadly flashing the vendor.img separately didn't work either.
[Nexus 5X General] SlimSnoopOS:
Could you explain in more detail how the phone came to bootloop in the first place? Certain bootloops aren't as easy to recover from pending how abruptly they started.
[Nexus 5X General] naknul:
Wall i hade choose to install the pure nexus ROM and so i installed TWRP to do so. But i wasent satisfied With What it gave me then my friend recomended cyanogenmod so i wiped With TWRP just like i did to install pure nexus and then i ended up in this bootloop mess.
[Nexus 5X General] SlimSnoopOS:
So after installing CyanogenMod, when you booted up the phone just bootlooped? Did you at any time attempt to restore your EFS via TWRP? Fastboot flash TWRP, do a factory reset and wipe system then go into the bootloader and fastboot flash the NBD90W factory image again.
[Nexus 5X General] beckerfj:
I'm running stock, but rooted. I was trying to follow option 2 on post #1212 (download OTA update and adb sideload while in TWRP).
[Nexus 5X General] fvisagie:
Hi, the 6th command (flashing the boot image) fails due to a typo. "dastboot" instead of "fastboot".

Hope this helps.

---------- Post added at 06:25 ---------- Previous post was at 06:11 ----------

Could it be that the rooting mods cause the OTA checking to fail?

Are there any error messages or screenshots you can post?
[Nexus 5X General] naknul:
Sorry if this is a stupid question but what is a EFS?
[Nexus 5X General] SlimSnoopOS:
Plainly put, it contains essential elements that allows your phone to make calls, send texts, and maintain its radio

www.xda-developers.com/backup-your-efs-partition-with-easy-to-use-app/amp/
[Nexus 5X General] naknul:
Ah i see. Well i don't have any backups for that.
[Nexus 5X General] gbb14:
the root method works also for developer preview 7.1.1?

thank you, and sorry if the question was asked :)
[Nexus 5X General] SlimSnoopOS:
Ok. Rules that out. Any luck doing a factory reset, system wipe, then installing NBD90W factory image from fastboot?

SuperSU 2.78 SR1 and 2.78 SR2 should. I don't run dev previews though. There may be some issues running 2.78 SR2 from what I last read in this SuperSU thread:

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
[Nexus 5X General] cbhhargava:
Help please! I unlocked my bootloader in fastboot without toggling "Enable ORM unlocking" option in developer options. Though my phone shows unlocked, fastboot can't recognise my phone! :'( Is there a way to install custom recovery ?? I've updated fastboot drivers. Phone is showing up in device manager in fastboot mode but cmd won't recognise it :(
[Nexus 5X General] fvisagie:
You won't be able to install a custom recovery if fastboot doesn't recognise the phone.

The reason for not recognising the phone is hopefully an incomplete driver installation. There are various fixes in the thread you can look up. One which I haven't used myself, is to install non-Google USB drivers. The other which I've used involves updating the driver from Device Manager and then picking from the list the correct one to use. Once it's installed correctly, it should show up under Android Device.

Two things confuse me, though. One is that you were able to unlock the bootloader which requires fastboot, but you say fastboot doesn't recognise the phone. The other is that you were able to unlock the bootloader without enabling OEM unlocking.

In any case, first make sure you get the driver working correctly as mentioned above, and then post any remaining issues with full error messages.

Good luck :).
[Nexus 5X General] joedoctor:
- "It should return your device serial number, if not you need to make sure your drivers are installed correctly."

It does nothing for me, and my drivers are installed correctly and up to date. I followed every step. Can somebody help?
[Nexus 5X General] Paragon_X:
I need help here. I'm trying to download the latest n update and whether I download it on my phone or mac the second zip file doesn't extract properly. I don't know why but the system img clocks in around 113mb. Is anyone able to link me to the files extracted?
[Nexus 5X General] SlimSnoopOS:
Are you booted in recovery when running adb devices? Uninstall then reinstall the drivers while you are in recovery.

Try post #33 step regarding removing the driver in the other Q/A thread:

http://xdaforums.com/showthread.php?t=3236946

Try a different browser (Chrome instead of Safari) then unzip. I often have issues downloading factory images when using Safari.
[Nexus 5X General] rp158:
Unlocking Bootloader didn't succeed for me on Win10, neither by switching off Wifi to hold the old drivers. On actual Ubuntu it succeeded immediatly.
[Nexus 5X General] ulxerker:
I did that several times successfully on Win10.

did you enable oem unlocking in development options? what was the error output? what did "fastboot devices" say?
[Nexus 5X General] ritchea:
I also had no problem on Windows 10. Drivers are more and more complex, it seems. I have to constantly re-install them as suggested in a previous post.
[Nexus 5X General] rp158:
OEM-Unlock was On - how it should have succeeded on Ubuntu otherwise ^^

No error, only no device in fastboot devices.
[Nexus 5X General] SlimSnoopOS:
Could you try a few things for me? Fastboot flash or fastboot boot TWRP, mount System, then wipe System. Go back into the bootloader and try flashing via fastboot again.

Edit: Also, did you verify the sha256 prior to flashing the November factory image?
[Nexus 5X General] fvisagie:
[MENTION=3113445]pixbuf[/MENTION],

If you still keep running into the "FAILED (remote: data too large)" problem during flashing, try this suggestion.
[Nexus 5X General] justin0469:
I'm getting the error "oem unlock is not allowed" when trying to unlock the bootloader. My phone is not able to boot to recovery or to the OS in order to enable this in the dev options. any ideas on how to get this enabled? I need to just flash the stock image.
[Nexus 5X General] Stevica Smederevac:
Go to about phone, tap 7 times on build number and you'll enable developer options. Allow oem unlocking and proceed
[Nexus 5X General] justin0469:
I'm saying that my phone doesn't boot and I can't get to the dev options.
[Nexus 5X General] Stevica Smederevac:
Sorry, didn't read carefully. What did you do do get in this situation?
[Nexus 5X General] justin0469:
That's a good question. I was browsing the web and the screen locked up. After about 10 seconds, it restarted but couldn't boot. Now it just bootloops. It's entirely stock. This only happened one other time but when it restarted, it was able to boot successfully.
[Nexus 5X General] Stevica Smederevac:
Do you know how to enter recovery? Since stock one is limited, you can try to clear cache and see what happens. Itf that doesn't help, you should try drastic measure which is factory reset from recovery but you can say goodbye to data.
[Nexus 5X General] justin0469:
Yes I know how but when I select Recovery, it has the dead Android with red ! and says "No Command". I'm fine with factory reset. I downloaded the SDK, installed all the tools and the Nexus 5x image from Google but I just cant flash it to the device without unlocking the bootloader.
[Nexus 5X General] Stevica Smederevac:
You should try this and see if his tool can help http://xdaforums.com/nexus-5x/orig-...kipsoft-android-toolkit-nexus-t3230444/page20
[Nexus 5X General] chrisgtl:
How are you trying to unlock bootloader? Can you connect phone to computer and see your phone under device list?
[Nexus 5X General] SlimSnoopOS:
On this screen, hold Power then press Volume Up.
[Nexus 5X General] thorrules:
I had the exact same error when I tried to flash. I figured it was due to older version of fastboot. I then downloaded the latest minimal adb 1.4.1 from here http://xdaforums.com/showthread.php?t=2317790 and then flashed system again. Problem solved.
[Nexus 5X General] justin0469:
Hm, I'll take a look at it.

I am using fastboot. I do see it in the device list. Not in ADB though because I can't get to Recovery

Good catch, though when I try to go to recovery now, it just boot loops. I have no idea what has caused the situation to degrade. I haven't even been successful in trying anything so I'm not sure what's happening.
[Nexus 5X General] pixbuf:
Excellent call! I updated my android SDK, which included fastboot, and then I had no trouble flashing. Thanks!
[Nexus 5X General] justin0469:
OK, for some reason my phone now start some times but never lasts for more than a couple minutes. I did manage to allow OEM unlock. Now when I try to fastboot flashing unlock is get this error "FAILED (command write failed (No error))"
[Nexus 5X General] Stevica Smederevac:
Fastboot oem unlock is the command
[Nexus 5X General] justin0469:
No, the problem was just that the drivers needed updated again. Flashing works now.

I flashed with OEM stock image but still boot loops. I must have a hardware problem. Guess I have to get a new phone :/
[Nexus 5X General] fvisagie:
Corrupted data could also cause that.

First do a factory reset, then flash all partitions with available stock images again, just to be sure.
[Nexus 5X General] justin0469:
If anyone is interested, I definitely have a hardware problem. I can temporarily solve it by applying pressure to the screen about where the fingerprint sensor is on the back. After doing this for awhile (like maybe 10-20 times for a few minutes each) the phone worked all night until I picked it up this morning. I was able to successfully flash that actually had nothing to do with my problem. It probably would have booted if I could have figured this out earlier. Anyway, looks like time for a new phone. I wish Pixels weren't so delayed in shipping, I need one asap.
[Nexus 5X General] mjp5099:
Stuck in bootloop google screen

Hey all, I need some assistance here. Seems I have the same problem as [MENTION=3085556]justin0469[/MENTION]. So my device is Nexus 5x H790 unlocked bootloader, stock ROM, Usb debugging enabled. I had the latest October updates (90S I believe) and everything was running just fine on it until about 5 days ago. I was using my phone like normal and suddenly it turned off. I could not turn it back on and when it did it would get stuck at the Google screen and then begin to bootloop several times before turning off. I have gotten to the recovery screen 1 time and wiped cache but still same result after flashing images. There was one instance where the phone completely booted up and was receiving the numerous texts over the few days and even sent a few. Then it crashed again after 5 mins

Here is what I've tried:

-Attempted to reflash October images from googles website. I have experience doing this before from using Heisenburg's method 9 (no change)

-Then began to research and thought it was the power button getting stuck issue. Brought it to a repair shop and they opened it and checked out the power button and said it was firmware not the button and to factory reset (brought it here because the device is 13 months old and figured it was cheaper/faster than sending to LG and waiting a whole month to get it back)

-Brought home from repair shop, reflashed latest October images and still could not boot up fully.

-Now I want to factory reset but cannot get to recovery screen, when I enter bootloader and scroll to Recovery it just goes to Google image again....I believe there are commands to wipe device userdata and tried "fastboot erase userdata" and "fastboot format data" but gave errors

I will try next to use a different USB port, now that just found a thread on here saying the 3.0 ports dont seem to work with that command even though I've used the same port for every image flash I've done in past

Update: using the usb 2.0 port successfully executed "fastboot erase userdata" command. So I'm hoping this has the same effect as a factory reset? Is this true?

Any help/ideas would be appreciated. Thanks in advance
[Nexus 5X General] joedoctor:
Tried it, didn't work.
[Nexus 5X General] SlimSnoopOS:
Do you have more than one USB plug in your computer? If so, try that. The common issues are your USB driver (most likely), cable, or the USB port that you are using.
[Nexus 5X General] joedoctor:
I have tried different USB ports, reinstalled the drivers. I can't get fastboot to work, it does not return a serial, instead just a blank. I have no idea what to do.

Thought about trying Wug's Nexus Root Toolkit v2.1.4
[Nexus 5X General] SlimSnoopOS:
Try and see. I don't have access to Win7/10 so I can only link to what others have found to work for them. Btw are you coming from another Android device that required you to install drivers onto your pc? Could you uninstall those, if so.

Edit: Also, have you updated your fastboot and platform tools?
[Nexus 5X General] SlimSnoopOS:
Ooops.
[Nexus 5X General] :
I followed all your instructions to unlock my bootloader and flash a new recovery and after I had installed cyanogenmod 14.1 but now if I want to flash anything in the recovery I need to wipe data due to encryption but you said that twrp can decrypt data since 2.8. so could you help me for this please (since bootloader exist I think tweaking Android devices is becoming very hard).
[Nexus 5X General] SlimSnoopOS:
Use the latest TWRP if you're on Nougat 7.0+. I have made some small edits to the guide since taking it over but I haven't yet worded how I want to mention that TWRP 3.0.2-1 and 3.0.2-2 have build specific bugs. This warning explains the TWRP situation right now in the Nexus 6P TWRP thread:

http://xdaforums.com/showpost.php?p=68520004&postcount=1152

Edit: Also, this is not going into the guide but File Based Encryption (setting in Developer Options) in Nougat 7.0+ is unsupported by TWRP at this moment.
[Nexus 5X General] :
I have Twrp 3.0.2-2 installed and on your link they said there is bugs but not with encryption. So I must be able to flash .zip without wipe data?!

PS: thanks for replying very very quickly ;)
[Nexus 5X General] SlimSnoopOS:
Maybe I misunderstood you so I will start over. Yes, you need to do a factory reset prior to installing a new rom. Encrypted or not, that is a required step to install a rom. What are you trying to do? What happens when you boot into TWRP?
[Nexus 5X General] :
Yes I think my reply was not well explained sry.

Cyanogenmod has released his new version cyanogenmod 14.1

So I have decided to flash it on my nexus 5x.

So I search on xda how to do that so I fell on your thread and I followed all steps but After installing cyanogenmod I saw that the play store was not installed so I (tried) to flash Gapps and I go to recovery to flash it but Twrp said that my infernal storage was 0mb so I search why on xda and they said that I need to wipe data due to encryption but I don't want to do that everytime I flash sth. But you said that Twrp 3.0.2-2 can decrypt Android 7.0.

Before I was stock Android 7.0

Now my bootloader is unlocked and Twrp 3.0.2-2 is installed

My ROM is cyanogenmod 14.1 last nightly build

My only problem is for flashing new zips without Lost data.

Thanks A LOT for helping me ;) .
[Nexus 5X General] SlimSnoopOS:
Reflash TWRP using fastboot. CM 14.1 is using NRD91N source so there should not be any issues.

Edit: Also, if you are encrypted, you need to input your password when TWRP prompts you. Otherwise it will not decrypt the data partition.
[Nexus 5X General] sfhub:
To clarify, "convert to file encryption" setting is not supported, but Full Disk Encryption (the default) is supported by TWRP.
[Nexus 5X General] lirdi88:
Unlock bootloader on a new nexus 5X

Hey all,

So I've just bought my all new Nexus 5X and I would like to unlock its bootloader and root it...

Few questions regarding the original instructions of this guide:

1) Should I avoid November security Nougat update (as I see people having trouble with it) or just flow with it?

2) What should be the command of the unlock? is it:

a. fastboot oem unlock (As mentioned in this guide)

OR

b.fastboot flashing unlock (As mentioned on another guide I stumbled onto from AndroidCentral)

3) What's the thing about the encryption?! I see guides telling me about how you should go TWRP 2.8.0 and only then switch to 3.0.2 and so on...

I'll rephrase the question so as to be clear:

What should I do (in terms of installing recovery after bootloader unlock) in order to ensure NOT HAVING TO LOSE ALL MY DATA everytime I flash something...

Big thanks to whoever has all the answers to all my annoying questions :D

Cheers !

Edit: Went along with the guide, here are a few comments...

First, WORKS FLAWLESSLY on LG Nexus 5X Android 7 Nougat November security update included !

Secondly, there should be a remark about first entering the bootloader before using the command "fastboot flash recovery <Filename>.img " , yeah, silly, I know.. But not every visitor is a dev so just to be straight forward

Thirdly, There should be a remark about going through steps 2,4,5,6 IN SEQUENCE because once you install recovery and then reboot - TWRP just disappears on the next reboot, so actually YOU HAVE TO INSTALL SuperSU (and root) RIGHT AFTER YOU FLASH RECOVERY.

BTW - I do get this annoying message about the fact that my system cannot be checked for corruption, everytime I reboot, is this normal? And also, Notice that I DID NOT perform step 3, just as suggested in the guide. NO NEED for decryption in order to get root. Perhaps it is needed for other stuff or not at all as of TWRP 2.8.0+ ...?

Other than that - Perfect ! Thanks so much for this thread ! Keep it up :D
[Nexus 5X General] SlimSnoopOS:
Aloha!

1) Doesn't matter. Seems like more people are recently having hardware failures on Nougat although it may be coincidence.

2) Either is fine.

3) Read this please. I intend to add this into the FAQ at some point.

and your edit suggestions:

first) Welcome onboard!

second) Fair point. I can add this soon.

third) This just starting occurring with Nougat 7.0 I think. I will think of how to reference this.

fourth) Normal. This is a bootloader message that occurs once you unlock the bootloader.

fifth) See the link in bullet #3.
[Nexus 5X General] lirdi88:
Thanks for the reply man ! Very very helpful !

If I understand correct I can just format (wipe?) Data partition which will get rid of the annoying encryption but I guess that doesn't really help me with anything...? Sooo... Guess I'll just stick with TWRP latest 3.0.2-2 and avoid the backup errors..? At least until a future stable version comes out.

Anyway, again - Thanks a lot and Best of luck out there ;)
[Nexus 5X General] ch.ch1:
I'm now on NBD90W, to which should I upgrade to? (NRD91N, Nov 2016) or (N5D91L, Nov 2016)? Or do I need to do both?

My phone died by the last upgrade and I got the motherboard replaced, is this happening again with the Nov update??
[Nexus 5X General] fvisagie:
My phone went straight from NBD90W to N5D91L via OTA with no ill effects. You can also flash the latest factory image if you like of course (skipping the data partition if you want to preserve that). If you had modifications like TWRP, SuperSU etc. installed before the time, you'll have to redo them after flashing.

Hopefully the problem you had disappeared with the motherboard replacement. As mentioned my phone had no problems with the latest November update.

---------- Post added at 08:37 ---------- Previous post was at 08:32 ----------

TWRP 3.0.2-2 reportedly has problems backing up larger partitions - see here. If that may be an issue for you, use the unofficial 3.0.2-3. You can find more information and a link here. I've been using it on the default encrypted data partition without ill effect (although to be complete I haven't done any restores yet ;)).
[Nexus 5X General] Wovedaf:
How can I tell what Google security OTA a ROM is based on? For example I would like to run Cyanogenmod 14.1 on my phone. My best guess is that the OTA is 7.1, but I didn't see anywhere to download that vender.img. I saw up to 7.0

Thanks.
[Nexus 5X General] SlimSnoopOS:
The first post of that rom thread should detail all you need to know or the thread title prior to reading the thread. CM 14.1 has this written out already in the first post:

http://xdaforums.com/showthread.php?t=3496798

Nexus 5X and 6P have only received official OTAs up to 7.0. Any rom that using a higher Android version is either a) AOSP based which usually means you need the latest official OTA vendor or b) based on developer previews.

You want the vendor that corresponds to the rom base. Typically, we receive one OTA of any kind each month: one official OTA on the first Monday of the month and one developer preview later in the month.

Edit: If you cannot locate in the rom thread a link for vendor.img to download, download the factory image from Google and extract the file.

https://developers.google.com/android/images?hl=en
[Nexus 5X General] MatteXperiaU:
how to root Android 7.1.1 Developer Preview 2?
[Nexus 5X General] SlimSnoopOS:
Until proven otherwise, follow the first post on how to install TWRP. Make sure to download SuperSU first then install in TWRP.
[Nexus 5X General] geekmax:
Thanks for the detailed guide. I have successfully unlocked,installed recovery and rooted my Nexus 5x with November security patch installed.

I have a suggestion -please add in the instructions that after unlocking the bootloader and installing & booting to TWRP,flash SuperSu without rebooting. Or flash a modified boot.img (please provide a link as well) because once rebooted it is not possible to get into recovery (no command error). I faced the same issue and had to google and search through 150+ replies and other threads to figure it out. This is the thread which comes up first in google search and also it says 'for beginners'.
[Nexus 5X General] SlimSnoopOS:
Appreciate the suggestion. It's on my list of things to add. Glad you're all setup.
[Nexus 5X General] N00dle:
Ugggghhh

I keep getting stuck on the android boot animation. I have reflashed everything but the userdata

TWRP3.0.2-2

SuperSU 2.78 SR5

I'm beyond stuck. I didn't have any issues previous upgrades and root
[Nexus 5X General] SlimSnoopOS:
What have you done to get stuck at the boot logo? What are you attempting to do?