ToqAN Fixes Android 5.0 Notification Bug on Qualcomm Toq

The Qualcomm Toq is probably one of the lesser known smartwatches on the market … more

How to Root and Unlock the Google Nexus 6 on a Mac – XDA TV

In the past, XDA Developer TV Producer droidmodd3rx has shown you how to … more

Set Up Your MediaTek Device with Comprehensive Beginner’s Guide

As can be seen with the use of MediaTek chips in Android One devices … more

Sony Updates AOSP Sources to Android 5.0.1

Just a few days ago, Sony did an utterly fantastic job by pushing out numerous device trees for … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Moto X - re-locking bootloader

OP Czechnolog

18th April 2014, 12:26 PM   |  #1  
Czechnolog's Avatar
OP Senior Member
Flag Prague
Thanks Meter: 53
 
352 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, 05:27 PM   |  #2  
KidJoe's Avatar
Recognized Contributor
Flag Thorndale/Romansville, PA
Thanks Meter: 957
 
2,275 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, 08:20 AM   |  #3  
Czechnolog's Avatar
OP Senior Member
Flag Prague
Thanks Meter: 53
 
352 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, 03:04 PM   |  #4  
KidJoe's Avatar
Recognized Contributor
Flag Thorndale/Romansville, PA
Thanks Meter: 957
 
2,275 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 03:13 PM.
The Following 2 Users Say Thank You to KidJoe For This Useful Post: [ View ]
7th September 2014, 09: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
4th November 2014, 09:11 AM   |  #6  
Junior Member
Thanks Meter: 0
 
13 posts
Join Date:Joined: Oct 2014
help
Quote:
Originally Posted by Czechnolog

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

Any luck on moto x?
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