yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] spiritflare01:
re: error: Your device software can't be checked for corruption"

Thanks - both your suggestions worked.

in retrospect, how would i know the right vendor build image - the only way i was able to tell it was MMB29V was when installing the CM13 zip - it spits it out. On Google's factory image site, they list the build# but no way to know which goes with your device. (i.e. nexus 5x 16GB)

Am i going to have to flash vendor.img monthly with CM13 now? (as each new security patch comes out)
[Nexus 5X General] ulxerker:
[MENTION=4153349]Heisenberg[/MENTION]: thanks for this awesome thread! :)
[Nexus 5X General] georgiapi:
I downloaded and extracted the May 1, 2016 image and plucked out the vendor.img and flashed it. Rebooted and get the vendor out of date message. Where did I go wrong.

Thanks
[Nexus 5X General] ulxerker:
no problems here ... did you also flash the new versions of system.img, boot.img, radio-xxx.img, etc.?
[Nexus 5X General] georgiapi:
No. I messed up. I'm on omni rom and he isn't ready.
[Nexus 5X General] Darke5tShad0w:
Only update the vendor image with the updated/matched rom.

Your rom developer should tell you when and what vendor to use.

Alternatively you will get that same vendor error if you update your rom and still on an old vendor.
[Nexus 5X General] racoonlab:
Hi,

Does the latest OTA includes all the fixes from the previous OTAs? I have noticed that on a new not-rooted mobile, it does not install the latest OTA directly, but it goes to the ones in between first, so I was wondering if I should do the same on my rooted phone (as I installed the latest and not the one in-betweens)

Cheers,

r
[Nexus 5X General] ulxerker:
it works if you just flash the newest binaries/images and you should be good.
[Nexus 5X General] racoonlab:
Hi,

Thanks,

I flashed it using Flashfire and keeping boot, recovery, system, vendor and cache checked.

r
[Nexus 5X General] sfhub:
Whether all previous fixes are included in the current OTA just depends on what they decided to package (for example there might have been an earlier fix that broke things for some people that they decided to remove)

To answer the question I think you are asking, on this phone, you will have exactly the same image after applying an OTA as you would flashing the full factory image, down to the bit level, because of how dm-verity integrity verification works all images, whether factory or OTA will end up being the same or it will fail verification.

The reason the OTAs specify an intermediate OS as the base is because to save bandwidth, they only ship the "differences" between the previous "base" OS and the one you are flashing to. As you can imagine, much of the OS probably stays the same for minor bug fixes, so no sense resending 2GB of data when 100-200MB would do. They will create different diffs to reach the final end point, and depending on which version you are currently at, you'll receive the appropriate OTA.

If they don't have time to create multiple differential OTAs, they may just force you to do multiple incremental OTA upgrades to get to each "base", at which point you can apply the next OTA.
[Nexus 5X General] ulxerker:
in addition to factory images it is now possible to download OTA images as well: https://developers.google.com/android/nexus/ota#instructions

the names and structures of files differ from the factory images. so how does it work if we don't want to adb sideload? just flash the zip in recovery and its done? that would be great ...
[Nexus 5X General] Gabriel1495:
Why don't adb sideload?

Is there something wrong with it?
[Nexus 5X General] SlimSnoopOS:
This is exactly how one would flash it!
[Nexus 5X General] Gabriel1495:
I have followed the instruction in the link of Google Developers OTA.

First of all the OTA normally is about 20 or 30 MB, but from the site I downloaded more than 900 MB (the whole system image?).

Than it reinstalled Google app such, that I had disinstalled, and the normal OTA doesn't work in this way.

So is this a really OTA, or just an updated System Image?
[Nexus 5X General] mojoe_24:
So I picked up a 5x today. I'm coming from a LG G2 which I ran CM13 on. I really like Adaway and Viper4Android. Both require root though. Is there a negative to rooting?
[Nexus 5X General] ulxerker:
nope, just unlock bootloader and flash TWRP + SU right away. N5X is perfect to root as it is greatly supported by devs and Google.
[Nexus 5X General] mxrider97:
How do I come back to stock kernel? Can I just flash boot.img using fastboot and that's all? Does it wipe my data or something?

[MENTION=309187]edit[/MENTION]

Ok, I've just flashed boot.img and everything's fine.
[Nexus 5X General] mojoe_24:
Would you recommend following a guide or using a all in one tool such as the one from wugfresh?
[Nexus 5X General] ulxerker:
I recommend to follow this great guide here, see OP. its very easy and you're done in a few minutes.
[Nexus 5X General] mojoe_24:
So I followed the guide and got it rooted/installed a rom (Pure Nexus). Though, I thought Android Pay would still work with a systemless root. Is this not systemless or does it have to be a stock rom?
[Nexus 5X General] ulxerker:
As I don't use Android Pay I cannot help out here. As far as I know its not working on rooted devices due to security reasons. But, as always, there might be a trick out there.

So either google it or wait until someone else responds to this.
[Nexus 5X General] Gabriel1495:
Some time ago I made this screenshot, but I have never tested it (I don't use Android Pay)
[Nexus 5X General] NexusMel:
Encryption

Hey everyone. Sorry if I missed this somewhere. I did look for it. If I do everything that the OP said to root my 5x, will this also decrypt the phone? My Samsung gear s2 smart watch won't work with the 5x due to this encryption.
[Nexus 5X General] SlimSnoopOS:
After flashing root in TWRP, you will need to wipe internal storage. Flashing SuperSU patches the boot.img and this will prevent the phone from encrypting on boot. Wiping internal storage will remove encryption. When you next boot up, Settings/Security/Encryption will display "Encrypt Phone" which means you are decrypted.
[Nexus 5X General] NexusMel:
Thank you very much SlimSnoop. I saw where OP talked about decryption. Just didnt fully understand and wanted to make certain here.
[Nexus 5X General] mojoe_24:
So i m supposed to type that in a terminal app?
[Nexus 5X General] Gabriel1495:
I think so, or maybe from Pc through adb. Sorry, but I have not yet tried, because I don't know if Android Pay works for me. How can I check?
[Nexus 5X General] NexusMel:
TWRP

After typing in the command for twrp and then running recovery, it sits on the little android logo with a red exclamation point and then boots after a while. It never says anything about choosing read-only or not. Did I do something wrong?
[Nexus 5X General] SlimSnoopOS:
That is the stock recovery. Doesn't sound like you flashed TWRP successfully. Could you try running "fastboot flash recovery" once again? Post a screenshot if it fails again.
[Nexus 5X General] NexusMel:
C:\SDK\android-sdk-windows\platform-tools>fastboot flash recovery twrp-3.0.1-0-bullhead.img.md5

target reported max download size of 536870912 bytes

sending 'recovery' (0 KB)...

OKAY [ 0.086s]

writing 'recovery'...

FAILED (remote: image is not a boot image)

finished. total time: 0.099s

What am I doing wrong here?

---------- Post added at 01:46 AM ---------- Previous post was at 01:40 AM ----------

Am I supposed to be in the bootloader when doing this?
[Nexus 5X General] joetheshmo:
Yes you need to be in bootloader. It looks like you are trying to flash an md5 and not the .img
[Nexus 5X General] NexusMel:
I must be missing something. I put the TWRP file in the fastboot.exe folder like it tells me but it shows an md5 at the end of the file name.
[Nexus 5X General] joetheshmo:
Try redownloading twrp. It should be a .img file extension and be bigger than 0 KB

By the way newest twrp is 3.0.2

https://dl.twrp.me/bullhead/twrp-3.0.2-0-bullhead.img.html
[Nexus 5X General] NexusMel:
Okay I think I got. I was clicking a link that I thought was downloading TWRP but somehow I was downloading the md5 and not the img. Sorry guys. Noob here obviously.
[Nexus 5X General] joetheshmo:
No worries, glad to help :good:
[Nexus 5X General] NexusMel:
One more question. I'm now rooted but encryption seems to still be in place. I thought it's supposed to be removed with the latest version of TWRP. Does anyone know what I can do here? Thanks all.
[Nexus 5X General] alfick3:
TWRP doesn't remove the encryption; you have to use TWRP to wipe a certain partition. The guide will tell you. I think it is data, but don't remember. I personally haven't decrypted my phone.
[Nexus 5X General] joetheshmo:
You will also need a kernel that does not force encryption on boot. I believe flashing SuperSU patches the kernel to disable encryption but I've been on custom kernels for too long too remember. A good choice for a kernel that's very close to stock with nice features would be elementalx
[Nexus 5X General] mojoe_24:
Any benefits to decrpyting? I haven't done that yet.
[Nexus 5X General] Gabriel1495:
Some have normally lag with encryption and take it out to having a lag free device.

I have never had such lag, so I don't decrypt.
[Nexus 5X General] khanjui:
Faster device.
[Nexus 5X General] Rianta:
there appears a warning about the corruption they can't check

I don't want a nexus 5x with a message warning about corruption they can't check

Nobody wants that

I come here already a long time but some times there are here fakers, scammers to destroy your smartphone

Develop a good ROOT method or f....... off
[Nexus 5X General] The1nonly1:
Lol what are you talking about. Everything here is legit. If you don't want a message to appear then don't unlock the bootloader or root your device.
[Nexus 5X General] alfick3:
[MENTION=4694690]The1nonly1[/MENTION] is correct. The rooting method is legit. That warning has nothing to do with rooting. That warning occurs because you have unlocked your bootloader. If you don't want to see it, re-lock the bootloader. Or go on over to the Themes and Apps sub forum and find this thread: http://xdaforums.com/nexus-5x/themes-apps/bootloader-theme-material-bootloader-t3298420
[Nexus 5X General] tylerdurden83:
Simply flashing latest TWRP on an encrypted device as the op says won't work on N DP3, right?
[Nexus 5X General] PiousInquisitor:
Does potato rhyme with tomato? Yep. :D

---------- Post added at 10:21 AM ---------- Previous post was at 10:17 AM ----------

Develop an understanding of what root/bootloader is before commenting or f...... off.
[Nexus 5X General] tylerdurden83:
Not sure that I follow, but thanks anyway!
[Nexus 5X General] PiousInquisitor:
It was a joke. Yes, tomato rhymes with potato. Yes, TWRP currently doesn't work one DP3 if your phone is encrypted.
[Nexus 5X General] tylerdurden83:
Thanks for the info mate. If I may steal one more question from you, how should the phone get update when another dev preview hits, considering that it's been unencrypted and flashed a modified boot image?
[Nexus 5X General] PiousInquisitor:
You would download the new factory images for the preview then flash the bootloader, radio (if they changed), system and vendor images. The instructions for flashing are in this thread.
[Nexus 5X General] tylerdurden83:
Excellent, I was just not sure about the encryption / decryption, say if I had to re encrypt before flashing those. Thanks a lot again!
[Nexus 5X General] PiousInquisitor:
If you plan on keeping twrp and root you do not want to re-encrypt. Also, dont flash the stock kernel (boot.img, the one with all the other factory images) it will force re-encrypt your phone.
[Nexus 5X General] Rianta:
thanks when I relock the bootloader the message has gone.

I already root smartphones for 5 years from samsung to Nexus , I was surprised thought that Google supported rooting

I understand, I will relock again

Thanks guys, you are awesome

Wim
[Nexus 5X General] ulxerker:
if someone supports rooting and unlocking bootloader, then its Google ... you even don't lose your warranty :)
[Nexus 5X General] NOSTALGIA:
wait.. i think i missed this. so if device is encrypted, you cant do nandroid backups??

just new to nexus..
[Nexus 5X General] Heisenberg:
That's right, because TWRP is unable to decrypt the data partition, this means it's unable to read from it or write to it.
[Nexus 5X General] NOSTALGIA:
what the.... i just knew this....
[Nexus 5X General] rekd0514:
Is it possible to get rid of the unlocked warning message?
[Nexus 5X General] Heisenberg:
Not at this stage.
[Nexus 5X General] rekd0514:
That sucks since it's pretty ugly. I don't know why they couldn't just keep the old simple lock symbol.
[Nexus 5X General] TJSteveMX:
This tutorial just saved my life so thanks for this.
[Nexus 5X General] xneuromancer:
Hi Heisenburg,

Thanks for the tutorial, it helped a lot. One small point you may want to clarify, that I got stuck on. Before formatting data to remove encryption, you say to go into TWRP and make a nandroid backup. However, when I tried this, TWRP kept failing because it didn't have write access and had errors about "couldn't mount". Even after ensuring /system was mounted (via TWRP), it still failed. Only after doing the next step, of formatting data, then going back, and doing the nandroid, did it work.
[Nexus 5X General] anuraj123:
Is there anything I can to get the new update with root without loosing any app data? If so how would I go about it?
[Nexus 5X General] kbbeer:
I had the same question, to rephrase. If we root and unlock using these instructions with MDB08I, what needs to be done to get MDB08L or MDB08M. Does sideloading still work after rooting/unlocking?
[Nexus 5X General] magefa:
Com.Google.Process.Gapps Has Stopped

Hi,

thanks for the great tutorial!

i followed step by step.

after finishing all, when the device boots up

i keep getting "Unfortunately The Process Com.Google.Process.Gapps Has Stopped" without doing anything.

just popping up as soon as the system boots, i tried to wipe cache / dalvik etc...

moreover , how can i install the OTA updates now that my phone is altered?

help will be highly appreciated!

Thanks!!
[Nexus 5X General] rekd0514:
You can't get the update without flashing the factory images again with the no wipe option. This will preserve all of your data and app settings. You then need to root again and you probably need to wait for another modified boot image.
[Nexus 5X General] kbbeer:
I sideloaded the OTA to go from build e to the i build that we have the modified boot image for. Is that sufficient to follow the instructions as is or do I need to flash the entire i build?
[Nexus 5X General] vypinoy:
Im also getting the "Unfortunately The Process Com.Google.Process.Gapps Has Stopped" without doing anything.

Did everything and at the first welcome screen it pops up every second i press the ok button
[Nexus 5X General] aleckloss:
Quick tip as well as question

Mac users who want to run the quick install of adb/fastboot need to boot to recovery and run a command in the recovery terminal:

csrutil disable

This allows for the /bin folder to be edited aka rootless mode. I believe this is a new El Capitan security feature.

My question is that when I try to run the fastboot flash command it can never find the filetype. How can I point fastboot to my desktop/android folder where boot.img and twrp-bullhead.img reside?

the error im getting is:

error: cannot determine image filename

SOLVED I was not OEM unlocked.
[Nexus 5X General] netpc02:
Bootloader unlock command has changed in latest fastboot.exe - fastboot flashing unlock (not fastboot oem unlock)
[Nexus 5X General] d.kozzer:
Can you just mount /system in twrp and push the SuperSU zip to there and then install, thus skipping /data altogether? For that matter, can you just boot into twrp from fastboot without having to flash the modified boot.img (because you're not writing to the recovery partition, just booting from the twrp image)?

e: the purpose of the above would be to maintain encryption while gaining root access
[Nexus 5X General] Heisenberg:
You can mount /system and push superuser there to flash. Even if your only booting TWRP you still need the modified boot.img for root.
[Nexus 5X General] d.kozzer:
Ah, ok. Thanks for the super quick reply! Android Police had a thing today saying that twrp will support encryption on the 5X "soon", so perhaps it will be a moot point before long.
[Nexus 5X General] Heisenberg:
It's only a matter of time. Dees will be receiving his 5X soon and I'm sure the decryption issues will be fixed soon after that.
[Nexus 5X General] alfick3:
And besides, how often do you actually shut your phone off? So it's not really an in your face thing all the time.

If you re-lock the boot loader you can't put on a custom ROM or flash a custom recovery.

I really think this warning is because of pressure from people for a secure OS. If you unlock it Google can't guarantee that's it's secure any more.

It was mentored earlier about the thread that has a way to flash a different screen so you don't see that warning; have you looked at that?
[Nexus 5X General] sfhub:
The warning is part of Google's specification for Trusted Execution Environment.

Google is following their android specification for verified boot to the T including the color of the messages:

https://source.android.com/security/verifiedboot/verified-boot.html

Whether they implemented TEE due to outside pressure or on their own, I don't know, but once they decided to do TEE, they had to have some clear way to communicate the chain of trust to the end-user.
[Nexus 5X General] yuliya38:
Stuck on booting animation

Hello. I was following the guide from makeuseof, though it seems pretty similar to this one. I unlocked bootloader and then flashed twrp recovery. When I try to restart the phone it just gets stuck on the four circles animation. I tried flashing an older version of twrp and going back to the newest one and nothing works. I also get the decryption password issue when I boot into recovery. Suggestions?

Update: I was able to solve my problem by using Nexus Root Toolkit to first Flash Stock and then Root with Custom Recovery. (Root without custom recovery didn't work for me. I also formatted userdata to get around the decryption password thing, but I am not sure that was necessary.)
[Nexus 5X General] Drakax:
Hi all!

Is it possible to unlock the bootloader without pc?

I've just received my Nexus 5x but didn't get any usb-c -> usb adapter :/

Thanks in advance :)
[Nexus 5X General] SlimSnoopOS:
Nope. You need to a computer to unlock the bootloader.
[Nexus 5X General] Drakax:
Thanks for your prompt reply!
[Nexus 5X General] jgve:
Device is corrupt after trying Nandroid Backup

I was following Heisenberg's How To Guide and I was on Step 4-How To Make A Nandroid Backup With TWRP Recovery. I followed the instruction to select system/data/boot boxes, swipe to back up. I saw several messages that says failed. I think I rebooted the phone at this point and now I am getting a message that Your device is corrupt. It cant be trusted and may not work properly. Press power to pause boot. And it would go to the 4 flashing icons you see when the phone starts but it just does that and nothing else. What did I do wrong??? Please help!!! It's a brand new Nexus 5X phone I have never used at all. I am new at flashing and have no clue what I'm doing. HELP!!!
[Nexus 5X General] sfhub:
You probably mounted /system in read/write mode.

That will change some timestamps and basically be the same as if you started modifying the OS. Just one byte difference will cause the corrupt message. It doesn't necessarily mean something is really corrupt, just that the signature no longer matches what is expected.

Depending on what level of comfort you have, you can flash the factory image and restart from scratch or you can flash just the system.img and reformat the user partition and everything should be back to what you were at before your most recent issue.

Of course, don't format the user partition if you have data you want to save. I'm just assuming you don't have anything there because you said it is a brand new phone you've never used at all.
[Nexus 5X General] jgve:
I found instructions how to flash factory image but I don't know what version to pick. I didn't write down what my phone is. What do I do now? Please help!
[Nexus 5X General] alfick3:
The corrupt message is just because you unlocked your bootloader, nothing else. As to why it got into a bootloop, I don't know about that.

---------- Post added at 08:11 ---------- Previous post was at 08:10 ----------

This guide explains how to flash stock.
[Nexus 5X General] jgve:
Does it matter what version I pick to flash? I have no idea what mine is because I didn't write it down. I don't know how I can get to it because my phone is stuck in the startup image with 4 flashing things.
[Nexus 5X General] ulxerker:
check settings -> about phone. there you will find manufacturer, model and so on.
[Nexus 5X General] jgve:
I can't get to that part because my phone is stuck in startup. The phone will not boot up to normal phone function. I can get to bootloader and it will try to turn on. I am stuck in the flashing startup screen and it goes no where. So how will I know what version to pick when I can't get even get to the phone settings?
[Nexus 5X General] ulxerker:
oh ok, then boot into bootloader which usually always works. there you will find details about your phone, too.
[Nexus 5X General] jgve:
This is what I have in bootloader:

product name: bullhead

variant: bullhead LGH790 32gb

bootloader version: BHZ10m

baseband version: M8994F-2.6.32.1.13

Carrier info: n/a

serial number: xxxxxxxxxxxxxxx

signing: production

secure boot: enabled

device state: unlocked

This is all I see and none of them match the versions available. They all start with MM, MD, MH, MT. I don't know what to do. Please help me.
[Nexus 5X General] ulxerker:
take the latest factory image for N5X (bullhead) from here: https://dl.google.com/dl/android/aosp/bullhead-mtc19t-factory-6d8cfe6e.tgz

then proceed as mentioned in the OP.
[Nexus 5X General] jgve:
It worked! Thank you! I am going to start over.
[Nexus 5X General] ulxerker:
:good::)
[Nexus 5X General] jgve:
Sorry to be such a pain but I encountered another problem. I made it all the way to step 6, I was able to install supersu in twrp. When the phone rebooted it is stuck in the 4 flashing things in startup. What do I do now? I believe the next step is to save the custom ROM on the phone but if I can't get in the phone how am I going to save that file? I would like to get cataclysm. This is so stressful!
[Nexus 5X General] ulxerker:
normally, if you follow all steps correctly and flash all necessary files the phone shouldn't get stuck and the stock ROM should boot.

anyway, regarding a custom ROM you can push it to the phone via adb sideload. for this, go to advanced in TWRP and select adb sideload. now make a connection to your PC, open a shell and run "adb sideload customROMfile.zip" (phone drivers and most recent adb tool required). this transfers and installs the .zip of the custom ROM.

if this doesn't help I'm out of ideas, too.

good luck! :)
[Nexus 5X General] jgve:
So after running supersu, I rebooted, got the corrupt error message and the flashing start up icons that goes nowhere. I did what you said I downloaded the cataclysm file, saved it in the drive where I have the fastboot.exe. I went to TWRP and selected adb sideload. 2 things were in there to select: davlik and cache and then swipe below. I didn't select any of them. From what I understand from your instructions, I had to open that window on my pc and I typed adb sideload <customrom>.zip and I used whatever filename I have for the cataclysm file. It ran and there was a bunch of information that showed up on the window and I don't really know if it was sucessful or not. So now I rebooted the phone and it is stuck with GOOGLE screen and a lock below. I am ready to give up. Can I just restore this to where I was before and just use the default setting when I got the phone? I am afraid I will ruin this phone. Flashing is not meant for me at all.