This guide will walk you through installing LineageOS with microG and Magisk on a "guacamole" device, which could be a OnePlus 7 Pro, OnePlus 7, or OnePlus 7T Pro.
- Make sure to unlock your device's bootloader before proceeding. Do not relock the bootloader after installing a custom OS.
First, follow the steps from the official LineageOS documentation up to the point of downloading the LineageOS image.
Instead of the official LineageOS image, download the version with microG from here.
Continue with the installation as described in the official LineageOS documentation, but use the LineageOS image with microG that you just downloaded.
In the step where the official documentation suggests installing Google Apps, install Magisk instead. You can find Magisk on GitHub.
- If anything goes wrong, perform a wipe and start over.
-
Do not relock the bootloader after installing a custom OS, as it may permanently lock your device.
-
Relocking the bootloader is generally safe only on Pixel devices, which allow system signature modification.
Smartphones have an internal system that holds permanent information about the system provider. If the bootloader is locked and the system provider doesn't match, the phone will lock itself for "data safety."