Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,111 Members 47,689 Now Online
XDA Developers Android and Mobile Development Forum

Moto X - re-locking bootloader

Tip us?
 
Czechnolog
Old
#1  
Czechnolog's Avatar
Senior Member - OP
Thanks Meter 53
Posts: 348
Join Date: Apr 2012
Location: Prague

 
DONATE TO ME
Default Moto X - re-locking bootloader

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
Fan of Minimalism & Functionality / Vyznavac minimalismu & funkcnosti.
https://twitter.com/JaroslavHruska
 
KidJoe
Old
#2  
KidJoe's Avatar
Senior Member
Thanks Meter 740
Posts: 1,904
Join Date: Aug 2008
Location: Thorndale/Romansville, PA
post the XML for the ROM you want to use.

also, what ROM & Android version is on your phone now?
aka Mark_Venture

My Moto X tips and info

Currently using Verizon Moto X Developer Edition on my personal line.. But I have too many devices to choose from for work and personal... For the full list click -> HERE <-

Sign up for Dropbox -> HERE
 
Czechnolog
Old
#3  
Czechnolog's Avatar
Senior Member - OP
Thanks Meter 53
Posts: 348
Join Date: Apr 2012
Location: Prague

 
DONATE TO ME
Default 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
Fan of Minimalism & Functionality / Vyznavac minimalismu & funkcnosti.
https://twitter.com/JaroslavHruska
 
KidJoe
Old
(Last edited by KidJoe; 19th April 2014 at 02:13 PM.)
#4  
KidJoe's Avatar
Senior Member
Thanks Meter 740
Posts: 1,904
Join Date: Aug 2008
Location: Thorndale/Romansville, PA
Quote:
Originally Posted by JaroslavHruska View Post
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
aka Mark_Venture

My Moto X tips and info

Currently using Verizon Moto X Developer Edition on my personal line.. But I have too many devices to choose from for work and personal... For the full list click -> HERE <-

Sign up for Dropbox -> HERE
The Following User Says Thank You to KidJoe For This Useful Post: [ Click to Expand ]
Tags
bootloader, lock, moto, re-lock
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes