Moto X - re-locking bootloader - Moto X Q&A

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

post the XML for the ROM you want to use.
also, what ROM & Android version is on your phone now?

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-x/development/fxz-xt1060-google-play-edition-unlocked-t2715488

JaroslavHruska said:
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-x/development/fxz-xt1060-google-play-edition-unlocked-t2715488
Click to expand...
Click to collapse
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

Thanks A LOT from a desperate noob. This helped me a lot

help
Czechnolog said:
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-x/development/fxz-xt1060-google-play-edition-unlocked-t2715488
Click to expand...
Click to collapse
Any luck on moto x?

Related

[Q] Moto X T-Mobile Dev: sp space not enough error

My phone is a T-Mobile DEV Moto x. Unlocked bootloader. Have been flash with the 4.4.2 rom of ROGER and Retailed Taiwan.
After flashed with Retailed Taiwan, I flash it back to T-Mobile 4.4.2 and get this 'sp space not enough error' when flashing the system (fastboot flash system system.img). My phone can boot fine with the T-Mobile 4.4.2 system.
I redo the whole flash process as below:
SET fastboot=fastboot.exe
%fastboot% getvar max-download-size
%fastboot% oem fb_mode_set
%fastboot% flash partition gpt.bin
%fastboot% flash motoboot motoboot.img
%fastboot% flash logo 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% erase customize
%fastboot% erase clogo
%fastboot% oem fb_mode_clear
pause
Still get the same error when flashing the system. I can backup and restore the system with TWRP recovery without any problem.
Should it be concerned? How can I get rid of this error?
jerryclho said:
My phone is a T-Mobile DEV Moto x. Unlocked bootloader. Have been flash with the 4.4.2 rom of ROGER and Retailed Taiwan.
After flashed with Retailed Taiwan, I flash it back to T-Mobile 4.4.2 and get this 'sp space not enough error' when flashing the system (fastboot flash system system.img). My phone can boot fine with the T-Mobile 4.4.2 system.
I redo the whole flash process as below:
SET fastboot=fastboot.exe
%fastboot% getvar max-download-size
%fastboot% oem fb_mode_set
%fastboot% flash partition gpt.bin
%fastboot% flash motoboot motoboot.img
%fastboot% flash logo 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% erase customize
%fastboot% erase clogo
%fastboot% oem fb_mode_clear
pause
Still get the same error when flashing the system. I can backup and restore the system with TWRP recovery without any problem.
Should it be concerned? How can I get rid of this error?
Click to expand...
Click to collapse
you need to use mfastboot for the system
Code:
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase userdata
fastboot erase cache
fastboot reboot
if you need the mfastboot file check out this thread and look at the returning to stock section it has a link for mfastboot
http://forum.xda-developers.com/moto-x/general/ref-how-to-root-4-4-links-guides-t2603358
Thanks for the input.
Yes, I flash the system with mfastboot and get this error.
At PC side, no error and the writing finished without error. The error only showed at the phone.
This happened after I flashed the 4.4.2 RetailTaiwan(Blur_Version.161.44.34.ghost_row.AsiaRetail.en.03)
I just wonder could this caused by the new bootloader of RetailTaiwan 4.4.2?
My bootloader ver 30.B4

[Q][RESOLVED] Simple way to return to stock 1092 ?

Hello,
I would know what is the simplest way to back to stock on my XT-1092 EU version (french) ?
I have rooted my phone with multitool so the build.prop is modified and I also backed to 1095's stock rooted one time.
I downloaded RETEUALL_XT1092_4.4.4_KXE21.187-42_cid7_CFC.xml.zip, should I use mfastboot and should I return to 1095's stock unrooted with multitool before this ?
Thanks for your help.
Finally I followed these instructions and it's clean and works perfectly :
http://forum.xda-developers.com/moto-x-2014/help/xt1092-nandroid-fimware-t2932763/post56595801
Flesh one command at a time using mfastboot.
mfastboot download from here and copy it into the firmware after you've unzipped:
https://www.dropbox.com/s/lkuy6f4mat...ot-v2.rar?dl=0
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_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
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 reboot
Click to expand...
Click to collapse
Just waiting for the Lollipop official release for Europe !

No changes after flashing stock rom

Hello There,
today i tried flashing a stock rom on moto g2 currently runniing 4.4.4 RETAILDSDSALL_XT1068_4.4.4_KXB21.85-23_cid7_CFC.xml.zip
i was successfully able to se msg like sending and done while i was pasting this commands
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
but when my phone restarted it was on same old lock screen wallpaper apps nothing changed at all??
pleas help me all the process were successfully finished with done!!! msg but at the end phone was on same condition before flashing please help

[BRICK?] Moto G 8GB XT1064

Hello XDA!
- Canadian Moto G 2014 XT1064 (8 GB)
- Bootloader Locked
- Unable to enable USB debugging since "bricked"
1) I downloaded Motorola Drivers, fastboot, mfastboot v2, RETUAWS_XT1064_5.0.2_LXB22.46-28_cid9_CFC.xml.zip
2) My Moto G was able to go into boot loader mode, but now it won't.
3. I was trying to:
mfastboot oem lock begin
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img - it fails on this step -> something about a failed partition
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
Now my device won't even turn on (can't go into boot loader mode)
Any suggestions?!!? Let's fix this together
NEVER FLASH STOCK FIRMWARE ON A LOCKED BOOTLOADER !
UNLOCK bootloader first and then only flash stock firmware via fastboot mode by PC.
Try going to Service Center, maybe they will have to change the motherboard of your G2.

XT1092 Flashing "No command" at boot after attempt to restore to stock

I have decided to sell my Moto X and so I decided that I would restore it to stock firmware before I let anyone else take it over.
Everything on it (Pictures etc) is already transferred to my computer and deleted from the phone, so no worries about that.
To start with I had the bootloader unlocked, was rooted and running Nexus Experience.
I downloaded a factory image (VICTARA_RETEU_XT1092_5.1_LPE23.32-25.1_cid7_CFC.xml) I found here on XDA,
and flashed it manually as follows:
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_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
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 reboot
Then I get the warning that the bootloader has been unlocked. At first it got stuck there, but after forcing it to
shut down and trying again it gets past it and instead it starts flashing the android figure laying on it's back with a lid open
and a red hazard sign above it, telling me "No command". This appears for about 0.1 seconds every fourth second.
So here I am now, the phone is still flashing this message and it seems I can't really turn it off. I can (Sometimes, with a little
luck) reach fastboot mode, but whatever I choose from there takes me to the bootloader warning and the "No command" message.
Is there anyone that can guide me through this so I can get it up and running again and hopefully back to stock firmware?
I'm guessing you missed
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
Did the same thing the other day.
Re flash with all sparsechunk files. I'm on 1095 so there was 7 for me. Not sure about 1092.
I still had the error after. I rebooted into bootloader then selected factory and it worked.
Good luck
---------- Post added at 12:22 AM ---------- Previous post was at 12:19 AM ----------
I also didn't use these comands
mfastboot flash partition gpt.bin
mfastboot erase customize
mfastboot erase clogo
and after
mfastboot flash motoboot motoboot.img
I used
mfastboot reboot bootloader
I'm not sure if those commands are needed. Just wasn't in the tutorial I followed
moreadon said:
I'm guessing you missed
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
Did the same thing the other day.
Re flash with all sparsechunk files. I'm on 1095 so there was 7 for me. Not sure about 1092.
I still had the error after. I rebooted into bootloader then selected factory and it worked.
Good luck
---------- Post added at 12:22 AM ---------- Previous post was at 12:19 AM ----------
I also didn't use these comands
mfastboot flash partition gpt.bin
mfastboot erase customize
mfastboot erase clogo
and after
mfastboot flash motoboot motoboot.img
I used
mfastboot reboot bootloader
I'm not sure if those commands are needed. Just wasn't in the tutorial I followed
Click to expand...
Click to collapse
I did miss those, but only when I wrote this thread. Fixed that now.
I'm gonna give your method a try in just a minute!
So I did like @moreadon said:
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_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
I tried adding "mfastboot reboot bootloader" after "mfastboot flash motoboot motoboot.img" as well, but that failed.
Anyway, the result was exactly the same as before, except for that - just as @moreadon said - when I booted into fastboot mode and chose "Factory" it instantly gave me the Motorola boot logo and it was up and running faster than ever before. It's a success!
Quick fix, but I'm not used to using fastboot, so I'm very thankful for the help!
Qwerty1208 said:
So I did like @moreadon said:
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_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
I tried adding "mfastboot reboot bootloader" after "mfastboot flash motoboot motoboot.img" as well, but that failed.
Anyway, the result was exactly the same as before, except for that - just as @moreadon said - when I booted into fastboot mode and chose "Factory" it instantly gave me the Motorola boot logo and it was up and running faster than ever before. It's a success!
Quick fix, but I'm not used to using fastboot, so I'm very thankful for the help!
Click to expand...
Click to collapse
Glad it worked!

Categories

Resources