yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] sfhub:
Thanks, I read about the bugs. The first bug seemed to be regarding broken filenames for restoring that caused the wrong efs partitions to be written on restore. The second bug seemed to be regarding larger partition backups.

Since I wasn't doing any backup or restore I didn't think these would affect me.

You did give me a clue to try though. I'll try flashing full MTC20F and TWRP 3.0.2-0 to see if that works, then flash back full NRD90M and TWRP 3.0.2-2.

I'm trying to avoid reformatting userdata because it seems to work fine with Android N and I can change the lock pattern with TWRP 3.0.2-2 recognizing I change from no lock to a pattern lock. It just won't decrypt the userdata, almost as if it doesn't know the correct procedure because it got confused and thinks I'm on marshmallow.

---------- Post added at 08:27 AM ---------- Previous post was at 07:59 AM ----------

UPDATE: I apologize for the confusion. This issue had nothing to do with running 3.0.2-0. It turns out a script I was writing overwrote some critical files in /vendor and that is what caused all the issues.

Thanks SlimSnoopOS for the suggestion.

If anyone cares, I fixed the issue of TWRP 3.0.2-2 initially being able to decrypt my userdata but then no longer being able to after running TWRP 3.0.2-0.

What I did was flash boot.img, vendor.img, and system.img from MTC20F (marshmallow) and twrp-3.0.2-0.img, then booted into twrp. TWRP could successfully decrypt my userdata.

I then flashed boot.img, vendor.img, and system.img from NRD90M (nougat) and twrp-3.0.2-2.img, then booted into twrp. TWRP can now successfully decrypt userdata again.

It is possible/likely all I needed to do was flash vendor.img (skipping boot.img and system.img) but I didn't experiment.

There seems to be something persistent that is done when you boot TWRP 3.0.2-0 with an NRD90M (nougat) installed that then subsequently confuses TWRP 3.0.2-2 enough that it can't decrypt your userdata anymore.
[Nexus 5X Original Android Development] Midomad:
It's seems like the bug with backup is still there,more information here

http://xdaforums.com/nexus-6p/help/...-fatal-bug-t3453119/post68500121#post68500121

Unofficial 3.0.2.3:

https://idlekernel.com/twrp/nexus/
[Nexus 5X Original Android Development] bobby janow:
Don't you think we should wait for an official build from Dees? Aren't there enough security breeches already? Just asking.
[Nexus 5X Original Android Development] Midomad:
Sure, just for information ;)
[Nexus 5X Original Android Development] TheBurgh:
I was curious to know if anyone was using the unofficial build and what success they are having.
[Nexus 5X Original Android Development] RusherDude:
Just for if isn't posted before, posted this on the Nexus 5 thread by error before -.-

Everyone stop using TWRP versions from 3.0.2-1 (included) onwards because they're flagged with a critical restore EFS bug (that bricks your phone after trying to restore a 3.0.2-1 backuped EFS partition, until you restore an old backup saved with an old version TWRP or format EFS partitions (read link, case for N6P)).

Relevant post (On Nexus 6P) forum.

http://xdaforums.com/showpost.php?p=68500121&postcount=64

New 3.2.0-2 is flawed as well, hold on until they release the fix.
[Nexus 5X Original Android Development] Midomad:
Posted three posts before your's.
[Nexus 5X Original Android Development] RusherDude:
Not in bold to show how important this is.
[Nexus 5X Original Android Development] Midomad:
Lol,if you said so.
[Nexus 5X Original Android Development] pkelly517:
Information doesn't become more important just by being bolded.

I, actually, have the ability to determine the criticality of information by the content, and not by the font.

Thanks for thinking your repeat of the same information is more important, saving us all.
[Nexus 5X Original Android Development] RusherDude:
Yes, that critical issue deserves a big post in big letters, not that post you guy reference.

Also by spamming the thread you're helping to reduce the visibility of said post.
[Nexus 5X Original Android Development] pkelly517:
I love me some irony.
[Nexus 5X Original Android Development] Noelito3:
What version can I install now without bugs, 3.0.1?

Enviado desde mi Nexus 5X mediante Tapatalk
[Nexus 5X Original Android Development] TheBurgh:
n5x encrypted on android n using 3.0.2-2. Can I just fastboot back to 3.0.2-0 or is there another step that I am missing?
[Nexus 5X Original Android Development] SlimSnoopOS:
3.0.2

Yes you can do that. It'll freeze when you boot into it since you're encrypted on 7.0 though.
[Nexus 5X Original Android Development] TheBurgh:
How do I get beyond the freeze? Just fastboot reboot
[Nexus 5X Original Android Development] SlimSnoopOS:
The route that leaves your internal data intact: fastboot flash a Marshmallow vendor.img, boot into TWRP 3.0.2, do what you need, then flash 7.0 vendor before booting up if going back into 7.0
[Nexus 5X Original Android Development] Harthouse:
phone stucked in bootloop...

After unsuccessful restoring EFS from backup (in TWRP 3.0.2-1), my phone won't boot. Secure boot: enabled, device state: locked. How to erase the EFS partitions and fix my phone, please help? :crying:
[Nexus 5X Original Android Development] shindiggity:
I'm using 3.0.2-3 and was wondering what risk I'm taking by using it compared to 3.0.2. I've flashed 7.0 and back to 6.0.1 a few times without issues.
[Nexus 5X Original Android Development] pkelly517:
Use 3.0.2-0.

Just out of curiosity, why are people flashing the EFS partition?

I backed up the partition when I got the phone last fall and stored the file on Dropbox, just in case. I've never felt the need to restore the EFS backup. Is it a pirating thing? Something required outside the US? In 7 years of the OG Droid and Nexus, I've never had the need to restore the EFS backup. Why the sudden panic?
[Nexus 5X Original Android Development] Harthouse:
Ok and how to install twrp 3.0.2-0 or any other build on locked bootloader? Is there any twrp build in zip format to flash it via adb sideload? Btw, don't have nandroid backup neither...
[Nexus 5X Original Android Development] TheBurgh:
Are you using the unofficial 3.0.2-3?
[Nexus 5X Original Android Development] alfick3:
No, you have to unlock the bootloader
[Nexus 5X Original Android Development] Harthouse:
I know that, but how? If you read my previous post I can't, because secure boot is enabled. Can't go into system to enable OEM unlock! That's the problem...
[Nexus 5X Original Android Development] shindiggity:
That's a good question, I.forget where I downloaded. I think unofficial, is there an official as well?
[Nexus 5X Original Android Development] hilla_killa:
Same in my uears of flashing never have i screwd my efs partition. I was wondering the same why people are restoring/messing with efs
[Nexus 5X Original Android Development] SlimSnoopOS:
If you still have TWRP installed run these commands from a computer, top post of this thread:

http://xdaforums.com/nexus-6p/help/announcement-twrp-3-0-2-1-fatal-bug-t3453119

If you don't, well that's a bit trickier to resolve. Have you used adb sideload to install an equal or newer OTA?

You don't. Do you have TWRP installed still?
[Nexus 5X Original Android Development] Harthouse:
Unfortunately, don't have twrp anymore. Also, there is no success with ota update with adb sideload... Can't make any system to work with my phone, because of "broken" efs. I'm desperate... Love Nexus phones. This is my 2nd, after N5...
[Nexus 5X Original Android Development] SlimSnoopOS:
In your case, there's only the LGUP tool or go the RMA route
[Nexus 5X Original Android Development] Harthouse:
I've tried that already, with the same result. Can't pass Android logo. On the first spinning, phone goes into endless bootloop.

---------- Post added at 05:17 PM ---------- Previous post was at 05:16 PM ----------

What is RMA route?
[Nexus 5X Original Android Development] SlimSnoopOS:
SO LGUP tool then ADB sideloading either 7.0 OTA image does not help? How about:

fastboot format cache

fastboot format userdata

RMA or more affectionately, do a warranty exchange.
[Nexus 5X Original Android Development] Harthouse:
Right. Adb sideload + ota update to 7.0 = endless bootloop, as always... Fastboot commands can't help because of locked bootloader. Don't have warranty too, so... Is my phone ready for garbage/trashcan?
[Nexus 5X Original Android Development] SlimSnoopOS:
Those two fastboot commands should work with a locked bootloader. In all likelihood, they may not do a thing to resolve this.

Unfortunately, yes given how little can be down once locked.
[Nexus 5X Original Android Development] Harthouse:
Unfortunately, they don't, both are useless. I'm waiting for some miracle to happen... Need some magician...
[Nexus 5X Original Android Development] Harthouse:
update: After another unsuccessful procedure, I will stop... Have no idea what to do next...

My steps:

1. LGUP with tot file "LGH791AT-00-V10f-NXS-XXX-OCT-03-2015-32G-MDA89E-US". (process in phone - percentage, is faster then in LGUP, it is not synchronized)

2. phone is stucked at Google logo, no progress at all

3. In recovery, wipe data/factory reset and then wipe cache partition

4. adb sideload nrd90s.zip - Latest Android 7.0 ota zip

5. phone is now reaching Android logo - colored spots (right after Google logo) and it goes in bootloop, right after 2 spins

In bootloader, all commands don't work, because of locked bootloader and enabled secure boot.

There is some info in recovery:

"google/bullhead/bullhead

6.0/MDA89E/2296692".

That's it...
[Nexus 5X Original Android Development] The_Jacoz:
Hello Harthouse,

as reported here: xdaforums.com/nexus-6p/help/announcement-twrp-3-0-2-1-fatal-bug-t3453119 you must run these commands:

in the same thread, it has been confirmed that those are the same for the nexus 5x and they are working too. You can also find here: https://idlekernel.com/twrp/nexus/ a kind of beta version wich is the TWRP fixed version. More info about here
[Nexus 5X Original Android Development] TheBurgh:
I am running the unofficial 3.0.2-3 and it has been flawless so far.
[Nexus 5X Original Android Development] Harthouse:
Thx for your reply, but I need to find the way how to flash twrp, because my phone has locked bootloader and can't make work it out!!! Also, need twrp in zip format to flash it in adb sideload, as I can see that is the only possible solution... :(
[Nexus 5X Original Android Development] gorilla p:
The easiest way to do what you want to do is with Wugs Nexus Root Toolkit.

http://www.wugfresh.com/nrt/

http://xdaforums.com/nexus-5x/development/toolkit-wugs-nexus-root-toolkit-v2-1-0-t3258492
[Nexus 5X Original Android Development] Harthouse:
This Toolkit is usable only if you can boot your phone to enable usb debugging or oem unlock, that's not my situation. Even if I try to return to stock, it asking me to unlock bootloader and that is impossible, right now. I need something (miracle) to erase efs partitions... Anyway, thx for your help!
[Nexus 5X Original Android Development] kevtrysmoddin:
Where can I get that in using 3.0.2.2 at the moment
[Nexus 5X Original Android Development] Harthouse:
twrp
[Nexus 5X Original Android Development] andQlimax:
3.0.2-1 is safe to use except for efs backup / restore right?

I understood 3.0.2-2 instead is very unstable
[Nexus 5X Original Android Development] Harthouse:
Right.
[Nexus 5X Original Android Development] kevtrysmoddin:
Much appreciated:good:
[Nexus 5X Original Android Development] Harthouse:
No problemo. :o
[Nexus 5X Original Android Development] kleineronkl:
Don't RESTORE a efs Backup !

Gesendet von meinem MotoG3 mit Tapatalk
[Nexus 5X Original Android Development] The_Jacoz:
I am sorry but i am pretty new in these type of modding so i am still learning! ;)

anyway by reading on the official google nexus 5x support page productforums.google.com/forum/#!topic/nexus/89jWX-WVap8;context-place=topicsearchin/nexus/nexus$205x$20bootloop , it seems that if you hadnt unlocked oem bootloader first, then you can only send the phone to be fixed! Now i understand why they underline the fact to always unlock it before update. Sorry about that...

Always by reading from that page you can try to do a rescue OTA:

Sorry cant post external links because still under 10 posts!
[Nexus 5X Original Android Development] Zackptg5:
Staying with 3.0.2 and a MM rom for now is the safest option
[Nexus 5X Original Android Development] Harthouse:
Never been closer to do something to recover my phone, but still the same thing... Thx, anyway! :good:

---------- Post added at 03:18 PM ---------- Previous post was at 03:03 PM ----------

This is what I did...

[IMG="Unsuccessful..."]http://oi67.tinypic.com/evaz49.jpg[/IMG]
[Nexus 5X Original Android Development] Stevica Smederevac:
And? Still not booting?
[Nexus 5X Original Android Development] Harthouse:
Correct. I think will take the last step - repair the phone for warranty purposes!
[Nexus 5X Original Android Development] Stevica Smederevac:
Did you try wipe /factory reset option?
[Nexus 5X Original Android Development] Harthouse:
I did everything (im)possible I can, believe me...
[Nexus 5X Original Android Development] Stevica Smederevac:
I know, been following the progress but i was thinking after the successful sideload to do factory reset but if you already did then ok
[Nexus 5X Original Android Development] Harthouse:
Thx for your care!
[Nexus 5X Original Android Development] shindiggity:
Same here, so far so good! I haven't made a nandroid of 7.0 though, a little nervous if I do then flash a nandroid of 6.0.1.
[Nexus 5X Original Android Development] TheBurgh:
Haven't restored a backup yet. Did make a successful backup of 7.0 though.
[Nexus 5X Original Android Development] rebretz000:
I made a backup and restored it with no issues using unofficial TWRP 3.0.2-3.

No idea what happened I just tried to boot into TWRP and it ask for a password.
[Nexus 5X Original Android Development] shindiggity:
After making a backup, do you use a pin lock?
[Nexus 5X Original Android Development] rebretz000:
Yes. But TWRP never asked a password before to just get in it.
[Nexus 5X Original Android Development] TheBurgh:
Let us know the outcome. Never had that before either.
[Nexus 5X Original Android Development] rebretz000:
It's still working. I just flashed UberStock and no issues.
[Nexus 5X Original Android Development] TheBurgh:
What did you have to do to get beyond the password it ask you for? What gapps did you flash with Uber. Thanks in advance.
[Nexus 5X Original Android Development] rebretz000:
I used my PIN I have set up and it worked.

I used Aroma Open Gapps I just did not add Android Web Viewer to be installed. That seems to be the issue. Google removed it or sun-setted it.

Edit: I just booted into TWRP and it did not ask for a PIN/Password this time.
[Nexus 5X Original Android Development] TheBurgh:
Sounds good. I might jump in and flash Uber before the weekends over.
[Nexus 5X Original Android Development] Ryder.:
Can i update factory images with twrp instead using cmd? I want to stay on stock android and I want to know if i can update to a new build by flashing system and vendor images from twrp like flashing custom rom (for example chroma or pure nexus) and vendor, and maybe boot image. Of course only from a 7.x.x to 7.x.x new build and then flashing supersu zip
[Nexus 5X Original Android Development] shindiggity:
I want to flash Uber but need center clock and the center clock mod won't work on Uber. Works on other stock Roms?
[Nexus 5X Original Android Development] bobby janow:
No
[Nexus 5X Original Android Development] qtipbailey:
I'm confused. I went from stock Android 6.0.1, applied the 7.0 OTA update, then installed TWRP 3.0.2-0 and flashed SuperSU as usual and I've been able to decrypt in Android N just fine. Does the issue of not being able to decrypt only happen if you installed TWRP 3.0.2-1 or 3.0.2-2 and then go back to 3.0.2-0 afterwards? Flashed the September update earlier this week and still A OK.
[Nexus 5X Original Android Development] fvisagie:
Somewhat after the fact, but next time in a case like this see if deleting .twrps (settings) in TWRP's shared storage helps.
[Nexus 5X Original Android Development] Ryder.:
Why not? A user said i can
[Nexus 5X Original Android Development] rebretz000:
You can flash system, boot, and vendor via twrp but not radio or bootloader.

I updated stock August Nougat to September build via twrp since bootloader and radio didn't change.
[Nexus 5X Original Android Development] Ryder.:
So it's better to update with twrp only when bootloader and radio don't change?
[Nexus 5X Original Android Development] rebretz000:
Is really just the same thing. I usually use fastboot and adb but just used TWRP this time.
[Nexus 5X Original Android Development] shindiggity:
https://www.androidfilehost.com/?fid=24651430732237567

Flashsble bootloader and radio, Tupacs thread in developement.
[Nexus 5X Original Android Development] Ryder.:
Ok. Thank you. I wanted to know if i can update with twrp. If it can be another way to update. I know that bootloader and radio images can't be flashable with twrp so sometimes i flash them with fastboot :)

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

Thank you! Next time i'll use bootloader and radio flashable zip. I already updated to NRD90S from marshmallow with a full wipe and factory reset. I wanted to know if updating with twrp can be another way
[Nexus 5X Original Android Development] bobby janow:
Twrp has been having some issues lately with some of the partitions that are being backed up. I use it still when I need to flash something like root or a kernel, but there really is no point to using it to flash system images. Just get to a computer and flash that stuff in bootloader with fastboot. If you can't get to a computer then wait, there really is no rush. If you will never ever get to a computer then your options are limited as stated above having to wait for someone to make you a zip of the bl and radio when that changes. We really do need a stable build of TWRP at this point, however.

Flashing a corrupt or improper bootloader is probably the only way to brick this device other than trying to relock it while on TWRP recovery and not stock, so it seems. Get used to the fastboot commands like second nature. You'll be happy you did even though it does look like you successfully used them to get to Nougat.
[Nexus 5X Original Android Development] Ryder.:
You suggest to flash only bootloader and radio images with fastboot commands or even the other factory images? When the bootloader and radio are the same is fine to update with twrp? However, i hate having to update with the computer
[Nexus 5X Original Android Development] bobby janow:
It's just a personal choice. I feel it's safer to do it from the computer. You can do it either way as long as the bl and radio are unchanged. I just wouldn't flash a radio or bl from a zip these days since I've become so familiar with fastboot. But I have been know to do so in the past.
[Nexus 5X Original Android Development] sfhub:
If it is on a new platform you are not used to or a new version of TWRP and you've been using an older version, my suggestion is use the stock stuff like fastboot/bootloader and/or stock recovery adb sideload.

Once it has been tested and working and you have confirmed particular tools work, then you can interchange safely.

Google only tests with their stuff. Not saying TWRP wouldn't work, in most cases it would, but if there is a bug that slips through (like the TWRP EFS partition name bug that bootlooped phones), you might not want to be the guinea pig to figure that out.
[Nexus 5X Original Android Development] :
I've been on 3.0.2-2 and all good on my end. I only ever backup boot, data, system. But as far as I know to answer your question yes, I had no problems with 3.0.2-1 either. I've never backed up my efs

---------- Post added at 08:59 AM ---------- Previous post was at 08:58 AM ----------

FlashFire is a great app to use to update as well.. js
[Nexus 5X Original Android Development] TheBurgh:
I think 3.0.2-2 has a backup bug that is different than the efs bug. Could be wrong but worth looking into.

Edit: I am using the unofficial 3.0.2-3 and is working great.
[Nexus 5X Original Android Development] :
Thanks for info. Will read up...
[Nexus 5X Original Android Development] The1nonly1:
With the recent bugs. What is the best way to do a backup of System/Data/Boot partitions in case I need to restore them? Using Android 7
[Nexus 5X Original Android Development] ulxerker:
use twrp 3.0.2-3, its told to work as expected.
[Nexus 5X Original Android Development] pcarenza:
TWRP not persistent on Nougat Sep update

Hi all - longtime user of TWRP. I'm having a terrible time going from stock to TWRP on my bullhead w/ Nougat September update. I've flashed TWRP/rebooted in every combination you can think of, but after I do a full reboot it reverts to stock! I know in previous iterations there was a system modification, and it still appears to change the .p file to .back, but when I reboot system it's like none of that stuck.. Can anyone help? Thanks!﻿
[Nexus 5X Original Android Development] EducatedPossom:
This worked for me: unlock bootloader > download super su to phone > boot into recovery screen > install twrp (don't restart phone, only restart bootloader then go into twrp) > flash super su. Should be good to restart phone now and twrp will be there
[Nexus 5X Original Android Development] ulxerker:
I did it like this:

updated to september ota via adb sideload in twrp -> reboot into bootloader -> flash twrp -> reboot into recovery -> flash supersu and custom kernel -> reboot into system

I think its important to NOT boot into system before entering twrp at least once and flashing supersu.
[Nexus 5X Original Android Development] borda01:
What about not rooting phone? I need to have TWRP and OTA updates, so I can't root.
[Nexus 5X Original Android Development] Argeddion:
Not having the stock recovery will break OTAs
[Nexus 5X Original Android Development] borda01:
Yes, but I can flash stock recovery in any moment.
[Nexus 5X Original Android Development] SlimSnoopOS:
You have to rename this file in /system "recovery-boot.p" but you need root to do so. 7.0 is a little more stubborn than 6.0 in that regard. I've been following the 6P TWRP thread and I don't think you can be stock, unrooted without TWRP resetting to stock recovery on boot.
[Nexus 5X Original Android Development] Namautoenx:
I can't flash Twrp and Root through NRToolkit on Nougat version,any recommended? Thanks a lot.
[Nexus 5X Original Android Development] qu4nd:
[MENTION=5583345]Namautoenx[/MENTION]

Don't usa a toolkit and fastboot flash TWRP instead.
[Nexus 5X Original Android Development] Namautoenx:
Anybody give me the "Fastboot file" for N5x,thanks.
[Nexus 5X Original Android Development] rebretz000:
Follow the link in the beginning of the thread.
[Nexus 5X Original Android Development] fvisagie:
For Windows, you only need one of the two "No Android SDK" options:

https://developer.android.com/studio/index.html#downloads

Installation documentation is linked from that page, but in short:

Install

In your installation (e.g. C:\Users\user\AppData\Local\Android\android-sdk-windows), locate and run SDK Manager.exe

In SDK Manager, add only Tools>Android SDK Platform-tools and Extras>Google USB Driver

Install/configure USB drivers for your platform https://developer.android.com/studio/run/device.html
[Nexus 5X Original Android Development] nirogu325:
Or you can choose the simplest way: link. That small installer is an all-in-one that also includes the fastboot drivers. I'd bookmark the link if I were you.
[Nexus 5X Original Android Development] crian:
And the best thing is, that you can run the console with fastboot from any directory you want. No need to place the files you want to flash via fastboot in a specific folder.
[Nexus 5X Original Android Development] fvisagie:
You can do this for any installation or software by adding its directory to the PATH environment variable. Separate entries with a semi-colon.