yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] SlimSnoopOS:
Correct! Your motherboard was replaced and that is a side effect. You can unlock and root but the process is kinda funky. The phone will unfortunately always relock itself. Read the reddit link I posted in the thread below:

https://xdaforums.com/showthread.php?t=3617929
[Nexus 5X General] GyniO:
Specifically I wanted to ask is already works root on 8.1?

What version of TWRP and superSu need to use.
[Nexus 5X General] SlimSnoopOS:
Yes, you could even try Magisk that suits your fancy.

The most recent for both.
[Nexus 5X General] xkz4kdp8hx:
Is 'step 3' incorrect? Do I need to decrypt to root?

I'm stuck and would appreciate the advice of folks here. -- Do i need to Decrypt even though step 3 says it isn't needed any more?

(Nexus 5x, running 8.0.0)

I was able to get through step 1 & 2 ok, as best as I can tell. But once i go into recovery in TWRP it asks for the encryption password. I can cancel out of it, but then when I try to go to 'install' on the phone and search for the location of SU, all the folders it shows me are empty. The backup feature also doesn't work as it says it can't access the storage. So i'm guessing it is the encryption. HOWEVER, step 3 says:

"3. How To Decrypt Your Data Partition"

"This is no longer necessary as long as you use TWRP 2.8.7.1 or newer"

So I never tried to do Step 3 because i'm using the latest TWRP.... is that instruction a lie? Do I actually need to decrypt?

Followup question - does decrypting hurt the security on my phone moving forward? Is my phone easier to hack if it is lost/stolen because of that? As I was under the impression Rooting wouldn't compromise my phone if I made good choices about what apps to download.

------ resolved the issue, nevermind! ------

I finally found the post reply someone already did in this thread. I am an idiot. It was asking for my phone pin. I entered it and all is well. nevermind!

(i'll leave this here in case others are as dumb as I)
[Nexus 5X General] DashWooDeveloper:
Root Android 8.1 final

Hi, how can i root Android 8.1 TWRP not working...
[Nexus 5X General] SlimSnoopOS:
Try SuperSU beta 5 or try the actively maintained Magisk.
[Nexus 5X General] DashWooDeveloper:
when i go in recovery i can't see nothing except some folder with bad name like "@asfdx34wfdsa" like this.
[Nexus 5X General] SlimSnoopOS:
Are you having trouble with TWRP? I thought you were having trouble when flashing root. I haven't used 8.1 so you'll have to direct any specific 8.1/TWRP issues to the TWRP thread

https://xdaforums.com/showthread.php?t=3230471

To me, it sounds like you have file based encryption enabled which has always given TWRP issues on this device.
[Nexus 5X General] KANGOD:
I run into the same issue, with:

Nexus 5X

Android 8.1.0 (OPM1.171019.011, Dec 2017) bullhead-opm1.171019.011-factory-3be6fd1c.zip

twrp-3.2.0-0-bullhead.img

SuperSU-v2.82-201705271822.zip

The phone stuck at the "Google logo in center, opened lock at bottom" screen (for half-hour).

Because it doesn't boot, I press and hold <kbd>Volume Down<kbd> and <kbd>Power</kbd>, and it boot into bootloader mode.

Then, I flashed an older version (8.0.0 OPR4.170623.020, Dec 2017) with twrp-3.2.0-0-bullhead.img and SuperSU-v2.82-201705271822.zip.

The phone booted into the "4 colorful animated dots" screen, I got another half-hour's waiting.

So I forced <kbd>Volume Down<kbd> and <kbd>Power</kbd> again, performed a flash of 8.0.0 OPR6.170623.023 (Nov 2017) without neither twrp nor SuperSU.

------ then it boots, and I found things goes wrong...

The unlock pattern is gone; in Android System, I was forced to hit a Reset Phone button in the screen's center; install twrp-3.2.0-0-bullhead.img, twrp requires a password to decrypt data. I input "default_password" as said.

While clicking Install and finding /sdcard/Downloads/SuperSU-v2.82-201705271822.zip, I found that the /sdcard has become totally empty. So I got a factory reset, finally.

Some other experiments:

After factory reset, 8.1.0(bullhead-opm1.171019.011-factory-3be6fd1c.zip), with twrp, without SuperSU ---> boots, but twrp will be erased at next boot, restored to default factory recovery.

After factory reset, fresh 8.1.0(bullhead-opm1.171019.011-factory-3be6fd1c.zip) with twrp-3.2.0-0-bullhead and SuperSU-v2.82-201705271822 ---> stuck at "Google logo and opened lock" screen for one whole hour.

8.1.0(bullhead-opm1.171019.011-factory-3be6fd1c.zip) with twrp-3.2.0-0-bullhead and SR5-SuperSU-v2.82-SR5-20171001224502.zip ---> boot into android system after 2 or 3 bootloops, no root access, no SuperSU app, twrp remains.
[Nexus 5X General] ritchea:
FWIW, I used FlashFire for 8.1 after downloading from Google, and root (supersu) remained as did TWRP. To me, it's always a gamble using a flash tool, but since I'm pretty confident about getting the device out of a problem with bootloader wipes/flashes, I've been using FlashFire quite a lot.
[Nexus 5X General] SlimSnoopOS:
You should try SR5-SuperSU-v2.82-SR5-20171001224502.zip from the beta thread. I can't offer any insight other than recommending you try Magisk. I need to add that into my guide over the weekend.
[Nexus 5X General] bigk75:
Hi,

I'm trying to update Nexus 5X to 8.1 version with this metod. There is no cache.img in new factory image on google site. So I don't need to flash it?

I tried to update (from 8.0) with this metod and I got booting dots for hours.

thnx
[Nexus 5X General] SCWalter:
Thank you SlimSnoopOS for the OP and the suggestion! I just want to verify here "SR5-SuperSU-v2.82-SR5-20171001224502.zip" works for my "8.1.0 (OPM1.171019.011, Dec 2017)" update:

I started with my 5X rooted according to the OP. I followed section 9 in OP trying to update to "8.1.0 (OPM1.171019.011, Dec 2017)". Everything worked fine up to the point of "flashing TWRP and SuperSU again". (I did flash the recovery.) I tried TWRP v3.2.1 and v3.1.1 with SuperSU v2.82. It stuck at the "Google with lock" screen for at least 30 min and won't boot into the system. If I just flash "8.1.0 (OPM1.171019.011, Dec 2017)" and don't flash TWRP and SuperSU, my 5X can reboot, functions normally and is indeed updated to 8.1.0. It just doesn't have root access.​

I then tried flashing TWRP v3.2.1 and installing "SR5-SuperSU-v2.82-SR5-20171001224502.zip". My 5X now can reboot, functions normally, is indeed updated to 8.1.0 and have root access. I ended up not losing any of my data, which is great!​
[Nexus 5X General] SlimSnoopOS:
Correct regarding cache.img, this is covered in each section that discusses flashing a factory image.

Follow section 9. If it doesn't boot, you need to look at the output for each command and see if you have a typo.

Or, run the flashall script and this will wipe your device in the process of updating.
[Nexus 5X General] bigk75:
Thank you for your reply. I realized that cache.img is missing since 8.0 version :o But that was not the reason for not booting. I flashed new image and left rescue as it was (no TWRP). System was stuck at booting, just showing animation with dots. So I tried and flashed custom rescue (TWRP) and than system booted normally. Can someone tell me why? I didn't get any errors when flashing default rescue.img.

Thnx
[Nexus 5X General] pmacevad:
Device not recognized in bootloader

For some reason my PC running Windows 7 64-bit will not recognize my device while booted into the bootloader. The device is recognized as an adb device while booted to system and recovery, however not while in bootloader, which causes a problem for flashing images and such or going back to stock. I have tried using the latest platform-tools download in the OP from Google but no luck. "Fastboot" is present in the folder. Is there something that I'm missing why this isn't working? Am I missing a driver or something? Anyone, Please HELP!!! TIA.
[Nexus 5X General] CLPose:
Hi, there! Yes, you're having problem with drivers since Win needs one driver for ADB and other driver for fastboot. Take a look at device manager in Win when your N5X is connected to PC while in fastboot mode. You should see a warning symbol since your N5X is not correctly recognized. Then, try to update that driver. Good luck!
[Nexus 5X General] SlimSnoopOS:
Just like the instructions say, you can test fastboot by running "fastboot devices" as a command. Adb only works in system and recovery.
[Nexus 5X General] pmacevad:
I type fastboot devices in the command window and it returns nothing on my PC. Works fine on my roommates laptop but won't work on my PC. Commands in command window work while booted to system or recovery, just not in bootloader. "Fastboot devices" command in command window while booted into bootloader does not show my device as present. Hope that info is more clear.

---------- Post added at 09:45 PM ---------- Previous post was at 09:44 PM ----------

I'll take a peek when I get home this evening. Thanks. ?
[Nexus 5X General] Nick_Knatterton:
So I updated to the latest security update today and tried to root with Magisk Magisk-v15.2 (TWRP also updated to 3.2.1 in the process) and I'm stuck on the first Google logo. Any weird compatibility with this combination maybe?
[Nexus 5X General] SlimSnoopOS:
Hmm, shouldn't be. I'm using Magisk 14.0 and stock OTA 8.1 OPM3 for January. I follow the Magisk forum fairly well and don't see why you'd be stuck on the Google logo. Could you reflash system and boot images, boot directly into TWRP then flash Magisk 15.2 again? I have yet to try Magisk 15.2 but I should get on that.
[Nexus 5X General] Nick_Knatterton:
Had to do a factory reset anyway because of the lag, worked just fine this time booting directly into TWRP and flash Magisk. Thanks for your help!
[Nexus 5X General] EmiRus:
Cant we just adb sideload ota Update in rooted5x? Doesnt that Work and is much easier?(of course flash root and so in after Update?(

Thx
[Nexus 5X General] SlimSnoopOS:
Correct. However, if it fails for whatever reason then you're covered here.
[Nexus 5X General] EmiRus:
Oh ok thanks man so it works actually ..:)
[Nexus 5X General] hamed_forum:
My phone bootloader

I can't bootloader unlocked failed

Failed remote oem unloack allowed

What must do?

Or use bootloop heat method?
[Nexus 5X General] Jostian:
when I download the latest factory image (Oreo 8.1), there is no recovery file, or vendor etc. only radio, system and bootloader, so is the process to get back to stock including stock recovery the same (is recovery then included as part of the system image?) thanks
[Nexus 5X General] Mawth:
recovery.img and vendor.img are inside the image-bullhead...zip file. Please dig one layer deeper in the factory image and you will find what you are looking for.
[Nexus 5X General] InterrtuptoR:
Hi, I'm stuck at Google logo after trying to root... What should i do? I will try to flash just the system image from factory image from 8.1 in twrp, will that work? And what about rooting after that? Ty

Update: flashing super su from their test thread worked (SR5-SuperSU-v2.82-SR5-20171001224502.zip)
[Nexus 5X General] Wuzimu:
Try to reflash boot and system from factory image, then root by magisk v16
[Nexus 5X General] deusfaux:
can someone comment on why as of the last OS update or so, the supersu app doesn't get installed as part of rooting via TWRP?

and if one installs it from the play store, then you get the message "su binary needs to update!" yet that process no longer seems to work?
[Nexus 5X General] SlimSnoopOS:
Well, Chainfire stopped active development on SuperSU when 8.0 was available. If you want SuperSU, flash SuperSU beta SR5-SuperSU-v2.82-SR5-20171001224502.zip. While booted into the rom, use a file explorer and open the SuperSu SR5 zip to common/Superuser apk and install this.

Magisk is also temporarily on hold while the dev is away from the project until fall.
[Nexus 5X General] ritchea:
Yesterday, I realized I had not rerooted my 5X after backing up to 8.0--early Dec (horrible lag). After trying three or four versions, this is what worked for me. (Link wasn't working).It's May 27 of 2.82. It is not what I'd had on the phone before backing up, but I know the latest version never worked for me.

Try this

https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.82-201705271822.zip

I was able to use flashfire to install SR3 after gaining root. I needed SR3 to install suhide.
[Nexus 5X General] Bamboo-Toolkit:
Noob questions...

1. Why does this thread focus on SuperSU, when Magisk is available? I thought Magisk was better and SuperSU was sold to a shady company.

2. If I install TWRP and then SuperSU or Magisk, will locking the bootloader again brick my 5x?

Thank you.
[Nexus 5X General] ritchea:
There are plenty of threads/posts dealing with Majisk. For me, SuperSu was what I started with years ago so as long as it continues to function for my needs, I'll use it.
[Nexus 5X General] SlimSnoopOS:
1) I just haven't added it in, been meaning to for awhile. I wouldn't say one is better than the other.

2) It is not recommended to lock the bootloader with modified software on the phone.
[Nexus 5X General] denraisr:
Hi, quick question.

I install the twrp on my stock but after that my phone wont boot anymore. Unless I reflash stock or flash a custom rom, my phone boots up

Is there a way to fix this? I just wanted a rooted stock oreo :)
[Nexus 5X General] SlimSnoopOS:
That shouldn't happen. Flash the latest TWRP bullhead image, flash Magisk then see if it boots up:

Magisk stable:

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
[Nexus 5X General] Bamboo-Toolkit:
That is what happens when you flash TWRP and then don't install a root utility like Magisk in the same session.

I had the same problem and got out of it using the instructions here:

Sorry, I can't post links since I'm a 'new' user (low posts, but registered over 1 year ago.)

https reddit dot com /r/nexus5x/comments/4z7b8w/flashed_twrp_via_adb_enter_recovery_and_get_no/

These instructions refer to SuperSU but you could also install Magisk. If you haven't already copied the Magisk installer into your phone memory, you can use the adb push command for that.
[Nexus 5X General] PizzaAmerican23:
Is the twrp website down for everyone? Figures I wiped this phone before downloading twrp - now im stuck halfway through a root and flash process :(
[Nexus 5X General] ritchea:
I get this site https://dl.twrp.me/bullhead/
[Nexus 5X General] PizzaAmerican23:
thanks
[Nexus 5X General] grabber5.0:
This seems like the best place to ask this (I couldn't find an official twrp thread..). I've searched many times and can't find an answer. Why are my twrp backups not able to boot on this phone? I've never had trouble on any other phone with this. On my 5X, I always get stuck on the google logo after restoring a backup, regardless of which partitions I restore. The first time, I thought it had to do with one of them being different going back to stock from Lineage, but even immediately restoring a stock backup after a clean flash does the same thing. I can get back into twrp, but never Android. The only way forward from that point is re-flashing. I had the latest twrp installed (it's been a couple months, so it's possible there's a new version.
[Nexus 5X General] SlimSnoopOS:
Well let's start with the basics, which partitions are you backing up in TWRP? Which version of TWRP are you using? Which Android version are you using for these backups?

I've only ever checked boot, data, and system for TWRP backups. I don't backup anything else but I do flash vendor images when reverting to a backup from a previous month.
[Nexus 5X General] grabber5.0:
I don't remember all of the details, but here's what I can recall right now. I confirmed yesterday I definitely had the latest version of TWRP at the time, and in fact I think it is still the latest. According to backup log, it was TWRP 3.2.1-0-2af13795.

I generally back up everything I think I might need on the first backup, even if I think I'll never use it. The 5X is the first phone I've had that has the vendor and vendor partitions, so I was initially unsure what to backup and restore. The first backup was a backup of stock Android 8.1 (OPM3171019014 according to TWRP log. Backup date was 3-4-2018, so probably Feb security patch) before I flashed Lineage. Then I flashed Lineage 15.1, used it for a month or so (including an update or two), and then because of a bug I'll post in that thread, and decided to restore the backup. I don't remember exactly what I restored, but I think it was boot, system, and data, as you mentioned. Upon reboot, it was stuck on the Google boot logo. I thought maybe I missed something, so I flashed the factory image and then restored the backup again with the same result. At that point, to rule out any conflicts between the Android, bootloader, vendor image, etc versions, after flashing stock Android and TWRP, I did a backup and then immediately restored it before rebooting. Same result. I don't remember if I tried restoring any partitions individually, as at this time I gave up for a while because of the Lineage bug still affecting me. Plus every time you factory reset, a new device ID is generated, and I had several spots taken up in Google Play Music for the 5X by then and I'm near maxing out the device limit.

I believe I also tried to restore a Lineage backup too - lineage_bullhead-userdebug_810_OPM217101902 based on TWRP backup name.

Edit: I just found the 5X TWRP thread.. Perhaps I should post this there and link to it?
[Nexus 5X General] morrisonsvoodoo:
How can i be able to unlock the oem when it says "oem unlock is not allowed", and my phone is in a bootloop, i cant even access recovery mode.
[Nexus 5X General] Aimless Rambler:
Late response but have you seen/tried this (see link below)?

https://xdaforums.com/nexus-5x/help/guide-fix-bootloop-locked-bootloader-t3608679

Be sure to thank OP if post info helps.
[Nexus 5X General] nookin:
I have a 5X that is bootlooping. I managed to unlock the bootloader. I tried applying some bootloop fix but it didn't fix it. I am thinking of flashing to a factory image. I've downloaded the opm zip. I have a few question:

1. There is a flash-all.bat script. I guess I can just run it instead?

2. Since I am having bootloop issue. Would it stop half-way during flash?

3. Is there a preferred factory image + workaround combination for those experiencing bootloop?

4. Does it matter what model I have? I believe I have H791.
[Nexus 5X General] vinnybear69:
no PC connection in bootloader mode

Hi, I have a bullead LGH790 Nexus 5x

Bootloader version BHZ31B

I'm trying to root it but can't get ADB or Fastboot or Nexus Root to see the phone when it is in bootloader mode.

I can see the phone when it is normal mode but not in bootloader

please help
[Nexus 5X General] CLPose:
It seems as you're having a fastboot driver problem. Did you see the first post? In the "Prerequisites" part, you'll find a link to the necessary drivers. Good luck!
[Nexus 5X General] CongestedHangman:
hi. currently i'm on a custom rom. i have unlocked bootloader & latest TWRP.

i wanted to flash stock rom by following this guide.

i've downloaded the last Oreo 8.1 bullhead-opm7.181205.001-factory-5f189d84.zip factory image released for Nexus 5x

uncompressed the whole zip file and got the following .img files

android-info.txt

boot.img

bootloader-bullhead-bhz32c.img

radio-bullhead-m8994f-2.6.42.5.03.img

recovery.img

system.img

vendor.img

there was no cache.img and userdata.img in the zip file.

since i'm on a custom rom, do i need to flash cache.img and userdata.img if i want to go full stock?
[Nexus 5X General] fvisagie:
I would imagine so, unless your custom ROM happens to use exact copies of the standard images.

If you need them, posts a while ago mentioned the latest factory image containing the cache & userdata images (if the original post hasn't been updated to mention them yet).
[Nexus 5X General] Mawth:
Alternatively, you can simply execute the flash-all script located in the factory image .zip. Doing so will return your phone to stock.

./flash-all.sh

or

flash-all.bat

depending on which system you are using (unix or windows).
[Nexus 5X General] CongestedHangman:
thanks for your info...

so, no matter what custom rom/ custom recovery is installed on nexus 5x,

if the flash-all.bat is executed, it will install stock rom without any problem ??

(i never flashed stock rom before, just a little confused.. thanks :))
[Nexus 5X General] Mawth:
Correct. You will have a stock system, recovery, etc. Bootloader will still be UNLOCKED. If you plan to re-lock the bootloader, make sure the phone boots before doing so.
[Nexus 5X General] AlienTeck:
Is your system still working? After updating to the latest OS, the computer now do not recognize the phone and only shows up as unknown device and no ADB access at all.. And no way to go back either..

Since ADB access is more important than stock I would be happy with going back to OS7 as there is not much advancement with OS8..

---------- Post added at 07:10 PM ---------- Previous post was at 07:07 PM ----------

You are using a version of TWRP which does not compress the data properly so save the data in uncompressed or get a fixed version where compression is fixed.. There was also a version where boot was saved as recovery.. And since both boot and recovery were the same data, flashing it back did not work..
[Nexus 5X General] fvisagie:
Recommended TWRP version

What version TWRP do you recommend? I've been using the same 3.2.1-0 as [MENTION=6502709]grabber5.0[/MENTION]. Although more recent versions have been released, the Nexus 5x TWRP thread seems out of date and I'd appreciate your recommendation.

Specifically, the TWRP 3.2.3-0 changelog mentions

Is SuperSU rooting no longer possible, or what else does that mean?

Thanks!
[Nexus 5X General] AlienTeck:
I have been using magiksk for long time so no idea about superSU, also Ever since the OS update I have no access to ADB, but I think I have been using 3.2.3 and above TWRP versions.

I tried a much shorter USB cable I got with a powerbank and got ADB working so flashed TWRP. But it gets written over so I have to flash and then reboot into TWRP a few times for it to stick.. But at long last after over 6 months got ADB working again after installing android studio. This is like the USB cable I had originally, which worked to transfer data but after replacing he motherboard the cable did not work for data but still working for charging. Although I am not sure what the longer cables problem is as I was using it for over an year without problems. So now that google has stopped support I can at least flash some new roms and updates..
[Nexus 5X General] meyerweb:
I'm sorry if this has been asked and answered. I've done several searches and, if the answer is here, I can't figure out what to search for.

Anyway, newb to the 5X. Just picked up a used one to use as a second device for a specific purpose, and am trying to root. I've successfully unlocked the phone and installed TRWP 3.2.3-0-bullhead. I reboot into TWRP to install SuperSU (SRS-SuperSU-v2.82-SR5-20171001224502.zip), but I can't find the file. In TWRP, the scdard folder shows empty. (If I boot normally, I can see the zip file in both the top level directory and in the download folder, but I don't even see the download folder, or any others, in TWRP.)

The Nexus is running Android 8.1.0.

What am I missing? Any and all suggestions welcome. Many thanks.
[Nexus 5X General] CLPose:
Hi! I can only think that TWRP has no access to your data. Remember to allow TWRP to access your internal memory (a factory reset should prompt some warning about TWRP accessing your data). If you can't see your internal storage, try with some USB OTG. And finally, if I were you, I'd try with Magisk instead of SuperSU. Good luck!
[Nexus 5X General] meyerweb:
Thanks. I'll check out Magisk, and try the reset. (It's been while since I've rooted a phone. ;) )
[Nexus 5X General] freddienuxx:
Hello guys big issue trying to root and every time I unlock the bootloader and flash TWRP or don't flash TWRP I reboot to system then back to bootloader it locks! Is there a fix for this? I mean every time reboot to bootloader it relocks after unlocking. Been dealing with this for 8hrs. Thx In Advance