Introduction

The rooting process is very straightforward.

I will impress upon you it is an advanced procedure and if you run into an issue you cannot solve, may void your warranty.

The actions you take during this process will wipe your phone.

If you update after root, you are likely to lose root and have to do part of this procedure again.

Steps

  1. Make a Backup
  2. Pull your boot image
  3. Use Magisk to patch your boot image
  4. Unlock your bootloader
  5. Flash your Magisk patched boot image

Make a Backup

Use mtkclient to make a Backup of your current system

*out* is the directory you want to dump your partitions in.

This will make a Backup of your data partition, so be aware it will take a long time and take up a lot of space. Better safe than sorry.

python mtk.py rl out