FORUMS

How to Root the LG G4 and Install TWRP Recovery – XDA TV

A rooting method has finally been found for the flagship LG G4. In this … more

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Moto X - re-locking bootloader

368 posts
Thanks Meter: 54
 
By Czechnolog, Senior Member on 18th April 2014, 11:26 AM
Post Reply Subscribe to Thread Email Thread
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
Recognized Contributor
Flag Thorndale/Romansville, PA
Thanks Meter: 1,502
 
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: 54
 
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
Recognized Contributor
Flag Thorndale/Romansville, PA
Thanks Meter: 1,502
 
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 2 Users Say Thank You to KidJoe For This Useful Post: [ View ]
7th September 2014, 08:00 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Thanks A LOT from a desperate noob. This helped me a lot
4th November 2014, 08:11 AM |#6  
Junior Member
Thanks Meter: 0
 
More
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