Magisk(Root)

  1. Unlock the bootloader.
  2. Install Android development tools (adb, fastboot).
  3. Install Magisk app.
  4. Get boot.img from ROM file. Useful tool: payload-dumper-go.
  5. Patch the boot.img using Magisk.
  6. Reboot to fastboot mode and flash the patched boot.img to boot partition (fastboot flash boot <boot.img>).
  7. Reboot, and the device will be rooted.

LSPosed

  1. Make sure your device rooted.
  2. Install Lsposed. Download the zip file and flash it using Magisk