first we need to unlock the bootloader :
1. go to Setting>About>Software>Build Number and Tap on the build number repeatedly so that the Developer mode will turn on.
2. In the developer options, there is an OEM unlock option then enable that option.
3. enter download mode and press and hold volum up to unlock bootloader ! This will wipe your phone data entirely so make sure you have made a backup of important files.
now we can root this devices
we need :
2.official firmware for your device
4.magisk canary release or download from attached file
1.download the firmware and extracted the files to your desktop
2.extract the boot.img.lz4 from the AP file
3.install the 7zip ZS , right click on boot.img.lz4 shoose 7zip ZS and extract the boot.img
4.copy the boot.img in your phone and install the magisk canary release
5.open magisk manager Install → Install → Select and Patch a File
6.select the file boot.img magsik will patche the boot image and store the output to [Internal Storage]/Download/magisk_patched.img
7. now copy the magisk_patched.img to you computer and reboot to download mode
8. rename magisk_patched.img to boot.img
9.right click on boot.img 7zip >add to archive and select format .tar
10.open odin unchek auto-reboot and select AP section and select the boot.img.tar and flash it .
11.We now want to boot into the stock recovery to factory reset our device.
Full data wipe is mandatory! Do not skip this step.
Press Power + Volume Down to exit download mode, and as soon as the screen turns off, immediately press Power + Volume Up to boot to recovery partition. Just as mentioned in the previous section, since we want to boot into stock recovery, continue pressing the volume up button until you see the stock recovery screen.
12.In the stock recovery menu, use volume buttons to navigate through menus, and the power button to select the option. Select Wipe data/factory reset to wipe the data of the device.
13.This time, we can finally boot to the system with Magisk. Select Reboot system now, and immediately press Volume Up. After vibrate , release all buttons . phone will boot normal
14. After the device is booted up, do the usual initial setup.
15. install the magisk canary release again , it will ask you to install the zip click install , after a few moments the device will reboot .
16.Voila! Enjoy Magisk
this tutorial was tested by me and it work on my device !
this is my first thread