How to flash a factory image onto a Nexus 5x with locked bootloader?


Question

This happened today:




  1. I was using my Nexus 5X when it suddenly started rebooting.

  2. It got stuck in a bootloop. It would never boot past the Google logo and I couldn't turn it off.

  3. I was able to enter fastboot mode and even recovery mode from there.

  4. I wiped the phone from recovery mode which didn't help.

  5. I left the phone lying with the fastboot menu open because I thought maybe it is overheated and will cool down (it was slightly warm).

  6. When I returned, the phone was off. I started it and this time it went past the Google logo up to the Android logo (with the animation). However, after displaying "Android" it would just power off.

  7. I tried to boot it a few times but it would never go past the Android logo. Eventually the bootloop started happening again.

  8. I am now back to step 2 except I can't enter recovery mode any more. If I choose recovery mode from the fastboot menu, I never see the lying Android figure with the exclamation mark.



I found many tutorials about fixing bootloops on the Nexus but they all seem to require an unlocked bootloader.



The bootloader on the device is locked. I can see the device in fastboot devices but I can't unlock it.



Any idea how to repair this? Can I somehow flash a factory image onto the device even though OEM unlock is disabled? There is no data on the device that would need to be preserved. I'm ideally looking for a Linux-based solution.


Answer

The only possible way for you to get "OEM unlocked" is to freeze your phone and then turn it on, hoping that it will boot normally again. (Put phone in an airtight plastic bag and place it in freezer for about 1h.)



However, the Nexus 5x bootloop problem is a hardware problem which cannot be fixed using software. (One processor core is broken and as it is turned on during boot, the device crashes.) The XDA work-around simply disables the broken core, I think, but this leaves you with a slower phone.



Since you don't need to save any data on your Nexus, I'd spend my time finding a (cheap? second-hand? lineage-os/treble-ready?) replacement device.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes