ProtonAOSP is designed for a good user experience out-of-the-box, without requiring modifications or any other changes. We do not officially support rooting or any other modifications to the system because they are prone to breakage and tend to cause issues. Rooting, in particular, weakens the security of your device and is often the source of many issues. However, we recognize that many of our users will root their devices regardless of this, so we’ve written this guide for rooting with Magisk.
If you have trouble rooting, you can try asking the community, but no support is guaranteed.
Patching the boot image is the recommend way to root with Magisk.
The boot image is different for every device we support, so it’s important that you download the correct one. You can get the boot image (
boot.img) by downloading factory images and extracting the inner images (e.g.
Some devices also have a
vendor_boot.img image. If you see this file, ignore it;
boot.img is always the correct one to use.
Follow the official Magisk instructions to patch and flash the boot image.
On devices with a custom recovery that works well, such as TWRP for the Pixel 2 series, it can be easier to install Magisk by flashing it in the custom recovery: