yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] craigloganbt:
Help

I'm stuck right at the start of the guide. When i type adb commands into cmd prompt i get my serial number back. when i type fastboot devices it doesn't give me anything/serial number back.

Looking at my device in boot mode. It says FASTBOOT MODE in red followed by other info such as product name, version etc

How can i get past this?

The OP says "It should return your device serial number, if not you need to make sure your drivers are installed correctly."

How do i make sure drivers are installed correctly? What drivers? I rooted my nexus 4 last month and it was so straight forward and easy to follow.

I have andoid 7.0 installed. I want to install xposed framework. Is it compatible with 7.0?
[Nexus 5X General] SlimSnoopOS:
First, update your platform tools and ADB. This must be done for each major Android update. Also, unplug and reinsert the USB cable into the computer once you boot into fastboot. Now try again. If it still fails, you can check the status of your device/drivers while plugged in and booted in Android. The driver I am referring to is the Google USB Driver that can be installed manually using the Android Studio interface or through the Google USB driver link in the OP. Open My Computer/Drivers then plug your phone into the computer. See what pops up and delete the driver associated with your phone if it has an exclamation mark or error displayed. I use OSX so my understanding is vague here.

Xposed officially only works on Marshmallow. Any other info can be found in the Xposed forums:

https://xdaforums.com/xposed
[Nexus 5X General] ch.ch1:
To flash Oreo the same steps are followed?

And can I flash Oreo if ok still on the June update (skipping Jul/Aug)?
[Nexus 5X General] Auckes:
Keeps booting up normal after flashing twrp

Hello apologies if this is the wrong spot to post this, the closest thread i found to my question was on a Nexus 6 phone but mine is Nexus 5x.

I've read threads, watched youtube videos, still no luck.

I followed all of the instructions, unlocked the bootloader. Have the newest bullhead twrp version in the same folder as fastboot.exe when I type "fastboot flash recover twrp.img" my phone says downloading and cmd says finish successfully. I use the volume buttons to go into recovery mode before restarting fastboot, it shows me the google icon and proceeds to booting up the phone as normal.

The twrp recovery doesnt stick is what im saying.

Any suggestions? Thanks in advanced.
[Nexus 5X General] SlimSnoopOS:
Could you show me a screenshot of the fastboot commands you issue?
[Nexus 5X General] Auckes:
screenshots

Screenshot1 is my folder with fastboot and the .img and screenshot2 is the cmd prompt.

Thank you!!
[Nexus 5X General] SlimSnoopOS:
Hmm, that's definitely unusual. A few suggestions: re-download TWRP, try another USB port, reboot the computer, and/or reinstall the latest platform tools.
[Nexus 5X General] itsamagict:
Were you able to get into TWRP when you select Recovery Mode from the bootloader? If so then you need to flash superSU or another root software before you reboot so the recovery does not roll back to factory.
[Nexus 5X General] Auckes:
Hey thanks for the reply, I was not able to get into TWRP initially is what I was saying.

Update though: I tried it on a different pc and was able to complete it successfully, flashing supersu, everything is good now. Just had to use my desktop instead of a VMware.
[Nexus 5X General] SlimSnoopOS:
Thank you for providing an update. Hopefully someone will find this solution helpful.
[Nexus 5X General] Melvin0755:
Root Method

Does this method of root work for a Nexus 5x running on Android Oreo (8.0.0)? :confused:
[Nexus 5X General] Paragon_X:
Can I update to oreo without losing data?
[Nexus 5X General] SlimSnoopOS:
Yes, either via factory image or Full OTA image. Same as always.
[Nexus 5X General] Ano8:
If my phone is unrooted/locked bootloader and update to 8.0 via OTA update then use this guide to unlock/root, can I then flash an oreo custom Rom such as pixelRom? Do I need to flash a factory image or doesn't matter? Thanks.
[Nexus 5X General] SlimSnoopOS:
Yes, you can do that (your first sentence). Flashing a factory image in this case is unnecessary. What I will say is, make sure that you flash the vendor.img that matches whichever rom you flash going forward. Many roms do not include the vendor.img but will state the security update that they are based on. This is important for making sure that the security aspects of your phone and camera binaries are fully functional each month.
[Nexus 5X General] Kagetane Hiruko:
Helpp!! How to solve twrp

I was making a nandroid backup when this happen ... I dont know what to do please help... I wanna do a backup so i can flash the pixelrom ..am totally new to nexus 5x please help ????
[Nexus 5X General] SlimSnoopOS:
1) Edit your post. There is no need for you to quote the entire length of the OP. You can see by the last few pages of this thread that I or someone will respond without being quoted. Use @ specific username (no spaces) or just post in the thread.

2) Mount system in TWRP then see what happens when you backup.
[Nexus 5X General] Kagetane Hiruko:
Sorry how can i mount the system on twrp?
[Nexus 5X General] SlimSnoopOS:
Click "Mount" in TWRP from the main page. See what's mounted and try the opposite for system and vendor.
[Nexus 5X General] eddi0:
I have been trying for 2 days to root my 5X. I lose TWRP and SuperSU upon reboot EVERY time. What am I doing wrong?

Running stock 8.0 right now

Also, if the ROM I want to install is based off 7.1.2 and I'm on 8.0 do I need to flash a 7.1.2 bootstack?

Please help!!
[Nexus 5X General] SlimSnoopOS:
I haven't updated to 8.0 yet but that's unusual. Which version of SuperSU are you flashing?
[Nexus 5X General] eddi0:
2.79 downloaded from SuperSU site. Even tried installing on 7.1.1 as well, same issue. About to pull my hair out:mad:

Should I be downloading TWRP and SuperSU from a place other than their respective websites?
[Nexus 5X General] SlimSnoopOS:
Nah, their respective website is fine. Try this: fastboot flash system, boot, and TWRP 3.x images, then flash SuperSU 2.82. See if it sticks then.
[Nexus 5X General] eddi0:
I'm still a bit of a noob on this so is it possible to break down what you are instructing me to do? The ROM I want to install is not a stock ROM.
[Nexus 5X General] SlimSnoopOS:
Sure. It's a bit easier since you want to use a custom rom. You need to fastboot TWRP so follow my first post on page #1 on how to do that. Then flash rom, gapps, and SuperSU 2.82+ all via TWRP just like section 7 states.
[Nexus 5X General] eddi0:
Thanks but the problem is I can fastboot TWRP and then I install SuperSU once in there but it says to reboot when done and when I do that it doesn't root (check supersu app and says it's not rooted). Every time it does this...so frustrating. Is my phone corrupt? If so, how do I "uncorrupt" it?
[Nexus 5X General] eddi0:
In case anyone else is having this problem I was able to "fix it" by installing SuperSU first (without installing TWRP) using Nexus Root Toolkit (don't check mark box with also installing custom recovery). It will set up a temporary TWRP to allow you to install SuperSU. Then reboot and sideload ADB the actual TWRP once you've verified root.
[Nexus 5X General] Chitown021:
In order to sideload the September security patch OTA do I need to return to stock recovery?

Here's my situation:

Until Oreo came out I was running the Pure Nexus ROM. I used your very handy guide to flash the August stock Oreo system image. Once I did that I flashed TWRP 3.1.1, rooted Oreo, and installed EX kernel. I've been waiting for the OTA alert to pop on my phone for the September update but it still hasn't hit me yet. I downloaded and tried to sideload the Sept OTA image via TWRP but the process stops abruptly.

I don't care if I lose root or custom recovery as I can always get it back.
[Nexus 5X General] zurik:
I think only with Stock recovery . After sideloading it's you can flash the TWRP back and root your device again. Or use flashfire.
[Nexus 5X General] fvisagie:
Yes, my experience (on the 5X) has been that the same checks for standard recovery etc. get made whether the OTA upgrade is sideloaded or really done OTA.
[Nexus 5X General] govindadas:
This has probably been asked and answered millions of times, but just updated to Oreo on a fresh refurb. Installed TWRP but neglected to make it permanent. Each time I reflash TWRP it isn't giving me the option of making it permanent. How can I get it to ask me that again?
[Nexus 5X General] fvisagie:
Just follow the instructions in the OP, esp. booting back into recovery mode after having flashed TWRP.

PS. So you couldn't find any of the millions of answers? ;)
[Nexus 5X General] Chitown021:
Cool, I'll probably give that a shot later on. Return to stock recovery, sideload the latest OTA, and then put TWRP back.
[Nexus 5X General] fvisagie:
From a practical point of view, given that stock recovery is needed for an upgrade to succeed (and stock system when rooted), once on the stock ROM I then usually just do the actual OTA upgrade rather than downloading and sideloading its image.

Reason being that for some reason the actual OTA upgrade is substantially smaller than its downloadable image which is usually almost the size of the stock ROM image (except in the case of the Oreo upgrade ;)).

Just wondering, what would be the advantages of sideloading the upgrade compared to an actual OTA?
[Nexus 5X General] SlimSnoopOS:
Read below about block based OTAs:

https://source.android.com/devices/tech/ota/block
[Nexus 5X General] -Asskicker-:
So how exactly do I do a clean install to 8.0? I'm currently on a rooted 7.1.2 but I want to do a clean install to 8.0. I keep reading the cache.img is missing, does that matter when doing a fresh install? Can't I just run the flash-all.bat and be done?

Thanks!
[Nexus 5X General] SlimSnoopOS:
Yes, run the flash all script and you are done.
[Nexus 5X General] pedro5148:
I unlocked the bootloader to do root, can I close the bootloader or is it going to give a problem?

sorry my bad english
[Nexus 5X General] CLPose:
No, you can't lock your bootloader unless device is 100% stock. Anyway, why would you relock it?
[Nexus 5X General] pedro5148:
Just to install the latest android update O, for the nexus 5x
[Nexus 5X General] oswalt.ryan:
Ready to tear my hair out

So yesterday I rooted my phone, everything seemed to go fine. Today I installed Ex Manager, and flashed Elementalx on my phone, after opening the app i see that there are no options to select governor profiles or do anything beyond looking battery and CPU stats you can check without rooting.

So i use a root checker, and it appears i'm not rooted. That seemed weird to me because I was running Pure Nexus and it seemed to work just fine. So i go back to the OP and find the instructions to flash a factory image and return to stock so I can root again from the beginning with a clean flash of the stock ROM.

That's where my problem starts, as per the instructions I flashed the bootloader.img, it sent and wrote fine.

Then, I flashed the Radio.img, it sent ok, but failed to write.\

Now, I can't even flash the bootloader.img successfully. After that I tried flashing two other bootloader.img files from previous builds as per some suggestions I found scattered across XDA. I tried to flash only the bootloader.img from Android 7.1.1 (N4F26U) and Android 6.0.0 (MDA89E)

I made TWRP backups as per the instructions, but despite numerous YouTube videos about all the different places my backup could be, the only files that remain in TWRP backup are my EFS backup.

At this point with my limited knowledge, the phone is a brick, any thoughts or help would be a lifesaver. It's just sitting in Fastboot Mode...
[Nexus 5X General] oswalt.ryan:
Okay, so it turns out flashing each image in order fails.

Flash-all for builds that didn't match my current build crapped out during the script.

When I extracted a factory image that matched my build number into the same folder as the fastboot tool and then used flash-all it worked like a charm.

Cheers to only half ****ing everything up and random things I read in a **** ton of different places scattered across the internet.

Might just stick to stock from now on...
[Nexus 5X General] SlimSnoopOS:
Sounds like you just need to update your platform tools. Next time, post a screenshot of the errors you receive when flashing new images one by one. Glad you've got it semi worked it, unless I'm mistaken?
[Nexus 5X General] oswalt.ryan:
Speedy reply, you rock SlimSnoopOS!

Most definitely, I feel like since it's a personal issue I forgot to collect data to help resolve my issue.

When I originally rooted, I followed the OP and put the all my images in C:\bullhead\

So from now on I'll just extract the factory image into the platform-tools directory instead of in a separate folder.

My issue is resolved yes, I just updated to the lastest build of 7.1.1 and will start again from the top of you OP.
[Nexus 5X General] SlimSnoopOS:
Got it. Yes, you'll want to update your platform tools for every major OS. Sometimes fastboot becomes outdated or can't process the newer images.
[Nexus 5X General] oswalt.ryan:
Thanks, won't make that mistake again.

So the first time I used the instructions to flash pure Nexus and Elementalx.

Problem was when I opened EX Kernel Manager, I have no Governor options, no additional settings past basic battery and CPU info. To me, that say check your root, sounds like I'm not. Used a root checker, and it confirmed my guess, not rooted.

Had some problems flashing stock, hence my earlier posts. Figured it out, and verified I was on stock ROM and locked the bootloader.

Then, with a clean phone used your instructions to:

Rooted Magisk14.0.zip

Installed purenexus_bullhead-7.1.2-20170725-OFFICIAL.zip

Installed BeansGapps-Full-7.1.x-20170725.zip

Installed ElementalX-N5X-4.14.zip

I get no errors, notifications, or prompts after booting the phone that indicate a problem with anything I just installed. All seems well. In fact with purenexus on my phone the boot time is a lot shorter and the boot animation is much more pleasing to look at than that funky crap Google proudly rocks.

Can't figure out why I'm not rooted, or at the very least why my Kernel Manager is extremely lacking in settings.

usb driver?

I used composite.

In the aroma installer for Elementalx should I have chosen different settings?
[Nexus 5X General] CLPose:
If I understand you right, you're in Pure Nexus with TWRP installed and no root. I think that you should boot into TWRP, flash latest SuperSU, and reboot. No need to come back to stock. If you're rooted after this, it could be a Magisk problem. Good luck!
[Nexus 5X General] j-a-d-z:
This doesn't need a locked bootloader.
[Nexus 5X General] oswalt.ryan:
That did it, thanks for the help! I think I'm starting to get a peek at an understanding of this stuff.
[Nexus 5X General] gidkill:
Reflash a stock (locked) phone to fix bootloop?

Hello everyone ...

My stock Nexus 5x crashed and went into a boot loop a few days ago. It gets as far as the white Google logo.

I'm wondering if it's possible to fix this by re-flashing a stock image. However, the instructions I've seen say that I need to unlock the bootloader first, which appears to require the phone to be up and running. So, I have two (2) questions:

1) Is it possible to re-flash the phone with a stock image without unlocking the bootloader?

2) Anyone know if this will actually fix the problem I'm having?

Thanks in advance.
[Nexus 5X General] phonetool:
Try reading the bootloop of death threads. They explain the fix in detail. Basically, you have to run a version of recovery and os that disables the two big processor cores. You can overclock the remaining 4 cores and have a working phone again.
[Nexus 5X General] GeorgeSRL:
after flashing everything how long is First Boot supposed to take? seems like mine has been booting for a long time.
[Nexus 5X General] SlimSnoopOS:
Not long, maybe a few minutes at best. Did it ever boot up?
[Nexus 5X General] GeorgeSRL:
it did not, for awhile i was stuck being unable to even access fastboot. scared me for a moment. I forgot to flash cache.img and had to essentially start over again to get it to boot.
[Nexus 5X General] oswalt.ryan:
Okay so, it was bothering me that I couldn't exactly nail down what happened, and I couldn't flash a stock image and then root using the instructions in the OP.

For me this worked:

Unlock Bootloader

Install TWRP

Create Backup

Install Magisk Manager

Install Pure Nexus & Gapps Package

Install Elementalx

Install Magisk

Every time I would get the step where I install the ROM & Gapps package, I would stop, verify that I am rooted, and proceed with the instructions. Problem is, after I install the ROM, Gapps package, Elementalx, and boot my phone Magisk Manager says I am no longer rooted. Installing Magisk again fixed the problem, I flashed a stock image again and verified that the only way I can get all this to work is using this order. Am I crazy or is this a whatever works for you kind of situation? Everything is working fine, rooted, passing SafteyNet.
[Nexus 5X General] martyfried:
I have a Nexus 5X on Project Fi which has been rooted (SuperSU), twrp'd, and had Pure Nexus installed. I'm going to trade it in on a Pixel, so I decided to get it back to factory. I went through step 11 -- How To Flash The Factory Images (Return To Stock But Leaving Internal Storage Intact). I flashed the latest Nougat release and let it restore the apps. While it was doing that, I checked the update status, and it had an OTA Oreo update available, so I let it download that, and later installed it, all with no problems. Got everything back to how it was, but with Oreo 8.0.0, security patch level 10/5/17.

But then, Lastpass warned me that my phone seemed to be rooted. I ran safetynet check and it failed. I still had SuperSU, so I ran it and it said root was not detected on my phone.

The only thing different that I did from the instructions was I didn't erase or flash cache.img, mainly because it was not in the archive I used.

Any ideas about what I need to do to get rid of the safetynet failure? I want to get to the point of being able to lock the bootloader before sending it in.

Only other problem is I have some problem booting into recovery. It comes up with a screen that says only "No Command", but if I press power and tap volume up, the standard recovery comes up. Don't know if that relates to anything or not.

Fastboot and adb are both working normally, so I can reflash anything if needed (but I hope I don't need to reinstall).
[Nexus 5X General] CLPose:
Hi, there! I don't know why root is detected. :confused: Maybe, some sort of survival script is executed with SuperSU, so you need to make a 100% clean install to get rid of root. And about booting to recovery, it's OK. :good: The "No Command" and the Android guy with the exclamation mark in it is the "presentation" of stock recovery. It has nothing to do with root. If I were you, I would make a backup of my internal memory and clean flash the latest factory image. Try that! I'm sure you'll get rid of root. Good luck! :fingers-crossed:
[Nexus 5X General] martyfried:
Thanks for the tips. I don't have experience with a stock phone, so I didn't know the recovery behavior was normal. I thought it would boot straight into recovery.

When I run any root check apps, they all say I am not rooted. I wonder if it might simply be that the bootloader is unlocked, and that is what LastPass and safetynet test were complaining about?
[Nexus 5X General] gagrot9211:
Nexus 5X stuck in boot-loop, at Google logo.

Hello Everyone

I've been using my current Nexus 5X since November 2016 (The month of purchase).

I updated it to Android Oreo 8.0.0 right on its release. Yesterday (13.10.2017) it took a turn down hell.

Current Status: Device in Boot-loop, stuck at Google logo. Fastboot mode shows

Secure Boot - enabled

Device State - locked

[OEM Unlocking and USB debugging in Developer options were enabled (I'm sure about it)]

Following were the sequence of events:

1. I was busy on a cellular call (Wi-fi on), The phone suddenly dropped dead, restarted on its own, got stuck in boot-loop at white Google Logo.

2. Panicking, I accessed fastboot mode, selected START, phone booted normally, I started using it.

3. Again within a span of 10 minutes, I found myself busy on another cellular call (Wi-fi on), The phone suddenly dropped dead (again), restarted, got stuck in boot-loop at Google Logo.

4. This time I accessed fastboot mode, selected restart bootloader, selected Power off

5. Then fired up the fastboot mode again, selected START, and the phone got stuck in boot-loop at Google Logo.

6. Even after all of this, the phone booted normally twice, i was also able to factory data reset it and update with the October 5 Oreo security update. Worked properly for a few hours, then got hanged, went under Boot-loop again.

Since then it has been stuck in Boot-loop. My device has never been repaired nor malfunctioned even before. (I'm using windows 10 creators update OS). My PC is successfully detecting my device as 'Android Bootloader Interface' under "Kedacom USB Device" (When in fastboot mode). My device stays in bootloader menu for as long as half an hour (Without any reboots), so I'm also unable to decipher whether its a software or a hardware issue. When i access recovery mode, the device sometimes enters boot-loop and sometimes goes to the screen with 'no command'.

Please Guide what should I do?
[Nexus 5X General] CLPose:
So sorry to hear that, but it seems your N5X went into the bootloop of death. :( If your N5X is still under warranty, great! If not, read this: https://xdaforums.com/nexus-5x/general/untested-nexus-5x-bootloop-death-fix-t3641199. Good luck! :fingers-crossed:
[Nexus 5X General] gagrot9211:
A little optimistic solution please. How to confirm whether its a hardware or software issue? The observations are mixed.
[Nexus 5X General] Stevica Smederevac:
If I were you,i would flash stock IMG and hope to see a setup screen instead of endless spinning of the dots.
[Nexus 5X General] CLPose:
Clean flash the latest factory image. If your N5X doesn't boot, you know what to do. Good luck!

+1!
[Nexus 5X General] GyniO:
This method works on 8.1?
[Nexus 5X General] SlimSnoopOS:
Sure. It would be great to know which specific thing you want to achieve as I have several ranging subjects listed in the OP.
[Nexus 5X General] NameLessThugZero:
I want to revert to stock everything (never upgraded my phone to N) so that I may gift this to someone.

If I have a EX kernel, am bootloader unlocked, and have system root, do I have to specifically undo those mentioned items? Or can I just follow the Back to Stock step up top and be good? Also, would I be reverting to stock MM, then do the OTA update to N, then Oreo?
[Nexus 5X General] SlimSnoopOS:
Just follow section 10 and use the Oreo November factory image. Every mod you installed will be removed.

Edit: Make sure to remove your Google account and associated email accounts before you perform a factory reset. Failing to do so will lock the next person out of the phone upon factory reset.
[Nexus 5X General] NameLessThugZero:
Yep, will do, thanks!
[Nexus 5X General] aapje1299:
The guide is not working for me somehow. Sure I can OEM unlock my phone, but once I reboot the device is locked again. Trying to flash anything causes the phone to become corrupt and I can only revive it by sideloading the stock OTA image.

fastboot oem unlock

- YES it says status unlocked

fastboot reboot

- Says erasing

- Phone reboots to android.

Rebooting to fastboot and the device is locked again :(

---------- Post added at 12:05 PM ---------- Previous post was at 11:12 AM ----------

No RPMB... I think my phone is blocked from unlocking it. I bought this second hand, may have been a repaired device by the looks of it :(