Unlock the bootloader on the device
Install the Android platform tools on a computer
Download the correct factory image or boot image for the exact device model and Android version
Obtain a trusted rooting method compatible with the device, such as Magisk for patched boot images
Enable Developer Options on the phone
Enable USB debugging
Connect the phone to the computer with a USB cable
Reboot the device into bootloader or fastboot mode
Verify the device is detected by fastboot
Patch the stock boot image with Magisk on the device or prepare the modified image on a computer
Flash the patched boot image to the device using fastboot
Reboot the device
Open Magisk to complete setup and verify root access
Confirm root with a root checker app or root-required command
Re-lock the bootloader only if the device and rooting method support it safely
Back up important data before starting
Use only methods specific to the exact device model and firmware version
