In this tutorial, we will show you know how to restore a non-booting Moto G (2013) after Android 5 Lollipop update. As well as, it will also restore the stock firmware back again. The process requires knowledge about ADB, Fastboot, and command prompt; however, if you have followed the guide carefully, you can give back life to your softbricked Moto G. If your Moto G became non-booting after installing the Android 5 Lollipop update, you can fix it by following the guide below. This tutorial is for Moto G XT1028, XT1031, XT1032, XT1033 and XT1034. There are two methods to restore a non-booting Moto G, the first method does not need to downgrade to Android 4.4.4 KitKat, as this method works with Lollipop ROMs too. Requirements:

  1. You need to have a custom recovery (CWM/TWRP) installed 2. Stock firmware zip file for Moto G XT1028, XT1031, XT1032, XT1033 and XT1034 [Download from here] 3. ADB and Fastboot Method 1:
  2. Boot your phone into custom recovery mode. Recovery will have adb on by default, so leave recovery as it is.
  3. Connect your phone to your PC and open command prompt and issue the command: cd directory-with-adb.exe-and-fastboot.exe
  4. Now, issue the command: adb devices. If Moto G drivers have installed properly, the phone will show up. If not, download the driver here and install it.
  5. Now, from recovery wipe /data and media
  6. Open command prompt and execute: adb push rom.zip /sdcard/rom.zip It will take some time to install the ROM. If you face a not working SIM or WiFi, extract the downloaded ROM zip file and navigate to extracted firmware folder using cmd and issue: fastboot flash modem NON-HLOS.bin fastboot erase modemst1 fastboot erase modemst2 fastboot flash fsg fsg.mbn Method 2:
  7. Extract the downloaded firmware file to a folder.
  8. Download and extract mfastboot-v2.zip and copy its content to the same folder where the extracted firmware files.
  9. Reboot your Moto G into the Bootloader Mode. To do so, turn off your phone and then press and hold the Volume (-) and Power buttons simultaneously for a few seconds.
  10. Connect your phone to your PC via USB cable.
  11. Now, launch a command window from inside the firmware folder (click shift key, right click and select open command window here option).
  12. In the command window, issue the following commands one by one: 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 modem NON-HLOS.bin fastboot erase modemst1 fastboot erase modemst2 fastboot flash fsg fsg.mbn fastboot erase cache fastboot erase userdata mfastboot reboot Note: If firmware includes four ‘system.img_sparsechunk’ or you do not want to erase the userdata, you can modify the command. You have now successfully installed a fresh ROM on your Moto G and the phone the phone should work as usual. (Source – XDA)