[Moto X4 Questions & Answers] lucasbitencourt:
Signed ROMs: https://androidfilehost.com/?w=files&flid=229118

Payton_ = Retail

Payton_Fi = Android ONE

Payton_AMZ = AMAZON

THIS WILL WIPE ALL YOUR DATA AND THE SECURITY PATCH MUST TO BE THE SAME AS YOU HAVE NOW OR ABOVE for example Retail 8.1 - 1 April Security Patch.

fastboot getvar max-sparse-size

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash boot boot.img

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot erase modemst1

fastboot erase modemst2

fastboot flash bluetooth BTFM.bin

fastboot flash dsp dspso.bin

fastboot flash logo logo.bin

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash system_b system_other.img

fastboot flash oem oem.img

fastboot erase cache

fastboot erase carrier

fastboot erase clogo

fastboot erase userdata

fastboot erase ddr

fastboot oem fb_mode_clear

fastboot oem lock

fastboot oem lock

fastboot flash oem oem.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash boot boot.img

fastboot oem lock

If your bootloader is already block you can skip this commands:

fastboot oem lock

fastboot oem lock

fastboot flash oem oem.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash boot boot.img

fastboot oem lock

instand of they you can use:

fastboot getvar max-sparse-size

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash boot boot.img

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot erase modemst1

fastboot erase modemst2

fastboot flash bluetooth BTFM.bin

fastboot flash dsp dspso.bin

fastboot flash logo logo.bin

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash system_b system_other.img

fastboot flash oem oem.img

fastboot erase cache

fastboot erase carrier

fastboot erase clogo

fastboot erase userdata

fastboot erase ddr

fastboot oem fb_mode_clear

fasboot reboot