yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] jeffsf:
The official TWRP website is https://twrp.me/ and you can download current and past versions there.

I personally prefer to get factory images from, well, the factory.

https://developers.google.com/android/images

unzip <factory_image_name>.zip vendor.img

fastboot flash vendor vendor.img

will do it over adb/fastboot.

---------- Post added at 12:49 PM ---------- Previous post was at 12:30 PM ----------

Mac OS X users

+1 to this, as the easiest way to get adb and fastboot installed, with the proper paths, and updated (assuming you're already using brew).

If you're not using homebrew (brew) yet, it's easy to install and gives you arguably cleaner access to command-line (and a few GUI) tools and utilities than some of the other package managers.

Install instructions at http://brew.sh/ you should confirm, but the magic install is simply:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Do not use sudo!
[Nexus 5X General] dadenet:
I know where is located the twrp official web site , but if you check : https://dl.twrp.me/bullhead/ , you will not find the release 3.0.2-3
[Nexus 5X General] baldemora:
I am trying to do this because the phone won't turn on. Can I do the unlock without being able to enable OEM unlock?
[Nexus 5X General] CLPose:
Could you provide more details? If your phone doesn't boot and "OEM unlock" is disable, AFAIK you won't be able to unlock your bootloader. Now, if it is bricked (doesn't even turn on) you could take it to your warranty if available. [edit] If your phone is in bootloop, Nexus Root Toolkit can be a handy tool to solve your problem!
[Nexus 5X General] Smac7:
so i finally got my 5x back from warranty repair and it returned with stock 7.0.

i turned it on and skipped the setup (including skipping password protection) and the took the OTAs to make it update to the most recent ota (7.1.1). Then I made sure developer settings allowed for oem unlock. After this i went into fastboot and unlocked it without issue and then flashed the most recent twrp.

Here's where things get weird, it asked for a password upon first boot of twrp. I never set a password so i eventually ended up hitting cancel and then had to format data on every partition to get anything to flash at all. If i recall correctly, everything seemed like it worked fine here except for cache. Then i flashed pixelrom and everything flashed fine until cache where it said "failed to mount /cache" or something similar to that. I booted into pixelrom and everything seems to be working fine, for now...

I'm worried that when i go to update to a new rom that is not based on the same version number the cache will once again fail to mount and cause problems. Any thoughts or ideas?
[Nexus 5X General] ulxerker:
I wouldn't worry as I also saw this warning from time to time and it never caused any issues for me. Also, that password inquiry is normal until you format /data, it has something to do with the encryption.
[Nexus 5X General] Smac7:
i just don't get why the cache would fail to format but all the other partitions seemed to have formatted okay. Doesn't 7.1.2 require flashing a new /cache? or is that only with flashing factory images?
[Nexus 5X General] saltsaint:
Is there any way I can enable usb debugging than tapping on the dev options in sthe setings menu? I have my screen broken an I cannot acess it
[Nexus 5X General] SlimSnoopOS:
Probably so however the 7.1.2 factory image does not include the cache.img. Which is unlike every factory image we've receive to date. I'm unsure why that is.
[Nexus 5X General] ddiehl:
Hi.. This is my first attempt at rooting and I have aquestion.

It says to place TWRP Recovery into the Fastboot folder but the only folder I can see is Platform-Tools which contains the Fastboot file did something change or did I miss a download link, or do I place TWRP Recovery into the Platform-Tools folder?

Thanks..
[Nexus 5X General] CLPose:
Hi! AFAIK, your "fastboot folder" is the folder where fastboot.exe is located. ADB.exe file should be there as well. It should be the folder from where your open your CMD. Can anyone else confirm? Good luck!
[Nexus 5X General] SlimSnoopOS:
Correct!
[Nexus 5X General] tugs0109:
If your phone is On you can use mouse via OTG to enable that dev option.
[Nexus 5X General] saltsaint:
Thanks for your suggestion! but both the screen and lcd are broken. To recover my personal data I need a workaround. If anybody can help me, please

Thanks!
[Nexus 5X General] ddiehl:
Thanks.. One more question.. Will this method work on the 7.1.2 beta release? And if it does is there anything I need to know?

Thanks again.
[Nexus 5X General] SlimSnoopOS:
Without trying it myself, yes it will work. Right now, 7.1.2 is little more than a security update that may introduce bugs and compatibility issues with your apps. Doesn't affect root all that much. Seems like the next version of Android that will seriously impact the enthusiast community would be announced at Google IO.
[Nexus 5X General] ljfnky:
I've successfully updated to February update flashed TWRP, re-rooted. I've learned so much in the past few weeks reading the guide, all the comments. Thank you all for your contributions.
[Nexus 5X General] mireste:
When I run fastboot devices nothing happen :(
[Nexus 5X General] SlimSnoopOS:
Make sure that you have updated your fastboot and platform tools. It's fairly easy to forget to update this at least once every two months. Also, try using a different USB port for your computer.
[Nexus 5X General] mireste:
I downloaded the file now by your links, I used Windows 7 and didn't work. Then I used Windows 10 and... surprise... works correctly :):):)
[Nexus 5X General] AliAnne84:
Locked in startup

Hi there, I followed steps 1-2 perfectly and had no issues. When I got to step 3 I had no space so I tried to restart back into the regular android mode. It just sits on the screen after the word android (where the little icons are spinning) and never gets past that. I can force restart and easily get back into the recovery mode but can't get to the android build at all. Help! (This is my first time attempting to root.)

Ok well I went ahead and did the next step and it's working now, just no backup... oh well
[Nexus 5X General] CLPose:
Great! Now that you're fine with your phone, and that you have some experience, take a deep breath and start again. It's important to have a backup of your phone. In particular, it's important to have a backup of your EFS partition. Good luck!:fingers-crossed:
[Nexus 5X General] AliAnne84:
Ok so when I look back and think of my steps, i actually think I did create a backup. And it is taking up a huge amount of space on my phone. So the question is, how on earth do I access it so I can move it somewhere else (i.e. my computer) and so it doesn't hog up my phone space? Otherwise my phone is working perfectly (with new google assistant yay) but I only have 1gb of free space! I still have the TWRP recovery mode installed and can access that if necessary.
[Nexus 5X General] CLPose:
Great! With any file manager (I recommend Mixplorer https://xdaforums.com/showthread.php?t=1523691) go to SD card/ TWRP and check the "BACKUP" folder. If you made a backup, it should be some 6 or 7Gb. If so, connect your phone to your PC, enable MTP mode, and move that backup to your PC. :cool: If you're going to make a backup in the future, I recommend that you use a USB OTG memory. If you're in a 16gb phone, there will be no space for another backup. Good luck!
[Nexus 5X General] AliAnne84:
Hmm, I am at a loss. I connect my phone to my pc and it shows internal shared storage as 481MB free of 10.6GB but there is only 887 bytes in the TWRP folder. I went through every folder listed and none of them are close to the amount used. (Files shown are: Alarms, Android, DCIM, Download, Foscam, Movies, Music, Notifications, Pictures, Podcasts, Ringtones, TWRP). Any other suggestions? Thank you so much for your help btw.
[Nexus 5X General] Noymn:
Does this method work with Android 7.1.1 or should I go back to 6.0?

I mean to install TWRP and Root
[Nexus 5X General] alfick3:
So, if you'd read a bit you'd have found the answer to your question. But, yes this will work. Flash the recovery and then SuperSU, and then you'll be rooted on stock.
[Nexus 5X General] Noymn:
I had seen some posts with different answers but wanted to be sure. I'm trying to become root to switch off 2 of the cores in hope my phone remains outside the bootloops...
[Nexus 5X General] CLPose:
Hi! How do you know that online cores are responsible for bootloops? :confused: When are you going into bootloops? Could you explain further? Good luck! :fingers-crossed:
[Nexus 5X General] miguelgo81:
Can´t allow usb debbuging

What can I do if I can´t start my phone to allow USB debugging and I want OEM Unlock? Help please.
[Nexus 5X General] SlimSnoopOS:
Pretty much nothing. Explain what happened to your phone.
[Nexus 5X General] miguelgo81:
Pretty much nothing, one week ago I woke up and it was off. I tried to turn it on and it started bootlooping. The bootloop was not normal, I mean it displayed the google logo and restarted or it showed the animation and freezed. Eventually it gets to start but after a few seconds it freezes again. I didn´t install any update or something.

I can get to recovery but when I try to install from adb it says it is locked....

Is there anything I can do?

Saludos,
[Nexus 5X General] KostisTTT:
Bluetooth connection problem

Hello, guys..

I would like to ask you about a problem that I have with Nexus 5x (rooted, MM, Xposed) and my BT handsfree device (Sony MW600).

After rebooting the device pairs (phone audio and media audio) with the phone normally.

If I close the BT from the device and enable it again, it pairs with the device but only to media audio..

As many time I touch the Phone audio at BT Settings, it does not activate..

If I reboot, then for the first time BT connect normally (phone and media), but after closing the BT and enabling it again, it connect only to media audio... (!!!)

Could it be a bug, or any sudden change at the settings bluetooth setting?

Should I take logs?

Or should I do a factory reset, without trying anything at all?

As long I searched, I could not find something similar..

Thanks in advance.
[Nexus 5X General] Bingley:
Why not offer Magisk root in tutorial - the systemless one which doesn't touch the partition in any way, thus allowing ota and future Google-fu not to be blocked due to a modified partition?
[Nexus 5X General] Nomelas:
This thread is probably not the best place to ask. I had this issue myself though on my oneplus until recently I updated to Android 7.1.1 via LineageOS. Problem seems to be gone now.

So your best bet is to drop xposed (it's not supposed on nougat) and update your stock firmware to 7.1.1 and see if that fixes it.
[Nexus 5X General] SlimSnoopOS:
No reason actually. I think the only other person to have mentioned this also said something bout a companion app? And PHH? Since they didn't provide links, I didn't look into it. Do you have any? I'd read over them and add it into the guide, most likely as just link alternatives.
[Nexus 5X General] Bingley:
Here's the xda link: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

It has an app which updates it, allows toggling of it, allows you to hide it from safetynet, and allows modifications to system without actually touching it. Pretty cool.

Allows you to choose su app ie magisk or supersu, and is completely reversable as it doesn't touch system as it's all done via boot.img modding.
[Nexus 5X General] ljfnky:
Quick question about this method....It does pretty much take you back to stock?... am I correct on that thought?
[Nexus 5X General] SlimSnoopOS:
Yes it does return you to stock. This method is strongly encouraged as well.
[Nexus 5X General] ljfnky:
So once done it is safe to oem lock the device?
[Nexus 5X General] SlimSnoopOS:
Correct. Are you selling the device?
[Nexus 5X General] ljfnky:
No way lol just clarifying what I thought already, I'll be hanging on to my 5X at least till next year. [emoji4]
[Nexus 5X General] paul222008:
im on twrp 3.0.2-2 and rooted on supersu v2.79 stable but everytime i reboot to recover i get this message

"Your device software can't be checked for corruption. Please lock the bootloader"
[Nexus 5X General] khanjui:
Nothing to worry about. There is no way to remove that message, just ignore it.
[Nexus 5X General] SlimSnoopOS:
Cool! One thing I'll suggest, is to reboot and see if you can access stock recovery before locking the bootloader.
[Nexus 5X General] ljfnky:
Okay thanks, appreciate your help.
[Nexus 5X General] paul222008:
just bought the device 3 days ago. so that means im good to go back-up/flashing costum roms? :D
[Nexus 5X General] ulxerker:
Exactly.
[Nexus 5X General] -Happy Feet-:
Hello, I think my device is unlocked. Can I flash the TWRP image and install over the recovery the systemless root files? How can I check if the device is encrypted? Sorry for asking but I got the device today.
[Nexus 5X General] ulxerker:
yeah, its unlocked. just go ahead and flash supersu in twrp.

to check if the device is encrypted go into security settings and look for the encryption status.
[Nexus 5X General] -Happy Feet-:
Can I just flash TWRP image over fastboot? And get I OTA Updates after flashing?
[Nexus 5X General] Zach1928:
Hi All, I was hoping to get some insight, sorry if this has been answered elsewhere. I'm looking to keep my 5X as stock as possible (stock ROM and bootloader, no root) but I do want to install FK and I just have a few questions about the process- after the bootloader is unlocked, can I

Fastboot boot twrp.img

without installing and just sideload the FK zip and use the standard TWRP flash process? If this actually does work, will I still be able to get OTAs and if so will they install and overwrite FK?
[Nexus 5X General] ulxerker:
yeah, issue "fastboot flash recovery twrpxyz.zip" when phone is in bootloader mode, after that reboot directly into recovery (twrp) and flash supersu.

no, OTA won't work automatically anymore. you have to apply them manually, see 1st post of this thread, section 9.
[Nexus 5X General] SlimSnoopOS:
Yes you can live boot TWRP.

Yes you will still receive OTAs however they will fail to install. You can try this and see when Monday's March OTA is released. OTAs will fail because Franco kernel isn't the official boot.img. OTAs install by unpacking themselves, checking that the partitions match up with what it expects them to be, then installs the new OTA changes to its respective partitions if they match up. Many user induced system and kernel level changes will fail this check. You can ADB sideload the full OTA image provided by Google (same link as factory images). This will overwrite your changes, so you'll need to install your mods afterwards.
[Nexus 5X General] Zach1928:
Thanks the response! Will Sideloading the OTA from Google need to be done using TWRP or would I be able to download it, jump into recovery and manually apply the update? Also I figured it would overwrite FK with stock but I wanted to be sure.
[Nexus 5X General] SlimSnoopOS:
Any time! ADB sideload can be performed in TWRP or stock recovery
[Nexus 5X General] -Happy Feet-:
It's okay, I flashed the pure Nexus ROM
[Nexus 5X General] ljfnky:
Just sideloaded March update and I'm having a problem with storage should be way Less then this. Can I delete whatever's in the other folder to free some gb's

in TWRP folder I have the two backups from today and 3 from the past it is okay to Delete that?
[Nexus 5X General] SlimSnoopOS:
Yes. Or, transfer your backups to a computer then wipe internal storage in TWRP. Move the one or two backups you want back onto your phone.
[Nexus 5X General] ljfnky:
Thank you for your help problem solved :good:
[Nexus 5X General] Gabriel1495:
I read that a new TWRP is here (3.1.0) and in the changelog there is "possibility to flash OTA directly through recovery" too, what does it means?

Can we normally install OTA from smartphone, or should we download OTA Image from Google's site, move in phone's memory e than flash from recovery instead from ADB?

What can we exactly do now?

Thanks
[Nexus 5X General] SlimSnoopOS:
Idk what you're referring to. Mind pointing out this specific reference? I've scanned the TWRP github going back to Nov. 30, 2016 commits.

Official XDA article only mentions AB OTAs which is for devices shipping with 7.1+.

Official TWRP changelog currently doesn't mention anything more.

Also, I checked their Github and only saw references to AB OTAs (7.1 shipping devices only), and two commits titled "Fix Image flashing."
[Nexus 5X General] Gabriel1495:
I can be so stupid...Sorry, you lost your time for me :(

I forgot to search for an article here in XDA (I read something​ in my native language).

Now I found it.

What is this new A/B partition for Pixel?

I forgot to say that I have a Nexus 5x with android 7.1.1.

Is there any new feature for 5x owners?

Thanks and sorry again...

EDIT:I copy and paste some line of XDA's article, but last piece of my post was cut, I can not copy and paste...
[Nexus 5X General] SlimSnoopOS:
https://source.android.com/devices/tech/ota/ab_updates.html
[Nexus 5X General] Gabriel1495:
Thank you a lot!

Do you confirm me, that A/B OTA is only for Pixel and I can forget about it?
[Nexus 5X General] SlimSnoopOS:
Yup. Only for devices that ship with Nougat 7.1 out of the box.
[Nexus 5X General] yoorie016:
Hey guys, i'm trying to enabled the ElementalX kernel, but the superSU keeps force closing. I followed very well all steps, but i'm just wondering, flashing the superSU will automaticall root your phone? or do i need to root it separately then flash superSU?
[Nexus 5X General] SlimSnoopOS:
If on stock rom, fastboot flash boot and system. Boot into TWRP, flash SuperSU 2.79 then flash ElementalX kernel. Boot into the rom and now you should be able to access SuperSU no issue. Alternatively, flash root with an alternative method such as Magisk.
[Nexus 5X General] yoorie016:
so i need to go back to stock? im currently using pure nexus rom and installed it without any issues. The bad part is that i didn't test out immediately the root access after i flashed the custom ROM.
[Nexus 5X General] SlimSnoopOS:
Try reflashing the rom and see if it removed SuperSU in the process then flash SuperSU 2.79.
[Nexus 5X General] yoorie016:
fixed! i reflashed the TWRP zip and it didn't give a root, but i uninstalled superSU and downloaded it via playstore, that fixed my issue. Thanks for the help btw.
[Nexus 5X General] mireste:
I want to update the beta 7.1.2 but into the download there is not the cache.img, how can I do??
[Nexus 5X General] SlimSnoopOS:
Skip it.
[Nexus 5X General] mireste:
Must I skip also "fastboot erase cache"? Thanks
[Nexus 5X General] ulxerker:
yeah, don't erase cache if you don't flash a new one.
[Nexus 5X General] pinkydw:
Thanks for this.

If I just unlock it, install super su and still use the stock with root, can I relock it so I don't get the annoying message/warning when I reboot?
[Nexus 5X General] SlimSnoopOS:
I do not recommend doing this. If you encounter any issue such as a bootloop in the process of locking the bootloader while rooted, you are out of luck and beyond the scope of this thread.
[Nexus 5X General] pinkydw:
Ah ok, thanks, so just ignore it?
[Nexus 5X General] CLPose:
Yes, just forget about it and enjoy your phone! ;)
[Nexus 5X General] Nex23:
Hey,

so i got this problem several times now.

After flashing back from a higher android version (8.0 to 7.1.1 or 7.1.2 to 7.0.0) i get the message "com.android.phone has stopped" right after reboot without being able to access the homescreen (like a bootloop).

Flashing bootloader/radio/boot/cache/recovery/system/vendor (any android version) never worked so far. There still will be the same error.

The only thing which worked so far was to restore a Nandroid backup (system, boot, data).

What is the reason for this error ?
[Nexus 5X General] SlimSnoopOS:
Shouldn't happen if you are doing a factory reset prior to installing Nougat 7.0/7.1.
[Nexus 5X General] Nex23:
Well, yeah of course i don't want to factory reset. Somehow i switch forth and back android version just for fun. But factory resetting or restoring nandroid backups takes too long to set up again, so it isn't fun then.
[Nexus 5X General] SlimSnoopOS:
Lol that's why you're experiencing this problem. Unless you have a work related reason for not resetting your phone during the image flashing process (say you work in emergency medical field, hat tip if you do), it's important to perform regular backups. Factory resetting and/or restoring a backup go hand in hand when switching between OS bases. It is never advised to flash an older OS over top of a developer preview (alpha or otherwise) without performing a factory reset beforehand. Google even does this automatically for you when leaving the developer preview program.

Edit: Also, I'm not referring to wiping the entire phone storage. I am only referring to the rom itself. Apps, SMS, and call logs can be individually restored using root apps like Titanium Backup pro.
[Nexus 5X General] pinkydw:
Cool, thanks!

Btw, I tried the google usb driver, wouldn't let me install it, ended up using "LG-Mobile-Driver_v3.14.1" and was finally able to talk to the phone.
[Nexus 5X General] Questions&Questions:
is it safe to root the beta or should I opt out of the Beta program and then root?
[Nexus 5X General] SlimSnoopOS:
You'll want to be more specific with your question. 7.1.2 developer preview can be rooted.

Android O developer preview can be rooted as well but its also likely to cause a bootloop.
[Nexus 5X General] shabtab:
I cant find Cache and Userdata is it safe to flash?
[Nexus 5X General] jaketran95:
I got stuck at TWRP logo screen

Hi, it's been frustrating for me but I been trying to root my Nexus 5X

Everything is good until I got stuck at the TWRP logo screen.

It is the TWRP 3.0.2-0

I've been looking for solutions like reflashing to stock img or doing with the latest TWRP headbull img, but I don't know how to escape from this.

Everytime I restart the phone only give me time to pause the loot when I hit power button, but then after it proceed anyway to TWRP.

How can I solve this?

Thanks a lot
[Nexus 5X General] Questions&Questions:
The second developer preview of 7.1.2 is what i'm running right now and was just wondering if it can be safely rooted or would i have to downgrade to root.

Build number NPG471
[Nexus 5X General] j-a-d-z:
2.79 SR3 works without problems on 7.1.2 DP2.
[Nexus 5X General] SlimSnoopOS:
Please be more specific. I am guessing you are referring to 7.1.2 developer preview 2? If so just do not wipe cache when upgrading from DP1. Userdata is not necessary to flash.

Use a newer version of TWRP if you want to access it properly. Make sure you have your preferred root method downloaded onto the phone already.
[Nexus 5X General] shabtab:
I was on pixelrom 7.1.2 then I formatted everything with twrp, and fastboot flashed the dev 7.1.2 ROM manually without flashing the cache and userdata I just followed the rest of the steps and everything seems to be okay now, should I download a 7.1.1 ROM and flash them or is it okay?
[Nexus 5X General] SlimSnoopOS:
That's fine. Enjoy the 7.1.2 previews!
[Nexus 5X General] ljfnky:
I'm having a issue installing the newest 7.1.1 ota update N4F26U or the newest one 7.1.2 update N2G47F was going to install the n4f26u then do the other one but I'm getting this. adb.exe has stopped working

A problem caused the program to stop working correctly. Windows will close the program and notify you (IE ME) if a solution is available.

:(

I have update my platform tool to newest ones usb drives are up to date