Moto G5 Plus – Install Stock ROM 8.1.0 & Lock Bootloader

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:

  1. Make sure you have Motorola drivers installed.
  2. Install ADB and Fastboot. 15 Seconds ADB Installer works fine.
  3. 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.
  4. Turn off your phone and reboot to bootloader mode by pressing ‘Volume Down + Power Button’.
  5. Connect your phone to your computer via USB.
  6. 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
  7. Extract downloaded stock ROM zip file.
  8. 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
  9. Your device will reboot to its true form. You can stop here if you don’t want to relock the bootloader.
  10. To relock the bootloader, reboot your device to bootloader mode.
  11. 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
  12. 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 :).

Join the ConversationLeave a reply

Your email address will not be published. Required fields are marked *

Comment*

Name*

Website

4 Comments

  1. would you be able to shed some light as to how to navigate to directories in command prompt. im linux illiterate currently

  2. Sure, I can try. I don’t have the phone with me right now. But I can definitely dig things up for you.

  3. Dave Roberts

    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