Custom ROMs are good for playing God with your phone. But, it will give you a hard time when you break something beyond the recovery point, trust me, I am telling this for a lot of experience. You might also want to sell your phone at some point for which you might need it to be in its default form.
So, let’s bring back your phone to its original avatar.
Steps:
- Make sure you have Motorola drivers installed.
- Install ADB and Fastboot. 15 Seconds ADB Installer works fine.
- Download Moto G5 Plus Stock ROM. I downloaded POTTER_RETAIL_8.1.0_OPS28.85-17_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml. If you want to try a different version than this one, GOOD LUCK, YOU ARE ON YOUR OWN.
- Turn off your phone and reboot to bootloader mode by pressing ‘Volume Down + Power Button’.
- Connect your phone to your computer via USB.
- Open a terminal and run the following command to check if your device shows up. If it does, you are good to go.
fastboot devices
- Extract downloaded stock ROM zip file.
- Navigate to the extracted folder in terminal and run following commands:
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 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 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
- Your device will reboot to its true form. You can stop here if you don’t want to relock the bootloader.
- To relock the bootloader, reboot your device to bootloader mode.
- Run following commands in the terminal:
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 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 boot boot.img fastboot oem lock
- I AM BACK. That’s what your device will tell you.
I don’t have any VOLTE issue and also it didn’t mess up my IMEI number. So, I can confirm that these steps worked perfectly in my case.
NOTE:
I AM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE, you won’t probably :).
4 Comments
would you be able to shed some light as to how to navigate to directories in command prompt. im linux illiterate currently
Hi, sorry for responding SUPER LATE. You might already have figured that out. In case anybody in future needs some info about navigation between folders in Linux – https://www.lifewire.com/linux-commands-for-navigating-file-system-4027320
Thanks
Sure, I can try. I don’t have the phone with me right now. But I can definitely dig things up for you.
Working to clean up an old, US Moto G5Plus,
it was rooted.
Phone shows bootloader is locked.
I get “(bootloader) Permission denied”
when trying to erase customize and clogo.
I tried to run the relock sequence anyway and got “Check ‘Allow OEM Unlock’ in Android Settings… at any “oem” flash.
TIA