Nexus 5x Unlock Bootloader, Flash TWRP and SuperSU

Warning

Use this howto at your own risk, I am not responsible if you brick your device and I will not support you.

Prerequisites

  • Nexus 5x Bullhead
    • LGH791F 32GB
  • Linux Desktop or Laptop
    • adb and fastboot installed
      • android-tools-adb
      • android-tools-fastboot

Steps

Enable USB-Debugging

Go to Settings -> System -> About Phone -> Build number and hit it about 5 times until you’re a developer.

Go to Settings -> System -> Options for developers -> USB Debugging -> On

Enable OEM Unlock

Go to Settings -> System -> Options for developers -> USB Debugging -> On

See if adb is working

Unauthorized

At first I was presented with the following.

This was because I forgot to sudo the command above.

Restart adb-server

See if adb is working now

Reboot into bootloader

List device

Unlock the bootloader

Warning: This will erase your phone completely, be sure to have backed up everything!

Confirm it on your screen

Reboot device

Don’t skip this step, this will reboot your device.

Enable USB-Debugging (again)

Go to Settings -> System -> About Phone -> Build number and hit it about 5 times until you’re a developer.

Go to Settings -> System -> Options for developers -> USB Debugging -> On

Allow all future connections from your computer

Enable OEM Unlock

This should still be on.

See if adb is working

All is well if you see:

Reboot into bootloader

Download TWRP

Download the most recent .img file from https://eu.dl.twrp.me/bullhead/

Flash the TWRP image to the Recovery partition

For some reason the defice was locked again after the reboot so I had to unlock it again.

Get into Recovery mode

Press down a couple of times until it shows recovery mode and press power to confirm

Download SuperSU

Download the .zip file from https://download.chainfire.eu/1220/SuperSU/

Upload SuperSU to your internal SD

Install SuperSU .zip

Install -> Browse to SR5-SuperSU-v2.82-SR5-20171001224502.zip and select it.

Swipe

To confirm the installation.

Reboot

You might get a prompt about the device being unable to decrypt your previously encrypted volume, it’ll bring you back to TWRP to do a factory reset.

Install AICP Oreo ROM

Download AICP

Download the latest nightly on http://dwnld.aicp-rom.com/?device=bullhead and get into TWRP.

Download Magisk

Download Magisk Manager Latest Version 5.4.0 For Android 2017

AICP doesn’t go well with SuperSU but it does with Magisk.

Download OpenGApps

http://opengapps.org/

ARM64 -> 8.0 -> Full

Upload the .zip files

Flash AICP & Magisk

This is the usual procedure through TWRP, wipe caches afterwards and boot into the system.

Install OpenGApps

This took me some debugging as the nano version didn’t work, but the full version might do.

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *