The ‘software’ way.
a) Enable developer mode on the Moto E (Settings-> ‘About Phone’. Tap 7 times on ‘Build Number’)
b) Enable USB debugging. (Settings -> ‘Developer options’ -> ‘USB Debugging’ -> check)
c) Connect phone to computer via USB, you should see a new ADB device detected and drivers installed.
d) Open “Minimal ADB and Fastboot”. Type:
You should see the Moto E bootloader screen with the following options:
Switch Console [NULL: null]
2) Open a command prompt / terminal (Start -> cmd.exe in Win7) and browse to the folder with the extracted firmware.
In windows, run the ‘flashall.bat’ script Type:
The “/eu” switch forces userdata to be erased from the device, this is the same as a factory reset or wipe this is recommended when restoring stock firmware.
The scripts will fail with an error on downgrading from 4.4.2 to 4.3. Open the script in a text editor (notepad) and delete (or comment) the following:
Lines 89-90 in the flashall.bat file:
CALL :fastboot_flash partition gpt.bin
IF %errorlevel% NEQ 0 EXIT /b 1
Lines 120-121 in the flashall.sh file:
run $fastboot -s “$serial_number” flash partition gpt.bin
if [ $? -ne 0 ]; then echo “ERROR: fastboot failed.”; exit -1; fi
3b) If you downloaded and extracted a firmware in .xml.zip format.
Flash each of the partitions in sequence using mfastboot, you need to enter the following commands one-by-one checking that each one returns an [OKAY]
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
The 1st command “mfastboot flash partition gpt.bin” will fail on 4.4.2 to 4.3 downgrade.
Skip this command if you are downgrading and continue with the other commands, which should work.