[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] MotoX4:
The Developer Preview has ended. The official release has been released and can be found here https://xdaforums.com/moto-x4/development/rom-lineage-os-15-1-t3802265

The current (unofficial) Developer Preview is developed by [MENTION=6298645]erfanoabdi[/MENTION] This thread serves as a means to help folks from further discussing LOS16 within the Official Lineage 15.1 thread (to help prevent that thread from being both further hijacked and to prevent confusion from the two in conversation).

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.

/*
* 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.
*/

Please remember this is

NOT

a final release. There

WILL

be bugs. It is also very possible that you could end up bricking your phone by attempting to install, use, or upgrade LOS16 and you do so at your own risk.

How to install Lineage 16.0 Developer Preview

!! Please read in full before proceeding !!

Remember to submit logs when reporting any errors.

Remember to be as detailed and as clear as possible on what actions you took which resulted in any errors.

Download the latest Official TWRP https://dl.twrp.me/payton/. - You want the .img file.

Restart your phone to your bootloader. - You do this by pressing and holding both your phone's power button and the lower volume key at the same time.

Once at your phone's bootloader, from your Windows Command Prompt (as administrator) or from your Linux Terminal (as root) run the following command to load TWRP:

fastboot boot '/your_path_here/twrp-X.X.X-X-payton.img'

Note: Be sure to use your path on where you have the file on your computer. Be sure to replace and use the correct file name for your file (Do not just copy and paste example posted here).

!! You will be wiping everything because this is a developer preview and bug reports are most helpful on a clean, fresh install !!​

Regardless of what ROM you are coming from (stock or not), format your DATA.

Reboot your device to bootloader and reuse the previous fastboot command to load TWRP listed above.

Regardless of what ROM you are coming from (stock or not), wipe your device (all partitions).

Reboot your device to bootloader and reuse the previous fastboot command to load TWRP listed above.

Download "Copy Partitions Zip" - courtesy of [MENTION=3069475]filipepferraz[/MENTION] https://drive.google.com/file/d/1oiry9UfP2tf-5A6nQBF7pn2t2eSGKt0F/view

Upload "Copy Partitions Zip" to your phone using the "ADB Push" command to /sdcard/ (run as admin if on windows or as root if on Linux).

adb push copy-partitions-payton.zip /sdcard/

Now INSTALL "Copy Partitions Zip"

Reboot to your bootloader. - Stay at the bootloader screen (do not load TWRP)

Download the firmware for your phone

XT1900-1 Android 8.0

firmware_27.251.12_payton_retail_xt1900-1.zip

Only tested on

XT1900-1

XT1900-2

XT1900-5 (https://xdaforums.com/showpost.php?p=76934354&postcount=173)

XT1900-7 (https://xdaforums.com/showpost.php?p=76779696&postcount=14)

feel free to test on other Moto X4 models running 8.0.

XT1900-6 Android 8.0 - courtesy [MENTION=3069475]filipepferraz[/MENTION]

https://www.androidfilehost.com/?fid=674106145207492371

XT1900-1 Android 8.1 - courtesy [MENTION=4487886]ptn107[/MENTION]

https://www.androidfilehost.com/?fid=890278863836292604

tested on XT1900-7 as well (https://xdaforums.com/showpost.php?p=76816113&postcount=92)

Latest firmware for payton_fi android 9 from PPW29.69-26 - courtesy [MENTION=4487886]ptn107[/MENTION]

firmware-29.69-26_payton-fi_xt1900-1.zip

Unzip on your computer.

User flash_all.bat if on windows as administrator OR ./flash_all.sh if on Linux as root.

Reboot your phone to bootloader

Reboot your device to bootloader and reuse the previous fastboot command to load TWRP listed above.

Download and locate the latest developer preview: https://androidfilehost.com/?w=files&flid=281597

You will upload these files to your phone using the "ADB PUSH" command to your /sdcard/ directory (as admin in windows or root in Linux). For example:

adb push lineage-16.0-20180921-UNOFFICIAL-payton.zip /sdcard/

Install your ROM.

Congratulations! You're done! :cool:

NOTE: The point of using a developer preview is to test the ROM itself. You can attempt to install TWRP after installing your ROM, just as you can reboot back to recovery after, and install OpenGapps, followed by Magisk, but that is NOT the true point of testing this ROM. While it may be useful to know of issues with those commonly used tools, the primary concern is the ROM itself at this time. ;)