Download the platform tools and save it to your desktop:
https://developer.android.com/studio/releases/platform-tools
- Go to Settings
- Scroll down to “About phone”
- Repeatedly click “Build Number” to turn on Developer mode
- Go back and select “System”
- Click on “Advanced”
- Open “Developer Options”
- Enable “OEM Unlocking” & “USB Debugging”
- Power off your phone, then hold the volume down + power button together to power on the device
- Connect your device to your computer using a USB cable
- Open the command prompt and navigate to the Platform-Tools folder you downloaded. Enter the following command:
- fastboot flashing unlock
- Go back to the Android device and press down on the volume button once to change the screen to say unlock bootloader
- Now press the power button to unlock the bootloader if it says start. (If it does not say start, select the volume button up or down until it does)
- The phone is now wiped, and you will need to set it up again
- After setting up, go to settings -> about phone -> build number
- Go to the website and download the corresponding image:
- https://developers.google.com/android/images
- Extract the files and move the boot.img to the platform-tools folder
- Make sure you have file transfer turned on (on the Android device, go to setting-> connected devices->USB->file transfer)
- Open the internal Android files folder on your computer and move the boot.img folder to the phones downloads
- Download Magisk on your computer
- https://github.com/topjohnwu/Magisk/releases
- Move the Magisk file into the internal Android “Download Folder”
- Go to the Downloads folder on your Android device and install Magisk
- Open Magisk and click install:
- Select and patch a file
- Select the boot.img file
- Go into the Android downloads folder and move the magisk_patched.img file onto your computer. (Unplug the USB if the file isn’t displayed)
- Power off your phone, then hold the volume down + power button together
- Go back to your computer command line and type:
- Flash boot magisk_patch.img
- Reboot the device
- The device is rooted!