[Moto E6 Guides, News, & Discussion] Viva La Android R.I.P.:
Motorola Moto E (6th Gen)​

Stock Firmware Installation Guide​

Basic Specs:

Motorola Moto E (6th Gen)

Codename: Surfna

Base SKU: XT2005

Android Version: 9 (Pie)

API: 28

SoC: Qualcomm® Snapdragon™ 435

CPU: Octa-core 1.4 GHz Cortex-A53

GPU: Qualcomm® Adreno™ 505

eMMC: 16 GB

RAM: 2 GB

Arch: armv7l (32-bit)

View attachment 5455215​

OVERVIEW:

First and foremost, when installing a stock firmware package on your Moto E6 -- or any Motorola smartphone, for that matter -- the simplest and most efficient method is to use the Lenovo-Moto Rescue & Smart Assistant (LMSA) via the firmware rescue option. Whether you are restoring your device to full stock condition, or restoring a device stuck in a boot loop, or that is otherwise unable to boot into the Android OS, the LMSA tool is your best route. The tool will download the most current stock firmware package available for your model and will systematically install the package, all by following a few simple steps. The latest version of the LMSA for Windows can be downloaded here, from Lenovo's official support page: https://support.lenovo.com/us/en/downloads/ds101291, as well as a downloadable and easy-to-follow user guide.​

DISCLAIMER:

Flashing the partitions of your device carries with it the inherent risk of bricking or damaging your phone. By proceeding further, you assume sole responsibility for the integrity and operability of your device. I am not responsible for any good or bad that may occur from the use of this guide. Follow the instructions carefully, and things should go smoothly.​

PREREQUISITES:

You will need a PC or laptop running on Windows 7/8/10/11, and the Motorola supplied (or quality equivalent) micro USB charging/syncing cable. Make sure your PC/laptop has the latest Motorola USB device drivers installed. The latest Motorola Device Manager can be downloaded from the official support page: https://support.motorola.com/us/en/solution/MS88481

This will install the most current Motorola USB device drivers. You'll need to install the Minimal ADB & Fastboot tools on your PC or laptop as well. Here is a direct link to the latest version https://mega.nz/file/z6gyzJya#TZWk0wuVuq5nJSnwsUx0KZClyj7M9BiEvqFdYH_dd6Q

Finally, you will need to download a stock firmware package for your particular model and carrier variant of the Moto E6. A full repo of Moto E6 Surfna official stock firmwares can be found here on the Lolinet mirror site: https://mirrors.lolinet.com/firmware/moto/surfna/official/. Take care to download the firmware for your model and branded carrier, if applicable. It should be noted here that you may install a stock firmware package on your device regardless of whether the bootloader is unlocked. If your bootloader is locked, however, you may only install a firmware build newer than, or the same as, the build currently running on your device. In sum, you cannot downgrade firmware in a bootloader locked state.​

INSTRUCTIONS:

NOTE: The fastboot flashing instructions below have been outlined verbatim from the flashfile.xml of the most current firmware package available for this device. Because the Surfna will not be receiving an official update to Android 10, and because the Surfna's allotted /system partition has been sized for a maximum of ten sparsechunk files (0 thru 9), there is no likelihood of these instructions changing in the future. Moreover, these instructions have been thoroughly tested.

1. Extract the contents of the stock firmware package to the ADB/Fastboot directory on your PC/laptop;

2. Boot your device into AP Fastboot mode. With the phone powered on or off, hold the power and volume down buttons simultaneously for 8 to 10 seconds, or until you see AP Fastboot mode on your device display;

3. Connect your phone to your PC/laptop using your charging/syncing cable. To ascertain a proper connection, open a command window in the path of your ADB/Fastboot directory and execute this command:​

fastboot devices

If properly connected, the command window will display an alphanumeric string synonymous with your device serial number. If you do not see your device serial number, try changing USB ports, use a different charge/sync cable, or try reinstalling your device drivers;

4. Once a proper connection has been verified, execute the following fastboot commands, preferably in this order (NOTE: the following procedure will erase all userdata on your device. Be sure, if possible, to back up any data or files you want to keep):
​

fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash dtbo dtbo.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
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 system system.img_sparsechunk.9
fastboot flash vendor vendor.img
fastboot flash oem oem.img
fastboot erase DDR
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot

Upon reboot, your device will be reverted to its stock factory configuration and running official Motorola firmware. It should be noted that this process will not relock your bootloader if it was in an unlocked state at the time you used this guide. Moreover, you do not need a locked bootloader in order to install future OTA updates.​

Much thanks to @sd_shadow for his feedback.