yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] amaIgam:
Info: Phone is rooted and running Elemental X kernel.

So, this morning I installed 7.1.1 (April) on my phone through FlashFire as I always have and everything booted normally and installed correctly. Root was kept, TWRP kept, and Elemental X all kept and running.

15 minutes later, Google uploaded 7.1.2, so I downloaded the file and used FlashFire to install again:

I selected "Flash Firmware Package"

unchecked "boot"

unchecked "recovery"

checked "system"

checked "vendor"

For some reason, I noticed "data" was not listed, but I thought it was nothing since I didn't want to flash "data" because it would delete everything.

Another thing I did differently this time was that I had FlashFire reboot to recovery after flashing so I could wipe the cache. Normally, I will have it boot to system and then from system, I will boot into recovery to wipe the cache.

After flashing, FlashFire rebooted to recovery and I wiped the cache and rebooted to system, but my phone never reaches the home screen. I left it booting for 30 minutes and it never reached the home screen, it is stuck at the boot-up animations. The phone doesn't restart or continuously vibrate, though. It will vibrate once and only restart if I hold the power button for a few seconds.

I am able to boot into bootloader and access recovery, so I should be able to flash previous versions.

I tried to re-flash SuperSu, but the same problem exists, so I'm not sure what went wrong. Does anyone have any advice for fixing this?

Thanks
[Nexus 5X General] SlimSnoopOS:
According to Android Central, the latest ADB is broken and cannot perform ADB sideload. Follow the link at the end of the article for platform tools 25.0.3. See if this helps.

You may need to flash boot, system, and vendor. Your post leaves boot.img unchecked. I don't use Flashfire so if this doesn't work, you'll need to take this up in the Flashfire thread. My personal suggestion, is to flash boot, system, and vendor via fastboot. Then boot up to ensure the rom is working, reboot and flash TWRP then your respective mods.
[Nexus 5X General] ljfnky:
This is what I'm getting

C:\Users\Les\Desktop\platform-tools\platform-tools>fastboot devices

0060a69d2eac2dc4 fastboot

In Recovery now.......

C:\Users\Les\Desktop\platform-tools\platform-tools>adb sideload bullhead-ota-n2g47f-87f5e6a4.zip

loading: 'bullhead-ota-n2g47f-87f5e6a4.zip'...

terminate called after throwing an instance of 'std::bad_alloc'

what(): std::bad_alloc

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.
[Nexus 5X General] amaIgam:
That makes sense... thanks for the information! I will try it when I get home and give an update.

Should boot always be checked in FlashFire then? I've done this same method the past 4-5 times and didn't encounter this issue. I used to flash through fastboot, but I wanted a faster method. I may go back to fastboot since it seems to be safer.
[Nexus 5X General] SlimSnoopOS:
http://www.androidcentral.com/havin...droid-712-your-nexus-or-pixel-youre-not-alone
[Nexus 5X General] ljfnky:
Deleted post
[Nexus 5X General] SlimSnoopOS:
Are you certain that you are running "adb sideload" while booted in recovery? Because I see bootloader and also fastboot mentioned in your post.

Here's a refresher per Google's instructions below:

https://developers.google.com/android/ota
[Nexus 5X General] ljfnky:
That was my error Must say that was the weirdest update I've done but it's done thanks for the link it helped me.
[Nexus 5X General] SlimSnoopOS:
It's all good :highfive: helping everyone in this thread helps me learn in the process. Y'all alert me to situations that I usually do not have experience in performing until it's time to troubleshoot :good:
[Nexus 5X General] amaIgam:
Hey, thanks a lot for the information. Flashing boot, system, and vendor worked and my phone is booted and updated to 7.1.2. I had to re-root and re-install Elemental X, but it's all good. I think next time I'll try selecting boot in FlashFire or just flash every image individually like I used to.

Appreciate the help again.
[Nexus 5X General] Jeremy.Stewart85:
PSA for anyone upgrading to 7.1.2 today using this guide and has gotten stuck at the boot animation:

Follow option #9 as usual

EXCEPT for this step

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

The full image does not have the cache partition so you will obviously not be able to flash the cache after erasing. This also seems to leave the OS in a weird state where it can't boot (not sure why it doesn't regenerate that partition at startup/update if it's not there but that's how it goes). I didn't grab the logs before fixing this so I'm not sure of the exact error, maybe if anyone else runs into this they can provide it.

If you saw this too late, do not worry! I was able to successfully recover from my accident.

[UPDATE] Easier solution found using TWRP:

Simply enter recovery mode and run the "Format cache/wipe dalvik" task. This recreates the cache partition properly so Android no longer fails during boot.

Alternate solution:

Download the April 7.1.1 factory image and extract it and all included zips as you normally would: https://dl.google.com/dl/android/aosp/bullhead-n4f26u-factory-e6420fc1.zip

Make sure you are connected to your PC and reboot the phone into fastboot mode by holding volume down and power for ~10 seconds

Verify that you can connect in your terminal of choice by running `fastboot devices`

Flash the April 7.1.1 cache partition (make sure you are flashing from the right directory!) using:

fastboot erase cache
fastboot flash cache cache.img

Reboot, it will take a little while for the update to do its thing so be patient but after a couple of minutes you should be back up and running.
[Nexus 5X General] ulxerker:
... or simply "adb sideload 7.1.2-FullOTA.zip" in TWRP's sideload mode, thats it.
[Nexus 5X General] Jeremy.Stewart85:
Whenever I last tried that method it automatically rebooted the phone after installing the update. For people that need to flash mods/kernels/supersu right after the update that method never seemed to let me maintain control unless that's changed. Just kind of what I'm used to/comfortable with.
[Nexus 5X General] ulxerker:
I use this method with every update and never had an issue.

After sideload has been finished say No when asked for a reboot. Then flash twrp while still in twrp, reboot into twrp and flash supersu and custom kernel.
[Nexus 5X General] ljfnky:
I'm rooted have twrp and supersu installed as I was leaving twrp it ask about installing twrp through play store at first I skipped that and just went about my set-up installing the pixel launcher completing my set-up.. But when I boot into twrp every time I go to exit and reboot it ask if I want to install twrp from play store so after seeing this a few time I decided to do it app's downloaded from play store But it's not completely installed as per play store when I go to play store and open the app it has the few boxes to check to allow root permission and so on...I stop here at this point and get out not wanting to have to go through the hole root process again with setting everything up..... not sure about which way to go as I'm rooted and all set just don't have offical twrp from play store.. any advice is appreciated.
[Nexus 5X General] SlimSnoopOS:
Boot into TWRP, go into Settings, then deselect the recommendation to install TWRP app. No more prompts!
[Nexus 5X General] ljfnky:
Thank you
[Nexus 5X General] jerethi:
Greetings,

Can anyone point me to a good guide that explains how to format my phone to take advantage of the f2fs filesystem? My current ROM is Pure nexus and am using Jolla kernel. Thanks!
[Nexus 5X General] KostisTTT:
Booting problem

Hello, guys..

I had a Nexus 5x (MM, SuperSu, Xposed) and everything was perfect.

On Friday I made a factory reset in order to try Magisk. I installed Magisk, Xposed (mat. Design), etc, and everything seem to work nice..

Sudenly, yesterday, while I was reading sth in the forum, my phone stuck for some seconds and then closed. When I tried to boot it (pressing the power button for 10 secs) only the logo of Google appeared and then it shut down again.

Then, I tried to install from zero my build of stock (MTC20K), Step 9 in the Guide, but the while booting only the logo of Google appeared.

Then I used the command fastboot format userdata and tried the step 9 again... nothing...

Do you have any idea what caused this problem and how could I boot normally again??

Thanks in advance..
[Nexus 5X General] Lord_Flaya:
Try flashing a newer stock FW. It could also be a HW failure.
[Nexus 5X General] CLPose:
N5X seem to suffer from sudden bootloops out of nothing. Google it and you'll find many examples. Contact your seller and try to repair it through warranty. Good luck!
[Nexus 5X General] KostisTTT:
Thank you all for the answers..

Is there a way to lock the bootloader in order not to lose the warranty, or I should not lock it at all??

Thanks in advance..
[Nexus 5X General] Gabriel1495:
I had exactly the same error and spent 2 hours on hit, but finally resolve it in this way.

This will be very useful for every future user attempting to update :good:
[Nexus 5X General] CLPose:
With this guide, you can relock your bootloader to repair your phone through warranty. Or you can go to NRT, which is an easy tool to relock your bootloader as well. Though I've never done this, I think you should leave your phone fully stock to relock its bootloader (custom recovery or roms are not compatible with a locked bootloader, AFAIK). Good luck! :fingers-crossed:
[Nexus 5X General] KostisTTT:
Thanks again..

Unfortunatelly, my warranty has expired.. So, bad luck..
[Nexus 5X General] CLPose:
Well, it seems that there's no time limit in warranty for this bootloop issue. Take a look at this: http://www.koreatimes.co.kr/www/common/vpage-pt.asp?categorycode=133&newsidx=227061. And if you find a solution for your demand, please share it here so that other users know how to proceed. Thanks, and good luck! :fingers-crossed:
[Nexus 5X General] KANGOD:
I accidentally fixed it in TWRP recovery by "format cache/dalvik" button.
[Nexus 5X General] Jeremy.Stewart85:
Ah nice I didn't even think to do that. That makes sense, the error doesn't seem to be that there is some important piece of data missing from the partition just that the partition itself is not there. That TWRP function must recreate it properly so Android can continue as planned. Much easier solution than having to upload from a different system image.
[Nexus 5X General] Nightshadow931:
I have everything stock, only rooted my 5X.

How do I return everything to stock, I mean removing root and re-locking my bootloader?
[Nexus 5X General] SlimSnoopOS:
Fastboot flash boot, fastboot flash system, then boot up to ensure it runs properly. Reboot into bootloader and lock bootloader.
[Nexus 5X General] Nightshadow931:
I extract boot.img and system.img from stock firmware?

Does those two commands erase TWRP?

Cause I must not have TWRP installed when I execute command for bl lock.
[Nexus 5X General] SlimSnoopOS:
Yes, from the factory image that matches your OS security update. If you don't know, use the latest factory image and simply follow every single step of section 10.

Yes, indirectly. For TWRP to persist on Nougat 7.0+, it requires a modified boot and/or a rooted rom. You would be removing both of those via boot and system images. Try my suggestion in my last post then try booting into recovery. You should observe stock recovery is reinstalled.
[Nexus 5X General] rocketrazr1999:
you ass! you say to erase cache but there's no cache image to flash! now i have a brick!
[Nexus 5X General] indian84:
Because you didn't​read properly. Do not blame others for your faults.
[Nexus 5X General] rocketrazr1999:
Yes, I did read it, you read it, it says nothing about that.
[Nexus 5X General] j-a-d-z:
That "ass" also said "backup your phone". So just restore your backup and your good again. And the simple answer to your cache problem is also written in this thread.
[Nexus 5X General] rocketrazr1999:
I did backup my phone, but the portion itself was erased, so I can't restore what's in it if it doesn't exist. And I don't see a solution anywhere, but I'll look again

---------- Post added at 12:17 PM ---------- Previous post was at 12:15 PM ----------

The obvious solution would be to obtain an image of the cache partition. So if anyone has it I could fix it

---------- Post added at 12:18 PM ---------- Previous post was at 12:17 PM ----------

Why say to erase a partition when the firmware doesn't have it?

---------- Post added at 12:21 PM ---------- Previous post was at 12:18 PM ----------

Can I just flash a N5 2013 cache image? Or will that brick it? I don't see why it would
[Nexus 5X General] Lord_Flaya:
Download the latest factory image from Google, flash it and start over. Problem solved.

And for future reference, erase/format cache does not mean you erase all partitions. You choose the wipe cache/dalvik option in twrp.
[Nexus 5X General] j-a-d-z:
https://xdaforums.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930/post71800820
[Nexus 5X General] ljfnky:
May security patch is out today, I already installed it..... but I need clarification as of right now I'm not-rooted with boot loader unlocked I already checked the recovery and I have the (no command) android on his back..... I'm wanting to rejoin the beta program for android O when it gets released this month to the beta program, am I correct in thinking I can receive OTA updates with unlocked boot loader as long as I'm not rooted ?
[Nexus 5X General] rocketrazr1999:
Did you read my post? I Can't flash the factory images from Google because they don't contain the cache.img partition!!! Nor do they have the userdata.img partition. And he said to "erase" the cache.img partition, which in fastboot means to delete the PARTITION, NOT the cache! Then he directs the reader to flash the cache.img image, which I DO have with my Nexus 5 factory firmwares but not with the Nexus 5x firmwares. So again, does anyone have a Nexus 5x cache partition image?
[Nexus 5X General] Lord_Flaya:
Try this then.

https://xdaforums.com/nexus-5x/help/unbrick-nexus-5x-t3438133

And stop raging. Read, read, search, search... The path of a xda member.
[Nexus 5X General] ljfnky:
Am I correct in thinking I can receive OTA updates with unlocked boot loader as long as I'm not rooted ?
[Nexus 5X General] rocketrazr1999:
i also ran into this problem. If only the OP instructed to backup the cache and userdata images as well as the system, boot, and data images, then this would not have been an issue.

---------- Post added at 12:54 AM ---------- Previous post was at 12:47 AM ----------

BTW, he says to backup system, data, and boot ONLY. So I DID follow instructions.

---------- Post added at 12:56 AM ---------- Previous post was at 12:54 AM ----------

I found this a couple pages back and your advice was sound, ty....

Quote:

Originally Posted by Jeremy.Stewart85

PSA for anyone upgrading to 7.1.2 today using this guide and has gotten stuck at the boot animation:

Follow option #9 as usual EXCEPT for this step

The full image does not have the cache partition so you will obviously not be able to flash the cache after erasing. This also seems to leave the OS in a weird state where it can't boot (not sure why it doesn't regenerate that partition at startup/update if it's not there but that's how it goes). I didn't grab the logs before fixing this so I'm not sure of the exact error, maybe if anyone else runs into this they can provide it.

If you saw this too late, do not worry! I was able to successfully recover from my accident.

Download the April 7.1.1 factory image and extract it and all included zips as you normally would: https://dl.google.com/dl/android/aos...y-e6420fc1.zip

Make sure you are connected to your PC and reboot the phone into fastboot mode by holding volume down and power for ~10 seconds

Verify that you can connect in your terminal of choice by running `fastboot devices`

Flash the April 7.1.1 cache partition (make sure you are flashing from the right directory!) using:

Reboot, it will take a little while for the update to do its thing so be patient but after a couple of minutes you should be back up and running.
[Nexus 5X General] ritchea:
Yes. In fact, you can receive them even if you are rooted. You can't install them if rooted. Unlocked, you can also ADB side-load them from stock recovery if you don't want to wait until the ota's are pushed to your phone.
[Nexus 5X General] SlimSnoopOS:
Lol. Nice one, did you think of that yourself?

Download the latest 7.1.1 factory image and install the cache.img that Google has stopped including in their 7.1.2 factory images as of last month. I'll take time to edit the first post when my personal life resumes some sense of normalcy. Until then, go work on your constructive criticism it needs improving.
[Nexus 5X General] j-a-d-z:
My link brings you to page 176 of 178 of this thread. The last 2 (two) pages. If you read it you would find the simple solution. Just boot to twrp and format (not only wipe) the cache partition. It will recreate it if it's not there. And the last 2 pages shouldn't be to much to read before call anyone an ass.
[Nexus 5X General] rocketrazr1999:
Hey Slim, of course you are right, and again you're right. So I apologize. I figured it all out, how to revert to 7.1.1 and how Googe's 7.1.2 update is only just that... An update, not a factory image. Ty and I will remove my rude criticizing remark.

---------- Post added at 10:10 AM ---------- Previous post was at 10:07 AM ----------

With all due respect, that is not what he meant. The problem is with 7.1.2 being only an update, not a factory image. I had to go back to 7.1.1.

---------- Post added at 10:13 AM ---------- Previous post was at 10:10 AM ----------

Not sure, just try it. Flash 7.1.1 and try to OTA update.

---------- Post added at 10:19 AM ---------- Previous post was at 10:13 AM ----------

BTW, Android O Developer Preview ihas been out if you want to flash it. I haven't been successful with it myself, idk why but it doesn't work on my N5x. I am reDLing the image in the event it didn't DL correctly. And what's up with the Android 7 system image being 3Gbs???? That's huge!
[Nexus 5X General] Lord_Flaya:
Yes I know. And I clearly stated "factory" image. Not update. Glad you got it sorted. :)
[Nexus 5X General] PlugaruT:
Hi,

it is safe to use this toolkit to unroot the phone and return to stock?

I kind of afraid to do all the stuff manually :)

Thanks.
[Nexus 5X General] CLPose:
Hi! NRT is a great tool and, yes, you can use it to come back to stock. But you're a little off topic asking this here. You should look for more answers in https://xdaforums.com/nexus-5x/development/toolkit-wugs-nexus-root-toolkit-v2-1-0-t3258492. Good luck!
[Nexus 5X General] CocodaMonkey:
I think I was making a stupid mistake. I thought the version numbers were phone specific. I kept trying to use MDB08I when in fact that's just the older version. I should have been trying to update using MDB08L. Stupid mistake to make but thanks for the help.
[Nexus 5X General] mirko9344:
My device is still encrypted even after format userdata in twrp, how is this possible? I've flashed stock image through fastboot and then format userdata partition.
[Nexus 5X General] efrant:
There is no way to flash an OTA update without being completely stock (i.e., stock system, stock boot, stock recovery, stock other partitions). The easiest way to update is to flash the factory images (without flashing userdata) using fastboot.
[Nexus 5X General] leAndroid91:
Hi guys i'm also facing the issue where adb and filetransfer are working but fastboot doesn't work.

fastboot devices doesn't show my device.

The device manager shows the phone as unknown device.

Google driver are installed (see above - adb is working).

Anyone has any idea?
[Nexus 5X General] joetheshmo:
Right click the device in device manager and choose update driver. Then choose browse my computer for driver software. From there choose let me pick from a list of device drivers on my computer. Click Have Disk... And then browse to android-sdk-windows\extras\google\usb_driver and choose the .inf file here (android_winusb.inf) and hit ok. Choose android composite adb interface and then hit next and say yes to the prompt about installing the driver. It should show up as a fastboot device now.
[Nexus 5X General] leAndroid91:
you're the man :good: thx
[Nexus 5X General] reddv1:
You need to flash a modified boot.img and then format userdata. Never flash the stock boot.img after unencrypting because that will automatically encrypt your device after rebooting.
[Nexus 5X General] mirko9344:
Thanks really much, it worked ;)
[Nexus 5X General] Paragon_X:
I did everything up to the point where I wasn't able to flash SuperSu, so I booted and now it's stuck on the 4 circles. I didn't remove my fingerprint and pattern lock before unlocking bootloader (not sure it matters). What do I do to correct this?

edit: wen I go into twrp it has the pattern lock screen, I put it my pattern and it fails to mount cache. I hit cancel and I can play with the options (install, wipe etc)
[Nexus 5X General] Cheesejam:
I am having trouble putting a custom recovery on. I first unlocked the bootloader, then flashed the latest factory image (MDB08M). Next, I put the latest TWRP (twrp-2.8.7.2-bullhead) in my fastboot folder, rebooted into fastboot, and entered this command: fastboot flash recovery twrp-2.8.7.2-bullhead.img

I then get the following message: error: cannot load 'twrp-2.8.7.2-bullhead.img'

What am I doing wrong? Thanks!

Edit: I was using a cmd prompt shortcut in my fastboot folder (which worked when unlocking my bootloader and flashing the factory image), so in my fastboot folder I ctrl+shift+right clicked>open command window here and it worked. Sorry for clogging up this thread!

---------- Post added at 07:44 AM ---------- Previous post was at 06:49 AM ----------

Hello! I am semi-noob, but today, I unlocked my bootloader, flashed the latest factory image (MDB08M), then put the latest TWRP on too. I wanted to get root, so I followed the instructions in this thread, and used your modified boot image (for MDB08M). After flashing in fastboot, my phone rebooted and freaked out about not being encrypted or something and forced me to factory reset. So I did, and I was still on MDB08M with unlocked bootloader and custom recovery. So, I tried flashing your image again with the same results. So, this time, after the factory reset, I used the boot.zip from this thread: http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344 (for MDB08I) and had no problems.

It's possible I did something wrong here, but just incase I didn't, maybe double check these files to make sure they are working correctly? Just a heads up! :)
[Nexus 5X General] jadesocket:
If I flashed a modified boot.img, TWRP recovery, and decrypted my phone (no root), would I still be able to receive updates and update through the regular android updater? And if I can, would my phone still be decrypted? Thanks!

Basically, I want to keep my phone decrypted, but update through OEM.
[Nexus 5X General] reddv1:
What do you mean your phone freaked out? At what stage and how did it force you to do a factory reset?

After flashing the modified boot image did you format data/ do a factory reset to unencrypt? The MDB08M modified boot has been downloaded over 200 times and many confirmed that it works, so we need a more detailed step by step of what you did to figure out what's happening.
[Nexus 5X General] efrant:
Yes and No. To be able install OTA updates, you need to be completely stock (stock boot image, stock system image, stock recovery image, etc.). But you can still update flashing the image files (system, vendor, radio, bootloader) contained in the factory image from Google along with a modified boot image that doesn't force encryption.