Flashing LineageOS and Hardening with KernelSU, microG, and Play Integrity Fixes
2026-07-18
This is a condensed walkthrough of my process for installing LineageOS and layering the essential mods on top—microG, KernelSU, TEESimulator, Zygisk Next, LSPosed, and the various props tweaks needed to make everything work.
Flashing the Images
First, flash the downloaded image files to your device:
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash init_boot init_boot.img
fastboot flash vbmeta vbmeta.img
fastboot flash vendor_boot vendor_boot.img
fastboot reboot bootloader
fastboot flash recovery recovery.img
Reboot to recovery. Now select Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
Return to the main menu.
Sideloading LineageOS
On the device, select Apply update, then Apply from ADB to begin sideload.
On the host machine, sideload the package using:
adb -d sideload /path/to/lineage.zip
microG
After sideloading LineageOS, reboot to recovery again, then download and sideload microG from BitGapps:
adb -d sideload /path/to/microG-Installer.zip
After booting, update Google Play and clear Google Play's data.
KernelSU
Download KernelSU manager. Install the APK, then use it to patch the init_boot image. Once patched, flash it back:
fastboot flash init_boot patched-init_boot.img
Play Integrity: TEESimulator and Tricky Addon
Download and flash TEESimulator and Tricky-Addon-Update-Target-List. Then, inside the Tricky Addon app, import a valid Keybox.
Zygisk
Install ReZygisk
Sensitive Props
Install the Sensitive Props module to adjust system properties.
Android Software I use
- Root:
KernelSU·Rezygisk·TEESimulator·Sensitive Props Mod - Web Browser:
Fennec - Proxy:
sing-box - Weather:
Breezy Weather - Maps:
Organic Maps - App Updater:
Obtainium - Permissions Manager:
PermissionManagerX - IME:
fcitx5-android - Password Manager:
Password Store - File Manager:
MaterialFiles