In this guide, we will show you the steps to unbrick Moto G7 and G7 Plus via Fastboot Commands. The G series from Motorola has always been the fan favorite and there are quite a few reasons for the same. Keeping the brand loyalty factor aside, these devices are known to provide the best value for money. Considering the price bracket to which they belong, it manages to checkmark most of the important prerequisites. Along the same lines, they are quite an active player in custom development.
The seventh iteration in this series is no different either. There are a plethora of custom binaries that you could try out onto your device. These include the likes of replacing the device’s stock recovery with a custom one such as TWRP. Likewise, you could also flash a custom ROM to give your device a fresh outlook. Gaining administrative privileges and access to the system partition is also a possibility. This in turn could be carried out by rooting your device via Magisk (flashing Magisk App v22 or patching and flashing stock boot.img).
But in spite of all the goodies attached, there’s always a risk of things not working out as expected. If you flash an incorrect binary or flash the correct file to the incorrect slot, then your device would end up in a soft-bricked or boot looped state. But if that ever happens, there’s always an easy escape route. And this guide shall make you aware of just that. Given here are the detailed instructions to unbrick Moto G7 and G7 Plus devices via Fastboot Commands. Follow along.
How to Unbrick Moto G7/ G7 Plus via Fastboot Commands
The below instructions are listed under separate sections for ease of understanding. Make sure to follow in the exact same sequence as mentioned below. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.
The first two steps given below are only applicable for devices that could be booted to the OS and for the users who are just looking to revert to stock from any other OS. If we talk about bricked devices, then you don’t need to carry on the below two steps of enabling OEM Unlock and Unlocking the Bootloader as your device would already be having both these prerequisites.
Enable USB Debugging and OEM Unlocking
To begin with, you will have to enable USB Debugging and OEM Unlocking on your device. If your device is in a bootloop or soft brick, then you wouldn’t be able to carry out these steps, so skip them and move over to the next step. However, if your device is working and you are trying to manually flash the firmware via Fastboot, then you need to enable both these options.
So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.
Unlock Bootloader on Moto G7
Next up, you will have to unlock the bootloader on your Moto G7/G7 Plus to unbrick it via Fastboot Commands. Since we are flashing IMG files to their respective partitions, unlocking is a must. However, doing so will wipe off all the data and might make the warranty null and void. So keep these points in mind and then refer to our guide to Unlock Bootloader on any Motorola Device.
Install Android SDK
You will also have to install the Android SDK Platform Tools on your PC. These are the official ADB and Fastboot binaries provided by Google. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which we will be using throughout this guide.
Download Moto G7/G7 Plus Stock Firmware
Now download the stock firmware for your Moto G7/G7 Plus device. Make sure to download the one that corresponds to your region only.
Once downloaded, extract it inside the platform-tools folder. You will get the following firmware files, as shown in the below sections:
Moto G7 Firmware Files
Here are all the Moto G7 Firmware files that you would get upon extracting. As for this guide, I have downloaded the Android 10 Firmware for Moto G7 belonging to RETIN India. Here’s the complete name of the same: XT1962-6_RIVER_RETIN_10_QPUS30.52-16-2-7-7_cid50_subsidy-DEFAULT_regulatory-XT1962-6-INDIA_CFC.
Moto G7 Plus Firmware Files
Likewise, you will get the following files after extracting the G7 Plus Firmware. I have used the RETAIL build based on Android 10. The complete firmware name is RETAIL/LAKE_RETAIL_10_QPWS30.61-21-18-5_subsidy-DEFAULT_regulatory-DEFAULT_CFC.
Boot Moto G7/G7 Plus to Fastboot Mode
You will now have to boot your Moto G7/G7 Plus to Fastboot Mode so that you could flash firmware via Fastboot Commands and unbrick it. If you are able to access your device and are just looking to manually flash the firmware, then use the below steps to boot your device to Fastboot. However, if your device is in a bootloop or soft-bricked, then you will have to use the device-specific hardware key combinations to boot your device to Fastboot.
- Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
- Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
- Type in the following command in the CMD window to boot your device to Fastboot Mode
adb reboot bootloader
- Moto G7/G7 Plus will now be booted to Fastboot Mode and you may now flash the stock firmware to unbrick it.
Flash Moto G7 Stock Firmware via Fastboot Commands
Just copy-paste the below fastboot command on the CMD window that you have opened in the platform-tools folder. Make sure to execute one command at a time, rather than copy-pasting and executing all the commands at one go. Also copy paste these commands in the exact same order as mentioned. The below commands are for Moto G7 codenamed River and should not be used on any other device. [Moto G7 Plus Commands are in the next section]
fastboot flash partition gpt.bin fastboot flash bootloader bootloader.img fastboot flash modem NON-HLOS.bin fastboot flash fsg fsg.mbn fastboot flash dsp adspso.bin fastboot flash logo logo.bin fastboot flash boot boot.img fastboot flash dtbo dtbo.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 system_b system_b.img_sparsechunk.0 fastboot flash system_b system_b.img_sparsechunk.1 fastboot flash system_b system_b.img_sparsechunk.2 fastboot flash vendor vendor.img_sparsechunk.0 fastboot flash vendor vendor.img_sparsechunk.1 fastboot flash vendor vendor.img_sparsechunk.2 fastboot flash oem oem.img fastboot flash oem_b oem_other.img fastboot erase userdata fastboot erase DDR fastboot oem fb_mode_clear
Flash Moto G7 Plus Stock Firmware via Fastboot Commands
Copy-paste the below commands in the CMD window that you have opened in the platform-tools folder. The below commands are for Moto G7 Plus codenamed Lake and should not be used on any other device.
fastboot flash partition gpt.bin fastboot flash bootloader bootloader.img fastboot flash modem NON-HLOS.bin fastboot flash fsg fsg.mbn fastboot flash bluetooth BTFM.bin fastboot flash dsp dspso.bin fastboot flash logo logo.bin fastboot flash boot boot.img fastboot flash dtbo dtbo.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_b system_other.img fastboot flash vendor vendor.img_sparsechunk.0 fastboot flash vendor vendor.img_sparsechunk.1 fastboot flash oem oem.img fastboot flash oem_b oem_other.img fastboot erase carrier fastboot erase userdata fastboot erase DDR fastboot oem fb_mode_clear
So this was all from this guide on how to unbrick Moto G7 and G7 Plus via Fastboot Commands. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.