yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] sfhub:
What PC platform are you using?

The USB ID for bootloader/fastboot is different than the one for ADB and the Google drivers for some reason are missing the bootloader/fastboot USB IDs so they won't work.

If you are on win10, you can open devmgmt.msc and look for the bootloader device which will say something indicating driver problem, then ask it to search net for drivers, and it should come back with Marshall London Bootloader Interface, which will work fine (it is bootloader driver for a different phone but the interface is compatible)

If you are on older platform like winxp or vista you can try drivers here:

http://xdaforums.com/nexus-5x/general/psa-fix-adb-doesnt-winxp-t3403955
[Nexus 5X General] niklus101:
Ah... I see, I'm on Windows 10 so I'll try this. thanks.
[Nexus 5X General] ch.ch1:
To root Android 7 I follow the same steps? (The link for Android 7 seems to be for the preview and not so clear steps like here)

My phone is now on 6.0.1 (MTC20F), can I flash right away 7.0.0 (NRD90S), or do I need to do 6.0.1 (MTC20K) > 7.0.0 (NRD90M) > 7.0.0 (NRD90S)?
[Nexus 5X General] SlimSnoopOS:
Correct.

Flash NRD90S, skip everything else.
[Nexus 5X General] reddv1:
The link is fixed.
[Nexus 5X General] netpc02:
Flashed modified 08M boot.img into 08M system with no root.

It cannot boot showing this message.
[Nexus 5X General] reddv1:
I'll check the files and see what's wrong, sorry. I removed the links, please remove links from your previous quote. Thanks.

Edit: Everything looks right, but I think the program I used to repackage the boot.img isn't packaging correctly. I'll see if I can fix it.

The modified MDB08i boot image works at the moment with MDB08M.
[Nexus 5X General] raginglemon:
Hey guys, not sure if anybody else is having the same problem. Firstly, I'm on MDB08i, I have also followed the instructions step by step. I unlocked the bootloader, I flashed the custom boot.img file, and I flashed TWRP 2.8.7.2

Once I get to the point where I've gotten TWRP flashed, and I can boot into TWRP, but TWRP keeps asking for a Decrypt password. If I hit cancel, I can get into TWRP, but none of my files are showing up (which would make sense cause it failed to decrypt).

I tried to do a flash of userdata, that doesn't seem to help. Finally, if I just try to boot into the system, the device chokes at the loading animation. I've left it for 20 minutes and come back and it won't boot into the system.

What I tried afterwards was restore to factory settings using the instructions in Step 8, that will allow me to boot into a factory reset system.

I've tried to get root working for the last 4 hours and I keep running into the same issue. Was hoping someone could help.

Cheers!
[Nexus 5X General] rekd0514:
NRT 2.06 is out!

https://twitter.com/WugFresh?ref_src=twsrc^google|twcamp^serp|twgr^author
[Nexus 5X General] Nil253259:
Have u been able to solve the prob..Same thing is happening for me as well
[Nexus 5X General] allard1997:
Does it work for MDB08L?
[Nexus 5X General] rekd0514:
I don't think you successfully flashed the modified boot image. Maybe you used the wrong one?

The modified MDB08i boot image works on MDB08M. I used the NRT with no wipe option to flash the factory image. Then pressed root device. It will flash TWRP and have the password message like you mentioned.

Reboot the device back into the bootloader without flashing SuperSU. Manually flash the modified boot image then boot back into TWRP. The password decrypt message will be gone. Now just follow the instructions the NRT gives you for flashing perm recovery and SuperSU. Reboot and you are rooted! ;)
[Nexus 5X General] allard1997:
wait.. MDB08M is newer then MDB08L? I haven't paid that much attention to it yet.
[Nexus 5X General] Pumpino:
M comes after L. Didn't you learn your ABCs at school? ;)

M apparently includes a wifi fix.
[Nexus 5X General] harrisyw:
Yup, the M build has the latest monthly security update.
[Nexus 5X General] allard1997:
Haha. Seriously a minute ago I was thinking about the alphabet! I guess I'll flash it now then.
[Nexus 5X General] Pumpino:
I thought L has the latest security fixes, as it's dated 1st November, and M was just a wifi fix. I could be wrong though.
[Nexus 5X General] allard1997:
I'll flash it and post results after.

EDIT:

The MDB08M build also has November 1st security patch

EDIT 2:

Successfully installed TWRP and rooted on build MDB08M with MDB08i boot.img! Thanks for the help guys!
[Nexus 5X General] L0dger:
So thanks to Heisenberg's awesome guide (and everyone else in this thread) I'm rooted and everything is rosy. However I have a couple of questions:-

I switched from MDA89E to MDA08I in order to root, however now I have a permanent "System Update" pending which I can't seem to get rid of. I assume this is because MDA08I is older (1st Oct Security Patches) so I'm going to need to update at some point. What would be my best course of action from here? Wait for a modified MDA89E bootloader and re-root or switch to MDB08M?

If the best answer is to switch to MDB08M, do I need to un-root, flash the MDB08M factory image then re-root? Or is there a better course of action?

I'm not completely unfamiliar with Android but the last device I rooted was the HTC Desire so I'm a bit rusty!
[Nexus 5X General] tpayne2345:
Also getting the "Enter Password" screen when booting into TWRP 2.8.7.2

Flashed the boot.img linked in the OP multiple times on build MDB08M

Edit: Finally got it working. I flashed the boot.img again, rebooted into the system, checked Security > Encyption and got the screen to turn it on (which means it's off), reboot to bootloader, reboot to recovery, TWRP works perfectly
[Nexus 5X General] AHomelessGuy:
I'm getting the same message, you just reflashed the image to fix it? I noticed after i hit cancel when prompted to enter a password i got the "your device is corrupt message" when booting.
[Nexus 5X General] tpayne2345:
Yep, try reflashing the image and boot into the system, not recovery.. go to Settings > Security > Encrypt Phone and if it shows you the screen to enable encryption, you should be good to go

If it didn't work, tapping 'Encrypt Phone' won't do anything and you need to reflash the modified boot.img
[Nexus 5X General] Pumpino:
I'm trying to unlock my bootloader. First of all, I tried Wug's toolkit, and that failed. I then booted into fastboot mode, made sure that the device was detected, and then entered "fastboot oem unlock". It reports "FAILED (remote: oem unlock is now allowed)".

Has anyone experienced this?!

EDIT: Nevermind. I forgot to enable unlocking in developer settings.

---------- Post added at 05:48 PM ---------- Previous post was at 05:10 PM ----------

I tried flashing the factory image for MDB08M. The md5sums match. It failed to flash using Wug's toolkit. I then tried using flash-all.

It reports:

Archive does not contain 'boot.sig'

Archive does not contain'recovery.sig'

Failed to allocate 1995665808 bytes

Error: update package missing system.img'

Press any key to exit.

EDIT 2: Flashing them individually worked. Stupid flash-all script...
[Nexus 5X General] voyagerfan99:
Thanks for the update Heisenberg. Glad I don't need to wipe to root anymore. Got TWRP installed and rooted stock MDB08I without an issue.
[Nexus 5X General] niklus101:
will formatting data in twrp remove encryption? or do i have to format userdata in fastoot? also, is decryption needed to install this rom: http://xdaforums.com/nexus-5x/development/rom-debloated-busybox-fast-stable-t3398617 thanks.
[Nexus 5X General] sfhub:
You should be able to format userdata in either. I usually do it from fastboot.

ROMs shouldn't care if userdata is encrypted or not because that is handled by the kernel and even if you disable forcencrypt, it still has the ability to mount encrypted userdata.
[Nexus 5X General] bigthree:
hello, just wanna ask if i can use Flashfire instead of following section 10 of this post for easily downgrading from android 7.0 to 6.0.1 marshmallow?

thanks a lot

status:

bl unlocked

rooted systemless

twrp 3.0.2.2

stock android N 7.0
[Nexus 5X General] Krzeszny:
I also have the same problem, but I have Windows 7 x64 and the device manager doesn't show any errors.

I've reinstalled the Google drivers 2 times.

There might be one thing worth mentioning - when I tried <fastboot devices> for the first time, it worked and I even did <fastboot oem unlock> even though the device had been unlocked, and it returned (truthfully) that it was already unlocked. Then I turned the phone off and after booting into fastboot again (after I came back home) and even restarting it multiple times, my computer doesn't see any devices.

2 more things worth mentioning:

When I plug my phone to my computer, 2 devices show up in the device manager:

1.

Portable Devices > Nexus 5X

Driver details - Provider: Microsoft, Driver date: 2006-06-21 Driver version: 6.1.7600.16385

When I try to update the driver automatically from the device manager, it says that a driver named "MTP USB Device" is up to date.

2.

SAMSUNG Android Phone > Android Composite ADB Interface

I had a SGSIII, but the Nexus is made by LG, so something is wrong here.

Properties: Provider: Google, Driver Date: 2014-08-28, Version: 11.0.00

When I try to update it, it shows that "Android Composite ADB Interface" is up to date, which seems right.

But Samsung? Are those drivers right?
[Nexus 5X General] sfhub:
The two devices when you are booted into android are normal. Almost all the adb interfaces will be very similar so the drivers are mostly interchangeable. You just need the proper USB ID associated with the driver so that when you plug the device in, windows can take that USB ID and find the driver.

The MTP device is for file transfering under a standardized protocol supported for media devices like video cameras, which is how Google decided to export the internal emulated sdcard instead of the previous method of USB Mass Storage, which prevented simultaneous internal and external access to emulated sdcard.

When you boot into bootloader there will be a different USB ID and device description. That is the one that is likely failing for you, so boot into bootloader, and post the USB ID or USB Device name you see then. You shouldn't see MTP device in bootloader mode, but would see it in TWRP recovery.
[Nexus 5X General] fvisagie:
It sounds as if your EFS partition may be corrupted. See if it helps to restore a backup if you have one, and/or follow these steps. The thread is for the 6P, but IIRC there's confirmation later in the thread that the commands work for the 5X also.
[Nexus 5X General] Krzeszny:
I think that it won't be needed.

I've confused bootloader/fastboot mode with recovery mode (the one that shows "no commands") :silly:.

<fastboot devices> didn't work in recovery mode, but works in bootloader/fastboot. It's because I used the command <adb reboot recovery> instead of <adb reboot bootloader>.

By the way, All I see in fastboot mode is SAMSUNG Android Phone > Android ADB Interface. And i don't know how to find the USB ID anyway.

Thanks for help anyway.

While we're still on the topic, I've found another thing that seems weird.

When I restart my computer and run an <adb reboot (....)> command for the first time, here's what I get:

(it knows where adb.exe and fastboot.exe is).

C:\Users\Krzeszny>adb reboot fastboot
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

And it reboots. And usually crashes and boots normally, but that's probably due to the problems with my ROM.

It always shows that daemon service thing, on all USB ports. And there's a "DAEMON Tools Lite Virtual USB Bus" on my list of USB controllers.
[Nexus 5X General] krischros:
i had rooted 7.0.0 and wanted to switch to cyanogenmod. The try failed, so i got along this steps

from 1st Post. Exactly! Including locking the bootloader. i used the original stock rom 6.0.1 (MTC20K) to stock flash, with which my nexus was delivered.

Now my 5X is bootlooping. "GOOGLE" letters.....4 colored dots.....and again "GOOGLE" letters..... for hours......

:(

Ideas?
[Nexus 5X General] sfhub:
You are supposed to type "adb reboot bootloader" not "adb reboot fastboot"

The daemon stuff is normal the first time you run adb. It will start a persistent background process which it then communicates with. After the first time you run adb, it shouldn't say that anymore (unless you reboot your PC)

daemon is a unix term for background persistent process, so it is not specific to just adb and other programs could have their own daemons. Daemon tools sounds like a DVD decryption tool.
[Nexus 5X General] dog121:
Did u fastboot flash user data.. because on post 10 it's not listed in the category if u wished to keep ur data and user data for 7.0 will not be the same as 6.0.1 so try flashing it all again... U might have some issues as u relocked ur bootloader!!!!?

Important: do not lock the bootloader unless you have first flashed the stock images. And checked to make sure everything is working.....
[Nexus 5X General] krischros:
i added flash user data and no new findings.

And no issues when locked or unlocked bootloader.

Does the Nexus also bootloop up to 20min when stock rom flash was successfull?
[Nexus 5X General] dog121:
Sometimes it can take a while to boot up but not 20mins..have u tried fastboot all the nougat 7 stock.img to see if that works also if u can check what bootloader version u have.. sometimes when u fastboot the bootloader.img it doesn't always change I remember I had to flash the bootloader.img twice ..
[Nexus 5X General] Krzeszny:
Thank you. I always have to mess up the commands, even after I find out that I've messed one up *facepalm*

I've finally installed TWRP 3.0.2-0
[Nexus 5X General] ulxerker:
OTA via adb sideload?

hi guys, do you think its also safe to install new system builds via adb sideload ota.zip in twrp instead of flashing the image files one by one? of course, after that you'd have to re-flash twrp, supersu and custom kernel.

any thoughts/experiences/opinions?
[Nexus 5X General] sfhub:
Theoretically it should be safe.

However, until you get confirmation from someone who's tried it (with the particular combination of TWRP and OTA you are in), personally I would stick to what Google tests with ie fastboot/bootloader or OTA using stock recovery.

I don't *think* the EFS bug in TWRP should affect OTAs because they specify their own pathnames in the install script.
[Nexus 5X General] churchey360:
So if I flash back to complete stock and then leave bootloader unlocked I can take OTA updates?
[Nexus 5X General] sfhub:
Not sure the context of your question, but the answer to your question is yes, you can receive OTA updates and have them install successfully with bootloader unlocked.
[Nexus 5X General] Starphish:
I can confirm. Just took v7 OTA update. Bootloader unlocked, otherwise stock/unrooted.
[Nexus 5X General] churchey360:
[MENTION=1299673]sfhub[/MENTION] [MENTION=4454212]Starphish[/MENTION] Thanks for the help ???
[Nexus 5X General] ulxerker:
I did it and it worked perfectly.

so whoever has twrp custom recovery and wants to install new system builds without using flashfire: grab the ota here , boot into twrp -> advanced -> adb sideload -> enter "adb sideload OTA-XXX-XXX.zip" in command shell of connected PC. Thats it!
[Nexus 5X General] krischros:
My situation:

5x with stock 6.0.1 Then i updated to 7.0 and and TWRP recovery and rooted. All fine.

After that i tried to flash CM13 Snapshot and i got bootloop.

So i want to flash back to stock. I tried the NRD90M and NRD90S Builds and i exactly followed the steps from Post 1 Step #10. Result is bootloop! again and again. Google Letters, 4 colored dots and bootloop.

Any further ideas?

1) I tried both variants: with closing bootloader after flashing stock files, and without closing bootloader after flashing stock files

2) Bootlooping only ends when battery is empty.

2) I am still hoping the best, because i can still enter bootloader and stock recovery.

Thanks
[Nexus 5X General] Stevica Smederevac:
If you want cm 13 then flash stock MM, not N as you were doing.
[Nexus 5X General] tylerdurden83:
Hello everyone,

I'm on N factory image, twrp, unencrypted device, systemless root.

I just received the notification that the september security patch ota has been downloaded and is ready to be installed.

What should I do to install it? Should I unroot first or it'd fail to install? Will it re-encrypt my device?

Thank you so much guys

TD
[Nexus 5X General] krischros:
Thanks for the advise. But my actual wish is i want a working 5x, therefore i wanna step back to stock N. But this doesn´t work.
[Nexus 5X General] Stevica Smederevac:
Now i see, so when you flash N img you get bootloop? Flash N img and i it doesn't boot, go into stock recovery, do a factory reset from there and see if it boots
[Nexus 5X General] krischros:
Yes,

when flashing N with open bootloader and finally factory reset / wipe... in stock recovery, i get bootloop

when flashing N with closed bootloader and finally factory reset / wipe... in stock recovery, i get bootloop, too.
[Nexus 5X General] Stevica Smederevac:
Don't lock the bootloader. Perform this command , fastboot format userdata and fastboot format cache and try but don't lock bootloader, please
[Nexus 5X General] ulxerker:
don't unroot your phone and don't let Android install the downloaded OTA. you have two easy options:

1. install FlashFire app, it will find the update package and install it automatically

or

2. grab the ota here , boot into twrp -> advanced -> adb sideload -> enter "adb sideload OTA-XXX-XXX.zip" in command shell of connected PC
[Nexus 5X General] tylerdurden83:
FlashFire seems a bit buggy, once it crashed and asked me to update supersu to at least 2.40 but I have 2.78...

Anyways, it generated a list of actions, one of which is Flash Zip or OTA (update.zip) and flagged is Restore boot and recovery images.

If i go into details it says "Attempt to restore stock boot and recovery images before flashing".

That won't format the device as itìs restoring a force encrypted boot image, right? What if the automatic procedure goes wrong and it reboots with the stock boot image? Won't it wipe everything then?
[Nexus 5X General] ulxerker:
this won't wipe your userdata, "Restore boot and recovery images" means that it restores kernel and recovery running at the time of the update.
[Nexus 5X General] tylerdurden83:
No luck with flash Fire,it says that a system ota is abitabile and to Press ok to generate the actions to flash it, i pressed flash,it did its thingy but After the reboot i'm still at the august Security patch level. I'll try to sideload it myself
[Nexus 5X General] ulxerker:
strange ... ok, after sideloading go straight into bootloader and flash twrp again, then boot into twrp and flash supersu and kernel. finally boot into system.
[Nexus 5X General] krischros:
No success! still rebooting after your sequence.

For your info:

HW Version: rev_1.0

Bootloader: BHZ11e

Baseband: M8994F-2.6.33.2.14

Question: What about the kernel? Any thoughts because of this?
[Nexus 5X General] Stevica Smederevac:
Go to first page of this thread, step 10.how to flash stock rom. Flash one thing at the time and the order that is written , don't use flash all.bat. Running out of ideas :confused:
[Nexus 5X General] dog121:
Ur bootloader version is the latest for android 7nougat..

---------- Post added at 10:59 PM ---------- Previous post was at 10:48 PM ----------

Ur bootloader is the latest android 7 nougat..I feel that u must be doing something wrong in the fast boot steps.. when u type fast boot devices are u getting an output??? Are your adb drivers up to date with the latest SDK???
[Nexus 5X General] bigthree:
I just wanna confirm, after receiving ota update today i flashed/apply it using Flashfire and it succeded but my android version is NRD90R, isnt supposed to be NRD90S? And my security patch is sept6,2016.

Status is unlocked bl, rooted, twrp 3022.

Android 7
[Nexus 5X General] dog121:
Mine is 90S but I fastboot it when it came out instead of waiting for the ota ..
[Nexus 5X General] lilfarlee:
can i download the factory image of 7.0.0 (NRD90S) and use the steps i normally use when updating the stock rom?? is it that simple? no additional steps?

nevermind, after looking through older posts i updated to latest using the OTA and "adb sideload OTA-XXX-XXX.zip" in command shell

so easy, cause i use this method for updating the OTA updates all the time??
[Nexus 5X General] ulxerker:
yeah, you can use this method every time an OTA gets released, I'm doing this too. its the easiest and fastest way.
[Nexus 5X General] krischros:
i did a fresh installation of actual sdk tools. no success :/

i already tried on mac with this adb install guide, and same flashing procedure from this 1st post here. i exactly follow the steps and i can see the green "downloading" letters on the device, so fastboot works and push/install files.

Still bootlooping! aaaargh
[Nexus 5X General] dog121:
Well then there is only one method left u can try which is the tot method check the link below..this is what everyone has been using to unblock there phone...

http://xdaforums.com/nexus-5x/help/req-help-to-unbrick-t3251740

Is there anyway u could use a windows PC to try the fastboot ext... I don't use Mac. So can't help with that but try on a windows pc it might resolve ur issues..
[Nexus 5X General] krischros:
i already use a windows 8.1 and a windows 10 machine. no success.

now i try the "unbrick device" course.....

update: This also was unsuccessfull. So its a hardware issue?
[Nexus 5X General] dog121:
Well I think u have tried every avenue.. maybe it's hardware related.. time to send it for repair
[Nexus 5X General] KostisTTT:
Hello, guys.

Before installing the new Android 7 (NRD90S), I would like to ask something:

I am in stock 6.0.1 ...

-I have downloaded the factory image NRD90S and the SR1-SuperSU-v2.78-SR1-20160915123031.zip.

So, do I follow the step 9 (How to update to a new build of the stock Rom)??

-Then I flash the twrp-3.0.2-2-bullhead.img, following the steps 2 and then 6??

Finally, if everything is ok, how can I go back to MM?

Sould I follow the step 9 , flashing a factory image (ex MTC20F)???

Thanks in advance...
[Nexus 5X General] dog121:
Yep that's right but I would boot up the phone before u install the twrp.img to make sure everything went smoothly ..and remember don't lock the bootloader... with out stock recovery...
[Nexus 5X General] KostisTTT:
One more question:

I have installed Android 7 successfully.

Now, in order to install SU and TWRP, should I unlock the OEM???

Won't this erase all my data???

Thanks in advance

Edit: Just now my phone did a reboot, said something about encryption and deleted everything....

???
[Nexus 5X General] dog121:
Yes u will have to unlock the bootloader to flash the twrp.img and I will wipe ur data...
[Nexus 5X General] KostisTTT:
Thanks, dog121..

So,

now, in android 7,

-unlock the bootloader (step 1)

-install TWRP 3.0.2-2 (step 2)

-install root SR1-SuperSU-v2.78-SR1-20160915123031 (step 6)

At this point, I am in android 7, may I open TWRP and restore a backup file (with android MM), or this may cause brick??

Thanks again... (and sorry for these nooby questions)
[Nexus 5X General] dog121:
Do not restore any back up from mm.. period ...
[Nexus 5X General] KostisTTT:
Should i first install factory image ex. Mtc20f??
[Nexus 5X General] dog121:
Im lost u were on android 7 why would u want to install mtc20f..???
[Nexus 5X General] KostisTTT:
I have no xposed (yet??)
[Nexus 5X General] dog121:
Well if u want exposed then u will have to go back to marshmallow.. so down load the last marshmallow.img and do the same procedure as before with fastboot etc...and twrp.and supersu...