yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] fvisagie:
The reason for that problem is that the device USB interface in fastboot mode differs from that in adb mode.

To fix it, you need to repeat the Windows driver installation/update when in fastboot mode. Following the USER GUIDE link from the Android SDK link given in the guide gets you to https://developer.android.com/studio/run/oem-usb.html - see the "Windows 7" section.

AFAIK the need to repeat the driver installation is not even in the Google documentation. I had to discover that through rile and terror ;).

EDIT: And as you and [MENTION=1299673]sfhub[/MENTION] point out, the Google drivers miss the USB ID for the 5x in fastboot mode, so Windows 7 at least fails to recognise the correct driver. In my case it was fixed by manually selecting the device during driver update.
[Nexus 5X General] milan187:
What is the cleanest way to unroot?

Does reloading system, boot, and vendor from stock do the job?

Edit: I see post 11 suggests to wipe /data with TWRP then reload the stock images.

Is there a reason for their /data wipe? Curious.

Edit2: So I did unroot with SuperSU (this rebooted device). I then reloaded all partitions except /data.

Things seem to be okay. Let me know if this okay. I was all stock other then root and TWRP.
[Nexus 5X General] jbarcus81:
I see.. so I've got the .tar and inside all I see is...

I'm actually good.... I found https://theunlockr.com/2015/12/26/video-how-to-unroot-the-nexus-5x/ and I'm back to stock.
[Nexus 5X General] maniacofdeath:
Android nougat released today. The procedure Is still the same?
[Nexus 5X General] antroid88:
Supersu, xposed and etc aren't updated for N. So I assume steps are the same, but tools aren't ready.
[Nexus 5X General] pkadavid:
TWRP 3.0.2-1 works so far. The previous got stuck on the splash screen. However, I then tried installing SU via TWRP, but it didn't stick.
[Nexus 5X General] maniacofdeath:
Google's becoming like apple now. Always patching jailbreak exploits.
[Nexus 5X General] sichosidd:
Revert to stock

Hello,

My english is not that great so I don't understand the part in section 10 "Important: do not lock the bootloader unless you have first flashed the stock images. Locking the bootloader while you have a custom recovery installed can result in a brick. Please also note that the locking procedure will wipe all data on an encrypted device."

I don't get it what i have to do to lock the bootloader because if i don't lock it its not fully stock right ?

And if you can give me a quick link to whatever I need to do and a quick guide.

Thank you verry much,

Love.
[Nexus 5X General] roca4th01:
It is safe to flash my 6.0.1 stock rom through fastboot while Im in adroid N final release?
[Nexus 5X General] fvisagie:
The warning means that it is unsafe to lock the bootloader of a modifed device (e.g. one with a custom recovery). In effect, it is just another way of saying you should first follow the steps of section 10 to return the device to stock images, and only THEN lock the bootloader afterwards.
[Nexus 5X General] sichosidd:
So this basically means that if I follow all the steps one by one when im done with every single step in section 10 then I can lock the bootloader and go on and over ota like usual install latest 7.0 update ?

Thanks a lot.
[Nexus 5X General] antroid88:
Plus source code isn't released yet according to Franco:

So lets give devs some time ;)
[Nexus 5X General] alfick3:
That is correct, but, you don't need to lock the bootloader to get the OTA. As long as you are fully stock with the stock recovery and (probably) not rooted you can get the OTA. There's no reason to lock the bootloader after you've unlocked it.
[Nexus 5X General] miksontije:
it worked maybe 2 times i turn off phone. now afther that it dont work,i see stock recovery.
[Nexus 5X General] sichosidd:
Thanks a lot for yoru help.

I am also wondering if I will be able to do the steps in section 10 with the newest nougat factory image ?
[Nexus 5X General] alfick3:
I'm sure you will; you just have to make sure you change the names for the new files.
[Nexus 5X General] sichosidd:
What do you mean by that ?

Only the x's, say bootloader-bullhead-bullhead-xx.xx.img?

Or might something else also be changed ?
[Nexus 5X General] alfick3:
I haven't looked at it, but with a new firmware image, maybe some of the banners of the files are slightly different. I don't know for sure. I was just saying to pay closer attention to the file names that's all. The guide was written for older fw, newer fw could have different file names.
[Nexus 5X General] rahatx7:
is there anybody kind enough to upload modified boot.img for android 7.0 ? i need this badly to make twrp work!
[Nexus 5X General] The1nonly1:
Flash the new TWRP 3.0.2-1 in fastboot and it will work. It does for me.

https://dl.twrp.me/bullhead/twrp-3.0.2-1-bullhead.img.html
[Nexus 5X General] rahatx7:
thanks a lot man! it did work...
[Nexus 5X General] roca4th01:
how can I relock my nexus 5x, Im in android N, no root no software modification and no custom recovery, encrypted
[Nexus 5X General] SlimSnoopOS:
Read the first post, end of section 10.
[Nexus 5X General] roca4th01:
But Im in android 7 now, is the procedure is still the same? It is safe to flash my 6.0.1 stock firmware while im in android 7 final released?
[Nexus 5X General] milan187:
Yes but why lock your bootloader? It won't do anything beneficial. You need unlocked bootloader to flash factory images. If something ever goes wrong you are screwed.

I'm saying there is no reason to lock it. Only way you can tell is the short warning message before boot. OTA and everything else will still work perfectly.

If you still really want to do it. Flash the factory image and follow procedure. Does not matter if you are on 6.0.1 or 7.0.0.
[Nexus 5X General] roca4th01:
Im planning to sell this device so i need to go back in stock
[Nexus 5X General] sfhub:
If you are selling device, make absolutely sure you get rid of pin/pattern/password and remove any android account from the phone prior to factory reset.

Otherwise you will likely trigger factory reset protection which means the person you sell it to will need the password to your android account to install the phone.

Safest is to factory reset, then try reinstalling to make sure it doesn't require your account, then factory reset again.

Many people have been burned by FRP when selling phone where the buyer thinks you screwed them selling a stolen or locked phone and then you have to reset your password and wait for 72hr lockout to expire and give the person your account for a few minutes, then reset your password again.
[Nexus 5X General] yurkennis:
Anyone suceeded in upgrading to the non-beta Nougat+TWRP+SuperSU from latest official 6.0.1 (eg MTC19Z or MTC20F)+TWRP+SuperSU?

Please share a step-by-step which worked for you.
[Nexus 5X General] maniacofdeath:
Do you have TWRP and/or supersu?

If so you have to flash the stock 6.0.1 to get back to complete stock (Make sure that the boot loader is unlocked) then you can upgrade to 7.0 OTA.
[Nexus 5X General] yurkennis:
Yes, I have both now at 6.0.1.

Will the latest stables of TWRP and SuperSU install and work with 7.0 as seamlessly as they did with 6.0.1?
[Nexus 5X General] maniacofdeath:
Like it was mentioned earlier In the forums, TWRP seems to work but flashing supersu doesn't work. I'd wait for supersu to be updated to support the official public android 7.0.
[Nexus 5X General] Nightshadow931:
It works, I flashed SuperSU and I have root now.
[Nexus 5X General] maniacofdeath:
Besides many root apps such as xposed and others require toolbox mount support for commands but Google removed in nougat so many root Apps needs to be updated.
[Nexus 5X General] yurkennis:
Were you upgrading from official firmware to official OTA? Are you using TWRP? Were your steps to upgrade the same as maniacofdeath described above?
[Nexus 5X General] Nightshadow931:
I was on stock MM, enrolled to beta and got Nougat.

After that I flashed TWRP through fastboot, and then I flashed SuperSU through TWRP.

That's all.

Although TWRP did not stick after reboot first time, so I flashed it again.

Second time it did stick after reboot.
[Nexus 5X General] jsgraphicart:
It's weird so many people are having issues. TWRP and SuperSU are working fine first try. I used the latest TWRP for the 5X and SuperSU version 2.76. Yesterday, the factory images still weren't available so I used the factory images to back to the latest Marshmallow and took the OTA to 7.0. After it booted up and finished everything, I plugged it into my computer, transferred SuperSU to the device, rebooted into bootloader and flashed TWRP. After that I didn't restart the phone. I went straight into recovery and flashed SuperSU then I rebooted. Root worked. I restored my Titanium Backup and checked to see it TWRP was still there. It was. So I don't know why people aren't having the same results.
[Nexus 5X General] waka_jawaka:
Hi, did anyone flash NRD90M over MTC20F, using this method?

Did you have to do a factory reset, or could you keep your settings and data?

Thanks!
[Nexus 5X General] AG22:
I've just followed the steps to: unlock bootload > install the factory image (step 10) > flash TWRP and then SuperSU 2.76. So far, everything is great.

I was full stock on Marshmallow.
[Nexus 5X General] ulxerker:
you don't have to do a factory reset and if your bootloader is already open you won't lose your settings and data. but if you have to open your bootloader first, you will lose all settings and data.
[Nexus 5X General] Oversemper:
Google uploaded factory image NRD90M for 5X.

People where can I get a boot.img from this factory image with disabled encryption? Thanks!
[Nexus 5X General] KANGOD:
Would you please clarify that if this tutorial applies to Android 7.0 NRD90M?
[Nexus 5X General] antroid88:
I have rooted N5X on Marshmallow and under Device Security it says that it's Encrypted. Is it correct status? How can I double check if it's encrypted.

---------- Post added at 01:27 PM ---------- Previous post was at 01:25 PM ----------

https://developers.google.com/android/nexus/images and untar the files. Encryption runs on your phone, not in the images that you flash.
[Nexus 5X General] Oversemper:
I don't get you. Google factory image forces encryption for user data so if I format the user data partition thereby removing encryption on the next reboot the stock bootloader will encrypt the user data again. In order to not get the user data reencrypted I need to flash a modified boot.img with forced encryption "unchecked". I do not possess the knowledge to extract the boot.img from the google factory image and modify it so to disable the forced encryption; therefore I relied to this forum asking a skilled person to provide a modified boot.img. What did I do wrong?
[Nexus 5X General] ulxerker:
yes, you can use this howto to update to 7.0, section 9 of the OP.
[Nexus 5X General] SlimSnoopOS:
You have the right thinking, Google factory images (the stock boot.img) forces encryption on boot. The other user seems confused about that. Our kernel devs (flar2, franciscofranco, among others) have said that the kernel source is unchanged from DP5. You can use the same modified boot.img for DP5 NPD90G from [MENTION=5317224]Tigerstown[/MENTION] in his thread below:

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

Edit: [MENTION=7687876]Oversemper[/MENTION], if you would like to wait to see if the final NRD90M modified boot.img gets posted, feel free to do so. I have not used the modified boot from DP5 nor have I used 7.0 as of yet.
[Nexus 5X General] antroid88:
So the kernel is the only way to decrypt? Because different threads provide different information:

http://xdaforums.com/nexus-5x/help/how-to-decrypt-t3261181

and even twrp.me/devices/lgnexus5x.html
[Nexus 5X General] SlimSnoopOS:
Yes, it is the kernel forcing encryption. The user in your first XDA thread is rooted. SuperSU patches the boot.img and basically switches the flag from "forceencrypt" to "encryptable." Running fastboot format userdata is the actual step of this process that removes the encryption from the device.

Flashing SuperSU, a modified boot.img, OR custom kernel with the forceencrypt flag changed to encryptable will allow you to stay unencrypted on boot after running fastboot format userdata
[Nexus 5X General] antroid88:
Thx a lot for the answer! And I apologize for the first guy for my misunderstanding.

BTW if there any other way to decrypt after root than "running fastboot format userdata"?
[Nexus 5X General] SlimSnoopOS:
You are welcome! Yes there is. Formatting internal storage in TWRP is the alternative. Both methods wipe all of your saved data, of course
[Nexus 5X General] manfio:
The best way to root nougat...

Download the last twrp and SuperSU from chainfire...

Restart phone to bootloader

Fastboot boot "recovery_name.img"

Phone will boot to twrp, then password to decrypt storage, flash su.zip

This is work for me and dont have to install recovery, only boot...

This is only if you want a encrypted phone

To flash zips im using flashfire
[Nexus 5X General] milan187:
Which two version did you use?

Also what do you mean by TWRP will ask for password? Is this a new feature? I use a pattern and finger print on my device.
[Nexus 5X General] Nightshadow931:
It will ask you for pattern then.
[Nexus 5X General] manfio:
Yes, i said password because thats what im using...

Twrp https://dl.twrp.me/bullhead/

SuperSU https://download.chainfire.eu/969/SuperSU/UPDATE-SuperSU-v2.76-20160630161323.zip?retrieve_file=1
[Nexus 5X General] KANGOD:
Thank you! I went through Section 9 and it works well.
[Nexus 5X General] Oversemper:
Thanks for info! Yeah, I'll wait for a modified NRD90M just in case there may be something different, a build number or something)
[Nexus 5X General] pixbuf:
I used the method is section 9, and had a bit of a problem. This advice, on the twrp website, cleared it up for me:

At first, I didn't follow this step and had to reinstall twrp, just as it says.
[Nexus 5X General] antroid88:
I updated to 7.0 the same simple way I apply OTA to my rooted 5X:

1 - download factory image on the phone

2 - flash it with FlashFire (default profile for Firmware package, just check modems and make sure that user data is unchecked)

After that I flashed Franco kernel and TWRP - all with FlashFire.

Honestly, don't see benefit from updating to 7.0 right now (updated only because Franco started releasing kernels only for 7.0). Xposed not available, Screen Standby is broken, spent an hour trying to make AdAway update hosts http://xdaforums.com/showpost.php?p=68376352&postcount=6817 But I'm glad that ChainFire creates so powerful and universal tools. No problems with FlashFire and SuperSU on 7.0.
[Nexus 5X General] Rajaasim1980:
I have flashed factory images 7.0, flashed twrp and rooted. Now my question is will we get OTA ? What need to be done in order to receive future security updates ?
[Nexus 5X General] antroid88:
Without Magisk OTA will fail. But it's not a big deal in my opinion. When I see a notification about OTA, I download factory image and flash it with FlashFire. Everything is done on the phone. Kinda OTA))
[Nexus 5X General] hamedunix:
Shouldn't be a problem as far as you follow instructions. Both upgrade and downgrade are possible.
[Nexus 5X General] Kmf2b:
Whow to rootandroid m on nexus 5x

I did all the steps to unlock bootloader on my nexus 5x but when i get to the section to root i have the problem.

I dont find my internal storage in the twrp install menu.

It makes mecrazy.

Can some one help please.

I am using android M.

Help will be welcome

Thanx all
[Nexus 5X General] ulxerker:
as soon as you press install in the main menu TWRP opens your internal storage with folders and files. what do you see, really nothing?
[Nexus 5X General] Kmf2b:
i see some files but they are empty and i dont find my dcim and all the folders of my internal storage

---------- Post added at 02:04 PM ---------- Previous post was at 01:19 PM ----------

i see some files but they are empty and i dont find my dcim and all the folders of my internal storage

---------- Post added at 02:06 PM ---------- Previous post was at 02:04 PM ----------

It doesn't show me my internal storage
[Nexus 5X General] septix:
I've been stuck in a boot loop for a day now. Tried every step, several times. Still looping :/

I have a backup, but pushing it to the phone worked fine, but the phone wont find it. Seems like the /sdcard/ is empty with only one folder /twrp/.

Any suggestions?
[Nexus 5X General] antroid88:
Don't kick me for stupid suggestion. Yesterday I was stuck into recovery mode. All my efforts to load into the system from recovery lead to loading back into TWRP. But I was able to load into bootloader and from there press Start and suddenly my system was back.
[Nexus 5X General] milan187:
Flashall factory image from google?
[Nexus 5X General] septix:
Tried that, no problem to enter bootloader or recovery.

Tried that as well, same problem. Running Nougat 7.0
[Nexus 5X General] milan187:
Try loading lastest twrp 3.0.2.1 then custom Rom from there possibly. You can also try 6.0.1 factory image. I have seen this in another thread but people where able to recover.
[Nexus 5X General] SlimSnoopOS:
Normal. TWRP is looking for zips only when you click "Install." Any folder you click on with no zips will appear empty.

If you are using ADB push to transfer the nandroid, the phone path is case sensitive. TWRP is capitalized in the file system: adb push path/on/pc (single space) /sdcard/TWRP
[Nexus 5X General] Kmf2b:
That dont help me thx all

---------- Post added at 03:34 PM ---------- Previous post was at 03:25 PM ----------

When i go into recovery mode it asks me for a password and when i go the install menu i don't have the internal storage. I just want to know if there is a solution. Thx by advance
[Nexus 5X General] SlimSnoopOS:
Which version of TWRP are you using?

Edit: Are you using 3.0.2-1?
[Nexus 5X General] septix:
Thanks, turns out i managed to delete my backup :/
[Nexus 5X General] SlimSnoopOS:
Oh dang. Well, how did the custom rom suggestion work out?
[Nexus 5X General] septix:
Still working on that. Tried 2-3 different custom roms yesterday without luck.

I totally lost my rooting skills, been using iPhone the last 2 years (ooh, the shame). And I'm stuck with a Macbook Pro, so... :)

---------- Post added at 04:13 PM ---------- Previous post was at 04:04 PM ----------

Flashing custom rom made it stop looping, now it's stuck at boot screen. Going to let it boot for an hour or so :)
[Nexus 5X General] SlimSnoopOS:
No worries, I've been using my MBP and fastboot since I picked up my 5X. That's how I got used to fastboot and adb.

Hmm, now might be the time to experiment! Could you fastboot flash the Marshmallow vendor? Then see if it will boot up. If not, boot into TWRP and try wiping system and Art cache, reflash the rom and see how it goes.
[Nexus 5X General] septix:
You read my mind, was about to do that. Then I realized i was using a old ass version of adb, updating now :)

---------- Post added at 04:50 PM ---------- Previous post was at 04:39 PM ----------

Im downloading factory images, and it's

, witch wont flash, is it anyway to make it into a

?
[Nexus 5X General] SlimSnoopOS:
Since OSX doesn't have a native way to open .tgz, I use the open source app "Keka" to open the factory images. This will open into a new folder then inside that folder will be a zip with the remaining .IMG files.

Edit: Also [MENTION=4108185]septix[/MENTION], please verify the sha256 of the factory image before flashing. Open terminal, then type:

Match the output to what Google lists beside the link. If it does not match, that means it is a corrupt download.
[Nexus 5X General] septix:
So, a stock image gets me in a boot loop just when the boot logo shows.

Custom rom does't get past boot screen (android logo)

:(
[Nexus 5X General] SlimSnoopOS:
Did you flash the Marshmallow vendor when you flashed the custom rom? If not, try flashing the Marshmallow vendor MTC20F, factory reset and wipe system then reflash the custom rom.

In TWRP, is there a log entry with any errors once it completes the custom rom flash? Just trying to see why it would keep rebooting.

Edit: Also, which factory image are you trying to install? You have not stated which one.
[Nexus 5X General] septix:
No, I missed that. Gonna try it out straight away.

I'n not getting any errors whilst installing roms, strange enough.

---------- Post added at 05:50 PM ---------- Previous post was at 05:41 PM ----------

bullhead-nrd90m-factory-d215f148 7.0

bullhead-mtc20f-factory-b85029e5 6.0.1
[Nexus 5X General] SlimSnoopOS:
Cool. You'll want to flash the MTC20F vendor for the custom rom. That may allow it go boot past the Android logo
[Nexus 5X General] NameLessThugZero:
Not sure if this to correct place to ask, so let me know if not.

My current setup is the Aug 5th security patch, stock 6.0.1 ROM, rooted (not systemless), with Xposed + Adaway + ElementalX kernel, unlocked bootloader, and according to my settings, I am encrypted though i thought i was not (unless thats just a visual bug).

What steps/where am I to go in order to properly update to N? I want to have all of the above (and working Android Pay if possible, but not necessary). I didnt say an obvious way to do that from this guide, and most other places I checked. Thanks.
[Nexus 5X General] SlimSnoopOS:
This is the perfect place to ask. Section 9 is what you want.
[Nexus 5X General] NameLessThugZero:
Really? N is not MM so I figured there had to be a different way to upgrade. What all do i need to flash; literally the same regular files for the security updates (boot, vendor, system, and TRWP for recovery, and cache)? Or like, all of the them (radio, bootloader, boot, system, cache, system, TRWP for recovery and vendor)? (excluding data for obvious reasons)
[Nexus 5X General] SlimSnoopOS:
Flash each through fastboot. It is recommended to do a factory reset in TWRP (clean flash) then fastboot flash each partition except recovery. Go back into twrp and flash your mods.
[Nexus 5X General] tpayne2345:
[MENTION=3576831]SlimSnoopOS[/MENTION] Is it ok to install TWRP and root even though data is encrypted? Will it cause problems for flashing roms when they starting coming out for N?

Or does the new versions of TWRP take care of this?
[Nexus 5X General] NameLessThugZero:
Hm, guess I assumed the worse but that isnt so bad. Id rather not have to delete my data, but thats a drop in the bucket from what I had to do on....all the other android phones in my signature lol. My poor 2013 Moto X didnt even see lollipop due to the way I rooted (and the ungrateful and thankless parts of that community). Thank you for the clarification! Gonna do this when Im off work tomorrow.
[Nexus 5X General] septix:
Still stuck in a loop, now I suspect the power button. Because when it reboots, holding VOL - is enough to enter boot loader. Any way to disable it during boot or something like that?
[Nexus 5X General] antroid88:
You'll lose Xposed. It's not ready for N. For AdAway check this http://xdaforums.com/showthread.php?p=68376352#post68376352
[Nexus 5X General] NameLessThugZero:
Welp, guess ill be waiting then. I suppose the devs are at work on it now, but there any word or hint of a time frame?
[Nexus 5X General] SlimSnoopOS:
TWRP 3.0.2-1 supports encrypted phones so long as you root after flashing it. I'm unencrypted so idk if TWRP acts up in any way. I think I read some folks having trouble with the latest TWRP sticking after reboots but I have no personal experience with that. Maybe do some reading in the TWRP thread and see if you think their issues are common or a fluke?
[Nexus 5X General] tpayne2345:
TWRP wasn't sticking without root which is why I asked.. It's not fun to expect a TWRP splash screen and see the "No Command" screen instead.

I fastboot flashed TWRP, booted to recovery, put my password in and swiped to allow modifications, flashed SuperSu beta 2.74 (which gives root and modifies the boot.img)

Phone still says "Encrypted" but booting into recovery is possible now, I just have to use my password every time.