[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Outfield303:
Disclaimer :

I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
YOU are choosing to make these modifications,
and if you point the finger at me for messing up your device, I will laugh at you.
and[COLOR="Red"] I am also not responsible for anything happens as a result of flashing these files[/COLOR]

Hey Guys,

Here are the Stock Firmwares for potter

Lets Proceed :

1) Install Minimal ADB and Fastboot

https://www.androidfilehost.com/?fid=745425885120698566

2) Extract stock firmware zip

3) Now copy all the stuff that is in this zip into the folder where you extract the firmware.

4) Turn on ADB debugging from dev options menu and use 'adb reboot-bootloader' (Without quotes) in cmd to reboot your phone into boot-loader mode

5) Open the extracted firmware folder then press SHIFT+right click in the folder where you extract the firmware and select 'open command window here' option

6) and then Paste the following commands and hit Enter :

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 dsp adspso.bin
fastboot flash oem oem.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 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

↑

This Script will not Re-Lock Your Boot-loader

But if you want to Re-lock your bootloader, then use the following commands: (Thanks to [MENTION=5486547]Nirbhay2[/MENTION] and [MENTION=7138346]aSaro12[/MENTION])

fastboot oem lock
fastboot oem lock
fastboot flash oem oem.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 boot boot.img
fastboot oem lock

And After Flashing it Please Re-flash the whole firmware again :

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 dsp adspso.bin
fastboot flash oem oem.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 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

But if you Don't want to do it manually, Here's the automated BAT script for you;

Just copy and paste it to the extracted folder (Thanks to [MENTION=5854865]Tech_Savvy[/MENTION]) : Download Here

This Script will not Re-lock the Boot-loader

----

You can Skip GPT and Boot-loader Partitions if you want

But Keep in mind that You Cannot DOWNGRADE These 2 Partitions

And if you try to do so, then you'll Possibly end up with HardBrick

You will need the appropriate version of the firmware according to your device version

SO PROCEED WITH CAUTION

Firmware Download Links :

1) NPN25.137-67-5 for XT1686 (Indian Varient)

Download Directly from Motorola Servers

Mirror 1 -pCloud

Mirror 2 -Google Drive

Mirror 3 -Dropbox

---

2) NPN25.137-35-5 for all Amazon (US) variants : Link N/A

and NPNS25.137-83 for

Non-US

Amazon Variant : Link N/A

and for the Non-Amazon Variants NPN25.137-83 : Link N/A

---

3) NPNS25.137-35-5 for Retail GB varient (Thanks to skooter32 for info) Link N/A

And NPN25.137-83 : Link N/A

---

4) NPN25.137-15 for Brazil-Mexico varient (XT1681 - XT1683) Link N/A

-----

Choose Carefully which one to flash
​

​

Special Thanks to rikk and [MENTION=5383629]anuraag.neo[/MENTION] For Capturing Indian varient zip!​

if you like my work then please hit that THANKS ? Button!​