yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] NdR991:
OK guys i have a couple of questions:

- I still don't understand why those new N5X have different boot.img / vendor.img / radio.img

- Regarding the previous question I also don't understand when I have to flash those files and when not.

I know that if the vendor is not the right one I will receive an alert during the boot. But for the others?

So we won't be able to "flash in mobility" as the previous Nexus devices? Cuz we must flash from PC those 3 files every time we want to change ROM?

:(

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X General] Neuromansa:
Thank you very much ;)
[Nexus 5X General] queerquirks:
This is great, many thanks.

Is this for systemless root only or traditional root too? What if xposed installed in either of the methods?
[Nexus 5X General] reddv1:
This is for traditional root. You'll have to reflash xposed, as the system image is flashed and any modifications will be undone. I'm not familiar with xposed, never used it, so make sure it's compatible with 6.0.1.
[Nexus 5X General] sdny8:
im getting an error in my cmd prompt cannot load **file** all files do this. i read that it was some kind of batch error, but im trying to do 1 at a time

***edit. it rooted succesfully. i then tried to update system to 6.0.1 and everything went to hell

now all i have is download mode
[Nexus 5X General] androcib:
I have used this method successfully and I reflash Xposed V78 as a result and it seems to work well
[Nexus 5X General] bentk:
Hello

Is doing step 1 and 8 (only) will remove the carrier lock?

Thanks
[Nexus 5X General] berndblb:
Uhm - there is no carrier lock on this phone. At least not in the US ... and I think anywhere else...
[Nexus 5X General] sdny8:
Edit --- I'm just an idiot who forgot .img at the end of everything. In my defense my last nexus was the galaxy nexus.
[Nexus 5X General] aditya.kundra:
time issues

Hey everyone i want to know how to fix the time issue, my clock just stops randomly and i have to reboot everytime for the clock to start
[Nexus 5X General] Cheesejam:
I am rooted with an unlocked bootloader on Verizon on MDB08M. I keep getting a notification to update to 6.0.1, I shouldn't do that, right? I should do these steps:

Flash bootloader

Reboot bootloader

Flash radio

Flash vendor

Flash system

Flash modified mmb29k boot image

Reboot into recovery

Flash SuperSU-2.52

Wipe cache and dalvik (optional)

REBOOT

Just double checking, thanks! What would happen if I did accept this update?
[Nexus 5X General] solara1973:
Yes, you should flash manually. If you accepted the update, it would just fail and boot to your recovery I beleive (that's what happened to wife's Nexus 6, rooted, decrypted).
[Nexus 5X General] SlimSnoopOS:
Thanks for your guide and associated links. I just used this to flash stock 6.0.1 via my MBP with ease. Appreciate you putting this together bro.
[Nexus 5X General] juryben:
Is it possible to adb/root over the network so I don't have to buy a USB C to USB A cable?
[Nexus 5X General] solara1973:
The phone has to be in bootloader mode in order for adb to work. I doubt there's any way to enable network/wifi and any software to receive anything over the network while phone is in bootloader mode.

Would be great if you could run an app that reboots the phone into bootloader mode and automatically caches the instructions to push the image file (in storage or OTG drive) to update.
[Nexus 5X General] Nomelas:
Where do I get the bootloader, radio, vendor, system files from? the update zip (~75MB) or the full zip? (~915MB) also, does it mater which version im coming from? as in from either MDB08L or MDB08M
[Nexus 5X General] solara1973:
Download the full zip, and unzip it and you'll find the system.img, vendor.img, etc. files. Flash them individually. The OTA update zip only contains files that have been changed, but you can't just flash those files, and you also can't just update it via sideloading if you are rooted already.
[Nexus 5X General] SlimSnoopOS:
Well, may have spoke too soon? Just want to seek some input. I am bootloader unlocked with the security prompt on each boot. I flashed the 6.0.1 factory image and all flashed fine however I notice my data connects sometimes after boot and doesn't on other boots. The LTE displays in Quick Settings on some boots, doesn't on others. Camera and video, sms and wifi all work. Checked the md5 via Terminal and the file I already flashed had a mismatched md5. Multiple downloads on Safari have md5 mismatches. So, I download via Chrome and each time the md5 for the .tgz does match. I have successfully flashed the proper md5 matched 6.0.1 factory image but I am now seeing this issue persist. At no point have I formatted userdata. Can anyone provide some input on what I should do? Does formatting userdata have an impact on this signal situation?

Edit: I should have written "I think I am seeing the issue persist." I say I think cuz if I leave data enabled and reboot, this seems to be a reason that I don't have data on the next boot. But rebooting with that data off seems fine even after roughly 15-20 reboots, I can connect to mobile data each time. I'll try running it like this for a day and see what occurs.
[Nexus 5X General] gleggie:
So I installed the SDK onto my computer, and adb is working fine. However, for some reason fastboot is not working. When I type fastboot devices, nothing happens. It doesn't even get stuck at "searching for devices." It just shows a blank

C:\SDK\platform-tools>fastboot devices

C:\SDK\platform-tools>fastboot devices

I'm very confused, because I have installed SDK successfully in the past, never had this problem before. Anyone have any ideas?

Edit: my fastboot.exe is in my platform-tools folder, so i'm not sure why fastboot wouldn't work.
[Nexus 5X General] joetheshmo:
Install the adb driver for your nexus 5x while it is in fastboot and connected to your computer. You will find it in device manager
[Nexus 5X General] gleggie:
Thanks for the tip, this is actually for my Nexus 7 (2013). I just went to device manager and updated the drivers, but it said "Windows has determined the driver software for your device is up to date." MTP USB Device.

Edit: I misunderstood, i'm going to try to reinstall the drivers now, with my N7 plugged into my computer, in fastboot
[Nexus 5X General] reddv1:
Did you flash the new radio.img?
[Nexus 5X General] SlimSnoopOS:
Yea, once I verified the md5 for a newer MMB29K factory image download I reflashed the whole image. I might try reflashing that radio by itself in a day or two. Other than boot, it appears to be working fine.
[Nexus 5X General] brennerj:
Looking for a little help. I updated from a rooted with Super user build M to the New 6.0.1k. I downloaded the file straight from google and followed these instructions.

1. Connect phone to pc

2. Boot into bootloader

3. fastboot flash system system.img

4. fastboot flash vendor vendor.img

5. fastboot flash cache cache.img

6. Boot into recovery and wipe cache/davlic

7. flash SuperSu

8. Reboot phone

I am still rooted, did not loose data but my only problem is my camera does not load. It stays on a black screen. How can I fix this?

Thanks In Advance.
[Nexus 5X General] reddv1:
You need to flash the new modified mmb29k boot image to get the camera to work. You can find it in post #265. The kernel was updated so using or staying on an old boot image will cause problems with the new 6.0.1 Update.

You also need to flash the new bootloader image and more importantly the new radio image so you don't have connectivity issues. Both have been updated in 6.0.1.
[Nexus 5X General] brennerj:
Could u tell me the exact steps? I take it there is no way to do this without loosing all of your settings? Can I extract that modified boot image and only flash system cache etc like I did previously? Thanks
[Nexus 5X General] reddv1:
Follow the step in this post #273. You won't lose any setting or data.
[Nexus 5X General] Crazy Chuckster:
What is the proper way to decrypt with the newest version of twrp? Using the fastboot commands or is there a swipe to format function?
[Nexus 5X General] queerquirks:
I realized my encryption is on but I am already rooted with xposed installed. I skipped Step 3. How To Decrypt Your Data Partition (This is no longer necessary as long as you use TWRP 2.8.7.1 or newer) as it states unnecessary to.

1) Can I still decrypt atm at the risk of losing data?

2) If I were to do a twrp backup with 'encryption on', can i restore that backup on a 'encryption off' phone after.

3) Must I be 'encryption off' to flash roms/kernels?
[Nexus 5X General] Rossco_Pee:
Will this work with a 5x on Android 6.0.1?
[Nexus 5X General] SlimSnoopOS:
Are you trying to root MMB29K 6.0.1? Yes it will. For the step that requires you to flash the modified boot (for root), you'll want to flash the file below to have matching kernel I don't believe it has been added to the first post yet.
[Nexus 5X General] Rossco_Pee:
Thank you. I am currently stuck trying to get the proper downloads from SDK Manager. It seems to be stuck fetching the platform-tools and USB driver. Has anyone run into this? Thanks!
[Nexus 5X General] reddv1:
You can use the fastboot command fastboot format userdata or using twrp go to wipe>advanced wipe>select data and internal storage>swipe to wipe. You will lose everything when wiping data.
[Nexus 5X General] reddv1:
You don't need to download the SDK manager and files from there. Just search for fastboot and adb tools for Windows or Linux and download them, they should work right away if you run the commands from the folder they are stored in. I've never used the SDK manager, it's just to big of a hassle.
[Nexus 5X General] parthabhatta:
I am on SuperSU 2.61 beta systemless. After reading ROOTING MARSHMALLOW thread by chainfire it transpires that I can straightaway flash SuperSU beta 2.6.2 on existing 2.6.1 without going for reflashing system.img. Am I correct or I may face bootloops ?

I took the risk and flashed 2.6.2 sucessfully over 2.6.1
[Nexus 5X General] Mesmurized:
[MENTION=4153349]Heisenberg[/MENTION]

I noticed the 6P Unlock/Root thread has recent major additions. If I change the img files to bullhead can I use it as a guide for the 5X? I'm interested in the systemless root method you now recommend for the 6P plus the added info and tips. Thx
[Nexus 5X General] gpvecchi:
Hi everybody! I just switched to 5X, I have my first question: I can't decrypt phone; I did the following (not android noob):

Unlocked bootloader

Flashed latest TWRP

rebooted into recovery from bootloader

I was asked for a password (which I don't have as phone is brand new)

I clicked cancel

I formatted data

Reboot

Device is encrypted....

Any help, please?
[Nexus 5X General] solara1973:
You didn't flash anything to change the boot.img. The stock boot.img has enforced encryption. You either need to flash the modified boot.img for your specific build version (and SuperSu 2.52 if you want root - you don't need to flash SuperSu if you don't want root, but you do need a modified boot.img or kernel to remove forced encryption), or if you want to do the systemless root method, you would flash the latest beta SuperSu (2.62 I believe), and that will then automatically modify the boot.img to remove forced encryption.

You'd still have to format the data partition after flashing/creating a modified boot.img to remove the previous encrypted data either way.
[Nexus 5X General] Rossco_Pee:
OK, I've gotten to the point where flash the boot image in fastboot. I then restart fastboot then attempt to boot into recovery to flash SuperSU. At this point I get an android symbol with an exclamation mark. I have to hard reset in order to get the phone booted again. Any help would be appreciated!
[Nexus 5X General] Heisenberg:
You don't need to use any modified boot.img with systemless root, just flash SuperSU 2.62 and it patches your existing boot.img for you. I'll be adding a systemless root section to this guide soon.
[Nexus 5X General] solara1973:
You need to flash TWRP before attempting to boot into recovery to flash SuperSU. The stock recovery won't allow you to flash SupersU.
[Nexus 5X General] Herotruth:
Setup Wizard has stopped working loop

I tried the ARM version but it has error code 64. Downloaded the 64 bit version and now setup wizard has stopped is looping

Help?
[Nexus 5X General] rockon83:
Hi,

I see in this thread the modified boot image for MMB29K. However when I go to the Factory Images for Nexus Devices website, I see Android 6.0.1 is version MMB29M. What is the difference? I'm assuming I need a modified boot image for MMB29M if that's what I'm flashing, right?

I also see there are 4 versions of 6.0.0 on the Nexus site: MDA89E, MDB08I, MDB08L, and MDB08M. I'm currently running MDB08L on my Nexus 5X. What is the difference between these?

Thanks!
[Nexus 5X General] jdk2:
Look under the "bullhead" section. You're looking at the "angler" section.
[Nexus 5X General] jackdubl:
You decrypt by wiping data in twrp, so that should answer #1.

#3 is no.
[Nexus 5X General] blackrome0:
Just got the OTA.

Now my only concern is do I go ahead and update? I'm rooted, with xposed, Elemental X, LMT etc...

Will i lose root and all of my mods once I go ahead with the update?
[Nexus 5X General] Mesmurized:
From everything I've read, the update will fail because you must be fully stock. But it won't cause any harm.
[Nexus 5X General] gpvecchi:
Many thanks! I missed the kernel part...
[Nexus 5X General] tacofromhell:
You need to flash a kernel or modified boot.img that doesn't enforce encryption
[Nexus 5X General] FussyQBert:
Hey I tried this and after doing this I am unable to boot into recovery. I even followed the steps in the OP to go back to unlocked stock recovery. When attempting to boot into recovery I get an android character laying down with his chest opened up and a red caution sign. The only thing I didn't do was flash SuperSU...

Everything else still works fine.

*EDIT*

got it to work by redownloading twrp and reflashing it lol
[Nexus 5X General] jackdubl:
You're gonna get an update per month, so it's time to make friends with resetting up your phone.
[Nexus 5X General] brennerj:
Quick question guys

I am on the latest 6.0.1. I flashed back to stock then installed the sytemless SU. My understanding is android pay should be working but i get the error that says it cant verify the android. My understanding is android pay works on the systemless SU? I did edit the build.prop file through root explorer to enable tethering. Could this be the cause of my problem as that file is in the system folder?
[Nexus 5X General] Mesmurized:
New files/folders do not show up in Windows Explorer

New files/folders (Movies/Music/Pictures/Videos (appx 15GB)) do not show up in Windows explorer (via USB MTP). Existing files/folders showed correctly. Everything displays ok with iDroid over WiFi or with a local 5X file manager (EPS...) and are viewable with QuickPic and VLC.

Got my 5X set-up properly and decided to copy over my entire Library. Well, it copied correctly and was viewable in explorer and 5X. The next day I rebooted the 5X, connected the cable, toggled MTP file mode and opened explorer. What was copied the day before did not appear. Rebooted both the computer and 5X -- same thing. Rebooted to TWRP & opened file manager. It's all there!! Revoked USB debugging authorizations, rebooted, reconnected, re-authorized. Same problem.

Assuming there might be a permission issue, I deleted all the folders that were copied and checked the available space with windows explorer. Looks right! Recreated the folders and recopied the complete Library. Everything looks good. Rebooted 5X -- still looking good.

This is soooo strange. Afraid tomorrow they'll disappear again. :confused:

Have I yet to set this up properly?

Any suggestions - comments?

Win7, 5X (6.0.1 MMB29K, TWRP installed, not rooted .. yet)

Update: Next morning, everything ok.

Update2: Later in the day, I copied a file to /sdcard using iDroid that was later not seen with Win Explorer (USB/MTP). Deleted it (w/iDroid) and copied over USB. Now it's visible. Hmm, maybe iDroid is the problem. Need/want a good/reliable sshd server.

Update3: Next day. Using Camera, made a short video and 2 pics. They do NOT show in Win Explorer (USB/MTP). Where the h-e-double-hockey-sticks are they and why won't they show up? Still not-rooted. This Nexus 5X/Marshmallow is the pits!

Update4: Over USB, deleted the DCIM folder and took 2 more pics. DCIM was recreated and the pics now appear. Damm, the permission issue is making things really difficult.

As it turns out, this issue should be in the Q&A forum. I didn't know that at the time, thought it was a set-up issue. I'll stop updating this and move over there if problems continue.
[Nexus 5X General] mlurker:
I have 2 lame questions, that are still not clear after reading this thread:

- Is there any way to make android pay work with root?

- I want to turn-off decryption, no need to root (unless android pay works with the root). Do I correctly understand, that formatting data partition DOES NOT remove encryption unless I flash modified boot image?
[Nexus 5X General] Mawth:
From what I have read, the answer is "no."

Correct. You need to flash a modified boot.img to remove encryption. The stock boot.img has forced encryption. Formatting data doesn't change that.
[Nexus 5X General] thor17:
I got a new Nexus 5x today. Upon booting, I recieved an OTA 6.0.1 update, which I allowed to install. I then unlocked the bootloader and installed twrp-2.8.7.2-bullhead. I rebooted the bootloader, booted into recovery and then it asked me if I wanted to allow modifications to the system partition or keep it read only. I said keep it read only and rebooted into the system. I'm now stuck on the circle boot animation. Any suggestions?
[Nexus 5X General] berndblb:
For root with Android pay read the OP and the last 20 pages or so of this thread: http://xdaforums.com/showthread.php?t=2868133

Formatting data does remove encryption but if since the boot.img has forced encryption it will re-encrypt data.

Systemless root (see above link) modifies the stock boot.img on the fly (so to speak) so you do not need flash a modfied boot.img and keep data unencrypted.
[Nexus 5X General] razorj7:
Stuck, please help!

Hello!

I am on bullhead 5x. I have unlocked the bootloader, flashed TWRP, flashed boot.img, and formated data in TWRP. Now when I reboot, I am just stuck in the Nexus boot animation forever. No idea what to do from here.

Help would be super appreciated, as this is my only phone!

Thanks!

-Jesse
[Nexus 5X General] Mesmurized:
Did you use the guide from Post #1, Section 8?
[Nexus 5X General] windplr:
A question on systemless root. From everything I've read so far, using SuperSU 2.62 modifies the stock boot.img removing the need to flash a modified boot.img as a separate step. This brings me to a question about custom recovery. If flashing a recovery without a modified boot.img, and you then boot to system, you will be left in the seemingly forever boot animation as it tries to re-encrypt. Therefore, it seems that one must flash recovery (TWRP), and install SuperSU 2.62 BEFORE booting to system. Does this sound right?

Also, when TWRP is first installed it presents an option to keep the system read-only. Is this correct for going to systemless root?

Cheers and TIA.
[Nexus 5X General] lakyberry:
Let me get this right. I've unlocked bootloader, flashed boot, flashed twrp, flashed custom kernel, flashed supersu and everything is ok running stock 6.0.1.

And now if I want to lock the bootloader do I keep root and kernel? Do I have to flash kernel again, and will my root pressings after future updates on stock rom.
[Nexus 5X General] hopesrequiem:
Somehow I don't think you will keep root. Hell it sounds like that would throw you into a boot loop too but I haven't rooted this phone yet. Waiting for my cable
[Nexus 5X General] queerquirks:
You'll hard brick your phone with a custom recovery and kernel still installed
[Nexus 5X General] lakyberry:
Will my root and kernel setup survive OTA updates on stock rom?
[Nexus 5X General] Mawth:
You will not be able to install the OTA updates unless you have the stock recovery (and I believe also the stock kernel).
[Nexus 5X General] bobby janow:
You gotta do some more reading. Locking or unlocking the bootloader will wipe your device, sdcard and all. Nothing will survive that process. Before you relock your bootloader go to the front of the guide and follow the steps to get your phone to stock. You said you have supersu, custom kernel AND a custom recovery and yet you're running stock. If you don't see the problem with that statement you might not want to do anything right now until you get it figured out.
[Nexus 5X General] Heisenberg:
Updated 2015/12/23!

Updated:

I've edited the guide to include separate sections for systemless root and traditional root. I'll also be adding some extra information for updating and flashing the factory images soon. If I've missed any of the posts by [MENTION=2028612]reddv1[/MENTION] that contain modified boot.img's please let me know and I'll add them to the traditional root section.

EDIT: Extra sections for updating and flashing factory images have been added, plus a section on creating an EFS backup. I've also added an FAQ in the second post.
[Nexus 5X General] qtipbailey:
Guide worked great for me. No troubles at all. TWRP 2.8.7.2, Systemless root (SuperSU 2.6.4), did NOT decrypt.

I only have a question about making nandroid backups. On my first backup I was mildly shocked to be asked for a password since I didn't recall setting one. I just hit cancel and it allowed me in. I just thought maybe the current password was just a blank password or something. Nandroid backups completed with no errors. The backups were dated year 1970 but whatever.

Then I read that the TWRP password is the same as your PIN unlock. Using that it did indeed give me a message that data was decrypted. This time the backup was dated with the proper date and time. Presumably, TWRP reads a date from the data somewhere and without decrypting TWRP has no way to know what the date is.

My question is this: the backups I made without decrypting, are they usable at all? What will be different in the backup made after decrypting vs not decrypting? If the decrypted backup is unencrypted, will restoring it remove data encryption on the device? How was TWRP even able to do a backup when I didn't give it the decryption key?
[Nexus 5X General] Heisenberg:
I don't know whether those backups are ok to use, but I personally wouldn't take the chance work restoring a backup while not knowing if its integrity is ok.
[Nexus 5X General] qtipbailey:
In answer to my own question:

In looking at my previous backups it simply skipped backing up the data partition altogether. Probably I'd have seen a message about it if I'd looked closer at the log. Entering my password it does indeed backup the data as well.