Unlocking bootloader on a OnePlus device - yashaswee-exe/AndroidGuides GitHub Wiki

[!Warning] Unlocking the bootloader will wipe all user data. Proceed with caution and make backup of all important files.


📋 Prerequisites

👉 Tools: Download latest platform-tools.

👉 Drivers: Windows users should ensure the device is recognized in Device Manager without errors.

👉 Make sure to remove PIN/password and logout if all google accounts.


🏁 Let's start

  1. Enable Developer Options (Settings > About Phone > Tap 'Build Number' 7 times).
  2. Enable OEM Unlocking and USB Debugging in Developer Options.
  3. Connect the device to your PC and run:
    adb reboot bootloader
    
  4. Once in fastboot mode, verify connection:
    fastboot devices
    
  5. Unlock the bootloader:
    fastboot flashing unlock
    
  6. Follow the on-screen prompts on the device to confirm the unlock. The device will factory reset and reboot.