[EOL] Nexus 5X Bootloop of Death (BLOD) - Andorid Oreo Monthly Security patches & fix

  • Thread starter Deleted member 7280252
  • Start date
Search This thread

rehoni

Member
Jan 26, 2016
25
2
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:

so die u s oth september version is not wrkng for me too and still in bootloop google logo and restart
 

DaveRandom

New member
Nov 13, 2018
3
0
So using the unpackimg.bat and repackimg.bat that came with Unblod (saved me having to figure out Android Kitchen), I've been experimenting with changes to the ramdisk, using xcnathan32 github page as a reference.

To ensure I was starting from scratch I did a flash-all.bat from the factory image (and confirmed BLOD was present). I then unpacked the stock boot.img, and made the same changes to boot.img-cmdline and init.bullhead.rc from xcnathan32's github page, however I did not make any changes to fstab.bullhead (as when I unpacked the Unblod boot.img it didn't have this change). I repacked the files and flashed the new boot.img.

My phone no longer got stuck on the boot animation and successfully booted to the OS. I was extremely happy, until I noticed the wifi wasn't working. And that is where I am at, a Nexus 5X with no wifi, which is not ideal. This was the same result I had using the Unblod tool directly.

Has anyone who has suffered the wifi not working, managed to get it working?

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.
 

ritchea

Senior Member
Is LG still taking returns on these phones?

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.
 

craftyguy

Senior Member
Jun 29, 2007
91
12
Oregon
Will the patched boot image work with LineageOS?

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:
Code:
~/src/mkbootimg_tools/mkboot boot.img boot

## Edit boot/img_info, change boot_cpus=0-3 and add maxcpus=4:
Code:
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:
Code:
    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:
Code:
~/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:
Code:
~/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):
Code:
boot_cpus=0-3 maxcpus=4

## Pack recovery and flash:
Code:
~/src/mkbootimg_tools/mkboot twrp twrp-3.2.3-0-bullhead_4cpu.img
fastboot flash recovery twrp-3.2.3-0-bullhead_4cpu.img
 
Last edited:

thanasisglt

Member
Feb 5, 2013
21
0
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?
 
D

Deleted member 7280252

Guest
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?
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.
 

mhrussell1

Senior Member
Oct 28, 2011
88
19
Anaheim
LG Nexus 5X
Google Pixel 3
Update to this issue.
Used September files in same manner and USB issue is resolved. Not sure what is is with my N5X. Tried November files a second time and still had USB problems so I am sticking with September update for now.

---------- Post added at 01:54 AM ---------- Previous post was at 01:49 AM ----------



I contacted Google on this phone in January when this issue began as some people suggested there was some assistance being offered. Since the phone was out of warranty there was not help and their advice was to return to LG for PAID repair.

---------- Post added at 01:58 AM ---------- Previous post was at 01:54 AM ----------



I contacted Google on this phone in January when this issue began as some people suggested there was some assistance being offered. Since the phone was out of warranty there was not help and their advice was to return to LG for PAID repair.

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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    D
    Deleted member 7280252
    [EOL] Nexus 5X Bootloop of Death (BLOD) - Andorid Oreo Monthly Security patches & fix

    Warning:
    DO NOT TRY TO APPLY ANY MODIFICATION HERE IF YOUR PHONE ISN'T A BOOTLOOPING DEVICE.

    Read first:
    This thread is based on the following thread & If you are new to the bootloop issue, please refer the below thread by @XCnathan32 to get your device fixed.
    Nexus 5X bootloop of death fix (BLOD) | 7/30 Huge performance update! By @XCnathan32

    What this thread is about?
    This thread is about BLOD fixes for monthly security updates (Probably OTA). I decided to start a separate thread for these updates since there are no BLOD fixes uploaded for update releases of the Oreo

    Disclaimer
    I do NOT hold any responsibility for bricking devices or any other harm on your devices by using my content since this work isn't based on any kind of monetization. Just to be simple, I do build these images for my device and just sharing with you all since everyone doesn't have the ability to build these images their-own. Each of the files I have uploaded here are tested on my device before posting (only partly, I don't have the time to test all functionality as bullhead is not my daily driver).

    General pre-conditions (Pre-Requirements)
    1. General knowledge about using fastboot & adb
    2. A booltoop fixed device (with an unlocked bootloader/OEM unlocking enabled), as per the original thread by @XCnathan32
    3. fastboot & adb installed on the system (Windows platform preferred)
    4. Downloaded files of your choice for the fix
    5. Refer the pre-conditions in each update for more requirements

    Guides/Downloads
    Please refer the 1st post of this thread

    Information
    - Please let me know if you are unclear about anything regarding the process, steps or files. I will try to optimize the guide to make it user friendly with the time.
    - Let me know if the provided links are not functioning. (I'm looking for a reliable hosting platform to upload future files)
    - Please be kind-enough to share the knowledge with the community if you find any easy methods, workarounds or any other tricks while doing the process.

    Good luck guys. :)

    Source code: https://github.com/T1mpp4/4Core-Android-5X
    42
    D
    Deleted member 7280252
    December- 8.1

    --------------

    November - 8.1

    --------------

    September - 8.1

    --------------

    August - 8.1

    Required files

    --------------

    July - 8.1

    Required files

    --------------

    May - 8.1 (bullhead-opm4.171019.016.a1, May 2018)

    Required files

    --------------

    June - 8.1 (OPM6.171019.030.B1, Jun 2018)

    Required files

    --------------

    April - 8.1 (OPM2.171019.029, Apr 2018)

    Required files

    --------------

    March - 8.1 (opm3.171019.016, Mar 2018)

    Required files

    --------------

    February - 8.1 (OPM5.171019.015, Feb 2018)

    Required files

    --------------

    January - 8.1 (OPM3.171019.013, Jan 2018)

    Required files

    --------------

    December - 8.1 (OPM1.171019.011, Dec 2017)

    Required files

    --------------

    December - 8.0.0 (OPR4.170623.020, Dec 2017)

    Required files

    --------------

    November - 8.1 Developer Preview 2 (OPP6.171019.012, Nov 2017)

    Process for System image
    1. Download the complete system image from the download section (or from Google)
    2. Flash the downloaded image via fastboot (refer the original thread by @XCnathan32)
    3. Flash the boot-img-4core-opp6.171019.012
      Code:
      fastboot flash boot boot-img-4core-opp6.171019.012.img
    4. Reboot the device to the system.

    Required files


    --------------

    November - 8.0.0 (OPR6.170623.023, Nov 2017)

    Update pre-condition
    • October security patch installed on the device (up and running)
    • All required downloads for November - 8.0.0 (OPR6.170623.023, Nov 2017)
    Process for OTA
    1. Copy the required files to the adb directory in the PC
    2. Boot the device into bootloader and flash the boot-img-unmodified-opr4.170623.009.img [The update script verify the boot image]
      Code:
      fastboot flash boot boot-img-unmodified-opr4.170623.009.img
    3. Flash recovery-img-4core-opr4.170623.009.img to get the stock recovery (4 core version)
      Code:
      fastboot flash recovery recovery-img-4core-opr4.170623.009.img
    4. Boot into the recovery & hold power button and press volume up together (You will see the recovery menu)
    5. Select 'Apply update from ADB' from the recovery menu
    6. Open the command prompt (locate to the adb directory) and sideload the update-opr6.170623.023.zip
      Code:
      adb sideload update-opr6.170623.023.zip
    7. After the update is installed successfully, reboot into the bootloader and flash the boot-img-4core-opr6.170623.023.img
      Code:
      fastboot flash boot boot-img-4core-opr6.170623.023.img
    8. Reboot the device to the system.

    Process for System image
    1. Download the complete system image from the download section
    2. Flash the downloaded image via fastboot (refer the original thread by @XCnathan32)
    3. Flash the boot-img-4core-opr6.170623.023.img
      Code:
      fastboot flash boot boot-img-4core-opr6.170623.023.img
    4. Reboot the device to the system.

    Required files

    Optional files

    --------------
    October - 8.1 Developer Preview (OPP5.170921.005, Oct 2017)

    Process for System image
    1. Download the complete system image from the download section (or from Google)
    2. Flash the downloaded image via fastboot (refer the original thread by @XCnathan32)
    3. Flash the boot-4core-bullhead-opp5.170921.005
      Code:
      fastboot flash boot boot-4core-bullhead-opp5.170921.005.img
    4. Reboot the device to the system.

    Required files


    --------------

    October - 8.0.0 (OPR4.170623.009, Oct 2017)

    Update pre-condition
    • September security patch installed on the device (up and running)
    • All required downloads for October - 8.0.0 (OPR4.170623.009, Oct 2017)
    Process for OTA
    1. Copy the required files to the adb directory in the PC
    2. Boot the device into bootloader and flash the boot-img-unmodified-opr-170623.006.img [The update script verify the boot image this time]
      Code:
      fastboot flash boot boot-img-unmodified-opr-170623.006.img
    3. Flash recovery-img-4core-opr4.170623.006.img to get the stock recovery (4 core version)
      Code:
      fastboot flash recovery recovery-img-4core-opr4.170623.006.img
    4. Boot into the recovery & hold power button and press volume up together (You will see the recovery menu)
    5. Select 'Apply update from ADB' from the recovery menu
    6. Open the command prompt (locate to the adb directory) and sideload the update-opr4.170623.009.zip
      Code:
      adb sideload update-opr4.170623.009.zip
    7. After the update is installed successfully, reboot into the bootloader and flash the boot-img-4core-opr4.170623.009.img
      Code:
      fastboot flash boot boot-img-4core-opr4.170623.009.img
    8. Reboot the device to the system.

    Process for System image
    1. Download the complete system image from the download section (or from Google)
    2. Flash the downloaded image via fastboot (refer the original thread by @XCnathan32)
    3. Flash the boot-img-4core-opr4.170623.009.img
      Code:
      fastboot flash boot boot-img-4core-opr4.170623.009.img
    4. Reboot the device to the system.

    Required files

    Optional files

    --------------

    September- 8.0.0 (OPR4.170623.006, Sep 2017)


    Update pre-condition
    • All required downloads for September- 8.0.0 (OPR4.170623.006, Sep 2017) (Root users: If you downloaded the update via OTA it is located in root/data/ota_package)
    Process for OTA
    1. Copy the required files to the adb directory in the PC
    2. Flash recovery-img-4core-opr4.170623.013.img to get the stock recovery (4 core version)
      Code:
      fastboot flash recovery recovery-img-4core-opr4.170623.013.img
    3. Boot into the recovery & hold power button and press volume up together (You will see the recovery menu)
    4. Select 'Apply update from ADB' from the recovery menu
    5. Open the command prompt (locate to the adb directory) and sideload the bullhead-ota-opr4.170623.006-98637094.zip
      Code:
      adb sideload bullhead-ota-opr4.170623.006-98637094.zip
    6. After the update is installed successfully, reboot into the bootloader and flash the boot-img-4core-opr4.170623.006.img
      Code:
      fastboot flash boot boot-img-4core-opr4.170623.006.img
    7. Reboot the device to the system.

    Process for System image
    1. Download the complete system image from the download section
    2. Flash the downloaded image via fastboot (refer the original thread by @XCnathan32)
    3. Flash the boot-img-4core-opr4.170623.006.img
    4. Reboot the device to the system.

    Required files

    Optional files
    6
    Step by step process to install the monthly security updates and BLOD fix

    Current URL for updates
    https://xdaforums.com/nexus-5x/general/nexus-5x-bootloop-death-blod-andorid-t3683926

    To do monthly security patch updates, visit the top of the current URL. Download 3 required files: System Image .zip, boot .img file, and recovery .img file. Unzip the system image zip file. Copy the folder with all these files locally to your ADB folder.

    Navigate within extracted zip file folder to find flash-all.bat file and edit. Find "fastboot -w update" line and delete -w so phone is not wiped on update. Only skip this step if you do want the phone to be wiped on update.

    Boot phone into bootloader mode by pressing and holding volume down and power button from powered off state. From command prompt window, run flash-all.bat file to install update. Once done, the phone will bootloop again.

    Boot phone into bootloader mode again by pressing and holding volume down and power button. Flash updated boot .img by running command with current boot .img file name, example:
    fastboot flash boot boot-4Core-bullhead-opm3.171019.013.img

    Optional, flash updated recovery .img by running command with current recovery .img file name, example:
    fastboot flash recovery recovery-img-4core-opm3.171019.013.img

    Boot phone normal using Start onscreen option.

    Thank you T1mb3 for the continued monthly fixes!

    Thanks to this thread and others I managed to fix my bootlooping 5x, which is now working fine again. However I have had the automatic update notification for a couple of weeks now, prompting me to update to 8.1.0 which I understand I can't do without going back to bootlooping again.

    I'm struggling to understand what I need to do now to get this update installed manually, and I'm hoping someone can explain steps by steps?
    5
    8.1 Working boot.img

    8.1 boot.img:
    https://drive.google.com/open?id=17x50uNBszznaOonIRc8IIaPswKRE4aFq

    TWRP 3.2.0-0:
    [Removed] I've seen multiple complaints in other places that there are issues with 3.2 on the 5x right now. I haven't done enough testing to see it for myself, but i'd rather avoid spreading a file that will cause people issues.

    I tried modifying the latest elementalX Kernel also, but I can't get it to boot.

    Changes are the same as were made here:
    https://github.com/xcnathan32/4Core-Android-O-5X/commit/a4814e7e9c05e09d41ad1621f9d95f7eea409d77

    Also, make sure that you are flashing all of the new images when updating. 8.1 includes a new bootloader, radio, vendor.img, system.img, boot.img, and recovery.img.
    5
    Hi,

    I have created a small Python script to automate the process of modifying the boot image to reduce the chance of human mistakes and also make it easier to apply the same fix to future versions.

    You can find it at https://github.com/pawitp/nexus-5x-blod-fix

    Feel free to use, take, modify, etc.