yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] kingsfall1233:
hi guys idk if this is the correct thread. mods pls move it if it isnt. recently ive upgraded to nougat but i wanted to downgrade back to 6.0. no matter which 6.0 rom i flash, i keep getting bootloops. i was only able to flash 7.0 roms. is the reason bc i upgraded to 7.0 therefore the phone wasnt able to downgrade by just flashing? if so, what are the work arounds?
[Nexus 5X General] SlimSnoopOS:
This is the perfect place to ask. You must flash the Marshmallow vendor.img that matches the Marshmallow rom you want to use. Mismatching rom and vendor (with one being 6.0, the other 7.0) will bootloop. On previous phones through the Nexus 9, vendor was part of the /system partition and we did not have to worry about it. Now it is separate and must be flashed when switching between major OS versions. Keep em matching and you'll be fine.

More info about Vendor partition below:

https://plus.google.com/+JeanBaptisteQueru/posts/akHWypRNEn3
[Nexus 5X General] kingsfall1233:
Thanks alot! that makes perfect sense. would a generic 6.0 vendor img be suffice or will there be a need to find specific vendor img to flash?
[Nexus 5X General] fvisagie:
Use the one from your device's factory image.
[Nexus 5X General] knipp21:
Could a mod, or someone better at typing than me, please add to this sticky the methods for rooting with magisk?

Steps are pretty simple if you use the NRT

Order I did it..you might need to do magisk last. But first worked for me.

Unlock bootloader

-Flash TWRP

-Flash kernel of choice

-Flash magisk v7

-Type echo SYSTEMLESS=true>>/data/.supersu into the terminal emulator

-flash 2.78

-flash suhide 0.54

Install the magisk v2 app and the suhide GUI

I'm on a plane at the moment, and can give links to everything's main threads when I get a chance if people want it.
[Nexus 5X General] SlimSnoopOS:
What I can do is read over your link (when posted) and determine how best to go about adding a note on alternatives to SuperSU. Suhide and GUI are outside the scope of this thread though. If people want to hide root, they can find that elsewhere.
[Nexus 5X General] ABSathe:
[MENTION=3576831]SlimSnoopOS[/MENTION]

I've received replacement unit and the issue still exists

(I suppose you remember my issue ;))

Can you tell me anyway (app or something ) by which I can set fingerprint unlock with pattern ?

Thanks
[Nexus 5X General] kingsfall1233:
i flashed 6.0 stock recovery including stock vendor img, flashed twrp again and tried flashing 6.0 custom work.

it did not work. im still getting bootloops :(
[Nexus 5X General] fvisagie:
IIRC you want to go from 7.0 to 6.0?

Did you factory reset before flashing 6.0?

Did you flash the full stock 6.0 factory image and what was the result?
[Nexus 5X General] kingsfall1233:
yeap i want to go from 7.0 to a 6.0 custom rom.

yes i factory reset before flashing 6.0 and was able to get a stock 6.0 working. afterwards, i flashed twrp, wiped and tried flashing a custom 6.0 rom but it did not work
[Nexus 5X General] SlimSnoopOS:
What was your issue again? You have reported multiple issues.
[Nexus 5X General] ABSathe:
Yeah

Because I'm having multiple issues .. I've reported multiple issues

Let me describe them again

So I bought Nexus 5X about two months ago

The first day I opened my phone it worked fine (didn't setup account /didn't even insert sim ) .. the second day I was just playing with my phone (looking some settings and browsing web )and suddenly my phone Freezed .. after screen timeout time .. screen dimmed off .. and I force restarted to make it to life again

Same issue happened third day and then no issue of freezing was observed .. meanwhile I got nano sim from my carrier and I setup my account too

Then after few days . I realised that I'm not using fingerprint for unlocking

Then I went to settings .. setup fingerprint sensor .. it worked for few hours .. then I kept phone on table and slept .. the other day I found my phone to Freezed with screen off (when I tried to hard reset .. the phone vibrated in between (like I was accessing power menu )) then I got panicked .. and decided to not use fingerprint for few days .. after nougat update I again tried to set up fingerprint and same issue occurred .. and yes I forgot to mention .. problem is not only with fingerprint .. even if I use pattern only (without fingerprint ) .. I get same issue

Then I tried one custom ROM (uberstock ) to see if the issue was with some system app .. issue persisted

Then I finally asked for replacement and got a replacement yesterday

Sad to say these issues still exists with my device

Replacement model was with may security patch level

Thanx for reading such a long and descriptive post

And please help me with this issue

Thanks In advanced
[Nexus 5X General] SlimSnoopOS:
All I can say is it's either a problem with apps you use or you have incredibly bad luck and received another defective phone. The best solution is to get another replacement device. The "quick" solution is to install one app at a time and see if there's an app causing you issues. Something like Xposed (on Marshmallow) or doze apps may be responsible. Factory reset, try the factory images again, then see if this occurs again. Send it back to Google if you have more problems.
[Nexus 5X General] Smultie:
I'm on stock NBD90W and I've enabled "OEM unlocking" in Developer options.

As soon as I "fastboot OEM unlock" from fastboot, I get the visual feedback that the device is unlocked

If I fastboot reboot, the device will erase, reboot into Android. If I then 'adb reboot bootloader' again, I notice the device is LOCKED again.

What am I doing wrong?
[Nexus 5X General] dorqus:
Running MDB08M, bootloader is unlocked, TWRP 2.8.7.2 is installed, but if I flash SuperSU via TWRP, it installs, but when I reboot it says "There is no SU binary installed and SuperSU cannot install it" I've rooted a bunch of phones before, never had an issue - I booted from the bullhead-mdb08i-boot.zip, flashed TWRP 2.8.7.2 via fastboot flash recovery, no problem, but SuperSU won't stick - any ideas?
[Nexus 5X General] a1exus:
I'm trying to follow "1. How To Unlock Your Bootloader", so I just tried to run fastboot oem unlock yet it fails:

mbp:~ alexus$ fastboot oem unlock
...
FAILED (remote: unknown command)
finished. total time: 0.002s
mbp:~ alexus$

please advise
[Nexus 5X General] Pumpino:
Go into developer settings and enable OEM unlock.
[Nexus 5X General] a1exus:
Thanks for your reply, but I already did that as per instruction in the very first step.
[Nexus 5X General] Pumpino:
If you've enabled USB debugging, then I'm not sure, sorry.
[Nexus 5X General] efrant:
Try ./fastboot oem unlock
[Nexus 5X General] a1exus:
thanks for your reply as well, my issue is not due to it cannot find fastboot, it's something else...
[Nexus 5X General] skybronco:
Someone mentioned the command changed to 'fastboot flashing unlock' with the latest fastboot.exe, see post 75 in this thread. I don't know personally if that is the problem
[Nexus 5X General] a1exus:
post #75 doesn't not have anything relevant to this, but "fastboot flashing unlock" might be it) i'll give that a try
[Nexus 5X General] skybronco:
lol, hope it works, it was post 74, my bad :)
[Nexus 5X General] duckxtales:
do you still have to have a modified boot.img in order to root?

i already unlocked the bootloader and installed TWRP.

can i just flash supersu.zip without flashing boot.img?
[Nexus 5X General] androidsnax:
it's ./fastboot oem unlock

this worked for me rather than

./fastboot flashing unlock

not sure why as i have the latest version installed (as far as I know!)

---------- Post added at 07:31 AM ---------- Previous post was at 07:29 AM ----------

i was pointing out that it was ./ and not .\ before the fastboot command in case of confusion ?
[Nexus 5X General] Heisenberg:
You need the modified boot.img, that's why it's in the instructions.
[Nexus 5X General] solara1973:
Encryption removed prior to flashing SuperSU? If yes maybe boot into system first before flashing supersu from TWRP.
[Nexus 5X General] dorqus:
No I'm still encrypted, using the twrp that supports decryption.
[Nexus 5X General] MustiG:
:good: not bad for a temporary solution.
[Nexus 5X General] bluey45:
Any one having issues with fastboot? My phone doesnt come up for the fastboot devices but adb is working.

I cant seem to find the driver for fastboot even though Ive already installed the Android SDK package.

Any ideas?
[Nexus 5X General] sordup:
What exactly do you mean by this? Is the cable that is included with the phone not sufficient for data and only for charging, then?

Would that have something to do with why I get the error, Code 10 "cannot start device ” whenever plugging in the 5X to my pc?

I cannot get beyond this error and therefore unable to unlock and root.
[Nexus 5X General] dorqus:
Never mind, I was using the wrong version of SuperSU. Used beta 2.52 and I'm happily rooted.
[Nexus 5X General] drocny87:
where can I find the modified boot image for build MDB08L?
[Nexus 5X General] SlimSnoopOS:
Nothing. Your motherboard needs to be replaced.
[Nexus 5X General] ABSathe:
Can I replace it for the second time again ?

I have bought the phone from Amazon.in .. I don't think so I can get another replacement

Can't believe I have this incredible bad luck

I know that some app is causing the problem but after I got replacement I neither installed any third party app nor updated system app

If I can't get another replacement .. how can I secure my screen ? Using pattern ?
[Nexus 5X General] Smultie:
Yeah, they just did that.

After some Google-fu I've found that I have the infamous NO RPMB issue.....
[Nexus 5X General] SlimSnoopOS:
You should be able to. I know Google would allow multiple exchanges. I haven't been able to get this phone to freeze in months. Lag? Sure, but not a freeze where I had to reboot to fix it. I can't think of why the phone would freeze or fingerprint scanner would freeze if you're using the factory rom.

I don't understand your last question. If you can't secure your phone because the phone software freezes, I think you should get another one. Unfortunately, I don't know how you're able to reproduce this issue on multiple phones.
[Nexus 5X General] Goncalo29:
I'm having a problem with TWRP, I flashed it and booted into TWRP before booting Android again. It booted into the custom recovery, but after restarting the phone it replaces to the stock recovery.

I'm on nougat.
[Nexus 5X General] SlimSnoopOS:
Flash root, modified boot.img, or custom kernel after flashing TWRP. Stock Nougat will overwrite the custom recovery.
[Nexus 5X General] ABSathe:
Okay.. I'll see if I can get replacement
[Nexus 5X General] ch.ch1:
I got today my phone back from LG, with a new motherboard. Asking, how will they ensure this problem wont happen again? (Phone died due to the last update)

I'm trying to do TWRP and root again, and after I flashed TWRP I was able to go into it the 1st time, but when I tred to go again into recovery I gt the msg "No Command" - I tried to flash again TWRP and getting the same ms when trying to access the recovery. Will this help? >
[Nexus 5X General] SlimSnoopOS:
Flash TWRP the boot directly into TWRP, not android. Are you doing this?
[Nexus 5X General] fvisagie:
Going from stock 6.0 to the custom ROM, it seems you wiped from TWRP? In that case, did you also wipe internal storage? If not, that may be the problem. TWRP does not wipe internal storage by default. This leaves the wiped app storage (/data/data) and dirty internal storage (/data/media|/sdcard) inconsistent with one another, which can be a problem to some apps.

If you haven't yet sorted out the problem, go back to stock 6.0, get it working,

do a factory reset from stock recovery

(wipes ALL data), then go to your custom ROM.

If the custom ROM still does not work after that, consult the support thread of that ROM.
[Nexus 5X General] Goncalo29:
Worked! Thanks.
[Nexus 5X General] ch.ch1:
How do you go directly into TWRP?
[Nexus 5X General] SlimSnoopOS:
While in the bootloader, press the volume up or down button until you see "Recovery" then press the power button to boot directly into it. The arrow at the top of the bootloader screen serves as a menu. Make sure that you have flashed TWRP and that process has completed before you press anything.
[Nexus 5X General] ch.ch1:
This is what I'm doing....

I have unlocked OEM and flashed TWRP, and was able to get into TWRP the first time. But since then I get the msg no command when I try to go into the recovery, I even reflashed TWRP again and still no help. I'm able to boot into the system with no problems, however I never decrypted but I'm no longer asked for a password when booting
[Nexus 5X General] SlimSnoopOS:
Hmm, something isn't adding up. Is your phone still showing as unlocked while in the bootloader? Could you attach a screenshot of your terminal command after flashing TWRP? I would like to see the output. Does the computer recognize your device and return your serial number when you run " fastboot devices"?
[Nexus 5X General] sfhub:
Are you sure you flashed SuperSU?

You need to

fastboot flash recovery twrp.img

[use vol down and power to boot directly from bootloader into Recovery]

install SuperSU.zip

Then TWRP will stick.

Not asking for password doesn't mean you are decrypted. It could be decrypted, but it could also be encrypted using default_password. To check if you are really decrypted you need to look at settings->security.
[Nexus 5X General] fvisagie:
If you only flash TWRP, it will get overwritten with stock recovery ("No command" etc.) the

next

time you boot into Android.

As the others advised, to make TWRP stick after flashing you will have to root or flash a modified boot.img at the same time without booting into Android in-between. E.g. flashing TWRP, boot into Recovery mode (in other words TWRP) from the bootloader and install root.
[Nexus 5X General] ch.ch1:
DEVICE STATE - unlocked

ADB works but not fastboot

When I flashed TWRP I forgot to save SuperSU on my phone so I rebooted and saved it and then tried to root.....

---------- Post added at 10:49 AM ---------- Previous post was at 10:27 AM ----------

Ok, looks like I fixed it now.

Fastboot > I followed the steps below, I then reflashed TWRP and I was able to access TWRP and installed SuperSU

Thanks all for your help
[Nexus 5X General] ABSathe:
[MENTION=3576831]SlimSnoopOS[/MENTION] and everyone who can help

I can't believe I have this much incredible bad luck !!!

Now I can't see replace option on Amazon.in (for another replacement ) I read the TnC and found that only one replacement is allowed because I bought the phone in an offer !!!!

(32 GB version for 26990Rs (approx 385$))

Now the device is getting worse every day

Even without a fingerprint .. device freezes while viewing videos from WhatsApp .. just tap on video to view it and bam it's frozen !!!!! Secondly .. when using ASUS file manager .. go to downloads and scroll down .. it force closes !! Uninstalled both (file manager and WhatsApp ) to see if it works .. didn't help (however freezing issue is solved .. no freezes now (fingers crossed ) .....only fingerprint issue remains )

(Fingerprint issue : when is set fingerprint /secure lock .. and put it in a my pocket .. after drawing phone out and pressing power button (or keeping finger on fingerprint sensor ).. I get black screen .. I try to force reboot it .. but I get vibration after 3 seconds (like phone isn't completely shut off ) and after 10 seconds I get rebooted phone .. I've been trying to capture logcat .. but logcat ends as soon as I get phone out ofmy pocket(I've been doing really weird things .. putting phone with cable inside pocket .. and stuff ))

Any help is appreciated

Thanks in advanced

Please forgive my English ..it isn't my native language
[Nexus 5X General] sfhub:
Try booting in safe mode

https://support.google.com/nexus/answer/2852139?hl=en

May also want to try factory reset, then install using different, brand new google account, and don't install any extra software.

Verify if the basic vanilla OS works. If not it is almost definitely hardware.
[Nexus 5X General] ABSathe:
I've tried rebooting into safe mode

Issue isn't solved in safe mode too (I'll try signing from another google account I'm also planning to change my sim card (saw a post from q&a Thread http://xdaforums.com/nexus-5x/help/nougat-t-mobile-constant-com-android-t3477913/page1))

I've got one replacement and issue is still there

Note : I tried adb logcat after I set just one secure lock .. I get many errors (lines with E ) in logcat .. I'll take a one more proper logcat today .. and share it here
[Nexus 5X General] Lord_Flaya:
I used this toolkit to flash twrp and root my nexus 5x, but twrp shows 0mb for all partitions and i got no root.

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------

Coming from stock nougat btw
[Nexus 5X General] Lord_Flaya:
Only way for me to get two and root to stick is by manually installing twrp via adb and then flash SuperSU. Anyone else have this issue?
[Nexus 5X General] khanjui:
Toolkits are not recommended, always do everything manually.
[Nexus 5X General] sfhub:
It is not an issue, per se, that is how Android is designed.

You must flash SuperSU PRIOR to booting on a stock boot.img or it will replace your recovery with stock.

The way to do this in bootloader is

fastboot flash recovery twrp.img

[use vol down and power to boot directly to twrp]

install SuperSU.zip

If you simply reboot after flashing boot.img (either solely or as part of flashing other images) then your TWRP install will be replaced with stock recovery even if you never touched the recovery partition.
[Nexus 5X General] slysurfer:
Thank you SlimSnoopOS

This is a great resource to be able to use anytime. Thanks for the precise steps needed to perform these tasks.

I did have initial trouble with Fastboot working, so I just re-installed windows 7 and retried downloading the SDK tools, worked perfectly the next time. As did all the ADB and Fastboot commands. I am now running the Pure Nexus Rom, thanks again for posting this on XDA, your work is appreciated.

Slysurfer
[Nexus 5X General] Ryder.:
If want go back to stock kernel i have to flash boot.img?
[Nexus 5X General] SlimSnoopOS:
Yea, for the stock rom. No, if on a custom rom. You would reflash your custom rom without a wipe.
[Nexus 5X General] Ryder.:
I'm on stock (factory images). I have to flash system.img and boot.img?
[Nexus 5X General] sfhub:
I didn't go back to find the context of your question more than one page, but in general you should be flashing

boot.img

system.img

vendor.img

The last one is important too as it is intended to stay in lock step with system.img (they used to all be part of system.img but google separated out propriatery drivers and firmware from the open stuff)

Many times vendor.img won't change that much for months because all we are seeing is minor security patches, but if you go between larger releases, there will be issues if things are mismatched.
[Nexus 5X General] Ryder.:
I just wanted to go back to stock kernel:laugh:
[Nexus 5X General] Nex23:
Try Boot.img frist. if that doesnt work do System.img as well. if it still doesnt work also do vendor.img. Then it will work for sure ;D.
[Nexus 5X General] Paragon_X:
Can I flash 7 over 6 without much trouble or must I do full wipes?
[Nexus 5X General] ulxerker:
no full wipe needed, just flash the latest firmware image as mentioned in the OP or sideload the latest OTA zip via "adb sideload OTA.zip" in twrp. if on stock recovery, just select the appropriate option there.
[Nexus 5X General] Perou:
I don't get a number when I hit fastboot devices - smartphone is in fastboot mode. What to do?

[IMG="command line"]https://s13.postimg.org/ov3274vkn/Unbenannt.png[/IMG]
[Nexus 5X General] SlimSnoopOS:
Fastboot devices only works when in the bootloader. ADB devices only works from recovery or fully booted in Android.
[Nexus 5X General] beckerfj:
Not sure why, but when I tried to do the "adb sideload otaXXX.zip" from my PC, it looks like it starts but then says "error: closed" after a couple seconds.

In TWRP, I do the advanced, adb sideload. My phone is recognized when I do adb devices (on PC) while in the advanced, adb sideload screen in TWRP (before and after attempting the adb sideload command).

My TWRP version is 3.0.2-1, my adb version, I believe, is 1.0.32 (I remember reading that it needed to be above a certain version and it is, I just might not remember the actual version number). I'm running Windows 7 and never had any issues doing the multi-step update listed in the OP. I was trying to go from 7.0.0 (NRD90S) to 7.0.0 (NBD90W).

I can and did do the multi-step update without problems (because I couldn't get the ota update to work). I just thought it would be easier and quicker doing the ota, but no luck. Oh, and yes, I know the ota and full image update are different files. I had the ota file.

Any thoughts?
[Nexus 5X General] SlimSnoopOS:
That's all the error dialog says? Each time type run adb sideload, that's all it says? Could you delete the driver then search for a new one while in recovery. Just trying to rule the driver issue out.
[Nexus 5X General] beckerfj:
Yeah, that's all it says. Weird. I will try the driver thing on the next update since I already used the image file for the latest. If it's still a problem, I'll post screenshots. If not, I'll at least let people know it was the driver in the end.

Thanks!
[Nexus 5X General] fvisagie:
If you tried (and did) the multi-step update, is it correct to assume your device is non-stock? I.e., that is also the reason the automatic OTA update failed because its pre-installation checks failed? It might perhaps have failed on the non-stock recovery partition already?

I might be wrong, but I think in such a case the OTA pre-installation checks will fail no matter which way you try apply it.

I.e. one can't sideload OTAs on non-stock devices.
[Nexus 5X General] fuzzehx:
So I cannot get fastboot to work for the life of me, I haven't had to use it for a while but I haven't changed much since last time I used it and now as i'm trying to go from N to MM fastboot has stopped working for me adb is just fine but fastboot is either unresponsive or just gets stuck on waiting for any device.

EDIT: found the answer I needed here: http://xdaforums.com/showpost.php?p=69273414&postcount=33
[Nexus 5X General] Serfma:
Yep, can't get device to show up when issuing "fastboot devices" but shows with "adb devices". Phone is in bootloader when I issue the command. Any ideas?
[Nexus 5X General] alex2g:
Long time lurker but I had the same issues last night and it took me a few hours to fix. I'm not too sure what I did that fixed it I'll share what I done.

I had tried fixing it with google usb driver, nexus rootkit, and pdanet but nothing seemed to get fastboot to work, meanwhile ADB worked fine this whole time.

I uninstalled everything and this is what I did to get it to work for myself.

(This is on Windows 10)

- Reboot phone into fastboot connect to PC

- Made sure I had the android SDK and google driver installed

- In device manager when the device was in fastboot it was listed under "Kedacom USB device" as Android Bootloader Interface

- Right click update driver, Browse my computer for driver software, and point it to the google USB driver folder.

- It really didn't do anything it. It determined the software was up to date and it was still "Android Bootloader Inteface"

- What I did next seemed to fix it: I right clicked to update the driver again. Browse my computer for driver software. I clicked let me pick from a list of devices and chose "Android Original ADB interface"

- And my device manager refreshed with the phone listed now under ADB Interface as "Android Original ADB Interface"

- Checked fastboot devices and profit.

Hope this helps. I've attached a photo of my device manager with the list of drivers that were available to choose from.
[Nexus 5X General] KSLevel11:
Is there anything like "tamper flag" or flash counter in the N5X?

Wysłane z mojego Nexus 5X przy użyciu Tapatalka