Post Reply

Moto X - re-locking bootloader

OP Czechnolog

18th April 2014, 11:26 AM   |  #1  
Czechnolog's Avatar
OP Senior Member
Flag Prague
Thanks Meter: 53
 
349 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Guys,

do you have any RELIABLE script for going back to STOCK ROM - with re-locking bootloader as well?

I created this, but it does NOT work on my Moto X (XT1052 - GB RETAIL)
(It worked only on my Moto G, but not Moto X.)

It showed some error like "No valid PIV block in SP for system" when I wanted to restore the GB RETAIL ROM from this source:
http://sbf.droid-developers.org/phone.php?device=14

Thanks.

===
::Set our default parameters
@ECHO off

SET fastboot=fastboot.exe
%fastboot% devices
%fastboot% oem lock begin
%fastboot% flash partition gpt.bin
%fastboot% flash motoboot motoboot.img
%fastboot% flash logo Moto-logo.bin
%fastboot% flash boot boot.img
%fastboot% flash recovery recovery.img
%fastboot% flash system system.img
%fastboot% flash modem NON-HLOS.bin
%fastboot% erase modemst1
%fastboot% erase modemst2
%fastboot% flash fsg fsg.mbn
%fastboot% erase cache
%fastboot% erase userdata
%fastboot% oem lock
pause
18th April 2014, 04:27 PM   |  #2  
KidJoe's Avatar
Senior Member
Flag Thorndale/Romansville, PA
Thanks Meter: 839
 
2,067 posts
Join Date:Joined: Aug 2008
More
post the XML for the ROM you want to use.

also, what ROM & Android version is on your phone now?
19th April 2014, 07:20 AM   |  #3  
Czechnolog's Avatar
OP Senior Member
Flag Prague
Thanks Meter: 53
 
349 posts
Join Date:Joined: Apr 2012
Donate to Me
More
xml
Thanks for reply.

1. XML from STOCK ROM is in the attachment.
Source: http://sbf.droid-developers.org/phone.php?device=0

2. I am using this almost stock ROM: http://forum.xda-developers.com/moto...ocked-t2715488
19th April 2014, 02:04 PM   |  #4  
KidJoe's Avatar
Senior Member
Flag Thorndale/Romansville, PA
Thanks Meter: 839
 
2,067 posts
Join Date:Joined: Aug 2008
More
Quote:
Originally Posted by JaroslavHruska

Thanks for reply.

1. XML from STOCK ROM is in the attachment.
Source: http://sbf.droid-developers.org/phone.php?device=0

2. I am using this almost stock ROM: http://forum.xda-developers.com/moto...ocked-t2715488

Wait. I'm a little confused.

I read #2 saying your using the rom from that thread... so are you saying that you were running that GPE rom from that thread, but are trying to get back to stock by flashing the rom/SBF that goes with the RETAIL-GB_GHOST_KLA20.16-2.16_cid7_CFC_1FF_v2.xml you posted?

If so, after unzipping the "RETAIL-GB_GHOST..." SBF, you'd want to try the following commands from the folder where you unzipped the SFB after booting the phone to fastboot/bootloader mode....

Option 1 (based on Moto's web site and the XML you posted)

mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
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 clogo
mfastboot oem lock
mfastboot reboot <- only if phone doesn't reboot after reporting the relock was successful

Option 2: (based on some threads here on XDA, and the XML you posted)


mfastboot oem lock begin
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
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 clogo
mfastboot oem lock
mfastboot reboot <- only if phone doesn't reboot after reporting the relock was successful


Try option 1 first. If it doesn't work, try option 2.

NOTE: by Mfastboot, I mean the Moto modified version of fastboot, not the one that comes with the standard Android SDK/Platform Tools. The moto modified Fastboot.exe can sometimes be found in a windows folder inside an SBF, or you can download from -> http://mark.cdmaforums.com/X-STUFF/Mfastboot-4.4.zip
Last edited by KidJoe; 19th April 2014 at 02:13 PM.
The Following User Says Thank You to KidJoe For This Useful Post: [ View ]
7th September 2014, 08:00 PM   |  #5  
Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Jun 2011
Thanks A LOT from a desperate noob. This helped me a lot
Post Reply Subscribe to Thread

Tags
bootloader, lock, moto, re-lock
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Moto X Q&A by ThreadRank