yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] Josh:
Downloaded MTP drivers and universal adb drivers + I've got Lg drivers in folder. Tried with Nexus toolkit without succes and tried with command prompt with minimal adb and fastboot so that works because with N toolkit device doesnt recognize device in fastboot..Somehow with restarting device in bootloader and enabling usb debugging Nexus toolkit recognize device in bootloader and thats it.
[Nexus 5X General] ABSathe:
[MENTION=1299673]sfhub[/MENTION] [MENTION=3576831]SlimSnoopOS[/MENTION] and everyone who can help

https://drive.google.com/file/d/0B7mxHyEnIpQ3c1M3amh6VDlKMjQ/view?usp=drivesdk

https://drive.google.com/file/d/0B7mxHyEnIpQ3endiNml1akZjelU/view?usp=drivesdk

Here are the videos describing my issue

The issues are present on stock ROM which was factory reseted

Offer me any solution other than replacement.. I can't replace once again (that was in terms and conditions of offer through which I bought my device )

Thanks in advanced
[Nexus 5X General] SlimSnoopOS:
I watched the first link. The second link looks to be private or something since it asks me to sign in to Google.

I don't have anything to add as far as troubleshooting. I just don't see how you get Black Screen of Death so easily on this phone even after RMA or installing factory images. I think you should move onto another device if you're experiencing the same issue from a couple months ago. I do not think the 5X is that great of a phone to be dealing with persistent issues.
[Nexus 5X General] ABSathe:
I've already switched to another device .. but I'm still investigating the cause

Thanks for helping though
[Nexus 5X General] truneaux:
Diddit

Sorry for the late response. I was a bit busy with family and friends around christmas and New Year

Finally I have overcome all the issues ... I tripped over a project from the Tor guys called "Mission Improbable" which is based on Copperhead OS.. Orwall seems to be dead and Tor itself was never my way for my mobile, but these guys had a bunch of scripts on github, which altered a few images integrating Superuser and TWRP, resigned the altered images with own generated keys and reflashed the altered and resigned images back to the phone. After the reflashing you are able to relock the bootloader without loosing root-functionality, because the Nexus phone seems to be one of a rare kind accepting self-signed images.

After relocking the bootloader you're still able to install previously downloaded APKs (from fdroid) via adb. In my case this included AFwall+, Root Verifier and a newer Version of SuperUser. After installing all the APKs from my list I disabled USB debugging. Everything is up and running fine now, incoming & outgoing connections can be controlled by AFwall, CopperheasOS in itself should be safe enough to keep the apps in their sandboxes and the phone is still rooted.

It was quite a hack to tweak with the provided scripts, but finally I now have my mobile without any google-play-store stuff or even a google account.

If someone's interested in the neccessary tweaks, just ask. Too bad this only works on the Nexus devices due to Copperhead restrictions and the selfsigned images.

One thing about the mentioned password after installing TWRP "manually": depault_password never worked. I had to set up a password in stock ROM before flashing the custom recovery, then it workedm with that password. But this was no issue at all with the above mentioned scripts ...

Happy New Year

truneaux
[Nexus 5X General] SlimSnoopOS:
Significant changes to the guide

Happy Friday foiks!

I was made aware by two reputable blogs (Android Central and Android Police) that Google has posted a single zip for ADB/Fastboot platform-tools. This means there is no need to download the full Android SDK. There is one zip per platform: Windows, OSX, and Linux. Each download is ~3.7 MBs, however these links and file sizes will be updated periodically by Google. Clicking any platform-tools link will immediately start a download.

*Windows: platform-tools. Google USB Driver install instructions.

*OSX: platform-tools. For additional details on how to use OSX and adb/fastboot commands, see post #3.

*Linux: platform-tools.

Once you have downloaded the platform-tools zip, extract the file then transfer the platform-tools folder to your desktop. The platform-tools folder contains adb, fastboot, and several other files. To make sure your ADB is installed correctly, open a command prompt from within the platform-tools folder (hold shift + right click, select open command prompt here) and issue this command:

adb version

If it returns a version number for Android Debug Bridge then you're good to go.

You can test adb by connecting your device to your PC while booted into Android (making sure that adb/usb debugging is enabled in Settings>Developer Options) with the screen unlocked and issuing this command:

adb devices

It should return your device serial number, if so, adb is working.

You can test fastboot by connecting your device to your PC while booted into the bootloader (power + volume down) and issuing this command:

fastboot devices

All of this information has been included in the guide.

Additionally, post #3 now has an introduction to ADB/Fastboot commands specifically for OSX users.

Please offer feedback or constructive criticism to the changes in the guide. Hat tip to [MENTION=4153349]Heisenberg[/MENTION] for his guide over in the 6P forums, his guide gave me the heads up to include this info.

Happy New Year!
[Nexus 5X General] solara1973:
Chainfire's modified bootimage from the I build reportedly still works for the L.
[Nexus 5X General] drocny87:
I thought it works for (i) and not the (L) build?

---------- Post added at 05:49 PM ---------- Previous post was at 05:39 PM ----------

do you have the modified boot image for MDB08L? thanks
[Nexus 5X General] reddv1:
The (i) modified boot image works on both MDB08L MDB08M builds. I'll post modified boot images for L & M soon. I'm having trouble repackaging them without getting a kernel panic.
[Nexus 5X General] drocny87:
thank you for your help.
[Nexus 5X General] reddv1:
Here are modified boot images for MDB08L & MDB08M & MMB29K

bullhead-mdb08l-mboot.zip (tested working)

bullhead-mdb08m-mboot.zip (tested working)

bullhead-mmb29k-mboot.zip (tested working)

These boot images have the following modifications per Chainfires instructions, just like the modified mdb08i boot image:

- patched sepolicy

- disabled dmverity

- disabled forceencrypt
[Nexus 5X General] Seanbest:
I've rooted my phone while keeping encryption enabled for my job. Everything works great. However how do I go about getting the November security patch installed? Can I do it without wiping the device? TIA
[Nexus 5X General] rchk2015:
Thanks for great work reddv1. :good: Just rooted my Nexus 5X (mdb08L). Cheers.
[Nexus 5X General] Heisenberg:
Thanks for throwing these together, I've added a link to this post in the OP (Section 5 - How To Root Your Stock Rom).

:good:
[Nexus 5X General] chrisonline:
Just did it, but if I open SuperSU I get a warning that I am not rooted.

I am on a Nexus 5X with build MDB08L.

Unlocked bootloader, flashed boot.img for MDB08L, flashed TWRP and installed SUPER SU 2.56!

TWRP has asked me after I hit "Reboot" if Super SU should be installed. Selected "Do not install" because I have done this before with 2.56!

Or should I select "install"?
[Nexus 5X General] reddv1:
The latest SuperSU is 2.52 according to Chainfire's thread for system root http://xdaforums.com/showpost.php?p=55256620&postcount=1.

2.56 is for systemless root and needs another type of modified boot image http://xdaforums.com/showpost.php?p=63197935&postcount=2.
[Nexus 5X General] TheBurgh:
This thread was spot on. Followed to the T and all is good. Thanks a million
[Nexus 5X General] iamloco724:
I legit havnt rooted a phone or anything like this in atleast 6 years, I havnt felt the need to but since im getting more of a budget phone this time im thinking about doing it again.

When it comes to turning off encryption, that will generally make the phone run smoother and slightly faster?

I might have alot more questions im getting the phone tomorrow after playing with it for a little I will decide if im pulling the root trigger
[Nexus 5X General] bluey45:
Thanks Heisenberg for the guide.

I figured out my driver issue for fast boot.

The guide was very helpful and thanks to reddv1 for the modified boot image.

I can confirm the MDB08M boot works on MDB08M version of android.

All rooted and working!

Thanks all. :)
[Nexus 5X General] Slickademo:
Tried to unlock and my adb says its working but fastboot doesn't bring back a serial number and it says waiting on device. I'm assuming it's my USB cable?

---------- Post added at 10:38 PM ---------- Previous post was at 10:36 PM ----------

Same problem I'm having. I'm using a random cable I got off Amazon. Going to try a better one and see if it fixes it. I don't have a type c port on any of my computers so the OEM cable doesn't help me.....
[Nexus 5X General] joetheshmo:
Check device manager and make sure your adb driver is installed for when your phone is in fastboot. You may have to manually select the driver in your SDK folder like me. I'm on win 7
[Nexus 5X General] CocodaMonkey:
Is there a guide on how to install the monthly security patches? I figured it would simply be flash normal recovery, install OTA patch and then reflash TWRP. This doesn't seem to work though as the patch always fails about half way through in normal recovery.

So far the only method I've found that works requires a full unroot.

Also are the security patches posted online anywhere? I've looked and can't seem to find them anywhere, I'm constantly forced to wait for the OTA to come which can take days between efforts.
[Nexus 5X General] joetheshmo:
I followed the steps someone pointed out in this thread going from i to M and it worked flawlessly. http://xdaforums.com/showthread.php?t=3245344

You can find the factory images for the N5X on Google's site here: https://developers.google.com/android/nexus/images?hl=en

Feel free to pm me if you need help
[Nexus 5X General] Slickademo:
I'll see if I can figure that out. The cable in using connects when the phone is not in fastboot so that makes sense. Just need to figure out where that driver is!
[Nexus 5X General] joetheshmo:
Feel free to pm me if you run into trouble. I could help you out via team viewer as well
[Nexus 5X General] Slickademo:
I really appreciate that. Once I get home from work in a hour or so I'll dive into it.
[Nexus 5X General] truneaux:
homebrew alternative

MAC OS X users already familiar with homebrew can use

$ brew install android-platform-tools
$ adb version
Android Debug Bridge version 1.0.36
Revision 84e3321d5db3-android
[Nexus 5X General] stefyno:
Hi guys, I have a problem when I wanna unlock the bootloader. I use "fastboot OEM unlock" or "fastboot flashing unlock" and select yes and the bootloader is unlocked, but when I reboot bootloader or the device, the bootloader is locked again... Why? I'm on 5 Jan security patch...
[Nexus 5X General] Lord_Flaya:
Make sure you enabled OEM unlock in developers settings.

Follow the instructions in 1st post.
[Nexus 5X General] stefyno:
Thx for the reply. Of course I enabled OEM unlock first! Doesn't work :(
[Nexus 5X General] Lord_Flaya:
Did you grab the latest ADB tools?
[Nexus 5X General] stefyno:
I used latest platform-tools from Google and latest Nexus Toolkit...
[Nexus 5X General] SlimSnoopOS:
You have a device that was repaired by LG. I'm almost positive you see "No RPMB" somewhere on your bootloader screen. They have blocked permanent bootloader unlock on that device. Either RMA or try this:

https://amp.reddit.com/r/nexus5x/comments/5hj0r0/bootloop_after_lg_replaced_mainboard_bootloader/
[Nexus 5X General] stefyno:
Oh yes! It's this case! Ohhh what a lucky man I'am :(

Thx man!
[Nexus 5X General] ljfnky:
Long time lurker wanting to root my nexus 5x... to be clear I just want root for now. So to do that. Do I just need to fallow steps 1, 2, 4, 5, 6 and that's it ?

My 5x is stock 7.1.1 still waiting on dec. update if that matters.
[Nexus 5X General] SlimSnoopOS:
Yup! You can update to January OTA (section 9) if you want too.
[Nexus 5X General] ljfnky:
I'm a little nervous about it but it seems easy enough.. and I've read the tutorial to step 7 for now quadrople times and all posts in this thread and more... I feel like a virgin getting ready for his first date.

One other question can I just download TWRP & SuperSU from play store?

Going to re-read and read again
[Nexus 5X General] SlimSnoopOS:
It's not that bad. You'll pick it up in no time.

Yes you could if you download the proper apps. But in order for TWRP to persist between reboots on Nougat, you need root.
[Nexus 5X General] thorrules:
We all have been there! But remember one thing nexuses are devices which are very hard to brick, so at least you are trying it on the right device. And I would suggest flashing twrp and SuperSU instead of downloading later. Good luck!
[Nexus 5X General] sfhub:
Some people might find it useful to know that the newest versions of ADB don't work on WinXP (not by accident) and the last version of ADB that will work with WinXP is 23.1

http://dl-ssl.google.com/android/repository/platform-tools_r23.1.0-windows.zip
[Nexus 5X General] wiktor123:
Guys, please help me! How to unlock bootloader without usb debugging? Because my Nexus 5X get a bootloop and I can't enable usb debugging so I can't also install new factory image with lock bootloader.
[Nexus 5X General] Mesmurized:
Maybe this thread will help: https://xdaforums.com/nexus-5x/help/req-help-to-unbrick-t3251740
[Nexus 5X General] masterismos:
I'll kill myself !

Hello everyone. I have a nexus 5x 32g. Is my friends phone. He said in the begging had some reboots. He made a factory reset and the phone didnt boots again. It doesnt charges. No charging animation. I even bought a new battery but same. He has usb debuging deactivated and oem ulock unchecked. So i cant flash lock unlock etc. I can get to bootloader but after 2-5 min it shutdown again. Trying to reboot only google screen shows and gets off. So is a software problem or hardware? Can i do something from the bootloader menu ass it recognize it in fastboot devices command? Cant flash nothing of google images ass it gets back with a locked error. I have an idea about flashing rooting etc. And this is blowing me my mind. Im 80% sure smthing has to do with emmc or Nand partition somewhere i read. Will the LG guaranty cover the phone because i changed the battery by myself? Thank you and im sorry for this big post.
[Nexus 5X General] Josh:
Try with Wug's Nexus toolkit ,there is lots of option for soft brick and so on. I unlock bootloader and flash custom rom with that. After all solution you tried send it to service,it's less money then new phone if they don't except quaranty.
[Nexus 5X General] ljfnky:
Okay going to give this a try I have a few question the guide says "If using Nougat 7.0 or newer, you must now boot directly into TWRP and flash SuperSU (or your preferred root alternative) so that TWRP will persist between reboots."

Does this mean do step 6 then do steps 4, 5 and after twrp is installed will it update thru play store? thanks if this is dumb question I'm sorry.
[Nexus 5X General] Josh:
I unlock bootloader and flashed twrp ,after you can flash Super Su from Twrp . Main things now is to get functional phone and twrp so you can flash what you want.
[Nexus 5X General] ljfnky:
I moved twrp 3.0.2.2 and put it in my fastboot fold listed as twrp-3.0.2-2-bullhead now do I install super SU in the fastboot folder also ? I think I'm missing something maybe over thinking. I'm confused ugh

when typing the command fastboot boot filename.img is this correct---> I change the filename to fastboot boot twrp-3.0.2-2-bullhead.img
[Nexus 5X General] Josh:
With Wug's Nexus Toolkit you dont need put anything in folder and phone must detected by computer, USB debugging enabled and MTP . If you flash with fastboot command then you must put in fastboot folder and flash Twrp. After you successfully finished flashing you can flash SuperSU from Twrp recovery
[Nexus 5X General] SlimSnoopOS:
Over thinking. Just like Section 6 states, download SuperSU to your phone, install TWRP, boot into TWRP and flash SuperSU from wherever you downloaded the file on your phone.
[Nexus 5X General] ljfnky:
I'm now rooted thanks and yeah I was overthinking it.
[Nexus 5X General] flying_sloths15:
This happened to me a while back when I tried to install Paranoid Android before I could even install a root. I tried whatever I could to try to fix it but nothing worked so I sent in my phone to LG and they returned in within 2-3 weeks. LGs manufacturer warranty had resolved the problem.
[Nexus 5X General] geekmax:
LG guaranty would be no more if you change your battery yourself. Just don't tell them that you did. They probably can figure it out easily and deny guaranty.
[Nexus 5X General] ljfnky:
I install TWRP 3.0.2-2 when I rooted can I now update the app through the play store?
[Nexus 5X General] ulxerker:
most likely not as twrp-3.0.2-2-bullhead is the latest official version for that device. please let us know if you make a different experience.

there are newer customized versions out there, but you'll have to flash them manually via fastboot, flashfire or in twrp itself.
[Nexus 5X General] drik05:
ive flashed twrp 3.0.2-3 via fastboot and boot into recovery. twrp asking a pincode to decrypt, i chose cancel coz idk the pincode to be used. then i did factory data reset and reboot my n5x, and set up again my fon, install apps. But when i boot again to recovery, it revert back to stock recovery. is there any way how to decrypt without doing factory data reset ? i just want to hav a twrp and flash supersu.
[Nexus 5X General] SlimSnoopOS:
If you want to be decrypted, wipe internal storage using TWRP. Your entire phone will be formatted. Download SuperSU 2.78+ onto your computer then transfer the zip from your computer to the phone while still in TWRP. Flash SuperSU before you boot up.
[Nexus 5X General] ljfnky:
Does Flashfire work? or is fallowing section 9 better option for noob2rooting :confused:
[Nexus 5X General] SlimSnoopOS:
I wouldn't say better cuz Chainfire does great work for the enthusiast community. However, this thread is specific to our device.

Flashfire works, but obviously post your issues in the Flashfire thread for help. From my understanding, the current version of Flashfire cannot see the incremental, traditional OTAs that Google pushes server side each month via slow rollouts. You need to download the full OTA image from Google to install in Flashfire.
[Nexus 5X General] ljfnky:
So in retrospect would section 9 be the best way to go with doing future updates.... for a noob? Considering the advanced tech knowledge needed for Flashfire in an instance of issues one could encounter. ? I ask because as a noob I want to learn the easiest way to go for a noob who's just getting his feet wet. :fingers-crossed:
[Nexus 5X General] SlimSnoopOS:
Absolutely.
[Nexus 5X General] ulxerker:
for me sideload is an even better alternative:

- download latest OTA from here

- connect phone with PC

- boot into TWRP -> advanced -> adb sideload

- enter in PC's command shell "adb sideload OTAfile.zip"

Thats it :)
[Nexus 5X General] drik05:
thanks boss. is ther any way without decrypting but twrp and root is installed ?
[Nexus 5X General] ljfnky:
Wait if I fallow this and type adb sideload OTAfile.zip Re-boot and I'm set?
[Nexus 5X General] Lord_Flaya:
It's the same pin/password as you use to unlock your phone. :)
[Nexus 5X General] ulxerker:
exactly. of course, you'll have to re-flash supersu and custom kernel after that if used (same like with section 9 method).
[Nexus 5X General] ljfnky:
So in understanding doing this would set my phone to get future ota updates? or manully "but" to be rooted again I need to fallow section 9 is that correct?

or am I lost again in my thoughts Thanks or your reply

Also I put the downloaded files in my fastboot folder is that correct? Sorry for all the question.
[Nexus 5X General] SlimSnoopOS:
If you stay encrypted, which is recommended, my understanding is that you have to put in your pin or password for TWRP to be able to decrypt (access) your internal storage so that you can flash SuperSU. I haven't been encrypted in over a year but I believe that's just how things are.

My last reply to you is for running the phone completely unencrypted. I wouldn't recommend it though. It takes more conscious effort to maintain decrypt status each month or when installing roms since you can get encrypted accidentally and lose your user data.
[Nexus 5X General] drik05:
Thanks again sir. But how can i flash supersu or any rom if it is encrypted ? It is possible ? TWRP is asking to decrypt, for me to access internal storage and flash zip files. Sorry being noob.
[Nexus 5X General] SlimSnoopOS:
Yea it is possible. I'd guess that most people are encrypted here. If your lockscreen password doesn't work, try:

default_password
[Nexus 5X General] drik05:
Thank you so much sir. I will try it. Does it takes so much time ?
[Nexus 5X General] ljfnky:
Okay I think I get it

When I download that file just place it in My fastboot folder within Platform-tools

Boot into TWRP type adb sideload Copy & Paste downloaded file name here press enter get superSU

done........?
[Nexus 5X General] ulxerker:
yep, and best is to put supersu.zip on your phone before sideloading, so you can flash it immediately after sideload is finished.

also put twrp into your platform-tools folder to re-flash it afterwards via fastboot ot put in on your phone to do it in twrp itself (chose "install img" instead of zip).
[Nexus 5X General] ljfnky:
Okay .... twrp is already in my fastboot folder I'm guessing the theory is just making sure that it is the most current version of twrp

so your saying when I copy & paste the file name add .img not .zip ?

press enter done
[Nexus 5X General] ulxerker:
yes because the recovery is an image file, not a zip.
[Nexus 5X General] zukenp:
I have one problem with recovery instalation.I installed twrp 3022 ,and its ok when i first go in.When i restart phone,and try again to go in recovery,nothing happens,and says to me no command.. Sorry if that is mention ,but i wasnt see..

[MENTION=309187]edit[/MENTION] I root phone and that solved the problem..
[Nexus 5X General] geekmax:
Without flashing superSu or rooting, TWRP cannot persist across reboots. Hope someone makes it clear in the original post.
[Nexus 5X General] dadenet:
Hi ,

Actually , I'm on Ressurection remix rom , with the NMF26F vendor.img ,

I want to get the new update with the N4F26I vendor.img ,

How is the correct update procedure ?

1 - flash this twrp release 3.0.2-3 : https://www.androidfilehost.com/?fid=529152257862685071 ( I did not found on the official twrp site ) Is this twrp release safe ?

2 - flash the new vendor.img : https://www.androidfilehost.com/?fid=457095661767127385

3- flash the last RR release

4 - flash my favourite gapps

5 - flash supersu : https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.79-201612051815.zip/

Is it correct ?
[Nexus 5X General] SlimSnoopOS:
If TWRP is already working ok for you, there is no need to update TWRP. Just do steps 2 and 3 for a dirty flash install. Steps 4 and 5 are unnecessary in your case.
[Nexus 5X General] dadenet:
Thank you bro for your help ,

so I'll try your method , flash only Rom update and the new vendor.img , but I have a question , no flash gapps ?

I usually for each update I flash rom and gapps and after dirty wipe.

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X General] SlimSnoopOS:
If you already use the rom, no it is not necessary to flash the gapps for an updated build. If the developer specifies that you need to flash gapps, well flash ahead.
[Nexus 5X General] dadenet:
Perfect ! :good: