[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ThE_MarD:
/*

* Your warranty is now void.

*

* I am not responsible for bricked devices, dead SD cards,

* thermonuclear war, or you getting fired because the alarm app failed. Please

* do some research if you have any concerns about features included in this ROM

* before flashing it! YOU are choosing to make these modifications, and if

* you point the finger at me for messing up your device, I will laugh at you.

*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 10, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

Introduction

This is the official Lineage OS thread for the Motorola Moto X4, codename payton.

We support all the T-Mobile, International, and Project Fi variants, as their bootloaders are unlockable, while we can't support the Verizon and AT&T variants, as their bootloaders are permanently locked.

How to install via Lineage Recovery

Please follow the official instructions

Install LineageOS on payton | LineageOS Wiki

wiki.lineageos.org

HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY

Please follow the official LineageOS Wiki instructions for our device

Update LineageOS on payton | LineageOS Wiki

wiki.lineageos.org

How to install via TWRP

Boot the newest TWRP .img from the Official TWRP Project Site.

IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2

In TWRP, click "Wipe", "Format Data", then type "yes" as prompted.

ADB sideload the newest weekly

(Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence.

Click "Reboot", then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic.

(Optionally) Flash GApps

Reboot

How to upgrade from 17.1 via Lineage Recovery

Please follow the official instructions

Upgrade LineageOS on payton | LineageOS Wiki

wiki.lineageos.org

How to upgrade from 17.1 via TWRP

Boot the newest TWRP .img from the Official TWRP Project Site.

IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2

In TWRP, click "Wipe", then select "advanced" and select "cache" and wipe.

ADB sideload the newest weekly build or copy it to your device and install the zip

(Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence.

Click "Reboot", then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic.

(Optionally) Flash GApps

Reboot

Notes

Official Lineage OS builds will not pass CTS/SafetyNet -- due to the AVB flag's "red" status. (Magisk works fine, though is not supported.)

Official Lineage OS builds ship with full treble compatibility, with VNDK runtime enforcement! This means that unlike most "ported treble" you'll see, ours is just as it would be from the OEM, and can run any GSI (yes, even Pie!) without need for hacks or additional flashable zips. We relabeled /oem as /vendor (as /oem isn't used in custom ROM's anyway). To use a GSI, flash official Lineage, then flash your GSI, it's that simple! Flashing a factory image will likely write over /oem and remove the mock vendor image. Please don't report GSI bugs here, report them instead to the GSI's maker.

Download

Official:

LineageOS Downloads

download.lineageos.org

Unofficial test builds:

https://osdn.net/projects/lineageos-for-payton/releases/p17369

Google Apps (GApps)

MindTheGapps:

Codefire - Listing of gapps

GCam Mods

Wichaya GCam APKs - Google Camera Port

Modified Google Camera app by Wichaya.

www.celsoazevedo.com

XDA:DevDB Information

Lineage OS 18.1, ROM for the Moto X4

Contributors

erfanoabdi, ThE_MarD, Lineage Team

Source Code: https://github.com/LineageOS

ROM Firmware Required: Official Pie