yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] milan187:
One thing. You don't need to swipe to allow modification to system. You can keep it read only. We are doing a systemless root anyway.
[Nexus 5X General] Rajaasim1980:
What is magisk? How you download OTA and how you flash it without losing TWRP and root ? details would be great
[Nexus 5X General] bobby janow:
How is this difficult to understand? It's simple, just follow the guidelines. You can even flash stock recovery.img, boot and then fastboot boot twrp.img. This is getting to be so silly already. Where did critical reading get lost in this world? Read the OP folks! It's so simple, then read it again and again. Until it comes out of your ears. You should be able to recite the OP in your sleep. Or gtfo of here.
[Nexus 5X General] antroid88:
Magisk is created by XDA members. All details you can find through the search.

The same with factory image - made by Google, look into Google https://developers.google.com/android/nexus/images . BTW, I never said that I download and flash OTA. I always use full factory images, but I don't have to connect my phone to PC so it's KINDA OTA. Results are the same. Just takes extra couple minutes to download.

To flash factory image you don't even need to unpack tar-ball. FlashFire (get it from Play Store (I highly advice you to buy this tool (support the devs!))) takes care of everything. It has bunch of typical tasks, so no need to figure out how to flash. Literally choose Flash Firmware package. I just add modem image. For some reasons it's not active by default.

I never stated that I preserve TWRP. FlashFire tries to do it, but fails for me. I don't see a lot of reasons to preserve it too. FlashFire can flash everything. I flash TWRP just in case because with TWRP you can access terminal when system isn't mounted for example. Helps to make AdAway work on N.

FlashFire is created by Chainfire. SuperSU is created by Chainfire. So obviously this guy knows how to make friendship between his apps.

Give it a shot and you will be surprised how simple it is.
[Nexus 5X General] Rajaasim1980:
Thanks for your details explanation but i dont think you have got my question. I know how to flash factory image of complete firmware from google with fastboot . my only concern is how to flash small security update which you keep getting from google after few months without losing twrp and root( if its possible). If not then do we need to flash stock recovery and unroot the device in order to flash OTA updates
[Nexus 5X General] antroid88:
Either unroot or try Magisk. FlashFire can also try to flash this small OTAs, but always fails for me. So I just get my own OTA.
[Nexus 5X General] Rajaasim1980:
So only need to be unroot to flash OTA? No need to flash stock recovery? do google upload these samll security update on their website
[Nexus 5X General] antroid88:
I'm not 100% sure about recovery. Probably you'll have to make it stock too.

I don't understand 1 thing. Why it so important for you to apply automatic OTAs? You can flash factory images via Flash Fire every month . It takes the same amount of time and less hassle than unroot-root.
[Nexus 5X General] Rajaasim1980:
Because i want to keep all my settings and user data...why flash full factory image again just for few small security updates which they keep sending regularly
[Nexus 5X General] antroid88:
It doesn't wipes data.
[Nexus 5X General] Rajaasim1980:
Ok will try will flashfire as never used it before

Flashfire can flash boht OTA image and factory image?
[Nexus 5X General] antroid88:
Yes. but probably fails with ota.
[Nexus 5X General] fvisagie:
The button behaviour you describe is normal.

As has been suggested, the best way to reset your device to a known baseline now is probably to completely flash a full factory image. Including flashing data, since corrupted/version-mismatched data can also cause bootlooping.

Easiest is to use the 'flash-all' script provided in the image. Make sure any usable data is backed up before-hand.
[Nexus 5X General] septix:
Yeah, I've done the flash-all method about 10 times. With several different stock images, and a few custom roms.

Bought the phone used just a few days ago :(
[Nexus 5X General] fvisagie:
In that case my suspicion would turn towards a damaged vendor-type partition. My N7 started boot-looping despite full factory ROM flashes after a corrupted bootloader in the then Google factory image failed to flash, causing the subsequent new radio image flashing to corrupt its partition. I could "reproduce" the problem afterward by observing the bootloader flashing error.

So, do you observe any error messages when doing flash-all of, say, the latest 6.0.1 image (MTC20F)? After a boot loop you may also be able to learn something from the recovery logs (by booting into recovery) and/or flashing a custom recovery for greater access. I wouldn't know where to start looking at that point, though ;).
[Nexus 5X General] :
is it possible to downgrade from stock Nougat to stock Marshmallow? :)
[Nexus 5X General] septix:
The thing is that I'm not getting any kinds of error whilst flashing factory image or custom rom.
[Nexus 5X General] fvisagie:
Answered here.
[Nexus 5X General] :
sorry, was just making sure because i dont know if its same with oem phones where if you cant downgrade because of bootloader. e.g. samsung. thanks btw.
[Nexus 5X General] alfick3:
I know what you mean; I came from the 1st gen Moto G, and you couldn't downgrade between Android versions the either because of the bootloader. It's a leaning process for us all.
[Nexus 5X General] KSLevel11:
Hello.

Could you tell me, can I safely use fastboot erase commands?

When I had Nexus 4, I was using a few erase commands before flashing image:

Fastboot erase boot,

Fastboot erase system

Fastboot erase recovery

Fastboot erase userdata

Fastboot erase cache

And after reboot of bootloader, I was using flashall.bat to flash the whole image.

Can I safely use all of this commands in this order to return my N5X to factory state?

Should I also use fastboot erase vendor?

Thanks in advance.

Wysłane z mojego Nexus 5X przy użyciu Tapatalka
[Nexus 5X General] ulxerker:
all you need to do you'll find in the first post under section 10 of this thread, those mentioned commands aren't necessary.
[Nexus 5X General] fvisagie:
No worries, I only pointed to the existing answer because I can't answer your question from first-hand experience yet - also still learning on the N5x :).
[Nexus 5X General] Nex23:
Hey, so i created a twrp Backup (Nandroid and efs), but when I want to move/copy the files to my Computer i get an error ? So how do i save them at a safe place ?
[Nexus 5X General] Stevica Smederevac:
Efs to drive, Dropbox, etc, the rest is not important ;)
[Nexus 5X General] Nex23:
But when i want to copy the file to my PC (internal storage > TWRP > BACKUPS > "efs_backup") it shows me an error saying "Unknown failure" and i cant copy it.
[Nexus 5X General] Stevica Smederevac:
I didn't understand anything :p. Go to twrp and choose only efs to backup and you're safe.
[Nexus 5X General] Nex23:
Sorry, i edited it to the right language :D. Yes, but how do I copy it to Dropbox ? Somehow I get always errors when trying to copy it.
[Nexus 5X General] Stevica Smederevac:
Long press on that file(s), and from the options choose share and you'll see all the available cloud storages(among other things)
[Nexus 5X General] milan187:
May need to zip it.
[Nexus 5X General] moeg:
Hi i followed the directions to unlock bootloader and install recovery. It seems im now stuck in a boot loop. any suggestions. Could it be its happening because i went straight to install twrp without a reboot after oem unlock?
[Nexus 5X General] fvisagie:
It appears so. There are fixes you can try (and an explanation) here.
[Nexus 5X General] goldfish2:
Android Nougat Issues?

I finally got upgraded to Android Nougat in the normal way using the update that got pushed from t-mobile on my completely stock phone. Am I going to have any issues following these instructions under Android Nougat? I'll be using the latest versions of SuperSU-v2.76 and twrp-3.0.2-1. So far I've unlocked my OEM which wiped all the data, but the next few steps seem riskier as I see some people suffer from boot loops and such. Has this been tested with Android Nougat (and not just a developer preview?)
[Nexus 5X General] ulxerker:
it has been tested and it works the same way for N, just follow the guide step by step. bootloops mostly happen when installing wrong apps/binaries/images or when mixing up the order of necessary steps.
[Nexus 5X General] mjp5099:
Getting "No Command" at recovery

Hi guys,

Back when 6.0.1 released I followed this post and rooted successfully with super su 2.67 and loved the extra accessiblilty with xposed and elementalX. However, when nougat released, I decided to revert to stock by uninstalling all my apps that used root, starting with Elemental X, then made sure the kernal was stock android (it was). To unroot I opened settings in SuperSu and selected the unroot method and verified with rootchecker. Safetynet passed and was able to add cards to AP. Finally I downloaded the 7.0 OTA and it installed thru TWRP just fine. I also reflashed twrp but it doesnt stick, and when I go to bootloader and select recovery I get the android laying down with text saying 'No command"

Do I need to download the stock nougat images and just flash the recovery.img and thats it? I've searched a bunch of threads now but cant seem to narrow down exactly what to do. Just dont want to get stuck in a boot loop!

Side note: My battery life is very inconsistent when leaving idle overnight with 7.0. some nights I get 0-2% drain and others 20-28%!!! Could it possibly be greenify messing with the new doze features? PS im still unrooted. I will uninstall and test overnight.
[Nexus 5X General] Danilo Pantelić:
Great thread !
[Nexus 5X General] friendfriend:
Hello, I have 7.0 and tottaly stock. Where is guide for systemless root?

Thanx
[Nexus 5X General] Nomelas:
Try magisk. (search the forums)
[Nexus 5X General] friendfriend:
OK thanks, i find it.

And one more question: what is better: standard root or systemless?
[Nexus 5X General] ulxerker:
try to achieve systemless root.
[Nexus 5X General] friendfriend:
thanx ulxerker...I will see about Magisk.
[Nexus 5X General] maniacofdeath:
Can you tell me the benefits of systemless root compared to system root?
[Nexus 5X General] ulxerker:
for this you can find some reading here: http://www.howtogeek.com/249162/what-is-systemless-root-on-android-and-why-is-it-better/
[Nexus 5X General] Nomelas:
has anyone tried updating to 7 using flashfire? while keeping root

Update: Works! (even with data encription)
[Nexus 5X General] dcxgod:
Hey all. I've been trying to follow the guide to flash all of the stock images (from Google directly) as described in the OP. I was successful...except for the fact that I can't get the phone to boot up at all. (I was flashing back to stock 7.0). Any help / advice on what to do now?
[Nexus 5X General] Stevica Smederevac:
Since your phone is with no apps or anything, do a factory reset from twrp or stock recovery
[Nexus 5X General] jayandvic:
i have the 6p and my son has the 5x. I know there is an issue on my 6p with twrp and android n downgrading causing bricking. Are you seeing this on the 5x? He wants me to downgrade and I wanted to ask before I try it.

Thanks
[Nexus 5X General] wangjt:
Hi all. I need some help.

My phone was previously softbricked. I'm not sure exactly what happened but I it had something to do with playstore updating supersu and it became unstable.

Anyways I'm able to access fastboot. I've downloaded stock android 6.0.1 and followed the steps in step 10 of OP:

fastboot flash bootloader C:\bullhead\images\bootloader-bullhead-bullhead-xx.xx.img

fastboot reboot-bootloader

fastboot flash radio C:\bullhead\images\radio-bullhead-bullhead-xx.xx.img

fastboot reboot-bootloader

fastboot flash boot C:\bullhead\images\boot.img

fastboot erase cache

fastboot flash cache C:\bullhead\images\cache.img

fastboot flash recovery C:\bullhead\images\recovery.img

fastboot flash system C:\bullhead\images\system.img

fastboot flash vendor C:\bullhead\images\vendor.img

Everything flashes successfully but when I reboot, it takes me to a "firmware update" screen similar to this

https://img.xda-cdn.com/-RUGR6okNij...tent/uploads/2014/03/Download-Mode-LG-G21.jpg

Doesn't matter if I'm trying to boot into recovery or android, it shows the same screen. The only thing i can get into is the bootloader by holding power + volume down.

Any ideas?
[Nexus 5X General] dog121:
Try the nougat update download the files and flash again..

https://developers.google.com/android/nexus/images

Nx5
[Nexus 5X General] wangjt:
Thanks. Just tried it with 7.0.0 (NRD90M)

Pushed to device using fastboot. Booting into recovery or OS just goes to the "firmware update" screen.
[Nexus 5X General] dog121:
Can u load a twrp.img??? And boot into recovery
[Nexus 5X General] wangjt:
I can load one but trying to boot into recovery just goes to the "firmware update" screen.
[Nexus 5X General] dog121:
Found this thread on the Nexus 5 forum sounds like ur issues have a read u may sort this out...

http://xdaforums.com/google-nexus-5/help/nexus-5-firmware-update-problem-t2594581
[Nexus 5X General] Sosa88:
It didn't work for me i think my Nex5 is is Hard bricked now [emoji24]

Gesendet von meinem HTC One mit Tapatalk
[Nexus 5X General] dcxgod:
I cannot load into recovery - gets stuck on "Google"
[Nexus 5X General] wangjt:
its saying to hold the power button down. all that happens is it loops between the screen with the orangle triangle (saying my boot loader is unlocked) and the "google" lock screen.

When I let go of the power button, it just gets stuck on the screen that says "Google" with the unlocked icon.
[Nexus 5X General] dog121:
So the update firmware page has gone now??? How . much charge has the phone got..

Nx5
[Nexus 5X General] wangjt:
Yea I think somehow it got worse. I can't get the bootloader up anymore. No matter how long I hold the power button, the screen doesn't turn on. But when I plug it into my computer, the driver shows Qualcomm HS-USB QDLoader 9008 (COM5).

The charge should have been full. It was plugged in overnight for about 6 hrs (however, I couldn't get the screen to turn off while plugged in).

I don't think the battery is dead because the computer still detects a device when I plug it in.

But I'll try to charge it for an hr and see what happens.
[Nexus 5X General] dog121:
Then this maybe ur last resort...

http://xdaforums.com/nexus-5x/help/req-help-to-unbrick-t3251740

Nx5
[Nexus 5X General] wangjt:
Thanks. I tried this last night but it didn't work (made a post in that thread earlier too).

I just tried it again (redownloaded the tot file) and it somehow it booted up into the OS this time.

I'm now able to properly flash twrp recovery. Currently trying to get nougat on it.

Only problem I'm running into now is my sim card isn't being detected. It was like this all of yesterday (before phone bricked). This is probably a hardware issue.

Anyways, my phone is at least up and running. Thank you so much.
[Nexus 5X General] dog121:
I would forget about twrp and just fast boot all factory image of nougat ...

Nx5
[Nexus 5X General] ilvmyname:
Executing SDK MANAGER.exe opens and closes cmd automatically nothing happens,

I want to unlock bootloader, help asap
[Nexus 5X General] mjp5099:
I get the android laying down with text saying 'No command"

Do I need to download the stock nougat images and just flash the recovery.img and thats it? I've searched a bunch of threads now but cant seem to narrow down exactly what to do. Just dont want to get stuck in a boot loop!

I tried the above method to fix the "No command" with no success. Any suggestions would be appreciated. :D

Side note: My battery life is very inconsistent when leaving idle overnight with 7.0. some nights I get 0-2% drain and others 20-28%!!! Could it possibly be greenify messing with the new doze features? PS im still unrooted. I will uninstall and test overnight.[/QUOTE]

EDIT: I uninstalled Greenify and my battery seems to be holding up overnight with 1-3% drain.
[Nexus 5X General] maniacofdeath:
I down loaded the zip and had the same problem. It turns out SDK couldn't find Java. And SDK manager needs java to run. If you have Java installed already then you have to go to SDK>tools>. You should see a file called Android.bat. Right click it and select edit. Scroll down Until you find

set java_exe=

call lib\find_java.bat

if not defined java_exe goto : EOF

Delete

call lib\find_java.bat

if not defined java_exe goto : EOF

And then put the where the directory for java is. For me it was

set java_exe=C:\Java\tools\bin\java.exe

Then save the file and double click the android.bat. It should take a few seconds then you should see SDK manager. Now you can go back and click on the SDK Manager.exe and it should work.

If you don't have java, google JDK 8. The first result is the website. Scroll down and accept the license agreement.

If you are on Windows 32 bit, download The Windows X86.

If you are on Windows 64 bit, download the Windows X64.

If you don't know what bit your computer is, go to control panel. Click System and Security. Then click on system.

Look where it says System type:

And it should say 32-bit operating system or 64-bit operating system.
[Nexus 5X General] Lollolollo84:
Usually for update factory image of my N5X with Android 6 i use the following comand in order to NOT wipe/loose my data and NO reset the phone:

fastboot flash bootloader C:\bullhead\images\bootloader-bullhead-bullhead-xx.xx.img

fastboot reboot-bootloader

fastboot flash radio radio C:\bullhead\images\radio-bullhead-bullhead-xx.xx.img

fastboot reboot-bootloader

fastboot flash boot C:\bullhead\images\boot.img

fastboot flash cache C:\bullhead\images\cache.img

fastboot flash system C:\bullhead\images\system.img

fastboot flash vendor C:\bullhead\images\vendor.img

fastboot flash recovery (TWRP)

Can I use the same method on Android 7 to update from NRD90M to NRD90S without loose my data each update?
[Nexus 5X General] sfhub:
Yes that will work. You shouldn't need to re-flash TWRP assuming it was there already, since didn't flash recovery in your list of commands, thus twrp would not have been overwritten.

I usually boot directly from bootloader menu into TWRP and apply SuperSU immediately before first boot, but it isn't absolutely necessary unless you have specific reasons like wanting to preserve decrypted userdata or have touchscreen firmware fix that needs to be applied in proper order.
[Nexus 5X General] queerquirks:
Hi, which twrp version should i use if upgrading from stock rooted marshmallow to nougat? Would like to keep root too.

Its the same steps as 9. in the guide? Been following those steps for all monthly updates and been fine so far, however reading issues on nougat upgrading is making me worry abit.

Also, can I upgrade directly from 6.01 to 7.0 monthly security update?
[Nexus 5X General] ulxerker:
flash twrp 3.0.2-2 in bootloader after updating rom before you boot the first time. after that flash supersu and a custom kernel if you like. and yes, you can use latest factory image to update from 6.0.1 to 7.0, steps like mentioned in section 9.
[Nexus 5X General] Nomelas:
I used chainfire's FlashFire app and it worked perfectly going from 6 to 7. I do recommend updating to twrp 3.0.2-2 first though which you can do through recovery. No need to hook up to a PC for any of it.
[Nexus 5X General] queerquirks:
Yep, followed the steps in Part 9 and used SuperSu 2.78 and twrp 3.0.2.1.

Twrp 3.0.2.2 would bootloop for me - Google logo and back to twrp password page.

All working well with Elx 3.05. Now shall wait for xposed and figuring how to enable system tuner for my batt %. System tuner wont launch at all
[Nexus 5X General] vperezol:
Can i lock the bootloader after root?

Hello! This probably has been answered before but 118 pages is a lot to read through...

So. I rooted my nexus a-ok (thanks for the wonderful instructions btw) and now every time i restart my phone it whines something about corruption and goes "Please lock the bootloader" before carrying on booting. It's not impossible ot live with (Lord knows I prefer waiting 10 seconds to my phone not being rooted) but... Is there any way to get rid of it?
[Nexus 5X General] maniacofdeath:
Twrp 3.0.2-2 has a Backup bug and twrp 3.0.2-1 has an efs bug also found in twrp 3.0.2-2. Twrp 3.0.2-0 is the stable version. But on nougat it freezes if you're encrypted
[Nexus 5X General] antroid88:
Has anyone got build NRD90R with the latest OTA instead of NRD90S? Flashed with FlashFire. Phone still works) https://productforums.google.com/forum/#!topic/nexus/jtBJrQjbx2U Google is confused too.

Updated:

No idea what was it. Manually downloaded NRD90S OTA and flashed it with FlashFire. Everything is like it's supposed to be now.
[Nexus 5X General] Noelito3:
Yes, Twrp 3.0.2-0 freezes on my encrypted nougat. What version do you recomend me?. Thanks.
[Nexus 5X General] sfhub:
That is expected behavior.

In terms of backup/restore 3.0.2-0 is the one that works but you'll need to load a MM vendor partition to make it work, then load a Nougat vendor partition for your android boot to work.

In terms of mostly working, 3.0.2-2 is find, but it has trouble backing up larger partitions. If you don't do backups, it doesn't really matter to you.

There is an experimental 3.0.2-3 earlier that is supposed to have the backup problems fixed. A link was posted earlier.
[Nexus 5X General] Nightshadow931:
It's normal, it's just warning you that bootloader is unlocked.

And no, you cannot get rid of it, at least as far as I know.
[Nexus 5X General] maniacofdeath:
Isnt there a flashable theme that removes that annoying logo. I could've sworn there was but I can't remember where.
[Nexus 5X General] sfhub:
Doesn't work if you have updated bootloader to the recent ones.
[Nexus 5X General] Ryder.:
Can i update factory images with twrp instead using cmd? I want to stay on stock android and I want to know if i can update to a new build by flashing system and vendor images from twrp like flashing custom rom (for example chroma or pure nexus) and vendor, and maybe boot image. Of course only from 7.x.x to 7.x.x new build and then flashing supersu zip
[Nexus 5X General] SlimSnoopOS:
System, vendor, and boot can be install in TWRP 3.0+ using the "install .img" option
[Nexus 5X General] Ryder.:
So can i update in this way without problems?
[Nexus 5X General] SlimSnoopOS:
Yes.
[Nexus 5X General] Ryder.:
Ok. Thank you☺
[Nexus 5X General] niklus101:
I have a completely stock n5x (android 7.0) and i was wondering, after unlocking bootloader, whether to decrypt the device by formatting the userdata before proceeding to flash twrp or flash twrp after without decrypting the data? also which version of twrp is recommended to use? as certain versions have various bugs. thanks.
[Nexus 5X General] sfhub:
I would suggest not decrypting at all because after the March update there wasn't any real world performance difference and since TWRP can now read 7.0 encrypted data, there isn't any reason to decrypt for 7.0 Beta like before.

As to how you would do it if you wanted to be decrypted, I would erase, then format userdata in fastboot, flash twrp, boot into twrp directly from bootloader, flash SuperSU, then you are done.

As to what version of TWRP, use 3.0.2-3 unofficial that was posted on the TWRP thread in android original development subforum.
[Nexus 5X General] niklus101:
Ok thanks. but i just can't seem to get fastboot to recognize my device. I've tried all the usual solutions (different usb ports, reinstall device drivers, etc.) but adb recognizes my device but when I reboot to bootloader via adb, fastboot does nothing at all when i issue the command "fastboot devices". any solutions?