yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] Cheesejam:
Just want to double check before I do this. I am rooted with an unlocked bootloader on MDB08M and I want to go to MHC19J. I installed the latest TWRP (3.0.0.1) and have the latest SU Zip on my internal storage (https://download.chainfire.eu/921/SuperSU/UPDATE-SuperSU-v2.65-20151226141550.zip). Are these the steps I should follow in fastboot?

Flash bootloader

Reboot bootloader

Flash radio

Flash vendor

Flash system

Flash boot image

Reboot into recovery

Flash SuperSU

Wipe cache and dalvik (optional)

REBOOT

This is my main point of confusion: Before, when flashing the boot, I remember I had to flash some modified boot. Is this something that still needs to be done, or not? Thanks! :)
[Nexus 5X General] dmudd:
Complete steps for how to upgrade are in the OP. It's #9 how to update.
[Nexus 5X General] Cheesejam:
Thanks, that was what I followed before. I was just making sure the boot.img didn't have to be a modified one (I think it did have to be in the past).
[Nexus 5X General] queerquirks:
Just to let those wanting to update, following OP #9 along with the latest version of SuperSU v2.68 and xpoded v80 works perfectly.

Previous version upgrades took only about 3-5mins and 1 passcode option before it booted.

This time around on J, I took around 10-15mins to boot into the "Android is upgrading" portion where apps are optimized while having at least 3 reboots while at the Google logo. It rebooted each when I entered the passcode required, almost did a forced shutdown to retry.

Just wait it out. Cheers
[Nexus 5X General] aryayush:
I followed this guide to root my Nexus 5X a few weeks ago and am currently using the stock kernel and ROM. I downloaded the small 86MB OTA ZIP for the ‘MHC19J’ update. Would it work if I simply flashed it using TWRP and then re-flashed the latest version of SuperSU?
[Nexus 5X General] SlimSnoopOS:
If you are still rooted, you need to fastboot stock system, boot, and recovery then install the update.zip in stock recovery. I do not believe TWRP will install OTA zips.

Alternatively, fastboot flash the MHC19J factory image then reroot in TWRP.
[Nexus 5X General] jrny99:
flashed J back to stock on NX5

flawless and many thanks OP for sharing your work.
[Nexus 5X General] jasonbiggs:
"adb version" and "adb devices" works but "fastboot devices" doesn't pull my device serial # in bootloader mode. When installing adb using manager, I unchecked everything except platform tools and google drivers. is this correct? THanks.

**Update: I went into driver manager of pc and had windows update download drivers and it worked. Thanks.
[Nexus 5X General] krakout:
Hello everyone,

Since I want to update my wife's rooted 5x and I'm not up to date with the proceedings of the Nexus world, I find the guide in the OP invaluable!

Just one question - has anyone figured out which image a user should choose for any specific model?

Thanks!
[Nexus 5X General] joetheshmo:
What do you mean specific model? 16 vs 32? They both use the same img
[Nexus 5X General] krakout:
Apologies, I was referring to the question posted here before - MMB29K/MMB29P/MMB29Q/MMB29V/MHC19J?
[Nexus 5X General] joetheshmo:
The newest one is MHC19J. None of them are for a specific model, they are just the monthly security updates.
[Nexus 5X General] krakout:
Oh, so they're chronological; I thought they were meant for different variants of the device... thanks!
[Nexus 5X General] joetheshmo:
No problem :good:
[Nexus 5X General] The1nonly1:
So to clarify, I would just need to follow step 9 of this to update to MHC19J rather than use the OTA file?
[Nexus 5X General] SlimSnoopOS:
Without knowing your setup, yes.
[Nexus 5X General] The1nonly1:
Sorry forgot to mention, I'm stock rom, bootloader unlocked, rooted and running TWRP. I'm guessing root modifies the system partition?
[Nexus 5X General] SlimSnoopOS:
Depends, but yes in general. OTA zip would fail due to root and TWRP. Flashing stock system will remove root.

Do not flash recovery or userdata in fastboot unless you want to. Afterwards, make sure to flash root again in TWRP.
[Nexus 5X General] The1nonly1:
Thanks, I'll just follow all the guide excluding the recovery. If I have to, I'll reflash TWRP any way.
[Nexus 5X General] KostisTTT:
Problem installing TWRP with MHC19J

Hi, guys.

Today I tried to install the new OTA (MHC19J) from MMB29Q

I think that I did everything as explained in the Heisenberg's Guide (ch. 9).

I flashed system, boot, cache, and vendor.

Then, I rebooted and I tried (several times) to flash TWRP 3.0.0-0 or 3.0.0-1 but with no success (Heisenberg's ch.2)

Am I doing sth wrong???

Thanks in advance...
[Nexus 5X General] aryayush:
I ended up following the second method, as described in the first post itself. Thanks for your help.
[Nexus 5X General] SlimSnoopOS:
What happens when you flash TWRP? When you flash TWRP, are you then booting into the system or booting right into TWRP?
[Nexus 5X General] KostisTTT:
Thanks , SlimSnoop.

The usual mistake, I was booting in the system NOT TWRP... (Many hours lost)...

Thanks again...
[Nexus 5X General] SlimSnoopOS:
You are welcome!
[Nexus 5X General] voyagerfan99:
Do you still need to flash the modified boot.img file when upgrading? I've been using it the last few flashes but it seems I missed the MMB29V update and make sure the procedure is still the same.
[Nexus 5X General] SlimSnoopOS:
Yes, if you want traditional system root on stock rom.

If not, just flash SuperSU after fastboot flashing new OTAs. SuperSU will install as systemless. Go straight to MHC19J, that is our March security and performance update. MMB29V is not needed.
[Nexus 5X General] gvsukids:
lost my internal storage after installing twrp and rebooting into trwp 3.0. can't backup or install anything. help! I can get into fastboot.
[Nexus 5X General] netinetinet:
flash new Twrp 3.0.0.1

https://dl.twrp.me/bullhead/
[Nexus 5X General] gvsukids:
same result. should I try to push a ROM over? Well, that didn't work. So I'll try to restore stock ROM via bat files from Google.
[Nexus 5X General] Nomelas:
If I want busybox and xposed do I need to go the traditional route? with the modified kernel/boot?

or can I just flash superSU version 2.68 and go like normal?
[Nexus 5X General] joaoresende:
Hey,

Do i lose OTA if i unlock bootloader and install Twrp recovery? I want to flash the surround mod do i lose OTA?
[Nexus 5X General] joetheshmo:
If you have a custom recovery then yes you well lose ota. Fastboot flashing updates is very quick and you don't need to wait for ota
[Nexus 5X General] joaoresende:
And about google warranty do i lose it?, i had a s4 and i lost my warranty doing that xD flashing, activating the knox.
[Nexus 5X General] joetheshmo:
No flashing does not void your warranty. It almost seems encouraged with nexus devices. Just dont open the phone up and you're good.
[Nexus 5X General] joaoresende:
hehe, many thanks. =)
[Nexus 5X General] ScottBGKY:
I've searched and had no luck. No matter what I do after I boot into the system the first time and then back into TWRP it asks for a password to decrypt. I don't have any passwords set. Getting frustrated. Nothing works.

---------- Post added at 09:33 PM ---------- Previous post was at 09:27 PM ----------

TWRP 3.0.0.1 fixed the issue. Seems the March update was causing the problem. Thanks.
[Nexus 5X General] marsaltito:
I was thinking same ,wth , just uswd my device password work fine with TWRP !!??

. btw i use pattern .
[Nexus 5X General] gvsukids:
Finally rooted by using http://xdaforums.com/showthread.php?t=3258492

[Toolkit] Wug's Nexus Root Toolkit v2.1.4 [Updated 01/16/16]: Nexus 5X Thread
[Nexus 5X General] Harthouse:
stucked at twrp logo?!?

Hi, there! Is anybody faced this kind of problem? This is what I did:

"C:\SDK\platform-tools>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (16345 KB)...

OKAY [ 0.547s]

writing 'recovery'...

OKAY [ 0.144s]

finished. total time: 0.707s"

After that, can't boot into recovery, I'm getting twrp 3.0.0-1 logo and can't enter into it.

Someone can help me, thx!

I don't know if this can help you, I am on N preview at the moment...

- update:

Returned to mhc19j and solved my problem... Uhhh... :)
[Nexus 5X General] ch.ch1:
Trying to update Stock as shown in Part 9, but ADB only sees my device when in recovery, and not in bootloader mode, (could be because my phone in encrypted?). Can I run the fastboot commonds while the phone is in recovery mode?

ETA: I needed to do fastboot, but no help either, keep on getting the msg waiting for any devices, and when updating the driver in device manger I get an error no drivers found
[Nexus 5X General] ch.ch1:
This did the trick: https://edwardsamuel.wordpress.com/2014/06/20/fixing-adb-device-not-found-with-nexus-5-devices-in-recovery-mode/
[Nexus 5X General] tlxxxsracer:
I'm new to the 5x.. I used this tool to unlock and root/install term. I have chroma installed but android pay isn't working. How can I go about getting systemless root? Do I need to relock bootloader and wipe my phone? Or can I just flash systemlessSU zip?

I im on MHC19J

Any help would be appreciated
[Nexus 5X General] churchey360:
Should be able to just flash it.. I don't think you can flash anything with a locked bootloader but idk i never used systemless root lol
[Nexus 5X General] berndblb:
Android Pay does not work with a custom ROM.

Android Pay does not work on a rooted device.

Both for a very good reason.

I have given up on it so I am not up to date on the latest but since last year each security update made it harder and then afaik impossible to use AP if you modded your device in any shape or form.

You decide: Either AP or root/custom rom.

You may want to check out this thread: http://xdaforums.com/nexus-5x/general/passing-safetynet-root-t3307659/page35
[Nexus 5X General] Wout2426:
Usef your guide to unlock and flash twrp, worked like a charm, thx !
[Nexus 5X General] Hotconductor:
I have returned to XDA after several years out of the scene. I feel very rusty since flashing roms for my S3 and S5. That being said, I love my Nexus but hate the battery life. I'd like to give the governor settings a shot and this requires root. I have no interest right now in custom Roms etc but I do want to give the advanced governor settings a shot. Considering the March update, what is the best method for achieving root? I heard mixed things about King/Towel and neither seem to support the March update.

Thank you in advance for your help. Feels good to be back. I am catching up on the stickied 5X threads..
[Nexus 5X General] SlimSnoopOS:
Just follow the steps in the OP. Flash TWRP via fastboot then flash the latest stable SuperSU in TWRP.
[Nexus 5X General] Hotconductor:
Thank you. Makes sense. I hate asking stupid questions but I'd rather ask an obvious one and get brought up to speed. I am still amazed that Google/LG can't/wont implement many of the solutions provided in various custom Roms, especially related to battery life on the 5X.
[Nexus 5X General] tedrogers61:
I will do this tomorrow. I have a new unrooted N5X and all I've done is unlocked the bootloader. Since then I've learned that the screen is unresponsive on charging, so I'm trying to return it, and need false for tamper flag, if indeed it even knows it's been tampered with.

Your findings are strange indeed!

BTW, does your N5X have unresponsive screen on charge with LG 3amp OEM charger supplied? Mine does, but if I use a 2amp Micro-B charger with usb-c adapter, it works fine. No unresponsive screen!

Thanks.
[Nexus 5X General] Darke5tShad0w:
The supplied LG chargers have this problem.

Nexus devices are designed to be modified/ unlocked, it should have no bearing on your warranty. There are also guides to return to stock if you are worried.
[Nexus 5X General] tedrogers61:
I bought the N5X (used good condition) from Amazon for anyway, so I will be good to return it if needed or they can give me a refund or new charger or something.

Thanks for confirming it's the charger that is as fault, and that there are return to stock guides. Nexus Root Toolkit seems to offer this up, although just running fastboot oem lock isn't that hard really is it!! [emoji106]

Okay, so I'v checked by N5X, and I have found the following:

fastboot oem device-info result after fastboot oem unlock command:

(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) off-mode-charge: true
(bootloader) Display panel:
OKAY [ 0.047s]
finished. total time: 0.047s

fastboot oem device-info result after fastboot oem lock command:

(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) off-mode-charge: true
(bootloader) Display panel:
OKAY [ 0.047s]
finished. total time: 0.047s

Interesting to note that my tamper flag is clear, even though bootloader was unlocked.

Will update this later when the device has updated after the wipe. This happened when the device bootloader was locked again (totally unlike the N5), so not only does a bootloader unlock wipe the device, but a bootloader lock also wipes the device!!!

---------- Post added at 08:02 AM ---------- Previous post was at 07:13 AM ----------

I'd thank you, but I'v used up my thanks for today (!!). So, a cheery "thanks mate" will have to suffice. You really helped me out. Ta! :cowboy: :cowboy: :highfive: :highfive: :good:​
[Nexus 5X General] roofrider:
Can someone enlighten me as to how wiping data from TWRP before fastboot flashing the stock images (N in my case) prevents internal storage from being wiped? Am i missing something?
[Nexus 5X General] AtField:
Chargers made by Sunlin have a faulty pin connection that creates problem with the touchscreen. Theoritically Google fixed this with MHC19J build, but i'd raccomend you to swap your charger for a new one anyway (i swapped my Sunlin charger for a PNtelecom charger trough a RMA and that fixed everything).
[Nexus 5X General] Darke5tShad0w:
Like I said yesterday the bootloader is designed by google to be unlocked, which is my it takes one easy fastboot command so it will not set the tamper value. Unless you proberly do something like editing the bootloader or flashing another one etc.
[Nexus 5X General] tedrogers61:
Thanks for clarifying this issue!

I bought from Amazon, so they're sending me an Anker charging hub that happens to have a 3A usb-C on it for N5X rapid charging...it's all they have in stock that is any good. Not a bad replacement for a cheap Sunlin wall-wart!

---------- Post added at 10:26 PM ---------- Previous post was at 10:24 PM ----------

Yes, I relocked today and tamper was all okay. I expected a wipe on unlock, but I didn't expect a wipe on lock too! I'm sure the good ol' N5 didn't do that, one time wipe on unlock only.
[Nexus 5X General] krakout:
Can you give a link to it? :)
[Nexus 5X General] tedrogers61:
Anker PowerPort 5 USB-C (40W 5-Port USB/USB-C Wall Charger) with USB-C for Nexus 5X/6P and USB for iPhone, iPad and Android Devices http://www.amazon.co.uk/dp/B0196IMNTC/ref=cm_sw_r_other_udp_apa_ES2exbQE9KAFB

Not sure if you're in the UK or not, but there you go.
[Nexus 5X General] krakout:
Ah, that's sweet! And not a bad price for a brand product! Thanks :)
[Nexus 5X General] tedrogers61:
Yep, time to get rid of all my chargers.
[Nexus 5X General] SlimSnoopOS:
How did you learn about this?
[Nexus 5X General] AtField:
https://productforums.google.com/forum/m/#!msg/nexus/-rSxrBUMKr0/ao-N4Y6nAgAJ

and

https://www.reddit.com/r/nexus5x/comments/3tfrxa/5x_touchscreen_cannot_handle_its_own_3a_chargers/

I know that those two topics are long, but i've followed them from the start and someone found out that there was an improper grounding in the sunlin made charger.
[Nexus 5X General] SlimSnoopOS:
No worries, I don't mind reading a little bit that's why I'm on XDA haha I'll check out these links! I have noticed the same issue although I've owned my 5X since November so there may not be much help for me by Google
[Nexus 5X General] tedrogers61:
It's really bad isn't it...shody Quality Control...mine is totally unusable on charge. Fine on a different charger.
[Nexus 5X General] sebowow:
Thank you so much for creating this. I'm wanting to use this with a Mac, I know ./adb needs to be used instead of just adb, and obviously the file directory will be different; but are there any other concerns I should have when using it on a Mac?

Mod Edit: OP Quote removed
[Nexus 5X General] PiousInquisitor:
Have you already installed ADB? Looks like there are a few methods outlined HERE. If you use either of those you wont have to use ./ and will be able to run ADB from any directory.

Also, please dont quote the OP. :good: If you want to get his attention use the @ symbol in front of his username. Like this: [MENTION=7276968]sebowow[/MENTION]. Thanks!
[Nexus 5X General] Netrum:
Opps wrong thread..

Excellent guide. Easy to follow ^^
[Nexus 5X General] dexterilgatto:
Hello everyone, this is my first post as well as the Nexus5X is my first ever Android device. I bought two weeks ago and I still have to root because I have many doubts and I am totally inexperienced. I intend to follow this guide, comparing it with other tutorials/guides, I realized that this does not use the Modified boot images? Why not? If I have to use it, where I find the right one for my device MHC19Q on 6.0.1?

I apologize if the questions seem trivial and I hope you understand what I try to tell you, I don't know english.

Thanks in advance.
[Nexus 5X General] DJBhardwaj:
Hello dexterilgatto,

First of all, we all welcome you to the community.

Modified boot image (kernel) files are used in order to disable forced-encryption. So that you can finally decrypt your Nexus 5X. OP might have forgotten to add that, but the section #3 indeed helps you to decrypt.

You can download the MHC19Q modified boot from here: https://drive.google.com/file/d/0B4yuQy7Zn1WSclZ6dGhCNXNUUEk/view?usp=drivesdk

It is the generous work of [MENTION=5317224]Tigerstown[/MENTION]

This is his thread: http://xdaforums.com/nexus-5x/general/4-17-16-t3360574

I will request him to link the MM boot there too.
[Nexus 5X General] dexterilgatto:
Thank you so much for your help and for all the info, you are very kind.
[Nexus 5X General] sfhub:
On the latest versions of SuperSU, installing root on the 5x detects it should use systemless install so it backs up your existing boot image to /data and modifies your boot image on the fly to disable dm-verity, disable forceencryption and do some SELinux changes.

Basically you don't need to locate and install the proper modified boot image matching your release because installing root does the modifications for you, to your own installed boot image.
[Nexus 5X General] Tigerstown:
It only does the modification for systemless root if you want system root you need a modified boot.img just to be clear.
[Nexus 5X General] sfhub:
Also just to be clear the SuperSU detection on 5x defaults to systemless root. You need to do some extra config to force root to install on system (instead of systemless). So if you follow the guide in first post (the context of the question that was answered) you will have a modified boot image without explicitly installing one yourself.
[Nexus 5X General] roofrider:
I've been having this issue too. And just like that, my charger stopped working a couple of days back. Need to find a good replacement now.
[Nexus 5X General] dexterilgatto:
Ok, then I don't need a modified boot image, just follow the guide until step 6.

Thank you:good:
[Nexus 5X General] Tigerstown:
It only defaults to systemless root if it don't detect the proper things in your boot to install system root. If you have your setup correct it will detect system root. I have boot.imgs up for both new Nexus devices. Still working on custom sepolicy for system root on 5x like I have on 6P. I'm hoping to post a modified boot w/sepolicy sometime this weekend. Just sucks always waiting on someone to test for me on 5X.

---------- Post added at 05:28 PM ---------- Previous post was at 05:27 PM ----------

If your OK with dumb systemless root then sure you don't need on.
[Nexus 5X General] tedrogers61:
Anker Powerport....works like a charm. Getting rid of all my wall warts now I have this.
[Nexus 5X General] dexterilgatto:
Now I'm even more confused, I apologize to everyone, I did not think it was so difficult and complicated. I'm not a developer, I come from the jailbreak and I'm just a themes creator, I wanted to figure out how to make a theme for Android but I have trouble understanding anything. I'm afraid of brik/softbrik/bootloop the phone and would not know what to do. I will continue to read guides and watching tutorials hoping to better understand.
[Nexus 5X General] Tigerstown:
Not trying to confuse anyone. Just install SuperSU and let it modified your boot.img to run systemless root. ????
[Nexus 5X General] dexterilgatto:
I did not want to sound ungrateful, I thank you so much for the help, I'll try to do as you say.
[Nexus 5X General] Tigerstown:
You don't at all it's all good. Disregard those ? Marks in my post. No clue how the got there lol. I just seen that when you replied. Feel free to PM me if you need any help I'm always willing to help new comers
[Nexus 5X General] dexterilgatto:
I will do, I hope I do not need it.

Thank you, I really appreciate.
[Nexus 5X General] KTroopA:
Thank you very much for this guide, I am about to try it because I want to do a proper 1:1 backup of my Nexus 5x easily using TWRP. Before I begin can I just confirm that i do not need to turn off decryption or anything like that? I know i need to unlock the bootloader and then flash TWRP. From there im just not sure if i actually want to root it also. Is there any real benefit? I dont really install custom roms or mess with stuff, but if I do root has it been proved to be 100% ok? Im considering using the NRT but can handle command line stuff easy so what ever is easier :)
[Nexus 5X General] Paragon_X:
Hi guys,

I did step 9 to update to the latest build (april). I only skipped the recovery part and now I can't open my camera, anyone know why?
[Nexus 5X General] SlimSnoopOS:
Usually that's a sign that the boot.img isn't matching. Reflash boot.img then wipe both cache options in TWRP and you should be set
[Nexus 5X General] negzeropos:
Hi, I made a mistake due to my curiosity and just tinkering in which I opened *#*#4636#*#* (*#*#INFO#*#*) and changed to "USA Band" under "set GSM/UMTS band". Now my SIM cannot connect to LTE nor send/receive calls but can send/receive SMS. Changing to 3G and 2G gives me a no service.

I've also seen quite a number of posts around the internet regarding this but I felt that asking here first was the better option before opting to use the solutions they applied since they date back 2 or 3 months ago.

So I'm currently using MHC19Q and on the latest April (build?) security update.

If I follow the instructions on the first page "Step #10 How To Flash The Factory Images (Return To Stock)" using the same version (MHC19Q), would it reset the baseband to the non-USA Band? Or would I need to use a custom ROM that allows the band to be set?

I know this has been a mistake by me but I was hoping there can be something done with this.

Edit: I just bit the bullet and followed post 25 and 31 of this thread: http://xdaforums.com/nexus-5x/help/baseband-error-china-t3238867 and seems to have worked. Now on stock and locked with LTE / 3G / 2G and can now receive calls.
[Nexus 5X General] spiritflare01:
re: root nexus 5x

This procedure doesn't work anymore - i tried it (my Nexus was 6.0.1 april security patch) and after installing TWRP you get error message: "Your device software can't be checked for corruption - please relock the bootloader". TWRP does install, but that's it.
[Nexus 5X General] joetheshmo:
That message has always been there when you have an unlocked bootloader.
[Nexus 5X General] spiritflare01:
re: error: Your device software can't be checked for corruption"

thnx.

- in that case is there a way to remove that bootloader unlocked warning?

Also seeing an error after installing CM13 "there is an internal problem with your device" which then disappears.