yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] yanleites:
How did you flashed IMG with Flashfire ?
[Nexus 5X Original Android Development] Midomad:
New update is up

https://dl.twrp.me/bullhead/twrp-3.0.2-1-bullhead.img.html
[Nexus 5X Original Android Development] :
Update does still not decrypt the file level encryption.
[Nexus 5X Original Android Development] yanleites:
New update works fine win Andorid 7 - Backup/Restore works.
[Nexus 5X Original Android Development] The1nonly1:
Does it decrypt data for you?
[Nexus 5X Original Android Development] yanleites:
The phone is encrypted, but the new TWRP works fine.
[Nexus 5X Original Android Development] DrStrangelove41:
Use the flash firmware option.
[Nexus 5X Original Android Development] The1nonly1:
I flashed the new twrp on N, it works fine. However it doesn't stick after a system reboot. My device is encrypted, could that be why it doesn't stick?

Also I have managed to root by flashing SuperSU in TWRP.
[Nexus 5X Original Android Development] miksontije:
same problem here
[Nexus 5X Original Android Development] thekendog:
How did you install it? I flashed it using ADB and then after installing it I issued a "fastboot reboot bootloader" command. I read somewhere that is what you're supposed to do. I could be wrong, but that's what I did and TWRP is sticking for me and my phone is encrypted.
[Nexus 5X Original Android Development] miksontije:
download img twrp and flashed with fastboot. then start recovery and it worked. untill i did not restart phone. by the way supersu also have problems,so we must wait updates
[Nexus 5X Original Android Development] dog121:
I'm not receiving any issues with root I used CFAUTO-ROOT and flashify to.install twrp.img all is fine when i boot to twrp I put in my pin and.it.decrypts data all's good..
[Nexus 5X Original Android Development] miksontije:
i try CFAUTO-ROOT,and i have bootloop. i have before dp5 and update it ota. i think i will wait fixed version of twrp and supersu. also i have some problems with some apk. same as it was with LP and MM release,first couple of weeks until updates start
[Nexus 5X Original Android Development] dog121:
You are not getting a boot loop with CFAUTO-ROOT it takes at least three to four times before it boots up I have pin enabled on my device before android starts and after doing CFAUTO-ROOT I had to put the pin in three times before it booted up this is normal ...it just takes a while..
[Nexus 5X Original Android Development] The1nonly1:
I flashed with fast boot, rebooted bootloader and then went into recovery. Restarted system, turned off phone and then tried to get into recovery and twrp was gone. I have now flashed twrp again and then supersu but twrp is gone.

I've never had to enter a pin in twrp but my phone says encrypted.
[Nexus 5X Original Android Development] dog121:
If u have root use flashify to flash the twrp.img
[Nexus 5X Original Android Development] The1nonly1:
Scratch what I said, twrp is working now since I rooted.
[Nexus 5X Original Android Development] nattapan8:
https://dl.twrp.me/bullhead/twrp-3.0.2-1-bullhead.img
[Nexus 5X Original Android Development] Midomad:
http://xdaforums.com/showthread.php?p=68319149
[Nexus 5X Original Android Development] nattesh:
No need to format user data. Just re-flash twrp img from flashify. Just tested and it worked for me.
[Nexus 5X Original Android Development] SlimSnoopOS:
Why quote my post from June when TWRP did not work on encrypted Android 7.0 until two days ago?
[Nexus 5X Original Android Development] AndroidDeveloperLB:
I have a problem with TWRP on the new official Android 7 (that I flashed from here) .

I used these commands:

"D:\android\android-sdk\platform-tools\adb.exe" reboot bootloader

"D:\android\android-sdk\platform-tools\fastboot.exe" flash recovery twrp-3.0.2-1-bullhead.img

"D:\android\android-sdk\platform-tools\fastboot.exe" reboot

It said it flashed it, but when I try to access it via power&volumeDown buttons combo, and then choose recovery, it just shows a screen "no command", with a bugdroid lying on the floor with red triangle in its belly

:(

After a minute or so (I hoped it's doing something) , it restarted on its own, to the OS...

Why?

How can I solve this?
[Nexus 5X Original Android Development] ulxerker:
did you download the correct twrp for your device? for N5X its here.

try to enter bootloader by hard buttons (power+vol down) and flash again.

also, you downloaded the N OTA version that gets installed via adb sideload. did you do it right? flashable factory images aren't available yet.
[Nexus 5X Original Android Development] The1nonly1:
Flash the twrp, reboot bootloader ( not device) boot into twrp. That should then work.
[Nexus 5X Original Android Development] AndroidDeveloperLB:
Yes the file was from there.

About the OTA, it worked fine. I did it using flashFire app, when the OS was still rooted and TWRP still workd fine (or at least so I think so).

On the about screen, it does show NRD90M.

The OS runs fine. I just wanted TWRP back and running (and root my device etc...).

I tried twice to flash TWRP.

Now I tried again. Odd that it worked fine. How could it be?

Now I flashed this rom via TWRP, and it seems to work fine:

http://xdaforums.com/nexus-5x/development/rom-debloated-busybox-fast-stable-t3398617

Thank you for the quick response !

I have no idea what went wrong, but now it's ok !

:good:
[Nexus 5X Original Android Development] The1nonly1:
Took 2 flashes of twrp for me to get it to work
[Nexus 5X Original Android Development] qtipbailey:
I downloaded the OTA zip. Correct me if I'm wrong but to ADB sideload it would require me to first return my phone to stock. Is that also the case with using FlashFire? I installed FlashFire yesterday but I've never used it yet.
[Nexus 5X Original Android Development] AndroidDeveloperLB:
Not sure about "revert to stock" (was using this rom which is based on stock: http://xdaforums.com/nexus-5x/development/rom-debloated-busybox-fast-stable-t3398617 ). it worked fine, but I was left without TWRP and without root.
[Nexus 5X Original Android Development] qtipbailey:
I can't seem to get FlashFire to even begin the process. Did you use "Flash ZIP or OTA" or did you use "Flash firmware package"?
[Nexus 5X Original Android Development] RusherDude:
Anyone else gets problems when flashing TWRP (not only 3.0.2.1, but priors too) on a Nexus 5X, because it doesn't stick? I never had this problem on a Nexus 5, but on the Nexus 5X everytime I flash TWRP with fastboot its gone after reboot, need to flash it 2-3 or even more times for it to stick...
[Nexus 5X Original Android Development] alfick3:
When I flashed TWRP to my 5X, I flashed via fastboot. Next I used down vol to change to recovery and then up vol to boot into recovery. After that I went to reboot and rebooted into recovery from recovery. After that I could not the system and next time I booted into recovery I still had TWRP.
[Nexus 5X Original Android Development] RusherDude:
It seems kinda random, some times it stick and some times you can flash and reboot into twrp and bootloader and reflash and bla bla or do different stuff, that it won't ever stick.

Not sure why tho..
[Nexus 5X Original Android Development] bobby janow:
Agree. Not sure why either. But at some point we get what we need. Good enough right? [emoji3]
[Nexus 5X Original Android Development] RusherDude:
I suffered it again now with august 6.0.1. For more than I tried, rebooting on bootloader then recovery after the flash, flash reboot recovery reboot bootloader flash bla bla bla, whatever I do, after booting to system the stock recovery appears. The only thing that workes for me is to flash twrp then on twrp flash everything (root, kernel and xposed) in a row, and then, on system after the boot, rebooting to recovery WITHOUT using "adb reboot recovery". That damn comand would send me to the stock recovery again.
[Nexus 5X Original Android Development] AndroidDeveloperLB:
ZIP .

But you need root and TWRP flashed before you use this app.
[Nexus 5X Original Android Development] crian:
Here is what i did http://xdaforums.com/showthread.php?p=68354324
[Nexus 5X Original Android Development] crypticc:
this isn't a 6.0.1 problem/ I've had this since I had 5x. I'd assumed it was some google-thing to keep recovery stock on 5x.

I notice it happens if I boot into Bootloader from recovery, and then back again - though it might actually just be the action of going to recovery from bootloader as you believe.

C
[Nexus 5X Original Android Development] miksontije:
i have problems also and fixed it like this. first root phone and instal twrp with nexus root toolkit 2.1.8, then install flashfire. afther that i nead once more to install twrp with flashfire,and it worked and twrp sticked.

i removed some system apk i dont use and phone works,but DONT clear dalvik cashe with TB,bcouse phone will then stuck at boot screen. tb 7.5.0 dont clear dalvik as it need.
[Nexus 5X Original Android Development] schaggo:
Only a bit of research and reading would have taught you that the above is intended by Google and easy to circumvent in case it's unwanted:

A) use Flashfire to flash and its "preserve recovery" option

B) simply reflash the twrp image from inside twrp at the end of an OTA or factory image flashing session

C) always boot from twrp back to twrp at least once after a flashing session involving the recovery partition to make twrp adjust the system to make it stop overwriting the recovery
[Nexus 5X Original Android Development] fl3rry:
Hi,

I have flashed the Nougat OTA zip with a working TWRP recovery on my Nexus 5X. Nougat runs fine but the custom recovery is gone now.

Is the encryption the reason why I get the following error while trying to flash a recovery again

FAILED (remote: partition table doesn't exist)

Do you guys have any advice?
[Nexus 5X Original Android Development] enzo_cz:
If you flashed the N Ota zip thru TWRP, it changed the recovery to stock. You may need to try fastboot twrp again and you're gonna be fine.
[Nexus 5X Original Android Development] fl3rry:
I have already tried to fastboot twrp. Always get the same failure message. And i dont think there is a recovery, cause when I try to open it I get the "no command" screen with the red exclamation point.
[Nexus 5X Original Android Development] SlimSnoopOS:
No, that is still the stock recovery. Press and hold "Power + Volume down" to proceed to the stock recovery. Could you post exactly what's displayed on command prompt?

FYI, it seems you need root for TWRP to persist between reboots.
[Nexus 5X Original Android Development] Midomad:
I had bootloop with the last version on nougat when using swipe to allow modifications?!?
[Nexus 5X Original Android Development] sfhub:
You don't technically need root.

What you need is to have at least one byte change in boot.img.

During the boot process android examines the hash of the recovery partition and if it isn't what is expected, it will apply patch to boot partition to produce recovery partition. If the boot partition hash doesn't match what is expected, then the patch cannot be applied.

When you install systemless root, it will unpack, make changes, and repack the boot partition. This results in aforementioned hash check fail and thus no overwriting of your custom recovery. The same hash check fail would have happened for any change to boot.img, including just unpacking and repacking the existing stock contents unchanged.

So in practice the simple way to have TWRP stick is to flash boot.img, vendor.img, system.img, twrp.img, then boot directly into recovery using the bootloader menu, then use TWRP to install su.zip.

If you don't boot into recovery directly from bootloader menu, you risk not pressing the power+volup sequence in time and going through standard boot process, which will then replace twrp.img you just flashed, forcing you to start all over again.
[Nexus 5X Original Android Development] ensboarder:
Hello,

I have my N up and running....

BUT when I go to recovery to try to flash a kernel I got this message;

Mount

Trying Description

Updating partition Details...

Unable to mount storage

Full SELinux support is present

And can't see my downloads folder.

Thanks
[Nexus 5X Original Android Development] ulxerker:
it seems like your phone is encrypted. to decrypt it you need to format userdata which wipes all your personal data.
[Nexus 5X Original Android Development] kojak1989:
Aby changes in 3.0.2-2 ?
[Nexus 5X Original Android Development] Namautoenx:
Link Pls?
[Nexus 5X Original Android Development] SlimSnoopOS:
According to the user in the link below, it fixes a fatal flaw that corrupts your EFS on restore and causes bootloop. The 6P forums have been dealing with TWRP and 7.0 downgrade issues for the past few days. Plus they have no 7.0 factory image yet. Check out the link for this announcement in the 6P Q/A section.

NOTE: Do NOT run any command listed in the following link as they are 6P specific:

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

In the first post.
[Nexus 5X Original Android Development] Midomad:
New build is up

https://dl.twrp.me/bullhead/twrp-3.0.2-2-bullhead.img.html

Changelog:

Fixed Efs/backup bug introduced with 3.0.2.1
[Nexus 5X Original Android Development] ensboarder:
If I do format data, my system will boot or i need to do some adb magic?
[Nexus 5X Original Android Development] Trxrad:
Who knows, this guide is suitable for Nexus 5x?

http://xdaforums.com/nexus-6p/help/announcement-twrp-3-0-2-1-fatal-bug-t3453119
[Nexus 5X Original Android Development] SlimSnoopOS:
Just install TWRP 3.0.2-2. This will work on encrypted 7.0.
[Nexus 5X Original Android Development] m4r0v3r:
ah cheers, ill just keep waiting :)
[Nexus 5X Original Android Development] pcartwright81:
Bootloop here also

I was also stuck in a boot-loop. I re-flashed everything back to stock and tried again which I now think is unnecessary. I think the real key is letting the device boot once fully then hard powering it off and holding the vol up+vol down to get back into the bootloader. Then flash TWRP. I noticed on first boot the stock recovery ran a very short script. I assume it was unencrypting or wiping my empty data partition. I also noticed when in the boot-loop holding the power button did nothing, but vol up+vol down stopped the boot-loop and got me to the bootloader.
[Nexus 5X Original Android Development] Born<ICs:
Have you ETA for release of 2.8.7.0 Angler?

6P on way.

Sorry post in wrong thread.
[Nexus 5X Original Android Development] RusherDude:
Lol..

1) Asking for an ETA

2) For a wrong device thread

Delete the post mate :good:
[Nexus 5X Original Android Development] Born<ICs:
Sorry

Dev hasn't started angler thread yet but monitors this one.
[Nexus 5X Original Android Development] RusherDude:
Fail then lol, still asking for ETAs is cruel :good:
[Nexus 5X Original Android Development] buru898:
Can't wait for kernels that support F2FS on this bad boy.
[Nexus 5X Original Android Development] skulldreamz:
My first nexus device so I just wanna make sure I get this right. 1. Unlock bootloader 2. Flash chainfire modified boot image 3. Flash twrp. Install super 2.51+ Is this correct?
[Nexus 5X Original Android Development] mskip:
You dont have to flash TWRP you can just install drivers, unlock bootloader, push the root zip file to /sdcard/ and then boot to fastboot, fastboot flash boot the kpatch image and fastboot boot the recovery image (temporary twrp, not permanent).

If you arent totally comfortable you can install my unified android toolkit, Select the Nexus 5X and let the Toolkit do it all.

Mark.
[Nexus 5X Original Android Development] skulldreamz:
Thanks Mark, quick question. I just got my 5X today and it only comes with the USB c cable so I'm not able to connect. I did order my USB c to A cable adapter but they won't be here for about another 5 days or so. I did try connecting over tcpip but I'm just getting adb devices without the serial number. Now I am using a Linux distro but can reinstall windows now if that would get me where I want to be. Any thoughts?
[Nexus 5X Original Android Development] craigacgomez:
Did you set up the udev rules? What Linux distro are you using? Did you try starting adb as sudo?
[Nexus 5X Original Android Development] skulldreamz:
Yeah I setup the udev rules. I'm on 15.10 Ubuntu mate. Thanks man, udev was what I was forgetting...
[Nexus 5X Original Android Development] Dees_Troy:
II received enough donations and I ordered a 16GB Nexus 5X with free shipping. That said, I've run into a wall on the 6P and a tester confirms the same wall on the 5X. I'm waiting for Google to post the kernel source and device configs before I can continue my efforts to decrypt these new devices.
[Nexus 5X Original Android Development] stormtroopercs:
Does anyone have a mirror to the download? It keeps failing on me.
[Nexus 5X Original Android Development] skulldreamz:
Here ya go https://www.dropbox.com/s/957l4f39cajcynn/twrp-2.8.7.0-bullhead.img?dl=0
[Nexus 5X Original Android Development] Dees_Troy:
I have decrypt working on the 6P. My 5X should arrive tomorrow. Hopefully it'll be similar to the 6P. Hoping to have 5X decrypt working within the next few days.
[Nexus 5X Original Android Development] skulldreamz:
Thanks so much for all you do my dude
[Nexus 5X Original Android Development] jackdubl:
So does it require you to input your password/pin/pattern at some point?
[Nexus 5X Original Android Development] Dees_Troy:
Decrypt is now supported on the 5X. If you tell the device to require a password when starting the device, TWRP will prompt you for a password. Otherwise, TWRP will automatically decrypt the device using the "default_password" just like regular Android does without prompting.
[Nexus 5X Original Android Development] dave2775:
Does this mean we can nandroid if we are still encrypted?
[Nexus 5X Original Android Development] ensboarder:
Thanks!!! Install vía ADB or is there any other way ?
[Nexus 5X Original Android Development] SlimSnoopOS:
Hold up! I'm following a thread over in the 6P forums (scroll to post #64 for a TWRP associate's response) and the latest TWRP 3.0.2-2 has a backup bug.

I'll walk this back and suggest sticking with 3.0.2-0 for now. If on 7.0, fastboot format userdata and you can access TWRP again. You will be decrypted, but you need root or custom kernel to keep access to TWRP 3.0.2-0 and stay decrypted for now.

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

Yes, it does! I received confirmation from the TWRP dev who started providing some help in post #64. He states the dd command/EFS fix will work for Nexus 5X users as well in post #72.
[Nexus 5X Original Android Development] aamadorj:
According to the information in the mentioned thread, there's one bug affecting TWRP 3.0.2-1 and another one affecting TWRP 3.0.2-2.

I just edited my post to correct my previous claim, following [MENTION=5554684]Darke5tShad0w[/MENTION] heads up.

UPDATE: I've been using official TWRP 3.0.2-2 without any issues. At the mentioned thread there're reports of that official version working just fine.
[Nexus 5X Original Android Development] Darke5tShad0w:
Read post 64 which he linked, the poster has updated/edited it twice.
[Nexus 5X Original Android Development] TheBurgh:
Will formatting the userdata solve my incorrect storage information. I have a 32g n5x and after flashing 7.0 factory image my storage space available was only 10.5g. I am also rooted and on two 3.0.2-2. Thanks in advance.
[Nexus 5X Original Android Development] gonzo237:
Fixed mine with just a factory wipe
[Nexus 5X Original Android Development] Trxrad:
Yes, it does! I received confirmation from the TWRP dev who started providing some help in post #64. He states the dd command/EFS fix will work for Nexus 5X users as well in post #72.

Thanks! It worked for my nexus 5x. Finally, I can use the phone.
[Nexus 5X Original Android Development] sfhub:
I have an issue with TWRP where it keeps asking me for password even I don't have one set.

I disabled password and screenlock, then upgraded to Android N

I installed TWRP 3.0.2-2 and it was ABLE to decrypt userdata automatically since there was no password set

This worked fine for a while but I noticed I could not mount /vendor successfully in adb, the partition would mount, but the contents weren't visible

So I downgraded TWRP to 3.0.2-0 to see if it would mount any differently.

From that point on, TWRP is unable to decrypt my userdata (asks me for password) even though I don't have one set.

I understand 3.0.2-0 cannot decrypt Android N. I reinstalled 3.0.2-2 and now it also is asking me for password, when there is none set.

It almost seems like running 3.0.2-0 caused some persistent change that causes 3.0.2-2 to be unable to decrypt.

I can boot into Android N and set up a pattern, then boot into 3.0.2-2 and it recognizes that I added a pattern because now it asks for pattern instead of password however when I enter the pattern, it does not decrypt.

Any idea what is going on? Does TWRP store some settings somewhere that might be causing this issue?
[Nexus 5X Original Android Development] crian:
I have no problem with encryption on Android N and TWRP. All is working fine here.
[Nexus 5X Original Android Development] sfhub:
My decryption was working fine with Android N until I went back to 3.0.2-0 to test something out. After that I went back to 3.0.2-2 and could no longer decrypt.
[Nexus 5X Original Android Development] Danish2980:
My situation after this bug occurred: http://xdaforums.com/nexus-6p/help/announcement-twrp-3-0-2-1-fatal-bug-t3453119

No TWRP

Locked Bootloader (My stupid attempt to save my device)

Phone freezes during boot

What can I do?
[Nexus 5X Original Android Development] TheBurgh:
Has anyone installed the unofficial 3.0.2-3 and using it with success?
[Nexus 5X Original Android Development] SlimSnoopOS:
Well, per post #64 of the Announcement thread in the 6P Q/A section, both TWRP 3.0.2-1 and 3.0.2-2 each have a separate but critical bug. -1 has the EFS issue and -2 has a backup issue according to that TWRP dev. Quickest way for TWRP 3.0.2 to work on 7.0 encrypted is by flashing a 6.0.1 vendor, doing what you need in TWRP, then flashing 7.0 vendor before booting up. Beyond that, I'm not privy to why TWRP would still cause issues.

There's not much that can be done with a locked bootloader. Run fastboot format userdata and/or try to adb sideload the NRD90M OTA zip. If you left the OEM Unlock toggle enabled, maybe it will unlock again.

I haven't seen anyone post about it in either 5X/6P forum.