yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] SlimSnoopOS:
Hey all,

I have updated the OP to tighten up a few things:

-include emphasis on vendor for rom installs

-keep TWRP through reboots on Nougat 7.0+

-SuperSU and Nougat 7.0+

and added a bit more to the FAQ:

-EFS bootloop restore issues

-specific .img installs through fastboot

-info about vendor partition

Happy December!
[Nexus 5X General] N00dle:
I updated to the November OTA and somehow lost root and TWRP so I reflashed TWRP and then am trying to flash SuperSU 2.78 SR5 and that is when I'm getting stuck at the boot animation.
[Nexus 5X General] SlimSnoopOS:
You will always lose root when upgrading. Reflash system, boot, and latest TWRP in fastboot. Next boot into TWRP and flash SuperSU 2.78 SR5 again. If this still freezes then try flashing SuperSU SR4.
[Nexus 5X General] ch.ch1:
I updated my phone to N5D91L, and flashed TWRP, but I can't get into the recovery. When TWRP starts it asks me for my password, but afterwards I only see this

Mount
Trying Decryption
Updating partition details...
...done
[COLOR="Red"]Unable to mount storage[/COLOR]
Full SELinux support is present

And it stays on this screen, as the bar on the bottom just goes and goes. I have to poweroff my phone to get it back to normal mode.

I tried both TWRP 3.0.1.-0 and TWRP 3.0.2-0. I did not flash TWRP 3.0.2-1 / 3.0.2-2 as per the bugs.
[Nexus 5X General] SlimSnoopOS:
Despite the bugs, TWRP 3.0.2-1 and 3.0.2-2 are unfortunately the only two official versions that are currently compatible with Nougat 7.0 and newer.

Edit: If you want to use TWRP 3.0.2, you must either:

a) "fastboot format userdata" and stay decrypted going forward (use a modified boot.img when updating). This is more of a hassle than its worth.

b) fastboot flash a Marshmallow vendor.img, boot into TWRP, do recovery things, fastboot flash the Nougat 7.0+ vendor.img, reboot into rom.
[Nexus 5X General] sfhub:
I know it isn't "official" but doesn't the unofficial TWRP 3.0.2-3 have the bugs fixed (both EFS and large partition)

---------- Post added at 11:13 PM ---------- Previous post was at 11:09 PM ----------

Try the unofficial TWRP 3.0.2-3

http://xdaforums.com/nexus-5x/orig-...h-recovery-t3230471/post69556306#post69556306

Also make sure your vendor and system are matched.
[Nexus 5X General] M4CHIN3H34D:
If this question has already been answered I apologize. I followed this process exactly, aside from using a modified boot image to decrypt my data. TWRP would not mount internal storage without it. So now I am rooted, but I have the November security patch in my notification tray annoying me. Also, android 7.1 official is right around the corner, and I will want to upgrade. I tried using flashfire to flash the security patch, but it gives me an error and says it is likely to fail. I am not sure but I assume this has to do with the modified boot image. What would be the best way for me to go about updating?
[Nexus 5X General] SlimSnoopOS:
Use section 9
[Nexus 5X General] tvoneicken:
I'm having trouble getting my 5x out of an endless boot animation and am not sure what to try next. New device, Nougat 7.0, got november security update, unlocked bootloader, flashed twrp 3.0.2-2 . Rebooted into twrp then realized I needed to have downloaded SuperSu to phone first, oops, rebooted to hope to download it, but now I'm stuck in an endless boot animation (the 4 animated circles). Flashed twrp-3.0.2-3, but no change. Suggestions?

Thank you!
[Nexus 5X General] SlimSnoopOS:
Hmm, that isn't a good sign since we have bootloop issues on the 5X. Could you try running the factory images? If you have no data on the phone that you care about, run this command too:

fastboot format userdata

it will format your entire phone including internal storage.
[Nexus 5X General] tvoneicken:
Thanks for the suggestion. I don't have any data I care abount on the phone, so just to confirm, this owuld be running the format userdata followed by procedure 10 "How To Flash The Factory Images (Return To Stock)", right?
[Nexus 5X General] SlimSnoopOS:
Correct. Just do not lock the bootloader.
[Nexus 5X General] tvoneicken:
Thanks, that worked! Phew....

Now the question is whether I can install the lastest 7.1.1 image and still root...
[Nexus 5X General] SlimSnoopOS:
You can if you want. I am already using NMF26F with SuperSU 2.78 SR5 and EX kernel. Used section 9 to update from 7.1.1 developer preview 2. Of course it'll work the same updating from 7.0.
[Nexus 5X General] xabier-bo:
Sorry if it has been already said:

You were in DP2, and you have flashed over factory NMF26F?

And you have had no issue and kept your data?

Is that correct?
[Nexus 5X General] SlimSnoopOS:
Yes, I manually flashed the 7.1.1 factory image for December over 7.1.1 DP2.
[Nexus 5X General] Ryder.:
Can i update the factory images from 7.1.1 dp2 to 7.1.1 final release without full wipe or factory reset?
[Nexus 5X General] xabier-bo:
But remember to rollout. If not you still will be offered beta OTAs
[Nexus 5X General] Ryder.:
I'm on factory images with root and twrp
[Nexus 5X General] azertguigui:
I'm on stock rom 7.0, unlocked bootloader and root, can I follow the section 9 of your tutorial to switch to Android 7.1.1 without wiping my data ?

I've heard reports of failure while attempting such procedure (due to a LG hardware problem) ?

Thank you for you good work, keep it up :)
[Nexus 5X General] ulxerker:
yep, just go ahead. the problem you've heard of is a rare hardware issue.
[Nexus 5X General] dadenet:
Dear friends ,

When I restore a backup rom ,

must I flash before vendor.img or It is not necessary ?

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X General] SlimSnoopOS:
Yes it is necessary if you revert to a nandroid from a past month. Some people get stuck at the Google logo if they restore vendor.
[Nexus 5X General] dadenet:
If I m on N 7.1.1. and I try a custom rom based on 7.1.1 is not necessary to flash vendor.img ,

is it correct ?

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X General] azertguigui:
Thanks, it worked like a charm!
[Nexus 5X General] ulxerker:
correct.
[Nexus 5X General] Captain_Hungary:
Hello guys, I have a problem in istalling twrp recovery. I have successfully unlocked my bootloader, but when I try to flash twrp, it gives me this error: "neither -p product specified, nor ANDROID_PRODUCT_OUT SET." Btw im on 7.1.1. Same happens with last 3 images.

Does anyone know how to solve it?
[Nexus 5X General] SlimSnoopOS:
Show me the screenshot of:

fastboot flash recovery nameoftwrp.img
[Nexus 5X General] Captain_Hungary:
Never mind, I just realised that I should not include "<>" in the command. Eh, I feel kinda stupid now :D

Anyway thanks for the fast reply.
[Nexus 5X General] SlimSnoopOS:
No problem! I'll take that out of the line. I didn't notice that is the only time the symbols <> are used in the guide.
[Nexus 5X General] ac21365:
Hello all, just wanted to add another data point over here in the Nexus 5x section. I wanted to use Network Signal Guru but needed root, my phone needed a wipe anyway, so I waited a few weeks for 7.1 to drop so I could knock out 3 birds with one wipe.

For starters:

- Was on stock 7.0 non rooted.

- Manually flashed stock 7.1.1 NMF26F & relocked the bootloader (clean start).

Turns out, you can root and keep encryption with Android N, so I then followed these steps using TWRP 3.0.2-2 and SuperSU 2.78 flashable zip:

This worked like a charm on my 5x. Rooted stock N with encryption still in tact on 7.1.1 NMF26F. In my experience, step 5 never asked me for the pin I set up in step 3, but it shows encrypted in the OS nonetheless. The only root app I've tried so far is Network Signal Guru, but it works with root as expected (awesome app for you cellular network nerds, by the way!). I haven't tried xposed framework or anything like that, yet, but I presume it will work just fine as well.

Hope this helps!
[Nexus 5X General] juliusrandleisaman:
So I have been having issues rooting since 7.0 came out. I used to be rooted on MM and after I installed 7.0 I was never been able to root again. This is the message I get when installing the SuperSU 2.79 zip via TWRP (3.0.2-2).

Any idea why this happens? I've tried different versions of SuperSU and still no success.
[Nexus 5X General] SlimSnoopOS:
I prefer to use the SuperSU betas and haven't had any trouble rooting. I'm currently using 7.1.1 NMF26F and SuperSU 2.78 SR5. Download this from my link to the beta SuperSU, fastboot flash boot and system that matches your OS, then boot into TWRP and install SR5.
[Nexus 5X General] khanjui:
SuperSU 2.79 is newer than 2.78 SR5. And I haven't got any problems with it. The problem is probably because of old TWRP version.

Extract the boot.img from your ROM zip and flash it as boot from TWRP (I prefer using latest TWRP from jollaman999). Then flash the SuperSU zip, it should work.
[Nexus 5X General] juliusrandleisaman:
I'll try it. Thanks for all of yall's help and suggestions.

EDIT:

I feel like an idiot. I went back and flashed all the stock images and SuperSU finally installed afterwards! Thanks for all of the help. Root access gained.
[Nexus 5X General] :
For future reference: use cf-autoroot. Always works.
[Nexus 5X General] aidandj:
I also posted this in the general help but I used method 9 last night to update to 7.1.1 and had some issues.

Rebooted into recovery, and pulled/edited/pushed my build.prop file. Then when I went to reboot i got stuck in a boot loop.

I have tried it twice now, with no change. To be clear, in the bootloop i can flash back to factory and everything works, so I don't think I have a hardware issue.

Any other experiences?

---------- Post added at 07:28 PM ---------- Previous post was at 06:36 PM ----------

Update: Got it to work

I manually edited the build.prop in adb shell while in recovery mode. Changed the time stamps back to match the old build.prop.

Then booted into the system. Seems to be working so far.
[Nexus 5X General] itsdjc:
Hello.

Today approximately 10 hours ago, while refreshing my facebook app, my Nexus 5x froze and rebooted. For 3-4 hours I attempted to get it to boot and it would display 'Google' for about 5-10 seconds then turn off. I am able to get in to fastboot mode; however, entering recovery mode only works about 1 out of 10 times.

A co-worker of mine pointed me to this forum to possibly reload factory image onto the phone. However, it seems a key component in doing so is unlocking the bootloader, which requires turning on dev tools in the phone settings. For reasons stated above, I am unable to do this.

Are there any other options for me?

Thanks,

Dan
[Nexus 5X General] Unconn:
I am having the same issue on my wife's 5X. All stock. Listening to podcasts on the way home and it shut down and starts rebooting. Never unlocked, never Developer mode. Now it just reboots every 10 seconds. I have tried Clearing Cache and ever a Factory Reset and that same thing. Something wrong with the December 2016 update?!?

EDIT: it is still on Nov update (N5D91L) maybe it was a bad update attempt..

EDIT2: This could be the reason...

Last EDIT: Hardware issue...
[Nexus 5X General] ljfnky:
I'm in the process of learning so I can root my 5x and I'm was wondering since we can now download TWRP Thanks to Team Win at the Play Store if this changes the process of rooting in anyway as per OP Thanks and sry if this is dumb question.
[Nexus 5X General] juliusrandleisaman:
I actually tried that and NRT, but both gave me the same error. A complete wipe and reloading 7.1.1 images did the trick. Thanks for the help though.:good:.
[Nexus 5X General] ulxerker:
for all: news about the new TWRP app on Google Play you can find here.

of course, you can still stay with the procedures of the thread's OP. the app is just supposed to be more user friendly and intended for "beginners" for an easier installation/update of TWRP.
[Nexus 5X General] Yzord:
After being away for a few years i have found this tutorial the best. Worked well to install Copperhead onto my 5X.

Thanks!
[Nexus 5X General] truneaux:
Cannot install TWRP properly

Hi folks,

this tutorial read great. But I wasn't able to install TWRP properly. Here's the story:

- I got a brand new 5X and don't want to use Goolge SW at all

- I decided to use CopperheadOS as custom ROM

- trying to install TWRP 3.0.2-2 (with tips from another site) I got stuck being asked for a decrypt password. I hadn't set up a passord on the device before and tried "default_password" which didn't work

- having a lack of further ideas I simply flashed the custom ROM which worked fine

- now reading of EFS backups being important I tried to install TWRP 3.0.2-3 and I'm stuck at the same point:

TWRP keeps asking for a password to decrypt, cannot mount /cache ... not being able to backup anything

can I revert to stock with a factory image and start from the beginning ?

or how would I get across these passwords ?

I'm on MAC / Linux, no Windows available or wanted ...

Any ideas or recommendations would be kindly appreciated.

thanks in advance

truneaux
[Nexus 5X General] SlimSnoopOS:
Yes you can start over with a factory image. Idk about the password issue, usually the "default_password" works on TWRP or your email account if you have signed into the phone.

When you say "brand new," this is a freshly unwrapped Nexus 5X from a store or a "like new" 5X purchased from someone online?
[Nexus 5X General] Rakkos98:
Hey,

I have got prolem with unlock bootloader when i write fastboot oem unlock nad i have unlock bootloader and i write fastboot reboot my phone erasing and start. I restart my phone and turn on fastboot mode and my bootloader again locked. Why???
[Nexus 5X General] SlimSnoopOS:
Sounds like the motherboard was replaced. That is associated with "No RPMB" being displayed on the bootloader screen. See if the second post helps you.

http://xdaforums.com/nexus-5x/help/rpmb-impossibility-to-unlock-bootloader-t3483339

If not, request a replacement.
[Nexus 5X General] Rakkos98:
Thank you i can't try now because i read can't locked bootloader again so i don't now what now. I want have got warranty.
[Nexus 5X General] truneaux:
Hi SlimSnoopOS,

yep, "brand new" means from the store, not "like new" and used from someone else. I will try and start over with the factory image and report back about the issue with the password and post found solutions.

Thanks for the hint
[Nexus 5X General] Modder001:
Hello guys and [MENTION=3576831]SlimSnoopOS[/MENTION] [MENTION=1299673]sfhub[/MENTION]

I bought nexus 5x along with my friend back in july 2016

It had freezing issue from the day it was unboxed , i hoped that android n update would solve it .

Unfortunately it did not

So can someone please tell me solution ?

Description of my issue :

My device randomly freezes while loading social media messages. Also if i set up some lock like pattern/pin, and leave it overnight untouched,.... I get black screen on morning.

But it is not shut down.

If I press power button for few seconds (Like when accessing power menu) I get normal vibration. But I don't see anything on screen.

So i have to press power button for 10 or more than 10 seconds to see a bootlogo and bootanimation.

After bootup it lags a lot while on lockscreen

This issue is bugging me a lot and I need help ASAP

Thanks

PS: I can't return my device as it was a gift . Amazon does not replace gifts and I've tried factory reset for 3 times and flashed factory image for 2 times

Please help me ASAP , I'm depressed due to this issue

(My friend sent me this phone through gift option on amazon ... but I actually paid to my friend.. It's weird I know)

Help me guys .. I used all my savings to buy this phone. I want to solve this issue
[Nexus 5X General] sfhub:
Factory reset and set it up with new google account with no additional apps installed. See if it is still happening. If so, maybe it is hardware. If not, then it is software and you need to figure out which.

I used to get something like that after upgrading to 7.1 but then I updated the keyboard app and disabled any of the word suggestions and everything was much smoother.
[Nexus 5X General] Modder001:
Thanks for the reply . but I have tried factory resetting it twice and second time I didn't put any account. So actually the issue didn't occur for a day. So I decided to put my google account. and when i picked my phone for doing that . It hanged again and I had to force restart !!!!!!!!

I can't guess what is wrong with my phone.

SO please help

Edit : whenever i try to debug it and plug in usb issue never occurs. I used it for 2 days with usb connected :v
[Nexus 5X General] craggert:
i am in the bootloader and i type fastboot devices and it does not reply serial number or anything noted above it just go to the new line and over nothing happens . Any suggestions what i am doing wrong.
[Nexus 5X General] ZLevente:
Me too, but i can do anyting. Unlocked BL and installed TWRP and CM14.1 :)

Maybe it works for you too.

But i have a question anyway [MENTION=3576831]SlimSnoopOS[/MENTION] or everyone who knows.

I made an EFS backup, but i can't move to my Google Drive (failed) can't copy to my PC (failed again, it skip .win files)

Why? How to move it somewhere safe? :D

Tried to zip it, but it become 0kb

Every other files works, just the .win not.
[Nexus 5X General] No_Signal:
First of all, thanks for this excellent thread! Regarding this first steps to get one started it needs to be fixed though. Following the the link and downloading the SDK Tools package the folder structure is a different one than described by OP. No android-sdk-windows for example.

SDK Manager.exe is found in \lib is asking for tools\android.bat that is not existent by default folder structure, androit.bat is instead in the root folder (C:\SDK when following the guides naming). Copying the SDK Manager.exe to the root folder and executing it, ends with a "Failed to execute tools\android.bat:, error 2 The system cannot find the file specified", same error as above.

Tools and Extras Folder are not created from the zip file structure and Google USB Driver are not in the .zip file either.

Any help?
[Nexus 5X General] sfhub:
I am just making a wild guess here, but plugging in USB supplies power so maybe there is an issue with the battery.

What happens if you plug in and older low power charger (or the stock charger if you don't have one)
[Nexus 5X General] No_Signal:
I try to flash the latest 6.0.1. factory image from Google. Following the steps from first post, progress stops at fastboot flash boot C:\bullhead\images\boot.img, FAILED (remote: invalid bootloader image). What went wrong there, what might be the issue? I tried to restore a NANDROID backup but the device won't go past the Google Boot logo (white one, not animated).

Another question, why using method above over flash-all method described on https://developers.google.com/android/images ? With flash-all described there I got 6.0.1. working.
[Nexus 5X General] SlimSnoopOS:
Sorry for being so quiet the last few days. I caught a stomach virus and didn't feel like doing much of anything.

Gotcha. Just thought I'd ask in case you had a used phone. Were you able to get this working btw?

If on Windows, sounds like a driver issue. Try deleting that installed driver and reinstalling it while in the bootloader.

I had to email it to myself when I tried a year ago. Of course, I use OSX so my transfer options are limited. Maybe adb push or try moving the files over while in TWRP?

This is difficult to troubleshoot because I use OSX. Although, I don't believe I had to drag any files anywhere. Did you download the 1 GB, 64 bit exe?

Show me the screenshot of your computer and this error.

Sometimes the flash-all does not work for people. Others have a personal preference to write out each command. This guide has the manual way written out so that new users have a a familiarity and comfort with adb/fastboot commands. Both methods will end in the same result, a completely wiped, factory reset phone.
[Nexus 5X General] ch.ch1:
No update when TWRP will be updated and have the current bug fixed?
[Nexus 5X General] ulxerker:
nope, use the one from jolla's latest kernel zip instead. its the most updated one incl. bug bugfixes.
[Nexus 5X General] ch.ch1:
Thanks. I flash this as recovery instead of TWRP? Which version do I download?
[Nexus 5X General] ulxerker:
Yes, its an updated twrp by the way.

Download the newest one, its 12.4 at the moment.
[Nexus 5X General] Modder001:
I tried factory reset with new Google account and the frequent of issue is reduced but it's NOT gone because of which I'm thinking of buying a new device
[Nexus 5X General] Modder001:
Okay .. so before scrapping my Nexus 5x

I thought I'd try concerning some of my friends who own Nexus devices from long time

They suggested me to flash the factory image of 6.0.0 (the oldest with which the device was launched ) and then check if my weird issue persists. They think flashing the oldest factory image will restore some missing drivers or something like that .

But now as I'm on 7.1.1 latest firmware .. will it work ? Or I shouldn't downgrade to 6.0.0 ?

Also can anyone help me get a logcat on my issue ? [MENTION=1299673]sfhub[/MENTION] [MENTION=3576831]SlimSnoopOS[/MENTION]
[Nexus 5X General] sfhub:
I don't think it will fix anything, but you can try. Earliest is 6.0.1 I believe. MDA89E. There is always the possibility you have some software not compatible with latest OS.

After you found it was working with no google account, I would try with brand new google account. Then slowly add your apps a few at a time.

---------- Post added at 06:50 AM ---------- Previous post was at 06:23 AM ----------

Are you sure you typed

fastboot flash boot boot.img

or did you type

fastboot flash bootloader boot.img
[Nexus 5X General] Caramea:
Hi guys, noobish question here. I am not so experienced in rooting, however all my previous devices where rooted, but now I am the owner of nexus 5x with 7.1.1 stock on board (NMF26F). The main reason for rooting is to enable EIS for camera. I want to root with TWRP and SuperSu. The question is: as latest twrp for my device is: "twrp-3.0.2-2-bullhead.img	16M	2016-09-01 " and it was released in september and NMF26F was received OTA in december, will it be a problem? And regarding SuperSu: I should use 2.78 or newer?
[Nexus 5X General] Josh:
Hi fellows ! Is it possible to unlock bootloader or root 5x without pc because I've got oldest Pc running Win Xp and Pc can't recognise mtp device and install drivers. I put everything what I should usb debugging and mtp but without success.When is on charging mode drivers properly installed. Any suggestions?! Yeah I know I must upgrade Pc :D lol thanks.
[Nexus 5X General] fvisagie:
twrp-3.0.2-2 also has a bug. There's an unofficial twrp-3.0.2-3 (mentioned in this thread) which works fine with my NMF26F build. If you're interested, apparently there's another "fixed" TWRP version distributed with "jolla...something", mentioned either in this thread or the TWRP one, IIRC.

SuperSU is now on 2.79 stable, which also works fine on my device.

Hope this helps :).
[Nexus 5X General] SlimSnoopOS:
See FAQ #7 regarding TWRP.

Aloha! Currently, it is not possible to unlock the bootloader without a computer. You can root without a computer once the bootloader is unlocked.

As I don't use Windows, all I can suggest is to boot into the bootloader and delete the driver already installed for your phone. Then manually search for a driver to install while in the bootloader.
[Nexus 5X General] Josh:
Aloha! Drivers properly installed when I was in bootloader but PC doesn't detect phone in mtp mode :rolleyes:
[Nexus 5X General] SlimSnoopOS:
Any luck? You can also take a look at this thread and try some of their suggestions like post #33 ot even the last post:

http://xdaforums.com/showthread.php?t=3236946
[Nexus 5X General] Josh:
Yes,after few days I've done it. Succesfull unlock flash and root :)
[Nexus 5X General] SlimSnoopOS:
Awesome! What worked for you?