Skip to content

Unlocking the bootloader

ArnoldasMk edited this page May 31, 2026 · 5 revisions

Unlocking the Bootloader

UNLOCKING THE BOOTLOADER MEANS THAT IT WILL WIPE ALL YOUR DATA. BACKUP FIRST!

Installing platform-tools (adb + fastboot)

Linux

Ubuntu / Debian

sudo apt install android-tools-adb android-tools-fastboot

Fedora

sudo dnf install android-tools

Arch / Manjaro

sudo pacman -S android-tools

Windows

Download the SDK Platform Tools, extract, and add the folder to your PATH.

Verify

adb version
fastboot --version

Step 1 — Enable OEM unlocking

  1. Settings → About phone → tap Build number 5+ times.
  2. Settings → System → Developer options:
    • Enable OEM unlocking
    • Enable USB debugging

Step 2 — Boot into fastboot

adb reboot bootloader
fastboot devices

The device and its serial should be seen.

Step 3 — Unlock

fastboot flashing unlock

On the phone: Volume to select UNLOCK, confirm with Power.

Device factory-resets and reboots into setup.

Step 4 — Verify

adb reboot bootloader
fastboot getvar unlocked

Expected: unlocked: yes

fastboot reboot

If OEM unlocking is greyed out: connect to Wi-Fi or reboot once.

Re-locking (optional)

If you changed your mind and want to sit on stock (why would you go to that crap), you can lock bootloader back. But only re-lock with stock firmware flashed — re-locking on a custom ROM is DANGEROUS - if ROM corrupts or becomes unusable - YOU'LL BRICK YOUR PHONE WITHOUT GOING BACK.

fastboot flashing lock

This wipes data again btw.


If you want to build ROM: Building If you want to download ROM: Installation

Clone this wiki locally