Skip to main content

Rooting Xperia XA2

After a successful installation of Lineage OS on the phone, it's time to get it rooted. Lineage OS doesn't come with root by default, since it's not always desirable to have a rooted phone. However, if we want to change some major things and take back control of our devices, we will need root privileges.

Rooting process

Donwload Magisk

Magisk is a fairly advanced open source tool for customizing Android, but also very simple to use with a modern app and many tutorials online. To mention some of the main features of Magisk from their GitHub page:

  • MagiskSU – root access for apps
  • Magisk Modules – modify read-only partitions by installing modules
  • MagiskHide – prevent system and apps from detecting you are rooted
  • MagiskBoot - tool for unpacking and repacking Android boot images

Only download Magisk from the official GitHub page: https://github.com/topjohnwu/Magisk. Any other sources may contain unwanted things like malware. Install (you have to enable installation from third party applications, on newest Androids it is done on app-to-app basis).