[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] MotoX4:
Since everyone keeps asking how do you install this ROM; I decided to make a guide for the newbies that are here. :)

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

How to install Pixel Experience on Moto X4

!! Please read before proceeding !!

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

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 the example posted here).

!! You will be wiping everything because regardless if you are coming from stock or a different ROM as this ROM works best with a full wipe (as is true with any ROM) !!

Note: If upgrading this ROM a full wipe is not necessary. See upgrade instructions below.​

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), select "advanced wipe" to wipe your device (select all partitions).

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

If coming from stock:

Download "Copy Partitions Zip" - courtesy of @filipepferraz 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 (pick a single mirror from the links below)

Unzip on your computer.

Flash your phone using the correct file (see details below)

Firmware courtesy of @trpsl

flash_all_fi = Google Fi firmware

flash_all_ret = Retail firmware

IF Microsoft Windows: type in cmd flash_all_fi.bat - OR - flash_all_ret.bat (depending on your device variant)

IF Linux (as root) / Apple Mac: type in terminal flash_all_fi.sh - OR - flash_all_ret.sh

NOTE: In Linux you may need to change your permissions to the files as well.

Mirror: https://androidfilehost.com/?fid=4349826312261627285

Mirror: https://sourceforge.net/projects/tr..._9.0_PPW29.69-39-6_firmware-only.zip/download

Reboot your phone to bootloader

Continue:

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

Download and locate the latest ROM located here: https://download.pixelexperience.org/payton/

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 PixelExperience_payton-10.0-xxxx-xxxx-OFFICIAL.zip /sdcard/

You will also wish to upload the TWRP zip file too for future recovery options

adb push twrp-installer-xxxx-payton.zip /sdcard/

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 the example posted here).

In TWRP select Install

Locate your .ZIP file and proceed with the install of the ROM

Locate your .ZIP file and proceed with the install of TWRP

NOTE: Do NOT install Gapps as Gapps is already installed with this ROM.​

After a successful install, REBOOT your phone.

Congratulations, you're done! :cool:​

Magisk

Magisk will provide you with root access (optional). You can obtain a copy of Magisk here https://xdaforums.com/apps/magisk You will want your ROM to boot at least once before installing Magisk.

However, if you end up in a boot loop as a result of installing this ROM, and you previously were using Magisk in the previous ROM before installing this ROM, simply load TWRP and flash Magisk and that should correct the boot loop.

UPGRADING - How to upgrade this ROM.

Also known as a dirty upgrade, you do not need to wipe everything and start over. However, if this dirty upgrade fails a fresh install is recommended.

Download the latest ROM

Reboot into recovery

Install your new .zip file for your ROM

Install your new .zip file for TWRP

Install Magisk if you were using it (or which to use it)

Wipe cache/dalvik

Reboot

If all has gone well you're done! If not, a full wipe and install are recommended.

Gapps Alternatives

Additionally, if you're one of those people who want to use additional apps beyond Google Play limitations (such as regional or device restrictions) you have the following alternatives.

https://apkpure.com/

https://en.uptodown.com/android

https://f-droid.org

Just remember that these are unofficial sources and you take the risk that can potentially come with them.

:)

---------- Post added at 10:06 PM ---------- Previous post was at 10:02 PM ----------

Fair enough. In any case, I've posted a step by step guide that should, in theory, be idiot-proof

https://xdaforums.com/showpost.php?p=81465397&postcount=168