Friday, 21 October 2016

How to Fastboot Flash Moto X Play Factory Firmware Images



    Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.

Based on existing tutorial by @t-bon3. This guide has been created as a hard-brick occurred using the old Moto x Play tutorial. Please exercise extreme care with Fastboot, and only use the commands mentioned here. Experimenting with Fastboot commands can seriously damage your phone.


How to Fastboot Flash Moto X Play Factory Firmware Images

Required Files:

    Motorola Drivers: Download
    Latest Fastboot | ADB (Windows | Linux): Download (Windows 10 users may need this pack for Drivers to work.)
 
    WARNING: You must perform a 'Factory data reset' in Stock Recovery before flashing any Firmware Image - instructions here.

Factory data reset via Stock Recovery:
(1) Flash via fastboot stock recovery.img (found in firmware image zip)
(2) Turn your phone off.
(3) Press and hold Volume DOWN + POWER.
(4) In recovery menu press Volume down twice.
(5) Press power. You will see a red exclamation mark.
(6) Press power + Volume UP.
(7) Go to Wipe data / Factory reset and press power button.
(8) Scroll to Yes - delete all user data and press power.
Firmware download:- https://github.com/motoxplay/stock

Instructions:

1) Extracting Fastboot and Firmware Images:

    Extract zip for chosen Firmware Image to a folder with a simple directory structure. For example: C:\motog_firmware\
    Extract the adb-fastboot-latest_win_linux.zip into this folder.

2) Reboot the phone into 'Bootloader mode' and preparing PC for flashing

3) Fastboot Commands:

    Do commands manually, one at a time - checking that each one returns an [OKAY].

NOTE: Do not simply copy and paste these commands! - system.img_sparsechunks may differ in number and name.
Always check contents of folder you're working with. You must flash all of the sparsechunk files you have.

    fastboot oem fb_mode_set
    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
    fastboot flash modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot erase customize
    fastboot erase clogo
    fastboot oem fb_mode_clear
    fastboot reboot

CHECK YOUR MODEL
Note:-
FLASHING WRONG FIRMWARE CAN DESTROY A PHONE

Marshmallow now include support for Multi-Window interface

Marshmallow now include support for Multi-Window interface but, it's disabled by default. You need a little bit of tinkering to get it to work.

-First, you will need to have a rooted device, so make sure you flashed SuperSU 2.62 (older version won't work on Marshmallow).
-Then, you will need to edit a single line inside build.prop (located in /system folder), I did this with Root Browser because many other file browsing apps have trouble getting root access with Marshmallow. Root Browser is working perfectly as long as you have the right version of SuperSU.
-Once you open build.prop with Root Browser, you need to look for the line "ro.build.type=user", then you will need to change this line to "ro.build.type=userdebug", once it's done, reboot your phone.
-Now, you need to enable Developer settings by going in Parameters/About phone and tap on "Build number" seven time.
-You will now see the Developer settings in Parameters, open it and scroll down till you see the option about Multi-window support, tap on it to enable it. You will get a warning telling you that it's an experimental feature but who care?
-That's it, now you will have a new icon appearing on top of each apps in recent apps screen, just tap on it to get an app to appear in Multi-Window mode.

thank you NICO3d3