FORUMS
Remove All Ads from XDA

Solution to flash stock rom(factory image) via fastboot and locking the bootloader..

453 posts
Thanks Meter: 202
 
Post Reply Email Thread
Hey Guys,
I recently had hardbricked my potter device.. Was unable to flash any rom, not even stock rom and I didnt find any thread in this forum which could have helped me.
I unbricked my device, flashed the stock rom and locked the bootloader,
The following steps will also get you unbrick your device... So, I would like to share the steps with all of you.
Note that this isnt only for unbricking, this can be done by any user who wants to flash stock rom and lock their bootloader.

Step 1: Download your potter rom from the following link: https://mirrors.lolinet.com/firmware...ficial/RETAIL/
"POTTER_RETAIL_7.0_NPNS25.137-33-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip" download the following zip file.

Step 2: Download Minimal adb and fastboot from the following link: https://androidfilehost.com/?fid=745425885120698566

Step 3: Install Minimal adb and fastboot and extract the downloaded rom to the same folder where you have installed Minimal And fastboot package.

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

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

Step 6: 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 7: Now Copy the following code and paste it to your command prompt:

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 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

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

Step 9: 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 10: Reboot again into your bootloader.

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

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

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

Step 13: Reboot your device...

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


Please do comment if this works for you too and if you find any issues...

Thank you!!
All the Best!!
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	5162
Size:	118.8 KB
ID:	4307984   Click image for larger version

Name:	Untitled1.jpg
Views:	5080
Size:	119.0 KB
ID:	4307985   Click image for larger version

Name:	Untitled2.jpg
Views:	5064
Size:	127.2 KB
ID:	4307987  
Attached Files
File Type: txt commands.txt - [Click for QR Code] (898 Bytes, 2380 views)
File Type: txt bootloader lock commands.txt - [Click for QR Code] (353 Bytes, 1692 views)
The Following 21 Users Say Thank You to rishivg For This Useful Post: [ View ] Gift rishivg Ad-Free
 
 
20th October 2017, 03:30 AM |#2  
acejavelin's Avatar
Recognized Contributor
Flag Bismarck, ND
Thanks Meter: 3,294
 
Donate to Me
More
Quote:
Originally Posted by rishivg

fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7

The quoted lines are redundant (surely they gave you an error since they don't exist in the G5+ firmware)

Otherwise, pretty standard Moto stuff... interesting that in 5th gen stuff you can lock after only flashing system sparsechunks, almost all previous devices required a complete flash with wipe to relock. https://firmware.center/firmware/Mot...%20Plus/Stock/ is another good source for stock factory ROM's (it is the official repo of FirmwareTeam), and Minimal ADB and Fastboot has a lots of "hacks" out there, so it is best to only reference the original source: https://forum.xda-developers.com/sho....php?t=2317790

I am extremely familiar with previous Moto device, but am curious on this device what is the bootloader status number after relocking with this method and do you still get the unlocked warning screen after relocking like on previous Moto devices?
The Following User Says Thank You to acejavelin For This Useful Post: [ View ] Gift acejavelin Ad-Free
20th October 2017, 01:16 PM |#3  
Senior Member
Thanks Meter: 297
 
More
Hi,

Great if this guide works (not tested by me). However, it sounds viable.

In any case, I suggest to put the original device and retail versions witht the link of the firmware. For example:
- XT1680 & retus: "POTTER_RETAIL_7.0_NPNS25.137-33-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip"

This is necessary. For example my is XT1685 and RETEU, then this file is not for me!
21st October 2017, 03:19 AM |#4  
Junior Member
Thanks Meter: 0
 
More
Not working. Its says cant be downgrade.
21st October 2017, 05:53 AM |#5  
Junior Member
Thanks Meter: 0
 
More
No does not work with the XT 1685 and reteu
21st October 2017, 06:57 AM |#6  
OP Senior Member
Flag navi mumbai
Thanks Meter: 202
 
More
Quote:
Originally Posted by surjeet.vishwas

Not working. Its says cant be downgrade.

what is your model number?
21st October 2017, 07:04 AM |#7  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by rishivg

what is your model number?

Xt1686 but i download another stock rom
21st October 2017, 02:58 PM |#8  
OP Senior Member
Flag navi mumbai
Thanks Meter: 202
 
More
Quote:
Originally Posted by surjeet.vishwas

Xt1686 but i download another stock rom

okay that is why it gave you error, try with the file that is mentioned in the post
21st October 2017, 04:26 PM |#9  
Senior Member
Thanks Meter: 205
 
More
This only works if you are on a previous or the exact same build. If you have already installed the August ota atm you can't relock the bootloader.
21st October 2017, 06:49 PM |#10  
OP Senior Member
Flag navi mumbai
Thanks Meter: 202
 
More
Quote:
Originally Posted by Gingernut78

This only works if you are on a previous or the exact same build. If you have already installed the August ota atm you can't relock the bootloader.

yes exactly! you ll need to flash the whole previous build again...
21st October 2017, 06:52 PM |#11  
Senior Member
Thanks Meter: 205
 
More
Quote:
Originally Posted by rishivg

yes exactly! you ll need to flash the whole previous build again...

You can flash a previous build but it won't lock the bootloader that is the problem.
Post Reply Subscribe to Thread

Tags
factory image, lock bootloader, stock, unbrick

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes