Bootloader Unlocking Locking Procedures - falendra-sahu/rooting GitHub Wiki


๐Ÿ”“ Bootloader Unlocking Procedures

Unlocking the bootloader is the first step toward rooting, flashing custom ROMs, installing custom recoveries, and full Android control. This guide explains the general process and OEM-specific methods.


โš ๏ธ Important Warnings

  • Unlocking bootloader will erase all data (Factory Reset).
  • May void warranty depending on the OEM.
  • Some devices require permission from the OEM.
  • Always backup your important data before unlocking.

๐Ÿ› ๏ธ General Steps to Unlock Bootloader (Fastboot Method)

โœ… Works on most stock Android, OnePlus, Pixel, and some Xiaomi/realme devices.

Requirements:

Steps:

  1. Enable Developer Options:

    • Go to Settings > About Phone > Tap Build Number 7 times.
  2. Enable OEM Unlocking:

    • Go to Settings > Developer Options > Enable OEM Unlocking.
  3. Enable USB Debugging:

    • In Developer Options, turn on USB Debugging.
  4. Reboot to Fastboot Mode:

    adb reboot bootloader
    
  5. Check device connection:

    fastboot devices
    
  6. Unlock the bootloader:

    fastboot oem unlock
    

    or

    fastboot flashing unlock
    
  7. Confirm unlock on your device screen using Volume and Power buttons.


๐Ÿ” OEM-Specific Bootloader Unlock Guides

๐Ÿ“ฑ Xiaomi / Redmi / POCO

  1. Create a Mi account and log in to the phone.

  2. Enable OEM Unlocking and USB Debugging.

  3. Go to Mi Unlock Status and bind account.

  4. Boot into fastboot:

    adb reboot bootloader
    
  5. Use Mi Unlock Tool.

  6. Log in with your Mi Account and follow steps.

  7. Wait for 7-day period (if applicable).

  8. After unlock: data will be wiped.


๐Ÿ“ฑ OnePlus

  1. Enable Developer Options and OEM Unlocking.

  2. Boot to Fastboot:

    adb reboot bootloader
    
  3. Unlock:

    fastboot flashing unlock
    
  4. Confirm on device screen.


๐Ÿ“ฑ Samsung (Snapdragon/Exynos)

Samsung devices require OEM Unlock + unlocking KG/RMM state.

  1. Enable Developer Options โ†’ OEM Unlock.
  2. Reboot to Download Mode.
  3. Use Odin Tool to flash custom recovery or patched boot.
  4. Knox will trip once bootloader is unlocked (warranty void).

๐Ÿ“ฑ realme / Oppo

  1. Realme/Oppo stopped official unlocking.
  2. Some older models support Realme/Oppo Unlock Tool APK.
  3. Flashing via EDL mode or test point needed on newer devices.
  4. May require MSMDownloadTool.

๐Ÿ“ฑ Pixel / Nexus

Easiest and safest devices to unlock.

  1. Enable OEM Unlocking.

  2. Boot to Fastboot:

    adb reboot bootloader
    
  3. Unlock:

    fastboot flashing unlock
    

๐Ÿ”’ How to Re-Lock the Bootloader (Optional)

  1. Flash back to official stock ROM.

  2. Reboot to fastboot mode.

  3. Run:

    fastboot oem lock
    

    or

    fastboot flashing lock
    

โš ๏ธ Do not re-lock if running custom ROM โ€” this will brick the device.


๐Ÿงพ Common Issues & Fixes

Issue Solution
"fastboot flashing unlock" not working Use "fastboot oem unlock" instead
Unlock failed on Xiaomi Wait for 7-day period; use same Mi Account
Samsung bootloader greyed out Flash latest stock firmware, try again
Device reboots to recovery/bootloop Flash stock or compatible recovery

๐Ÿ”— Useful Links