Flash Moto G5S plus with locked bootloader

moto-g5s-plus-stock-romRecently my moto g5S plus got stuck on moto screen and I was flash with this method and this got worked on my phone. Now my phone was completely working and its now running on android nougat 7.1.2. and its running on stock ROM.

So this is the following steps to unbrick your device… So, I would like to share all the steps with all of you.
Note that this isn’t only for unbricking, this can be done by any user who wants to flash moto g5S plus stock ROM with the locked bootloader.


  • make sure your device was charged more than 85%
  • must need to use the original cable of this phone
  • you required a windows 64-bit computer
  • you required to back up your device this process will erase all the stored data from your phone.


how to flash stock ROM in moto G5S plus with locked bootloader

Step 1: Install Minimal ADB and fast boot and extract the downloaded rom to the same folder where you have installed Minimal And fast boot package.

Step 2: After extracting open command prompt in that folder (where you have extracted the rom/ the ADB and fastboot folder)

Step 3: Now boot your phone into your bootloader by pressing volume down+ power button at the same time.

Step 4: Type the following in your command prompt: fastboot devices
If it detects your device move to the next step, if it does not then you will have to install drivers for your device.

Step 5: Now Copy the following code and paste it to your command prompt:

mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase logo
mfastboot oem fb_mode_clear
mfastboot reboot

Step 6: This will completely wipe your data and install stock 7.1.2 on your potter device. Note that this does not lock your bootloader.

Step 7: Boot your device to check if it boots and if it works…. now if you want to lock your bootloader move to the next step.

Step 8: Reboot again into your bootloader.

Step 9: Again follow the step 4, step 5 and step 6.

Step 10: Now paste the following commands in the command prompt:

mfastboot oem lock
mfastboot oem lock
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash boot boot.img
mfastboot oem lock

Step 11: Reboot your device…

In this way you will be able to move to stock rom and lock your bootloader..

This method will works for 5 different problems of moto G5S plus

  1. moto G5S plus black screen solution
  2. moto G5S plus stuck on moto logo screen
  3. moto G5S plus dead solution
  4. moto G5S plus stuck in recovery
  5. moto G5S plus restart problem

**********Do at your own risk****************

Comments are closed.