[X Style (Pure) General] BooBzi:
Wrote down guide how to get STOCK version of Android for XT1572 - Moto X STYLE, and also install TWRP recovery and get root with xposed.

View attachment 3734309View attachment 3734310View attachment 3734311View attachment 3786104View attachment 3940345View attachment 4053888

Last UPDATE: 25/02/2017

1. GUIDE TO STOCK

[MENTION=2386203]Prazaar[/MENTION] 's provided link with STOCK files.

[MENTION=5662208]lAndroXl[/MENTION] guide here (Files also for other versions of device).

[MENTION=4972043]dbolivar[/MENTION] guide here for RETLA-DS (Brazil).

Stock 6.0.1 EU here, my mirror here (6.0.1 with security patch from September).

Flash scripts - here, or my script here. (for Windows - flashes STOCK files without re-locking bootloader, but also wipes data)

you need adb/fastboot drivers installed (Good ADB installer for PC can be found here);

you need to backup all your data on your phone, guide will erase everything;

reboot your phone into bootloader mode and plug in your usb cable which is connected to your PC. (power off your device then press the POWER and VOLUME DOWN button for 3-4 seconds);

Open a command prompt in the folder where you unpacked the zip file you downloaded before (press SHIFT + RIGHT CLICK on a empty space then "open command prompt here");

Check the functionality of the adb drivers, simply type "fastboot devices" and you will see a list with your connected devices in bootloader mode.

Type every single command in the command prompt window from the list below. (You can ignore OEM LOCK commands if you not wish to lock down bootloader, but just update device to latest version of Android!);

fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.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 system system.img_sparsechunk.8
[INDENT](for [B]5.1.1 [/B]there are one more file)
fastboot flash system system.img_sparsechunk.9[/INDENT]
[INDENT](for [B]6.0.1[/B] there are more files)
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11[/INDENT]
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot flash bluetooth BTFM.bin
fastboot erase cache
fastboot erase userdata
fastboot erase customize (optional: will erase any customizations if ordered through motomaker)
fastboot erase clogo (optional: will erase the custom boot logo if ordered through motomaker)
fastboot oem lock
fastboot reboot

2. UNLOCK BOORLOADER.

Remember, that after unlocking bootloader, all device will be WIPED.

fastboot oem unlock UNIQUE_KEY

3. FLASH TWRP RECOVERY.

twrp-3.0.2-0-clark.img from here.

fastboot flash recovery twrp-3.0.2-0-clark.img

Note: After flashing TWRP, boot into custom recovery and make restart to recovery again!

4. INSTALL SUPERSU.

Flash 2.62-3 from TWRP from here. (Later from Play Store upgrade to latest version);

OR

Flash latest SuperSU root ZIP from here.

(before flashing this, TWRP-Advanced-Terminal and enter "echo SYSTEMLESS=true>>/data/.supersu" and then flash ZIP file.)

5. INSTALL XPOSED.

Latest v86 from here. (xposed-v86-sdk23-arm64.zip)

OR

Latest unofficial SYSTEMLESS Xposed from here. (You need 2.76+ SYSTEMLESS root, latest MAGISK Iterface from here and Material Design Xposed Installer to work)

6. To make OTA update.

View attachment 3940345

Remove XPOSED (can be turned off from XPOSED app) + UNROOT (can be done from SUPERSU app) + remove MAGISK (use latest unintaller from thread);

Flash STOCK recovery file from FASTBOOT (fastboot flash recovery recovery.img);

Now you can perform OTA update;

Follow all steps from guide (I do - > TWRP, SYSTEMLESS ROOT, MAGISK, XPOSED).