yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] ph4nt0m-kmf:
nexus 5x half-briked

hi! it's me again!

i tryed all but i think there i have a big problem!

i think i removed all the internal storage; What's good is that i can put zip on the internal storage

when i boot my nexus 5 x to recovery mode via TWPR all is ok, i go to restore i restore the system and the efs and it finishs good but when i reboot the system it doesn't reboot i have successfully two warning, i got two "triangle" one orange the second red and then i have GOOGLE writen and that's all.

so please if someone can tell me the fault i done and maybe help me to recover my nexus 5x that will be kind! =)
[Nexus 5X General] sichosidd:
Hello,

Im stuck here; 9. How To Update To A New Build Of The Stock ROM

Im wondering if I can do this directly from another custom rom like Paranoid Android, XOSP, etc.

Thanks for your help.
[Nexus 5X General] dog121:
If ur asking can I install stock software over a custom ROM then yes..
[Nexus 5X General] SlimSnoopOS:
Which version of TWRP are you using?

Yes, but do a factory reset then update via fastboot. You want to avoid a bootloop and corrupt data that would likely happen without a factory reset.
[Nexus 5X General] sichosidd:
Hey guys thanks for your feedback.

Im stuck on section 9 again, I am wondering if the procedure is the same for marshmallow and nougat considering that the post hasn't been updated since mm.

Thank you.
[Nexus 5X General] imarcel99:
Yes it is
[Nexus 5X General] Caligula36:
Can someone help. After performing everything in the OP, Im stuck in fastboot. Ive tried to install TWRP via fastboot but it just gives me the yellow triangle screen, telling me to lock the bootloader.

I used the LGUP tool to flash back to stock. Now it reboots and just hangs at the "google" boot screen. Im not sure where to go from here. I can get to download more, and fast boot mode, but there is no recovery installed.
[Nexus 5X General] SlimSnoopOS:
There are eleven different sections in the OP. What step specifically did you do that led to you being stuck?

As of now, you should be bootloader locked after using the LGUP tool. This means all you can do is adb sideload the latest 7.0 image and see if it'll boot.
[Nexus 5X General] Heisenberg:
Hey everyone, bit of an announcement to make! As you're probably well aware I haven't had the time to give this thread the attention it deserves and keep it updated for you all. As a result I've decided to hand it off to another very capable member who can keep it updated. You probably already know him, he has already given a great deal of his time helping people out in here, please welcome [MENTION=3576831]SlimSnoopOS[/MENTION] as the new owner of this thread, go ahead and give him a thanks!
[Nexus 5X General] ulxerker:
congratulations [MENTION=3576831]SlimSnoopOS[/MENTION] and lets keep up the professional collaboration! :good:
[Nexus 5X General] CRNeo:
Does this guide work on the final release of android n and is still valid?

Just updated to N and was hoping to root.
[Nexus 5X General] KostisTTT:
Hello, guys.

I have this problem..

I updated to Android 7, and then I tried to downgrade to MM again.

I did a factory reset and now I am in MM, MTC20F. I have a backup from my phone.

Now I cant install TWRP (twrp-3.0.0-0-bullhead). I follow the step 2, but nothing.

I enter TWRP only the first time rebooting to recovery.

Then if I boot the phone and try to boot to the recovery the lying android guy is there...

Could I restore my backup at this first (and only) time that I can boot to TWRP, or will I brick it??

Any ideas??

Thanks in advance
[Nexus 5X General] ulxerker:
yep, same procedure for N.
[Nexus 5X General] SlimSnoopOS:
Yes. Working on NRD90S perfectly.

Fastboot flash TWRP then boot directly into it from the bootloader. 7.0 overwrites TWRP if you boot into the system without applying root.
[Nexus 5X General] ulxerker:
gia sou file!

the latest twrp is 3.0.2-2, try to reflash this version in bootloader. also, the latest M build is MTC20K, you might want to install this build.
[Nexus 5X General] KostisTTT:
Thanks, SlimSnoop..

I am doing this:

Fastboot flash TWRP

Then booting immediately into twrp from bootloader

Then, when I boot to system and try to boot into recovery, the lying android guy appears...

Maybe should I flash another version of TWRP??

Thanks again..

---------- Post added at 02:49 PM ---------- Previous post was at 02:48 PM ----------

Eyxaristo poly.

Thanks ulxerker.

I am going to try it right now..

Edit:

Thanks, I finally did it...
[Nexus 5X General] ABSathe:
Guys help me please i cant do anything with this phone

It says unable to mount cache after rebooting into twrp

help needed asap

I'll give all 8 thanks to anyone whose solution will work
[Nexus 5X General] SlimSnoopOS:
How did you get this error to occur? Is cache the only thing giving you an error? Usually it's multiple partitions like data and system as well. I would run "fastboot format userdata" then reflash the factory images to be safe.

Edit: after some searches, it looks like you could "repair filesystem" using TWRP
[Nexus 5X General] ABSathe:
Yeah.. I did that .. And flashed uberstock successfully .. No fingerprint issue till now .. No gapps flashed .. Fingers crossed .. May god bless me for that fingerprint /secure lock screen issue

Edit : 3 thanks given today ..and daily limit reached . will give 5 thanks tomorrow . remind me if I don't
[Nexus 5X General] SlimSnoopOS:
Don't worry about that. You having a working phone is good enough for me.
[Nexus 5X General] ABSathe:
Looks like I was too much frustrated and I was posting without any sense .. Sorry if I hurted anyone

And the issue still exists .. Gonna try custom kernel now

PS-I forgot to mention that I got this may void sort of thine while unlocking bootloader is this normal ?

Please ignore grammatical mistakes
[Nexus 5X General] SlimSnoopOS:
The yellow warning is normal, we all have that once we unlock the bootloader. Honestly, custom kernel won't help. You really should think about getting a replacement device
[Nexus 5X General] ABSathe:
Feeling the same

This was my first flagship device

Anyways ..can explain me RMA procedure in india ..

I bought this http://www.amazon.in/dp/B015ML17EE/ref=twister_B0168HDIIY?_encoding=UTF8&psc=1

Device is only 2 months old

I didn't purchase it from Google Store.. does that mean i can't RMA ?

Thanks
[Nexus 5X General] ulxerker:
OTA updates via adb sideload

hi guys, when I run Nougat OTA updates via adb sideload in twrp I don't get those "optimize app xx from xx" message when booting into OS after the update has been finished.

when flashing the image files from the factory image one by one the mentioned message alsways appeared, as far as I can remember. Is this working as designed?
[Nexus 5X General] SlimSnoopOS:
You can contact Amazon but likely you need to contact LG in your country and see if they will help you exchange the device.

That's a thing of the past! Lol Google has updated ART compiler in 7.0 to transfer that "optimizing apps" process to behind the scenes. Check out a breakdown here:

http://www.androidpolice.com/2016/0...-compiler-means-no-more-optimizing-apps-step/

or here for the Google provided info:

https://developer.android.com/about/versions/nougat/android-7.0.html#quick_path_to_app_install

There's some other interesting stuff here as well.
[Nexus 5X General] jhill110:
Contact Amazon.
[Nexus 5X General] ABSathe:
How should I do that ??
[Nexus 5X General] ulxerker:
thanks, I heard about that but I thought it only effects devices that get shipped with N, not upgraded ones.

I thought its because of an additional needed system partition which is complicated with "old" devices, maybe I mixed things up. anyway, good to know.
[Nexus 5X General] laylanan:
Fastboot devices

hi, i have a problem here, i have the right drivers and did everything in this guide but in the bootloader when i use "fastboot devices" command nothing happens.

nexus 5x

android N

windows 10
[Nexus 5X General] ulxerker:
which versions of fastboot and adb do you have? also, gets your phone recognized by Win10 as soon as you plug it in via USB? if not, you'd have to deal with Windows drivers first.
[Nexus 5X General] laylanan:
after writing adb version command i get this: Android Debug Bridge version 1.0.36

Revision e02fe72a18c3-android

how should i know my fastboot version? i've just downloaded the things in the guide, and yes my windows recognize my phone. i also don't have any firewalls.
[Nexus 5X General] ulxerker:
ok, so connect your booted phone to the PC and enable USB debugging in developer options. after that open a command prompt and type "adb deviced". most likely you then have to accept the authorisation of this connection in a pop-up on the phone. after that, try again and it should list your device.

if this doesn't help I have no further idea, unfortunately.
[Nexus 5X General] laylanan:
"adb devices" gave me lots of info and commands help, then i tried in the bootloader and nothing happened again, for test; i've just ignored the "fastboot devices" check and used "fastboot oem unlock" and i got this message <waiting for any device>

tnx for your help anyway
[Nexus 5X General] ABSathe:
Hey guys

I selected the repair file system for cache to ext4

Now I want to flash factory image

Should I change something in twrp again or flash it directly ?

And one more selecting factory reset from stock uprooted phone is equivalent to factory image flashing right ???
[Nexus 5X General] SlimSnoopOS:
I don't think so. Just flash and see the results. If it gives you the cache error, run fastboot erase cache.

Nope. Factory reset in Android (Settings) erases the phone and internal storage. Basically returns you to fresh out of the box setup. It does not upgrade or downgrade the software, just resets it.

Flashing a factory image applIes software to the device and may wipe internal storage. This depends on whether you run the flash-all script unmodified, i.e. by leaving the wipe command (-w) intact.
[Nexus 5X General] ritchea:
It seems your phone isn't being recognized or you're not in the directory with the adb and fastboot files. Have you gotten the permission screen on your phone? If so, and you checked it to always be allowed, then make sure you're in the correct directory. The easiest way to do this is to locate the direct folder that has the adb and fastboot files and hold the shift key while right-clicking the folder. Choose "Open command window here" After the command window opens, try the <adb devices> again. If it returns your device, then try fastboot devices. If the command is returned, you have what you need. If not, more troubleshooting.

I have to constantly update my drivers in Device manager to be able to connect and reconnect my various Nexus devices. The drivers don't really update but seem to fix the issue. That's only if the computer isn't recognizing the device.
[Nexus 5X General] laylanan:
---------- Post added at 12:33 AM ---------- Previous post was at 12:27 AM ----------

[/COLOR]

Hi and tnx for your reply, yes i have checked that permission, and my adb, fastboot folder is correct, and i always use shift+right click. My driver is updated and the computer recognize my phone, still <adb devices> works but not the <fastboot devices> rly confused
[Nexus 5X General] Ken.Adams:
Helped me a lot!! Awesome Guide for beginners
[Nexus 5X General] ritchea:
I missed that your adb devices was returning your device number. My next suggestion would be to remove all drivers and start again. Before that, you could try to disconnect by literally pulling the cable and reattaching after an adb reboot bootloader command to the bootloader screen when trying to get that device return. I'd read that was actually a thing when using Mac OS but never experienced that in Windows.
[Nexus 5X General] fvisagie:
Repeat the driver installation you did for device mode with the device in fastboot mode instead. Device mode and fastboot mode both require their own unique driver installation/configuration.

Look at the device modes following the device ID. In device mode you'll then get:

adb devices
List of devices attached
<device_id> device

and in fastboot mode:

fastboot devices
<device_id> fastboot

---------- Post added at 09:46 ---------- Previous post was at 09:36 ----------

What are the prerequisites for sideloading OTAs? Obviously an unlocked bootloader and a recovery image that supports sideloading, such as the stock recovery and TWRP.

But what about rooting and other modifications? Will they also trip up pre-installation checks as happens with the normal OTA update process?

Is there in fact any difference in the OTA checks that get done between the normal update process and sideloading? I shouldn't think so; the checks are all contained in the .zip update script as far as I'm aware?

What are the pros and cons between applying OTAs the normal way and sideloading, then?
[Nexus 5X General] ritchea:
most of my devices are rooted so I use FlashFire now as it's effective and will flash full sets of images, your choice of image files, ota's, and reflash custom recoveries as well as root. However, for the 5x's that are still stock, I sideload because I can control the zip (check sha) and not rely on download integrity over the air. So many report problems with regular ota installation.
[Nexus 5X General] laylanan:
You are the life saver, thanks a lot
[Nexus 5X General] sfhub:
You don't need unlocked bootloader to sideload OTAs.

Differential OTAs will fail (ie the smaller ones your phone automatically downloads over the air). Full OTAs (ie the ones you download from factory image site or the ones in the beta program) will overwrite regardless.

Yes, the differential OTAs make sure you are exactly the same as stock before applying patch. The full OTAs don't care since they are overwriting everything.

Normal way, you don't need to do anything but wait.

sideloading you don't need to wait.
[Nexus 5X General] heartrocker:
hello

i read all your instruction but i stuck in "How To Unlock Your Bootloader"

i unlocked bootloader but when it restart my phone become locked again :crying:

i do uninstall and re-install sdk andriod and unlock bootloader again but It doesn't help:crying:
[Nexus 5X General] ritchea:
You get this after unlock?

You did tick OEM unlock in settings? Fastboot returns your device ID? No error messages? Do you reboot to bootloader before system reboot? Bootloader shows Device State Locked?
[Nexus 5X General] heartrocker:
yes i did the same as in the instruction said

fastboot devices (no message error)

fastboot oem unlock

fastboot reboot (my device show as unlocked before reboot)

i reboot, i set up my phone, i tick oem unlock also i tick usb debugging and then i reboot to bootloader again and its become DEVICES STATE - locked :(
[Nexus 5X General] c-non:
Hello, i am new with 5x,i want to learn something.

1 - Is there DRM keys or other thing for backup like sony when i unlock bootloader ?

2 - If i unlock bootloader and flash custom rom then back to stock rom,can i get OTA updates from google ?

thanks friends.
[Nexus 5X General] Psychofrantics:
1. No. However, once you unlock, all your data will be deleted. You should backup using twrp, just in case after unlocking

2. You can get uodates as long as you are stock. Even if bootloader is unlocked, but you are using google stock images, you will get otas.
[Nexus 5X General] Wuzimu:
1: You should backup EFS partition.
[Nexus 5X General] SlimSnoopOS:
You need to replace the phone. This will not resolve itself. It has happened to a few people before and they had to get a new phone:

http://xdaforums.com/showthread.php?t=3290923
[Nexus 5X General] ritchea:
[emoji106] I thought I had read about this at some point. I'm still not quite sure (except for mb failure), but it seemed several posters in the other thread had previously unlocked their bootloader, but then couldn't. Did they relock? Maybe MB failure was just coincidental. I've unlocked every android (and iOS) device I've ever had, but I haven't had my 5x even a week. I've finally decided it's a keeper so now I will unlock it. It helps (me, anyway) to understand the problems--just in case.
[Nexus 5X General] paulga:
update after root?

Hi, I followed your guide to unlock the bootloader and gain root access.

Nexus 5x

Android 6.0.1

if I need to update to Android 7.0, how can I keep root access? I think on one likes moving photos and music back and forth, and installing everything again, going over the settings over each app...
[Nexus 5X General] ulxerker:
just apply the latest N build by flashing the most current factory image as mentioned in section 9 of the OP.

after that flash twrp and supersu again, ideally before first boot into OS. thats it, you're on 7.0 incl. root and without losing data.
[Nexus 5X General] paulga:
Does flashing the most current factory image lock the bootloader? I remember unlock bootloader wipes all user data -- this part makes the task terrible.
[Nexus 5X General] ulxerker:
nope, it won't re-lock bootloader, just follow section 9 and you'll be fine.
[Nexus 5X General] paulga:
That sounds good. Thanks man.
[Nexus 5X General] paulga:
I want to ask one more thing,

is it easy to roll back to previous system?

in my case, if the phone becomes slow after I followed section 9, can I go back to 6.0.1?
[Nexus 5X General] ulxerker:
yep, its section 11 and also without losing user data.
[Nexus 5X General] ritchea:
All advice given is accurate. You might want to investigate FlashFire app. It makes the process even simpler as no computer is needed. It re-roots and re-flashes custom recovery automatically. You can flash the ota.zip or images-you choose which ones to flash so you wouldn't tick userdata.img.
[Nexus 5X General] Nex23:
Holy ....

I have a bootloop after trying to flash boot.img in order to return to stock kernel from ElementalX kernel.

What i did:

-Deleted SuperSU (i think that was the mistake)

-fastboot flash boot boot.img

-fastboot reboot

-> bootloop

What do i do now ? (i have backups but i dont know how to enter twrp now). It is stuck at the google logo and when i press power 8 sec is gets stuck there again ...

Edit: Edit: Ok, i got into TWRP. Should i backup or try to flash boot.img again ? I dont really know what i did wrong. This worked before to get back to stock kernel, so i am confused.
[Nexus 5X General] SlimSnoopOS:
If on stock rom, fastboot flash boot.img. This will restore your stock boot and remove your custom kernel. Alternatively, download the factory image that matches your OS and pull the boot.img from the zip. Transfer that file to your phone and use TWRP "install IMG" option to flash the boot.img that matches your stock rom OS. Which exact OS are you using?

If on custom rom, reflash your custom rom then flash the new custom kernel.
[Nexus 5X General] Nex23:
Thanks for your answer.

Well, dont know if you did fully understand my post.

Flashing boot.img didnt work, that was what i did actually. I also tried again, but nothing.

Now i restored my backup (thank god i have one !) and the backup works.

(I was on costum stock ROM and ElementalX Kernel.)

EDIT:

So i really wanted to not it. Now i DIDN'T delete SuperSU.

Then tried to flash via command window stock boot.img by "fastboot flash boot boot.img" (bullhead).

Still, it gets into a bootloop.

I am on NRD90R btw.

What is happening there ?
[Nexus 5X General] SlimSnoopOS:
When you're using a custom rom, there's no need to fastboot flash a stock Google boot.img. Dirty flashing the custom rom (no wipe in TWRP) will restore your original custom rom's boot.img (kernel). Sounds like that's why you are getting into a bootloop.
[Nexus 5X General] Nex23:
Aw, sorry my bad. I am on STOCK rom.

I was there: Stock rom, ElementalX Kernel.

I want(ed) to go to: Stock rom, Stock Kernel

I did this before without issues, but it was on the last security patch. Maybe it has something to do with NDR90R, there seem to be different version also, hm.
[Nexus 5X General] SlimSnoopOS:
Oh ok, gotcha now. Fastboot flash system and fastboot flash boot for that OS, then go into TWRP and flash SuperSU.
[Nexus 5X General] Nex23:
Oh, that worked ! Thank you !

So for all fellows:

If going back to stock kernel by flashing boot only gives you bootloop, then instead flash system first and then flash boot.

(Of course, you will loose all system Mods like root, dual speaker etc).
[Nexus 5X General] paulga:
I see, the guide is all inclusive. some technical jargon dis encouraged me to read through
[Nexus 5X General] Patov94:
I rooted my nexus 5x every way i could find but it dosnt work. SuperSu says its rooted and the root checker too, but the apps that need root doesnt work. Any ideas?

Sorry for my inglish
[Nexus 5X General] SlimSnoopOS:
You'll have to specify which apps your having trouble with and which OS. Without knowing which apps you are referring to, your apps are outdated and are calling for su in the wrong path. You need the compatibility mode of SuperSU to get them to work. SuperSU works on every version of Marshmallow and Nougat that's been released to date.

Enter the bind system commands in SuperSU post #3 below then reflash SuperSU:

http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344
[Nexus 5X General] SlimSnoopOS:
Which technical terms do you need assistance with?
[Nexus 5X General] Patov94:
i am running nougat. The apps i am having troubles with are: AdAway and Secure Settings
[Nexus 5X General] SlimSnoopOS:
Flash the systemless zip in the Adaway thread OP then Adaway will work on 7.0. I actually use this so I know that answer.

Consult the Secure Settings XDA thread first and see what's recommended. If nobody can help out, email the dev and ask them to update their app for 7.0. Looks like it hasn't been updated since January 2015 on the Play Store.
[Nexus 5X General] ABSathe:
Someone please share md5 checksum of the NRD90S factory image

. I can't check SHA - 256 checksum on my system

Thanks in advance
[Nexus 5X General] ulxerker:
the md5 checksum of N5X NRD90S factory image is A7311212E5AF1830947E656765C7E994

if you like, you can check out any checksums by your own with this little and free tool: https://raylin.wordpress.com/downloads/md5-sha-1-checksum-utility
[Nexus 5X General] ABSathe:
Quick help needed !

How can I disable direct boot on my nexus 5x ?
[Nexus 5X General] SlimSnoopOS:
Wipe the entire phone (including internal storage). There is no alternative since you are encrypted.
[Nexus 5X General] ABSathe:
Like factory reset ?
[Nexus 5X General] ulxerker:
yep, you'd lose all your personal data.
[Nexus 5X General] AG22:
I have the following error when I try send the reboot command (adb reboot bootloader): "no devices/emulators found". However, when I try "fastboot devices", it gives me the serial number. What I am doing wrong or missing?

I'm using Windows 7.
[Nexus 5X General] fvisagie:
See this post, except in your case it's the other way around. Repeat the driver installation you did for fastboot mode with the device in device mode instead
[Nexus 5X General] AG22:
You mean connect my device in fastboot mode, uninstal and instal again? I guess I tried that, don't remember exactly.

Anyway, thanks a lot for the explanation.

Regards.