yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] :
The original point to this thread is to rather get a device booted for data recovery - not to make it 100% stable/usable again. I see that people do use this to "fix" their device, but the fact is that this does not fix anything else but the rom, by disabling broken features.

Only real fix is to replace the cpu. It's a shame that the Nexus' life had to end this way, but maybe we can see a better option with a mid-range Pixel.

I will continue providing support as best as I can.
[Nexus 5X General] :
Which update are you on?

Did you remeber to wipe cache?
[Nexus 5X General] rehoni:
now im i think on 7.0 tryed that version has not success

can you send me the system i need and all i need to install to try it when i install i install via fastboot- flash-all and it does it normal by the boot i get google logo just when i install the thrp 4 cores nothing installed mobile keeps restarting but in fastboot and download mode it will.

5 days ago i tryed some twrp and I founded one thats work and via that way i have adb but now have not that twrp more :'(
[Nexus 5X General] serconn:
a

As a person that has been using his "fixed" Nexus for nearly a year, I want to express my thanks for the effort to all that contribute to the BLOD recovery effort. I realize the phone is not as good as new but is so much better, even degraded, than a non working one, I'm happy. Not having the latest/greatest is just part of my being retired. :good:
[Nexus 5X General] rehoni:
so die u s oth september version is not wrkng for me too and still in bootloop google logo and restart
[Nexus 5X General] DaveRandom:
I found this post - https://xdaforums.com/showpost.php?p=76907941&postcount=152 - on another thread. It worked like a charm. Phone now has Nov'18 update and wifi is working.

After following the instructions my phone did boot into the "Enter your Android password" screen, and I entered "default_password", and it said that the encryption was corrupted and it would factory reset (which was not a problem for me). I guess clearing the cache before rebooting might have prevented that screen, but the factory reset didn't stop anything from working.

Glad to have finally found the correct incantation to get the phone working again after about 3 weeks of trial and error. Massive thanks to all who have helped give hope to those who have suffered this problem.
[Nexus 5X General] ritchea:
If your 5X is within the extended 30 month warranty for boot loop, then, yes. I wish mine would actually boot loop again. I had it "fixed" in June but returned it within a month as it was boot lopping again. I've had the phone for 25 months. Since it was returned the second time, it is so slow to respond. I frequently get "App is not responding messages," and even though I can see my screen touches, it may take 5-10 seconds to respond. I've factory reset 4 times since August. It's rooted and running Franco kernel. I tried it unrooted and stock several times but no improvement. I wish I had seen the issue right away rather than a month later as I would have returned it. I loved this phone, but it's really grating on my nerves. I guess it's time to find a new phone.
[Nexus 5X General] rehoni:
is there any pathc for H791?
[Nexus 5X General] :
Don't these patches work on every model? Or what do you mean?
[Nexus 5X General] rehoni:
soo idk.. on my nexus i tryed no chance i contact the LG gave them my IMEI and they said its the version 1 not the H970 but on my motherboard its H970.. o.O
[Nexus 5X General] Zanzaras:
Will the patched boot image work with LineageOS?
[Nexus 5X General] :
They should work, but I can't say for sure if Lineage made changes in ramdisk.
[Nexus 5X General] craftyguy:
No, this does not work on LineageOS (at on the latest 15.1 nightlies).

Here are the steps I took to build a working boot.img for LineageOS. The boot.img I start with is from the LineageOS zip file (use same version you have flashed to your device), you can get it here: https://download.lineageos.org/bullhead

This is the tool I for unpacking/packing boot.img and recovery.img. It includes a binary for mkbootimg, and I highly recommend not using it and using your own built from source since running arbitrary binaries from random people on the internet is never a good idea. mkbootimg's source is in the AOSP tree, and I think some folks mirror it on github somewhere. The bash script mkboot in this repo is incredibly useful though.

https://github.com/xiaolu/mkbootimg_tools

# boot.img

## Extract boot.img:

~/src/mkbootimg_tools/mkboot boot.img boot

## Edit boot/img_info, change boot_cpus=0-3 and add maxcpus=4:

cmd_line='console=ttyHSL0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-3 maxcpus=4 lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0 loop.max_part=7 buildvariant=userdebug'

## Edit ramdisk/init.bullhead.rc:111:

write /dev/cpuset/foreground/cpus 0-3
write /dev/cpuset/foreground/boost/cpus 0-3
write /dev/cpuset/background/cpus 3
write /dev/cpuset/system-background/cpus 2-3
write /dev/cpuset/top-app/cpus 0-3

## Pack new boot.img:

~/src/mkbootimg_tools/mkboot boot boot_4cpus.img

You can actually use the same process to patch the kernel cmdline used in TWRP to get a working recovery again:

## Unpack recovery:

~/src/mkbootimg_tools/mkboot twrp-3.2.3-0-bullhead.img twrp

## Edit twrp/img_info insert into cmd_line (boot_cpus already exists, so change it):

boot_cpus=0-3 maxcpus=4

## Pack recovery and flash:

~/src/mkbootimg_tools/mkboot twrp twrp-3.2.3-0-bullhead_4cpu.img
fastboot flash recovery twrp-3.2.3-0-bullhead_4cpu.img
[Nexus 5X General] thanasisglt:
Hi,

I have a bootlooped phone fixed with that method having the 8.1 Jan oreo.

I want to go back to 7.1.2 as my phone has become sluggish.

Is it possible?
[Nexus 5X General] :
It propably will not fix anything but it is possible by flashing the 7.1.2 images from Google. You may need to factory reset.
[Nexus 5X General] mhrussell1:
I contacted LG after I confirmed that this patch worked for my phone. They gave me an RMA number and I paid for shipping but they fixed it for no extra cost and it shipped back to me last Friday. They tell you to wipe the phone and remove the SIM. I also restored the latest factory update with the flash-all.bat to make sure the phone is boot-looping when LG receives it.

As for another phone, so far, I am happy with my Pixel 3 which I got for the Black Friday discount of $150 off. I will keep the Nexus as a backup and to try LineageOS ROM.

Mark
[Nexus 5X General] pc-jedi:
[MENTION=7280252]T1mb3[/MENTION] Plans for December security update? I would highly appreciate this :)
[Nexus 5X General] wlad0:
You can try these files https://www.dropbox.com/sh/bt1uwxci28qjsp8/AADvjTiQM7RbSEsvOvOLV7dba?dl=0
[Nexus 5X General] tofan8:
[MENTION=7280252]T1mb3[/MENTION] , Can we expected signed boot-fix for December 2018 update ?
[Nexus 5X General] :
I can make one in the weekend
[Nexus 5X General] tofan8:
Thanks,

After flashing, would it be possible to lock bootloader again?
[Nexus 5X General] :
It is, but I don't suggest it. It will be much harder to flash new images if some issues occur.
[Nexus 5X General] tofan8:
Even if OEM unlocking in developer options be enabled?
[Nexus 5X General] smoke_007:
Thanks T1mb3! Do you know of any Nexus 5X roms out there that incorporate your BLOD fix? If not, how easy would it be to add your fix to a rom? Was wondering if there's any good Android Pie roms out there for this phone. Thanks!
[Nexus 5X General] :
It's the same process for every rom.

You can request a rom and I can make a fix. Now I have more freetime.

In rom zips the boot.img is located inside the zip, so if you are a diy person, just extact it and apply the fix and flash the boot.img seperately or replace in the zip.
[Nexus 5X General] 4hell:
Can you please explain the step by step procedures to flash the image in the December 2018 update(8.1) ?? Thanks
[Nexus 5X General] xt610:
how would you be the commands for flash and in what order?

This has 3 files:

1 - boot-fixed.img

2 - patched_boot.img

3 - recovery-fixed.img

---------- Post added at 07:39 PM ---------- Previous post was at 07:36 PM ----------

Please, can you do it?

Bullhead-opm7.181205.001-factory-5f189d84 (December 2018)

It is the last update received by our Nexus 5X and the end of Google support.
[Nexus 5X General] :
Sorry I forgot. I'm on mobile now but in few days.. :)
[Nexus 5X General] xt610:
Perfect

Here I am waiting for the archives of the month of December 2018.

Thank you
[Nexus 5X General] :
Hi,

Here are the last fixed images: https://mega.nz/#F!JWo0RYrb!2KH7GhDjwvRUEze9_iaQrw

Sorry for long delay
[Nexus 5X General] tofan8:
Thanks, is it signed ? i mean is that possible to lock bootloader without getting google yellowish warning ?
[Nexus 5X General] :
I didn't sign it. Same as before.
[Nexus 5X General] xt610:
Thank you very much for your work.

You could add the links to the beginning of the thread on the first page.

With this we have the firmware fix for our Nexus.

Long life.
[Nexus 5X General] smoke_007:
8.1.0 (OPM7.181205.001, Dec 2018)

https://dl.google.com/dl/android/aosp/bullhead-opm7.181205.001-factory-5f189d84.zip

SHA-256 Checksum

5f189d84781a26b49aca0de84a941a32ae0150da0aab89f1d7709d56c31b3c0a

Thanks T1mb3 for the updated patch!
[Nexus 5X General] wsmithjr:
Seems to be working fine, thank you so much.
[Nexus 5X General] MrIncredibleUK:
Apologies for resurrecting an old thread, but I'd like to install the latest 4core fix for the 5X. I've previously and successfully installed the the factory image "8.1.0 (OPM7.181205.001, Dec 2018)", installed the modified TWRP for 4 core (3.2.1) and patched the boot image with "N5X-6P_BLOD_Workaround_Injector_Addon-AK2-signed.zip". All is fine. 5X boots OK, and I can get into TWRP recovery without issues. I loaded the latest 5xEX5_034core.zip using TWRP and after that the boot does not complete. It sits on the animation with the coloured circles and balls with the animation working, but the Android logo will not appear. I had to revert to the N5X-6P BLOD workaround in order to boot.

What am I doing wrong for the 5xEX5_034core.zip not to work as expected?

Thanks.
[Nexus 5X General] Lughnasadh:
This thread is outdated and marked EOL. Go here to use the latest method... https://xdaforums.com/nexus-5x/general/tool-bootloop-death-blod-workaround-t3819497
[Nexus 5X General] zo1021:
Can the October patch 8.0 be rooted?
[Nexus 5X General] truekasun:
duplicate reply
[Nexus 5X General] truekasun:
Yes, all images can be rooted
[Nexus 5X General] flowserver:
This is my story:

Update my nexus 5x to Oreo Developer, after a few reboots, ended in bootloop.

Boootloader locked.

I put the nexus in the freezer for 10 minutes, then I tale outside and start the phone, bootloop again, wait 10 minutes and I apply heat to the right side of the phone with a hair dryer, startez the phone and bootloop again, until the phone starts, quickly do the configuration and check the Developer option and allow the oem unlock, bootloop again.

Now unlock my bootloader, flash de oreo 8.1 preview, after the boot 4 core and then the recovery, all from the 1st post. The phone is alive and actually downloading apps from playstore.

Thank you.
[Nexus 5X General] truekasun:
Glad that you were able to fix it and thanks for sharing the success story so if others face the same situation they'll have some idea of how to fix it their own instead of asking someone.
[Nexus 5X General] flowserver:
I have an update of oreo, if I install this uodate, I will loose the boot and recovery 4 core oreo patch?
[Nexus 5X General] truekasun:
Yes it will, probably. I'll release the modified images for the update once the system images has been uploaded to the Android preview channel.
[Nexus 5X General] slevin71:
Okay i think my phone is no completely death. The tweak with only the small cpu work for about 2 month now for me but now my phone overheat in about 2 sec after restart.

i could get it to work for whatsapp but the phone has to stay in the freezer the hole time..

To say it with the wise words of Trump:

SAD
[Nexus 5X General] flowserver:
If I flash an image of android 6.0 or 7.1, the bootloop disappear? My nexus 5x with 8.1 developer and patches installed, start again with bootloops.. :crying:
[Nexus 5X General] truekasun:
No it will not be fixed. It's a hardware fault. Try with Oreo 8.0 or nougat.
[Nexus 5X General] zebesh_:
Hey truekasun,

Thanks for the great post!

I've applied 4 core boot image but phone is stuck at circle animation. Some have said after factory reset their device has passed animation and booted successfully but I don't want to reset my phone since I need some data in it. Any suggestion about this?
[Nexus 5X General] truekasun:
Was your device encrypted before you flash this boot.img? Force encryption has been disabled from all these images due to performance issues.
[Nexus 5X General] zebesh_:
It was probably encrypted because before bootloop happend it was asking unlock pattern when I booted the device. Please tell me there is a way to solve this :(

By the way TWRP also asks for pattern to mount partitions but it cannot encrypt data even I draw correct pattern. Any suggestion about that also?

Thanks.
[Nexus 5X General] cell2011:
No 8.1 mod 4 core EX kernel yet?
[Nexus 5X General] SlimSnoopOS:
Lol I'd be amazed if that were available here, Ex kernel hasn't even been updated to support 8.1. Plus, 8.1 source hasn't been released yet from what I read earlier in the week.
[Nexus 5X General] zebesh_:
Finally I've solved my problem. Here is what I did:

Because of encryption none of the oreo images didn't work. Device was stuck at circle animation. So,

I downgraded to the 7.1.2 (N2G47Z, Jul 2017) via flashing factory image without wiping data.

Then I applied this modified 4 core boot image.

After that device booted successfully but `com.android.phone stopped` error was occurring.

Then I applied this TWRP image for recovery.

This time TWRP accepted my unlock pattern and mounted and decrypted all data. Thanks to this, I pulled all my images/files etc. via `adb`. Also, I took a TWRP backup.

After saving my data, I applied factory reset and follow steps mentioned in truekasun's post here with `October - 8.0.0 (OPR4.170623.009, Oct 2017)` image.

And now my phone works without any problem.

Thanks again [MENTION=4524516]truekasun[/MENTION], for the up to date 4 core boot images!
[Nexus 5X General] do_h_se:
I also got the BLOD.

After a lot of tinkering the October version of the 4 core patch got my phone out of the boot loop. Unfortunately my phone was stuck in the android boot animation afterwards. I was able to fix this by wiping the phone.

I backed up the phone with TWRP before and was able to restore it afterwards. I backed up /sdcard (aka /data/media/0) separately as TWRP does not save this.

I still have warranty on the phone. Does LG complain when I send in a phone with an unlocked bootloader?
[Nexus 5X General] truekasun:
You can flash all the stock images and re-lock the bootloader. then you'll be able to claim the warranty otherwise the warranty is void when you unlock the bootloader normally. (Conditions may deffer in some countries)
[Nexus 5X General] Unknown025:
Thanks for creating these patches. Finally managed to boot my newly acquired Nexus 5X. It got into a bootloop last week and the person I got it from didn't want to deal with it, so I was looking for a way to fix the problem. After installing Google's system image (using the batch file) and then flashing the boot image and TWRP image, the device booted, and actually booted faster than I expected. Thank you for creating this fix, my Nexus 5X is still faster than my old Moto G running Nougat.
[Nexus 5X General] dirtydaub:
Hey, just updated with the lastest OTA security patch and got the boot loop again. Any ideas on how to fix? Thanks!
[Nexus 5X General] truekasun:
If you got the November patch (opr6.170623.023), the original post has been updated for the boot.img file. I haven't tested the images yet since there's another testing project going-on. Use it at your own risk.

Good luck! :good:
[Nexus 5X General] pkelly517:
Don't update! Holy moly!
[Nexus 5X General] truekasun:
Any reason? :rolleyes:
[Nexus 5X General] matti537:
Fixed my phone!

Just wanted to thank [MENTION=5288606]XCnathan32[/MENTION] and [MENTION=4524516]truekasun[/MENTION] for their amazing work! After almost two years my 5X boot-looped endlessly while being on 8.0 with the September patches. After a bit playing around and flashing the boot-img-4core-opr4.170623.009.img (October patches) + 5xEX5_034core.zip the phone is as new :cool:
[Nexus 5X General] joenun:
[MENTION=4524516]truekasun[/MENTION] I flashed the Nov. boot image and everything went fine. I did notice one bug with weather/location not being detected on any widgets I've tried. I did make sure location services were on and things.
[Nexus 5X General] andreigrigoruta:
Tried updating to the November patch.. followed the steps.. it dies at step 4.. just shows the dead android... when i should be able to go into recovery and then sideload.. I reverted to October patch + 5ex + twrp and everything is fine.
[Nexus 5X General] truekasun:
What is the weather provider service do you use? Recently i experienced that the yahoo weather provider isn't working anymore. But Google Now is working fine with me. I must state that the boot.img doesn't have any relation for the weather app other than the location service (location service is working fine on my device with November update)
[Nexus 5X General] truekasun:
Well, by stating "Dead Android" you mean the exclamation mark and the Android robot icon, right? If so, you need to hold the power button and press the volume up button once. Then you'll see the recovery menu.

Or else if you can't even boot into recovery, then there's a problem with the process you followed. Let me know what is the exact step you are referring to.
[Nexus 5X General] andreigrigoruta:
I will try again and tell you every step... I get to the Android robot icon but when i hold power button and volume up nothing happens.
[Nexus 5X General] frank_marvelous:
Hi thanks for your awesome work, it all worked perfectly till the november update process, the file " boot-img-unmodified-opr4.170623.009.img " is missing on the download section of the november update, can't follow the installation process without it.
[Nexus 5X General] truekasun:
Thank you very much for pointing it out. I've updated the post.

If you're missing files of an old version, you always can download it in the respective download section and it will work.

Note: You need the unmodified boot.img if you're doing the OTA update. If you're flashing the system image, you wont need the unmodified images.
[Nexus 5X General] Jrobah:
November update working well, anyone managed to tweak this to work on a custom ROM?
[Nexus 5X General] :
thank you! will just ask if there is a 4-core version of twrp recovery? :)
[Nexus 5X General] truekasun:
It's in the original thread

https://drive.google.com/file/d/0B7TP6GXR0wAVdmFIX1hrck5rOFE/view
[Nexus 5X General] :
hello, I managed to get my 5X boot, but once it gets up on the setup screen, it shuts down automatically and it will boot loop again. :(
[Nexus 5X General] Naman Nehra:
I still can't get my Nexus to boot. I first flash October image and modified boot.img. Didn't work. So I reflashed October image and OTA for November. Then I flashed modified boot.img for November. Didn't work. Last I tried with 8.1 preview. Still stuck on bootloop. Can anything else other than the big cores be causing bootloop?
[Nexus 5X General] niscy:
I tried this. I am now also getting the "com.android.phone stopped" error. However, after flashing TWRP it still can't unencrypt and mount my partition.
[Nexus 5X General] pkelly517:
Factory reset.

To decrypt, format data in TWRP.
[Nexus 5X General] niscy:
Not planning to lose data.
[Nexus 5X General] pkelly517:
Let us know how you manage that. Others will benefit from your efforts.
[Nexus 5X General] shubhaemk:
Am I going through the same problem? Here are few symptoms : 1. Phone doesn't boot. It gets stuck between boot to doesn't boot at all.

2. I can access boot loader but cannot flash recovery. The phone dow not boot into recovery.

What should be done? Any help is appreciated. Thanks!
[Nexus 5X General] fndpena:
I can't make this work :(

I'm trying a different approach... I'm flashing the factory image for the latest version (OPR6.170623.023, Nov 2017), following the modified boot and recovery from this thread (both opr6.170623.023).

But when I reboot, the boot loop is still there and I can't get to the system. The closest I got was when the boot animation was playing but it was taking FOREVER to boot and I had to force shutdown the phone.

Any tips for me?
[Nexus 5X General] truekasun:
Which recovery did you flash? modified TWRP or the modified stock recovery?
[Nexus 5X General] truekasun:
I'm sorry mate... this wont work for some people.. :/

I don't know if you did something wrong but keep trying..
[Nexus 5X General] slobo2712:
Which one to flash for Google Pixel²ROM v1.0oc OPR3.170623.008 tnx
[Nexus 5X General] shubhaemk:
Official twrp! Which one should be flashed?
[Nexus 5X General] truekasun:
https://drive.google.com/open?id=0B7TP6GXR0wAVdmFIX1hrck5rOFE

This is the 4 core edition of the TWRP3.1.1

Try this
[Nexus 5X General] shubhaemk:
Thanks! I'm sorry being a noob here. Nexus 5x problems are new to me. :silly: After flashing this would I be able to flash a custom rom or should I do BLOD fix or something?
[Nexus 5X General] truekasun:
I do not recommend you to flash a custom rom if you have bootloop issue (Do it at your own risk) and apply the BLOD fix only if the bootloop issue is there.
[Nexus 5X General] shubhaemk:
The phone booted for a while when I had kept it in fridge for sometime and then again went looping? Are these those signs?

Edit : Im on custom ROM already.
[Nexus 5X General] truekasun:
Yeah that's a sign.. You better keep a 4 core edition of your current boot.img in-case if the device get into bootloop after you took it from the fridge.
[Nexus 5X General] shubhaemk:
Okay. So I have boot.img and new twrp ready. Is there any Rom I should flash?

Here is what I'll possibly do.

1. Flash twrp.

2. Flash boot.img with twrp or terminal. And BLOD fix.

3. Install a ROM. What do you recommend here?

Correct me if I'm wrong with steps.
[Nexus 5X General] fndpena:
Direct flashing the oreo factory image instead of nougat + oreo ota should be the same, right?

Or I should try flashing nougat, than updating to oreo as the guide says?
[Nexus 5X General] truekasun:
I do NOT recommend any custom rom other than the stock rom since I do not provide any custom boot.img files for the custom roms. You can test whatever you like.
[Nexus 5X General] truekasun:
It makes no sense flashing nougat and then updating to oreo. The same process is working underneath. To get this fix work you only need to flash the stock rom together with respective modified boot.img.
[Nexus 5X General] kireetivs:
Help

couple of weeks back I recovered my nexus 5x by booting 4CoreOreo.img, today morning I received Noverember security patch by OTA and applied the update. Now it again went into the bootloop issue, I tried flashing the latest build(OPR6.170623.023) and boot-img-4core-opr6.170623.023.img. But it didn' work. Any help ?
[Nexus 5X General] X3NOM:
I applied the 4 core fix and the phone worked for about 20 days and now its bootlooping again, this time it even gets stuck in recovery. Like when I try to install a kernel or flash a boot image the phone freezes and reboots again, does this mean its completely broken now or do I still have a chance?
[Nexus 5X General] truekasun:
Did you install any OTA or something?
[Nexus 5X General] creeshu:
Hi there, i'm pretty new to this all flashing etc. and my 5X died month ago, but came back from LG guarantee as "water damage" - obviously there was none but anyway, don't wanna go again to them.

So if I haven't updated the phone to latest android yet. can i go with Novemeber update and just follow your instruction? or will i have to flash all previous updates for this to work?