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?
DOWNLOAD 4 core TWRP recovery from
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