TWRP - No dtbo
* I've appended the dtbo.img to twrp. It is now self sufficient. You don't need to flash anything before booting this up.
* If you want to use backup & restore or install twrp permanently, you must also install a GSI.
* Do not use this on stock! Motorola has some very nasty security measures in place and you will bootloop no matter what.
* Flashing zips to the stock OS will work. Flashing zips to a GSI will work. Flashing Magisk will not! This is a Magisk issue. If you want to be rooted on stock, patch your boot.img as recovery with magisk manager and flash it from fastboot. It is the only way.
* Disabling verity or forced encryption on stock will break the OS.
How to install twrp...
1. Fastboot boot twrp.img
2. Copy twrp to your external sdcard, or use
adb push twrp.img /tmp/twrp.img.
3. Go to
Advanced > install recovery ramdisk then navigate to tmp or your external sdcard and select the twrp.img you copied.
4. Use
wipe > format > type "yes" to continue then use
reboot > recovery from twrp's menus.
5. Once twrp starts up again, wipe data & system, make sure system is mounted, then flash a GSI. Flash the universal disabler afterwards. If you get a failed to unmount error, manually mount all partitions and reflash whatever it errored on.
6. Optional: Flash my modded phh for root. (Install the apk after.) Never use Magisk! It will fail to root, cause a bootloop, or break twrp.
twrp.img
Modded Phh
Side note: My modded phh works on Lineage OS 16 & 17, and should work on any GSI made from Phh's sources. Other GSIs and stock are untested. If anyone can help me fix the overlays for our device, please send me a pm. I have the values for the curves and notch, I just don't know how to compile the overlay as an apk.
How to fix the navbar on a GSI
Code:
adb root
adb shell
setprop persist.sys.phh.mainkeys 0
reboot