Unlocking the Bootloader & Rooting Guide
Note: Unlocking the bootloader will wipe your device. Backup your data if necessary.
Prerequisites:
- ADB/Fastboot files – Download here.
- Windows 10-11 PC/Laptop with a USB cable that supports ADB/Fastboot commands.
- Correct USB driver – Download here.
- Magisk Manager installed on your phone – Get it from magiskmanager.com.
Obtaining ADB Access and Checking Fastboot Commands:
- Connect your phone to your computer using a USB-C cable.
- Allow the computer to recognize your device. If it doesn’t automatically install the driver, use the one provided in the prerequisites. (Download Here)
- Enable Developer Options on your phone: Go to “About phone” in Settings, tap “Build number” five times, enter your PIN to enable “Developer Options.”
- In Developer Options, enable “USB Debugging” and “OEM Unlocking.” Accept any prompts.
- Download the ADB and Fastboot folder and move it to the root of your C: drive, so the filepath looks like:
C:\adb
. - Open the folder, hold Shift, right-click an empty space, and choose “Open Powershell Window here” or “Open a Command prompt Window here.”
- In the window, type:
adb devices
and press Enter. If prompted with an authorization dialogue on your phone, check the box and allow it. You should see a device listed on your computer. (Download here) - In the same window, type:
adb reboot bootloader
and press Enter. Your device will reboot to the bootloader. - Type:
fastboot reboot
to check if your device reboots. If it says “waiting for device,” your driver might not be working; install the USB driver from the prerequisites.
Unlocking the Bootloader:
Note: This process will wipe your device.
- Connect your phone to your computer.
- Open a Command prompt in the
C:\adb
folder as explained earlier. - Type:
adb reboot bootloader
and press Enter. - Type:
fastboot flashing unlock
and press Enter. This step will wipe your phone; proceed with caution. - Follow the on-screen prompts on your phone and wait for the device to reboot. It will show an orange state flag upon booting.
- After booting, set up your device and enable “USB Debugging” in Developer Options again.
Using Fastboot Enhance & Magisk to Obtain Stock and Patched Boot Images:
- Download and copy the Fastboot Enhance folder to your desktop or a location of your choice.
- Extract the
payload.bin
file from the firmware of your choice (preferably a full zip) using a program like Winrar. - Run FastbootEnhance.exe, click “Payload Dumper,” browse and select the
payload.bin
file, and check “Allow incremental.” - Look for the
boot.img
in the list, highlight it, and click “Extract.” Copy this file to your phone’s root storage (/sdcard). - Open Magisk, click “Install/Update,” and select “Select and Patch a file.” Browse to the
boot.img
and let it complete (output: “magisk_patched” file in the Downloads folder).
Rooting by Booting:
- Obtain a patched boot image (use payload dumper or download one) and copy it to your fastboot folder on your computer.
- Reboot your phone to fastboot:
adb reboot bootloader
and connect to your computer. - Boot the Magisk-patched image:
fastboot boot magisk_patched.img
. - Your phone should automatically boot, and you should be rooted.
Making Root Permanent:
- Open Magisk Manager, click “Install/Update,” and if the buttons aren’t visible, change to the beta channel in Magisk settings and install the update.
- Select “Direct install (recommended)” and click OK. Allow Magisk to permanently root your device and then reboot.
Rooting and Updating with an Incremental Update While Retaining Root:
Note: This process is risky and doesn’t always work.
- In Magisk, select “Uninstall Magisk” and choose “Restore Images.”
- Go to Settings > System > Software update, download the incremental update (smaller than a full zip), but do not restart yet.
- Open Magisk again, click “Install,” then “Install to Inactive Slot (After OTA),” and click “Let’s Go.” Your device will reboot.
Note: If your device doesn’t boot immediately after this, it may eventually swap slots and boot.
Stock Boot Images:
(You can provide a link to stock boot images here, if needed.)
That’s it! You’ve successfully unlocked your bootloader and rooted your device.