Monday, August 17, 2020

Nexus 5X Bootloop Fix

 Most bootloops can be fixed by flashing the stock firmware or factory resetting, but in the case of a hardware bootloop, there’s generally nothing you can do except... 

Enable developer options and USB debugging

 

  • Android 8.0.0 (API level 26) and Android 8.1.0 (API level 26): Settings > System > About Phone > Build Number
  • To enable developer options, tap the Build Number option 7 times.
  • New menu shown: Settings > System > Developer options
  • Enable OEM unlocking and USB debugging 


UNLOCK method 1

Now use NEXUS ROOT TOOLKIT V2.1.9 to unlock.   https://nexus-root.com/download/

Auto detect build > Apply > Unlock

This will wipe clean the phone.  


UNLOCK method 2

If your bootloader is not yet unlocked but you have enabled OEM unlocking in Developer Options, you can unlock the bootloader now by entering:

C:\Users\user\Downloads\platform-tools_r30.0.4-windows\platform-tools>./fastboot flashing unlock

Follow the on-screen instructions to unlock the bootloader.  This will wipe all of the data on your phone.


Once boot up, a fresh registering of the android will start.  Reenable USB debugging

  • Goto Settings > System > Developer options > enable USB debugging 


enter fastboot mode


Open up CMD or powershell within DOWNLOAD folder. (shift + right click)

Boot the Nexus 5X into Fastboot Mode (boot with power and volume down)

C:\Users\user\Downloads\platform-tools_r30.0.4-windows\platform-tools>./fastboot devices

 see your device’s serial number? good.

Do this:  ./fastboot flash boot N2G47Z_4Cores.img

Optional: If you want to flash the modified TWRP, then enter this command afterwards: ./fastboot flash recovery TWRP3_1_1_5X.img


Reboot your phone by typing: ./fastboot reboot

It takes a several minutes to reboot.  It will look like it's stuck at Google screen. 


Wannat reinstall Android 8.1.0?

ps://www.reddit.com/r/nexus5x/comments/8pbg5n/my_guide_to_fixing_the_nexus_5x_bootloop/

8.1.0 Download Nexus 5x: latest image 8.1.0 (OPM7.181205.001, Dec 2018) from
ps://developers.google.com/android/images#bullhead

Extract the .zip file. 

Inside should be a file called "flash-all.bat". Ensure that your phone is still plugged into your PC and in fastboot mode. Run the "flash-all.bat" file and allow it to complete.


DOWNLOAD 4 core TWRP recovery from

enter fastboot mode 
open power shell from the download folder
move twrp-3.2.1-0-fbe-4core-bullhead.img
to C:\Users\user\Downloads\platform-tools_r30.0.4-windows\platform-tools
run 
./fastboot flash recovery twrp-3.2.1-0-fbe-4core-bullhead.img

This will flash TWRP recovery to the recovery partition of your phone. TWRP is what we will use to flash the tool that fixes the bootloop.

INSTALL BOOTLOOP FIX
enter fastboot mode (power + volume down)
goto Recovery mode
confirm and  TWRP should load

Swipe the slider at the bottom to allow modifications. 

Download N5X-6P_BLOD_Workaround_Injector_Addon-AK2-signed.zip from https://drive.google.com/file/d/12YLs3X2MqOSQnrGXolgcK3jrJ6PQJNmz/view


Goto PC, copy N5X-6P_BLOD_Workaround_Injector_Addon-AK2-signed.zip
to  This PC > Nexus 5X > Internal Storage

Go back to your phone.  TWRP screen > Install
Scroll down until you find "sdcard" and click it. You should see your injector .zip file now. Tap it and swipe to flash. Once it flashes, Reboot to System



STILL BOOTLOOPING? GO BACK TO 7.x.x 

1. Flash the factory image for Android 7.1.2 (N2G48C, Aug 2017)
2. Flash the bootloop fix from the article (N2G47Z_4Cores.img)
3. Lock the bootloader with fastboot flashing lock
4. Restart the phone and wait for the bootloop to resolve


Good idea to lockup the bootloader 

enter fastboot mode (power + volume down)

C:\Users\user\Downloads\platform-tools_r30.0.4-windows\platform-tools>./fastboot flashing lock


REFERENCES:

https://www.xda-developers.com/nexus-5x-bootloop-fix-boot-phone/

https://developers.google.com/android/ota

https://developer.android.com/studio/debug/dev-options

https://www.dropbox.com/s/tm7qt98r6d7q2a6/N2G47Z_4Cores.img?dl=0



PeopleSpace International