Soft bricked XT1052 - Moto X Q&A

Soft bricked when trying to flash stock 5.1 back from CM13. Somehow managed to wipe the entire phone and now all I have access to are fastboot and TWRP recovery. I have no ROM ZIPs to access in TWRP since internal storage was wiped. I tried ADB sideload but says it can't mount /data/. My computer recognises the phone as a fastboot device but not as an ADB device.
Is there any coming back from this?

I've downloaded the retail GB stock image file for XT1052 but I can't flash the partition as I just get error 'update gpt_main version failed' 'preflash validation failed for GPT'

Flash stock via mfastboot.
Try this link http://mark.cdmaforums.com/MotoX-ReturnToStock.html.
Proceed to option 5.
Sent from my XT1060 Dev Ed

varunpilankar said:
Flash stock via mfastboot.
Try this link http://mark.cdmaforums.com/MotoX-ReturnToStock.html.
Proceed to option 5.
Sent from my XT1060 Dev Ed
Click to expand...
Click to collapse
I've downloaded the RetGB for 5.1 for XT1052 from here: https://firmware.center/firmware/Motorola/Moto X (1st gen-2013)/Stock/XT1052/
But it seems to be missing a number of key files that are described in option 5 of the link you posted. Am I missing something? I'm also still getting errors each time I try to flash the partition except now CMD is just showing:
"target max-download-size: 768MB error: cannot load 'gpt.bin': no error. Any ideas? Thanks.
My only other thought at this point is to try and flash a ROM in recovery using USB-OTG. Could that work? For example, if I download stock ROM or even the CM 14 I had on previously before everything got wiped and put that on an external drive and flashed in TWRP?

varunpilankar said:
Flash stock via mfastboot.
Try this link http://mark.cdmaforums.com/MotoX-ReturnToStock.html.
Proceed to option 5.
Sent from my XT1060 Dev Ed
Click to expand...
Click to collapse
I just moved cmd.exe into my platform tools folder where everything else is and tried again to flash the partition. Instead this time I get:
C:\Android-SDK\platform-tools>mfastboot flash partition gpt.bin
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'partition' (32 KB)...
OKAY [ 0.335s]
writing 'partition'...
FAILED (remote failure)
finished. total time: 1.328s
And then on the phone itself in the fastboot screen it shows:
"downgraded security version. update gpt_main version failed. preflash verification failed for GPT'. I thought this would mean the bootloader I'm trying to flash would represent a downgrade but I checked against the info.txt file in the recovery image zip and it says 30.BE which matches the 30.BE in my fastboot screen...

OK I've now got an OS. Managed to reinstall CM14 using usb-otg. Figured that was the safest bet given it was the last OS installed.
Problem I now have is that I can't get any service (I could previously on CM14 before all this happened). Is it possible that when I managed to completely wipe the phone that I would the relevant modem/radio files?
Thanks

Try downloading stock file from
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
fastboot method is mentioned in the above link.
Replace fastboot by mfastboot with all its necessary components in place.
Sent from my XT1060 Dev Ed

varunpilankar said:
Try downloading stock file from
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
fastboot method is mentioned in the above link.
Replace fastboot by mfastboot with all its necessary components in place.
Click to expand...
Click to collapse
That doesn't have my version - xt1052.
Would this be to return my mobile service? I've got back on CM14 but all my IMEI and sim data has wiped so I can't get service. Not sure if I need to use the 5.1 factory image I have and just flash modem files. Seen elsewhere that I could try
Fastboot flash modem NON-hlos.bin
Fastboot erase modemst1
Fastboot erase modemst2
Fastboot flash fsg fsg.mbn
Would that do the trick do you reckon?

Take a nandroid backup & try doing it!
There is also a 5.1 stock zip Rom & try that too, might be helpful.
Sent from my XT1060 Dev Ed

Hi,
You'll eventually find your way back to 5.1 or even 4.4.4. I've broken just about every rule while I was doing some dev work on a moto x 2013 and from a beta of cm14, managed to pretty quickly get all the way back to 4.4.4 (which for me, is by far the best for a) battery and b) motion detection and c) everything works).
There was nothing after 5.1 for 2013, so there's no way you couldn't at least go back to 5.1, but there's always one way that works for you better than the rest. If that last thing didn't work, then try "liveroy's" way as in here: http://forum.xda-developers.com/moto-x/moto-x-qa/guide-faq-how-to-downgrade-5-1-to-4-4-4-t3182118 .. That way was actually based on an xt1052. I doubt if the radio files are going to make much difference heading in that direction, but are worth a shot before doing this.
I followed the first post in there and was un-"bricked" in ~20 minutes or so. Cheers // good luck,

hachamacha said:
Hi,
You'll eventually find your way back to 5.1 or even 4.4.4. I've broken just about every rule while I was doing some dev work on a moto x 2013 and from a beta of cm14, managed to pretty quickly get all the way back to 4.4.4 (which for me, is by far the best for a) battery and b) motion detection and c) everything works).
There was nothing after 5.1 for 2013, so there's no way you couldn't at least go back to 5.1, but there's always one way that works for you better than the rest. If that last thing didn't work, then try "liveroy's" way as in here: http://forum.xda-developers.com/moto-x/moto-x-qa/guide-faq-how-to-downgrade-5-1-to-4-4-4-t3182118 .. That way was actually based on an xt1052. I doubt if the radio files are going to make much difference heading in that direction, but are worth a shot before doing this.
I followed the first post in there and was un-"bricked" in ~20 minutes or so. Cheers // good luck,
Click to expand...
Click to collapse
Thanks. Will give that a look as I would like to know how to easily go back to stock in the event of catastrophe - I've been trying to flash back using both fastboot and TWRP but it fails every time due to 'downgrade security' etc. even though I know I'm using the same bootloader as in the stock ROM.
I managed to get my IMEI and service back by flashing
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot reboot
I've now got Resurrection Remix on as I thought I'd see if that would fix my service issues (it didn't - so still had to do the steps above). But have managed to learn a lot over the past few days to bring my phone back from death! I'm mainly used to Sony phones so this has been an experience.

Related

KitKat Update Crashed My Moto X - Unrecoverable?

Yesterday my moto x alerted me that the KitKat update had been downloaded and was ready to install. I selected INSTALL and the installation began. About a minute into it, it kicked me to the bootloader with the message, "Failed to hab check for recovery: 0x56. Boot up failed".
Also see my post at androidcentral.com at forums.androidcentral.com/moto-x/336036-kitkat-crashed-my-moto-x-unrecoverable.html
Note that my moto x has never been rooted.
forums.androidcentral.com/attachments/moto-x/92779d1384906583-kitkat-crashed-my-moto-x-unrecoverable-kitkat_error.jpg
I selected "Recovery" and it rebooted and attempted to re-install, but then I was met with a image very similar to this except it said "ERROR":
forums.androidcentral.com/attachments/moto-x/92780d1384906685-kitkat-crashed-my-moto-x-unrecoverable-android-error.jpg
Then a few seconds later it rebooted again and now it just gets stuck at the Motorola logo:
forums.androidcentral.com/attachments/moto-x/92781d1384906724-kitkat-crashed-my-moto-x-unrecoverable-moto_x_boot_logo_featured_small.jpg
If I try any of the other options in the boot loader, the behavior is the same.. it gets stuck at the Motorola logo. Yesterday it sat that way for 4 hours before the battery died.
Today I tried connecting it to my computer via USB. My Mac doesn't appear to recognize that it's been connected even though the drivers have been installed. In a Windows VM with MDM it recognized the first time I connected it, but the MDM icon promptly disappeared from the status bar.
I spoke with Verizon tier 2 tech support yesterday and they didn't seem very knowledgeable - the person I spoke with didn't even know what KitKat is.
Surprisingly, I thought I had set up the Motorola data backup to the cloud, but verizon tech support said I must not have enabled it. So my biggest worry is that I've lost all my data (pictures/videos/contacts/etc...).
I'm hoping that somebody on this forum might have some advice for me.
Thanks,
Chris
cbridgers, if you had some battery you could try download 4.2.2 sbf file and recover through RSD Lite.
xpc21 said:
cbridgers, if you had some battery you could try download 4.2.2 sbf file and recover through RSD Lite.
Click to expand...
Click to collapse
Thanks for your response. I could certainly do that.. but I first want to make sure I've pursued every avenue for recovering my data before I reflash/wipe.
cbridgers said:
Thanks for your response. I could certainly do that.. but I first want to make sure I've pursued every avenue for recovering my data before I reflash/wipe.
Click to expand...
Click to collapse
cbridgers, that error happened to me while i was trying to flash through RSD Lite the leaked version of Kitkat. Because it was only to AT&T phones, it gave me that error cause i didnt have an unlocked bootloader. So what i did was flash back the 4.2.2 and for my surprise the phone was with all my config and data, nothing was erased.
Few suggestions...
cbridgers said:
Thanks for your response. I could certainly do that.. but I first want to make sure I've pursued every avenue for recovering my data before I reflash/wipe.
Click to expand...
Click to collapse
I had the same issue. I was able to recover it once, but recreated the scenario for good measures. My best guess is this issue is free space related (you should have at least 3gb free), but I'll confirm later today.
In any case, try the following remedies (in order of severity):
** I'm assuming you have RSD Lite, fastboot, ADB and the Moto X drivers installed and working **
-- Solution #1 - Easiest --
1) Go into Fastboot mode (power button and vol. down)
2) In your console, type in "fastboot erase cache"
- This solved the issue in one of my test scenarios. It's the easiest and least severe to implement
-- Solution #2 - Medium --
1) Download the stock SBF firmware for your pre-KitKat ROM (sbf.droid-developers.org)
2) Unzip the ROM and copy the files to your fastboot directory
3) Go into Fastboot mode (power button and vol. down) and type in:
fastboot erase cache
fastboot erase customize
fastboot erase clogo
fastboot flash partition gpt.bin
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
- This should preserve your user data and works in most circumstances, depending on how far the KitKat install proceeded before failing -
-- Solution #3 - Severe - Factory Reset --
1) Download the stock SBF firmware for your pre-KitKat ROM (sbf.droid-developers.org).
2) Unzip the ROM and edit the XML file. Delete the step operation that says "getVar". It should be the first line under step operations.
3) Use RSD lite to flash the firmware
- This will erase EVERYTHING. Say goodbye to your data. And porn.
Hope you get to recover using only the first two steps. If not, rinse then repeat. Good luck!
xpc21 said:
cbridgers, if you had some battery you could try download 4.2.2 sbf file and recover through RSD Lite.
Click to expand...
Click to collapse
SamSpadeXX said:
I had the same issue. I was able to recover it once, but recreated the scenario for good measures. My best guess is this issue is free space related (you should have at least 3gb free), but I'll confirm later today.
In any case, try the following remedies (in order of severity):
** I'm assuming you have RSD Lite, fastboot, ADB and the Moto X drivers installed and working **
-- Solution #1 - Easiest --
1) Go into Fastboot mode (power button and vol. down)
2) In your console, type in "fastboot erase cache"
- This solved the issue in one of my test scenarios. It's the easiest and least severe to implement
-- Solution #2 - Medium --
1) Download the stock SBF firmware for your pre-KitKat ROM (sbf.droid-developers.org)
2) Unzip the ROM and copy the files to your fastboot directory
3) Go into Fastboot mode (power button and vol. down) and type in:
fastboot erase cache
fastboot erase customize
fastboot erase clogo
fastboot flash partition gpt.bin
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
- This should preserve your user data and works in most circumstances, depending on how far the KitKat install proceeded before failing -
-- Solution #3 - Severe - Factory Reset --
1) Download the stock SBF firmware for your pre-KitKat ROM (sbf.droid-developers.org).
2) Unzip the ROM and edit the XML file. Delete the step operation that says "getVar". It should be the first line under step operations.
3) Use RSD lite to flash the firmware
- This will erase EVERYTHING. Say goodbye to your data. And porn.
Hope you get to recover using only the first two steps. If not, rinse then repeat. Good luck!
Click to expand...
Click to collapse
Thanks for your detailed instructions! Solution #1 didn't work for me. Solution #2 gives me the following error when I run "fastboot flash system system.img":
load_file: could not allocate 870593756 bytes
error: cannot load 'system.img'
I'm not sure I want to try Solution #3 yet. May try to talk to Motorola first.
Thanks again for the detailed advice!
Chris
SamSpadeXX said:
I had the same issue. I was able to recover it once, but recreated the scenario for good measures. My best guess is this issue is free space related (you should have at least 3gb free), but I'll confirm later today.
In any case, try the following remedies (in order of severity):
** I'm assuming you have RSD Lite, fastboot, ADB and the Moto X drivers installed and working **
-- Solution #1 - Easiest --
1) Go into Fastboot mode (power button and vol. down)
2) In your console, type in "fastboot erase cache"
- This solved the issue in one of my test scenarios. It's the easiest and least severe to implement
-- Solution #2 - Medium --
1) Download the stock SBF firmware for your pre-KitKat ROM (sbf.droid-developers.org)
2) Unzip the ROM and copy the files to your fastboot directory
3) Go into Fastboot mode (power button and vol. down) and type in:
fastboot erase cache
fastboot erase customize
fastboot erase clogo
fastboot flash partition gpt.bin
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
- This should preserve your user data and works in most circumstances, depending on how far the KitKat install proceeded before failing -
-- Solution #3 - Severe - Factory Reset --
1) Download the stock SBF firmware for your pre-KitKat ROM (sbf.droid-developers.org).
2) Unzip the ROM and edit the XML file. Delete the step operation that says "getVar". It should be the first line under step operations.
3) Use RSD lite to flash the firmware
- This will erase EVERYTHING. Say goodbye to your data. And porn.
Hope you get to recover using only the first two steps. If not, rinse then repeat. Good luck!
Click to expand...
Click to collapse
OK, I got past the previous error by increasing the RAM allocated to my Windows VM. Now I get the following error when running "fastboot flash system system.img":
sending 'system' (850189 KB)...
(bootloader) Data size exceeds download buffer
FAILED (remote failure)
finished. total time: 0.313s
cbridgers said:
Thanks for your detailed instructions! Solution #1 didn't work for me. Solution #2 gives me the following error when I run "fastboot flash system system.img":
load_file: could not allocate 870593756 bytes
error: cannot load 'system.img'
I'm not sure I want to try Solution #3 yet. May try to talk to Motorola first.
Thanks again for the detailed advice!
Chris
Click to expand...
Click to collapse
Make sure you are using the newest fastboot files, the older ones do not chunk the system image and it is too large to flash.
New fastboot for Mac -- > http://www.teamblackhat.net/Downloads/Darwin.zip
New fastboot for Windows --> http://www.teamblackhat.net/Downloads/fastboot.zip
Use the house if moto save data option you can fxz using rsd or fastboot and it will not erase data at all. I have used it many times works great.
SamSpadeXX said:
I had the same issue. I was able to recover it once, but recreated the scenario for good measures. My best guess is this issue is free space related (you should have at least 3gb free), but I'll confirm later today.
Click to expand...
Click to collapse
How sure are you about this?
Also, I had xt1058 (americamovil) with TMO firmware with the camera update (unlocked BL) and I flashed stock vzw firmware (with the camera update). No problems after a full wipe. The OTA was downloading too slow so I downloaded the OTA zip file in other thread. When I tried to install the update via stock recovery i got this message:
"/modem/image/dsps.b00" has unexpected contents.
Installation aborted
Click to expand...
Click to collapse
So i waited for the normal OTA and it just says installation failed, and i had it just wiped so i can't be free space.
Finally I flashed the 4.4 TMO leak
Try this
fastboot oem fb_mode_clear
fastboot reboot-bootloader
then take all the files from the first OTA sbf and flash them in order
does that work?
waiflih said:
How sure are you about this?
Also, I had xt1058 (americamovil) with TMO firmware with the camera update (unlocked BL) and I flashed stock vzw firmware (with the camera update). No problems after a full wipe. The OTA was downloading too slow so I downloaded the OTA zip file in other thread. When I tried to install the update via stock recovery i got this message:
So i waited for the normal OTA and it just says installation failed, and i had it just wiped so i can't be free space.
Finally I flashed the 4.4 TMO leak
Click to expand...
Click to collapse
There are 5 parts that need to be stock, that is the only thing that needs to be done.
system, boot, recovery, modem, fsg.
the only way to know why it is failing is to sideload, load from recovery, or check the update error log.
If it were me I'd just fastboot all five of those partitions and take the update.
jimmydafish said:
There are 5 parts that need to be stock, that is the only thing that needs to be done.
system, boot, recovery, modem, fsg.
the only way to know why it is failing is to sideload, load from recovery, or check the update error log.
If it were me I'd just fastboot all five of those partitions and take the update.
Click to expand...
Click to collapse
I dont know where to find modem files for stock vzw
Enviado desde mi XT1052
waiflih said:
I dont know where to find modem files for stock vzw
Enviado desde mi XT1052
Click to expand...
Click to collapse
They are in the FXZ file named NON-HLOS.bin
Thx! I didnt know those were modem related. Can i flash back the modem files to tmo or att firmware?
Enviado desde mi XT1052
waiflih said:
Thx! I didnt know those were modem related. Can i flash back the modem files to tmo or att firmware?
Enviado desde mi XT1052
Click to expand...
Click to collapse
Well what are you trying to do? but if unlocked you can flash anything you want. I would stay far away from flashing any bootloader, tz, gpt, or sbl files though.
Only flash those files I named before.
Yes, i only flash the files i know are safe to flash, i dont like to use rsdlite. Thx again
Enviado desde mi XT1052
I seem to have run into the same issue..
Any updates, OP?
Here's my thread: http://forum.xda-developers.com/showthread.php?p=47747140#post47747140
ekraincg said:
I seem to have run into the same issue..
Any updates, OP?
Here's my thread: http://forum.xda-developers.com/showthread.php?p=47747140#post47747140
Click to expand...
Click to collapse
I'm having the same problem with my T-Mo moto x I received yesterday. I tried the fastboot erase cache method. It works to the extent that I can boot back into 4.2.2 but I can't update or perform a factory reset from the settings menu.
When I give the command to fastboot erase cache the bootloader says 'get-var partition type' and 'erasing cache' however the bootloader never says 'cache erased' or any other confirmation message. Fastboot on the desktop does say 'cache erased' though.
Finally, I would try to flash the stock images but I can't seem to find them anywhere. Can someone point me to them please?

Can't flash recovery on my Moto x

I Can't flash recovery for my moto x, I have unlocked the bootloader and appears to me on fastboot: Device is UNLOCKED. Status Code:3
I don't know if this is right, but I can't flash a recovery in it.
Error:
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8030 KB)...
FAILED (data transfer failure (Unknown error))
finished. total time: 0.116s
I tested various recovery's but don't work.
Sorry for my bad english
Murilo900 said:
I Can't flash recovery for my moto x, I have unlocked the bootloader and appears to me on fastboot: Device is UNLOCKED. Status Code:3
I don't know if this is right, but I can't flash a recovery in it.
Error:
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8030 KB)...
FAILED (data transfer failure (Unknown error))
finished. total time: 0.116s
I tested various recovery's but don't work.
Sorry for my bad english
Click to expand...
Click to collapse
Are you using mfastboot? You should be..
Sent From Droid Ultra
In addition to mFastboot, make sure your battery is charged more than 80%
Caseyk621 said:
Are you using mfastboot? You should be..
Sent From Droid Ultra
Click to expand...
Click to collapse
KidJoe said:
In addition to mFastboot, make sure your battery is charged more than 80%
Click to expand...
Click to collapse
Yes,
I did on mfastboot and appears the same thing, and the battery is full, when I try to flash on moto x appears : getvar-download-size
Murilo900 said:
Yes,
I did on mfastboot and appears the same thing, and the battery is full, when I try to flash on moto x appears : getvar-download-size
Click to expand...
Click to collapse
What ROM is on your phone right now? Which recovery are you trying to flash?
What state was your phone in when you started trying to flash recovery?
KidJoe said:
What ROM is on your phone right now? Which recovery are you trying to flash?
What state was your phone in when you started trying to flash recovery?
Click to expand...
Click to collapse
The ROM on my phone is 4.4.2 KitKat, I tried to flash twrp recovery 2.6.3.1 and cwm recovery for motox
The state was the same, I unlocked bootloader, following tutorials on internet but I'm stuck on flash the recovery because this problem, I get this error and on my phone appears getvar-download-size, and Download Failed.
Murilo900 said:
The ROM on my phone is 4.4.2 KitKat, I tried to flash twrp recovery 2.6.3.1 and cwm recovery for motox
The state was the same, I unlocked bootloader, following tutorials on internet but I'm stuck on flash the recovery because this problem, I get this error and on my phone appears getvar-download-size, and Download Failed.
Click to expand...
Click to collapse
Ok.
Try the mfastboot from inside -> http://mark.cdmaforums.com/X-STUFF/Mfastboot-4.4.zip (will have to rename fastboot.exe to mfastboot.exe).. or from -> http://mark.cdmaforums.com/X-STUFF/ADB-MFASTBOOT.zip they are the ones I use and they have worked for me.
and is this the twrp you are using? -> http://goo.im/devs/Hashcode/motox/unlocked/twrp-2.6.3.1-ghost-4.4.img
Oh god! Thanks, this mfastboot you just send works!, I don't know if the problem was my mfastboot that I have here, but finally I flashed! Leveraging the topic can you suggest me some roms for moto x, and if you know some way to take off the boot the sign that the bootloader is unlocked blablabla, Anyway thank you.
Murilo900 said:
Oh god! Thanks, this mfastboot you just send works!, I don't know if the problem was my mfastboot that I have here, but finally I flashed! Leveraging the topic can you suggest me some roms for moto x, and if you know some way to take off the boot the sign that the bootloader is unlocked blablabla, Anyway thank you.
Click to expand...
Click to collapse
I run stock, unlocked and rooted, so I can't suggest an alternate roms.
As for the unlocked bootloader warning message... sure. there is a big thread -> http://forum.xda-developers.com/moto-x/themes-apps/moto-x-boot-logos-t2417961 start around post 150 of that thread for how to make your own... in a couple of hours I'll refresh this file -> http://mark.cdmaforums.com/X-STUFF/X-LogoBins.zip adding even more logo.bin files (i have about 7 or 8 more to test before I can re-zip and upload it)
HELP!!
I am at a loss. No matter what fastboot/mfastboot I use, no matter what YouTube video I follow, I can not flash recovery.
I get the same error as the OP. I tried the links posted a few posts up, it wont work.
I type the commands, I get the top error message (among others depending on the mfastboots I try) and then nothing.
I am truly at a loss.
Verizon Developer Moto X
4.4.2
Device is: Unlocked
Status Code: 3
In one video I watched it said that I needed to have it say Status Code:1. Is that where I am going wrong?
Any help would be greatly appreciated.
Thanks!!
n99hockey said:
I am at a loss. No matter what fastboot/mfastboot I use, no matter what YouTube video I follow, I can not flash recovery.
I get the same error as the OP. I tried the links posted a few posts up, it wont work.
I type the commands, I get the top error message (among others depending on the mfastboots I try) and then nothing.
I am truly at a loss.
Verizon Developer Moto X
4.4.2
Device is: Unlocked
Status Code: 3
In one video I watched it said that I needed to have it say Status Code:1. Is that where I am going wrong?
Any help would be greatly appreciated.
Thanks!!
Click to expand...
Click to collapse
What recovery are you trying to flash? Stock or other? Unlocked Status Code 3 is needed to flash an alternate or 3rd party recovery.
Besides the error listed in the first post, exactly what "others" do you see as error codes?
Things to try... (in no special order)
this mfastboot -> mfastboot-442.zip
re-download the recovery you are trying to flash
update your ADB and Platform Tools
There are several versions of TWRP that can work.
Unofficial TWRP 2.6.3.1 for 4.4 -> http://goo.im/devs/Hashcode/motox/unlocked/twrp-2.6.3.1-ghost-4.4.img
Unofficial TWRP 2.7.0.0 -> http://androidhosting.org/Devs/Dhacker29/MotoX/TWRP-2.7.0.0-moto_msm8960dt.img
Official TWRP 2.7.1.1 -> http://techerrata.com/browse/twrp2/ghost
of those, I've only used the 2.6.3.1 on my VZW Dev X with 4.4.2 and below.
KidJoe said:
What recovery are you trying to flash? Stock or other? Unlocked Status Code 3 is needed to flash an alternate or 3rd party recovery.
Besides the error listed in the first post, exactly what "others" do you see as error codes?
Things to try... (in no special order)
this mfastboot -> mfastboot-442.zip
re-download the recovery you are trying to flash
update your ADB and Platform Tools
There are several versions of TWRP that can work.
Unofficial TWRP 2.6.3.1 for 4.4 -> http://goo.im/devs/Hashcode/motox/unlocked/twrp-2.6.3.1-ghost-4.4.img
Unofficial TWRP 2.7.0.0 -> http://androidhosting.org/Devs/Dhacker29/MotoX/TWRP-2.7.0.0-moto_msm8960dt.img
Official TWRP 2.7.1.1 -> http://techerrata.com/browse/twrp2/ghost
of those, I've only used the 2.6.3.1 on my VZW Dev X with 4.4.2 and below.
Click to expand...
Click to collapse
Thanks for the reply.
However I should have known better, I changed the USB port and it worked just fine with the mfastboot I downloaded longer than I would like to admit before I posted my question.
</sigh>
Still can't flash custom recovery
I have a Verizon XT1060 Developer Edition. Unlocked bootloader. Drivers seem to be installed correctly, "Fastboot devices" identifies the phone. Battery is 90%+. Fastboot menu says "Device is unlocked. Status Code 3". I have tried different USB ports on the PC, different cables to connect the phone and just about every other variable that I can think of.
I have followed all of the suggestions listed in this post and I still cannot flash a custom recovery. I have tried multiple versions of TWRP, Fastboot, Mfastboot etc.. Here is the error message...
(bootloader) Variable not supported!
error: cannot open 'twrp-2.6.3.1-ghost-4.4.img'
Actually depending on the method I am trying at the time, fastboot mfastboot etc., I may get a couple of additional lines that mention Max download size etc. but it always starts with the bootloader comment and ends with "Cannot open......"
Searching for "(bootloader) Variable not supported!" returns a lot of hits but I have not found anything to clear the issue. Any help would be appreciated.
Ric214 said:
....Here is the error message...
(bootloader) Variable not supported!
error: cannot open 'twrp-2.6.3.1-ghost-4.4.img'
...
Click to expand...
Click to collapse
That usually means that mFastboot (or fastboot) can't find the IMG file on your PC.
My first question would be... does that file exist in your current directory/folder?
i.e... at the command prompt.. type dir *.img is the twrp file listed there? If no, that is your issue. change to the folder (directory) where the TWRP IMG file is, and try it.
It is there. Here is what I got.
C:\Users\Ric\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x86
_64-20140321\sdk\platform-tools>dir *.img
Volume in drive C is OS
Volume Serial Number is 76F9-C97B
Directory of C:\Users\Ric\Downloads\adt-bundle-windows-x86_64-20140321\adt-bund
le-windows-x86_64-20140321\sdk\platform-tools
06/13/2014 10:54 PM 8,417,280 openrecovery-twrp-2.7.1.1-ghost.img
06/03/2014 11:10 PM 10,090,496 twrp-2.6.3.1-ghost-4.4.img
2 File(s) 18,507,776 bytes
0 Dir(s) 426,324,336,640 bytes free
Since this has been driving me crazy for a couple of days I have several folders with different versions of Fastboot and Mfastboot in them along with some different versions of TWRP and CWM and I am getting the same error with all of them. This last time I just stuck the TWRP file in my platform -tools folder to try and make sure I had a good Fastboot file.
Thanks for the reply. If you have any other ideas I am eager to hear them.
Ric214 said:
It is there. Here is what I got.
C:\Users\Ric\Downloads\adt-bundle-windows-x86_64-20140321\adt-bundle-windows-x86
_64-20140321\sdk\platform-tools>dir *.img
Volume in drive C is OS
Volume Serial Number is 76F9-C97B
Directory of C:\Users\Ric\Downloads\adt-bundle-windows-x86_64-20140321\adt-bund
le-windows-x86_64-20140321\sdk\platform-tools
06/13/2014 10:54 PM 8,417,280 openrecovery-twrp-2.7.1.1-ghost.img
06/03/2014 11:10 PM 10,090,496 twrp-2.6.3.1-ghost-4.4.img
2 File(s) 18,507,776 bytes
0 Dir(s) 426,324,336,640 bytes free
Since this has been driving me crazy for a couple of days I have several folders with different versions of Fastboot and Mfastboot in them along with some different versions of TWRP and CWM and I am getting the same error with all of them. This last time I just stuck the TWRP file in my platform -tools folder to try and make sure I had a good Fastboot file.
Thanks for the reply. If you have any other ideas I am eager to hear them.
Click to expand...
Click to collapse
Had you made ANY prior modifications to your unit before now? Any possibility you used one of the previous root/write protect disable exploits, and THEN got the bootloader unlocked?
I've seen alot of users in this situation recently -thanks to middleman
I suggest you follow the 'return to stock' thread here: http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
You should flash the 4.4.2 VZW SBF file from here: http://sbf.droid-developers.org/phone.php?device=0
SBFing back to stock is very different from a Factory Reset in that it can actually repair a damaged filesystem, and even un-do any previous exploits you may have used.
There are 2 methods - many report that the "Manual Method" is easier than using RSD Lite. Either should work equally well, but pay close attention to the steps.
You will want to do a couple of things just a little bit differently. First, use mfastboot as suggested by KidJoe for ALL flashing commands.
Second, once your phone has been placed into bootloader mode (AP Fastboot), before you proceed with the fastboot commands listed under Manual Method, do this first:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
Your device should reboot back to the bootloader. NOW, proceed with the entire list of commands (using mfastboot for all of them). Yes, you will be flashing partition and motoboot again...don't worry. It is intentional.
After you have completed the rest of the steps, you will likely be able to flash TWRP (or custom recovery of your choice) without issue.
Let us know if this fixes your issues.
samwathegreat said:
Had you made ANY prior modifications to your unit before now? Any possibility you used one of the previous root/write protect disable exploits, and THEN got the bootloader unlocked?
I've seen alot of users in this situation recently -thanks to middleman
I suggest you follow the 'return to stock' thread here: http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
You should flash the 4.4.2 VZW SBF file from here: http://sbf.droid-developers.org/phone.php?device=0
SBFing back to stock is very different from a Factory Reset in that it can actually repair a damaged filesystem, and even un-do any previous exploits you may have used.
There are 2 methods - many report that the "Manual Method" is easier than using RSD Lite. Either should work equally well, but pay close attention to the steps.
You will want to do a couple of things just a little bit differently. First, use mfastboot as suggested by KidJoe for ALL flashing commands.
Second, once your phone has been placed into bootloader mode (AP Fastboot), before you proceed with the fastboot commands listed under Manual Method, do this first:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
Your device should reboot back to the bootloader. NOW, proceed with the entire list of commands (using mfastboot for all of them). Yes, you will be flashing partition and motoboot again...don't worry. It is intentional.
After you have completed the rest of the steps, you will likely be able to flash TWRP (or custom recovery of your choice) without issue.
Let us know if this fixes your issues.
Click to expand...
Click to collapse
I had not done any modifications prior to unlocking the bootloader but going back to stock is about the only thing that I could think of that I have not already tried. I will give this a shot tomorrow night and let you know how it went. Thanks for your help.
Ric214 said:
I had not done any modifications prior to unlocking the bootloader but going back to stock is about the only thing that I could think of that I have not already tried. I will give this a shot tomorrow night and let you know how it went. Thanks for your help.
Click to expand...
Click to collapse
One last thing I can suggest before return to stock:
Are you trying to flash the recovery -while booted into Android-? If so, you have to have USB Debugging enabled. Some users have experienced difficulty using fastboot while booted into Android even with USB debugging enabled.
----------------
You can try flashing from bootloader (AP Fastboot Mode) instead.
To do this, unplug the phone from USB. Power off the phone. Hold down VOL DOWN and power the phone back on. You should now be booted into bootloader.
Now plug the USB back in, and try:
mfastboot flash recovery twrp_filename.img
samwathegreat said:
One last thing I can suggest before return to stock:
Are you trying to flash the recovery -while booted into Android-? If so, you have to have USB Debugging enabled. Some users have experienced difficulty using fastboot while booted into Android even with USB debugging enabled.
----------------
You can try flashing from bootloader (AP Fastboot Mode) instead.
To do this, unplug the phone from USB. Power off the phone. Hold down VOL DOWN and power the phone back on. You should now be booted into bootloader.
Now plug the USB back in, and try:
mfastboot flash recovery twrp_filename.img
Click to expand...
Click to collapse
Thanks for the advice but I am not booted into Android. I started with the phone off and got into the bootloader exactly as you suggested. I will have some time over the next few days to flash back to stock and start over again. I will post the results. In the meantime if you think of anything else, let me know. Thanks for your help.
Ric214 said:
Thanks for the advice but I am not booted into Android. I started with the phone off and got into the bootloader exactly as you suggested. I will have some time over the next few days to flash back to stock and start over again. I will post the results. In the meantime if you think of anything else, let me know. Thanks for your help.
Click to expand...
Click to collapse
try shortening the path the IMG resides in...
i.e. make a folder off the root of drive C call it FLASH... drop the TWRP.img into c:\flash and try flashing it from there.

[Q] Cannot flash recovery (TWRP)

I just got a Moto X on Sprint, and after successfully unlocking the bootloader, I do not seem to be able to flash TWRP. The flash seems to go ok, but when I boot the device into recovery, its still the stock recovery. Im attempting to use the official openrecovery-twrp-2.7.1.1-ghost.img image. Ive tried using the standard fastboot on OSX and WIn7-64bit, and in both situations I get this output:
Code:
fastboot flash recovery openrecovery-twrp-2.7.1.1-ghost.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8220 KB)...
OKAY [ 0.749s]
writing 'recovery'...
OKAY [ 0.879s]
finished. total time: 1.629s
The variable not supported seems to be the 'getvar partition-type:recovery' command (based on the output on the phone).
I have also tried using the fastboot provided by Motorola with the same output and result. On the forums somewhere I found a link to an older moto-fastboot-osx command, which has slightly different output, but the same results:
Code:
moto-fastboot-osx64 flash recovery openrecovery-twrp-2.7.1.1-ghost.img
sending 'recovery' (8220 KB)... OKAY [ 0.787s]
writing 'recovery'... OKAY [ 0.909s]
What am I doing wrong?
Have you double checked that your oprnrecovery-twrp...img file is not corrupt? Make sure to check it against the md5 checksum.
Yes, I verified the MD5, it is correct.
slushpupie said:
I just got a Moto X on Sprint, and after successfully unlocking the bootloader, I do not seem to be able to flash TWRP. The flash seems to go ok, but when I boot the device into recovery, its still the stock recovery. Im attempting to use the official openrecovery-twrp-2.7.1.1-ghost.img image. Ive tried using the standard fastboot on OSX and WIn7-64bit, and in both situations I get this output:
Code:
fastboot flash recovery openrecovery-twrp-2.7.1.1-ghost.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8220 KB)...
OKAY [ 0.749s]
writing 'recovery'...
OKAY [ 0.879s]
finished. total time: 1.629s
The variable not supported seems to be the 'getvar partition-type:recovery' command (based on the output on the phone).
I have also tried using the fastboot provided by Motorola with the same output and result. On the forums somewhere I found a link to an older moto-fastboot-osx command, which has slightly different output, but the same results:
Code:
moto-fastboot-osx64 flash recovery openrecovery-twrp-2.7.1.1-ghost.img
sending 'recovery' (8220 KB)... OKAY [ 0.787s]
writing 'recovery'... OKAY [ 0.909s]
What am I doing wrong?
Click to expand...
Click to collapse
Just a few thoughts...forgive me if any of this sounds redundant, or obvious....
Just reading your initial post, I would assume that you had used one of the previous root exploits and/or Safestrap BEFORE you got the BL unlocked. If so, it would be necessary to flash the entire stock SBF, before you would be able to successfully flash TWRP recovery........but your OP says you JUST got the phone, which would lead me to believe you didn't use a previous root exploit. Did you receive it NEW? Because the original owner could certainly have used exploit/safestrap.
If any of this is possible, you should follow the "Return to Stock" thread (manual method is suggested - easier and faster) and flash the entire Sprint 4.4.2 SBF. THEN you should be able to successfully flash TWRP. As I have often stated, a full SBF to stock can actually REPAIR a corrupted / modified (exploit / safestrap) filesystem. A "Factory Reset" does not repair any corruption that may be present.
2nd thought: I've seen some people confuse the "bootloader" screen (AP Fastboot Mode) for recovery. From the bootloader screen, you have to arrow down to highlight recovery, and press volume up to boot into recovery.
Alternatively, you can do it from fastboot: just type fastboot reboot-recovery
Let us know if any of this is relevant or solves your issue. If everything else fails, doing a full SBF back to stock fixes all issues nearly 100% of the time.
Good Luck
samwathegreat said:
Just a few thoughts...forgive me if any of this sounds redundant, or obvious....
Just reading your initial post, I would assume that you had used one of the previous root exploits and/or Safestrap BEFORE you got the BL unlocked. If so, it would be necessary to flash the entire stock SBF, before you would be able to successfully flash TWRP recovery........but your OP says you JUST got the phone, which would lead me to believe you didn't use a previous root exploit. Did you receive it NEW? Because the original owner could certainly have used exploit/safestrap.
Click to expand...
Click to collapse
It was purchased used, and the original owner was not very tech savy, so I assumed it was fully stock (it appeared so at first glance, anyway).
samwathegreat said:
If any of this is possible, you should follow the "Return to Stock" thread (manual method is suggested - easier and faster) and flash the entire Sprint 4.4.2 SBF. THEN you should be able to successfully flash TWRP. As I have often stated, a full SBF to stock can actually REPAIR a corrupted / modified (exploit / safestrap) filesystem. A "Factory Reset" does not repair any corruption that may be present.
Click to expand...
Click to collapse
Ill give this a try and report back. Perhaps there is something weird going on in there...
samwathegreat said:
2nd thought: I've seen some people confuse the "bootloader" screen (AP Fastboot Mode) for recovery. From the bootloader screen, you have to arrow down to highlight recovery, and press volume up to boot into recovery.
Alternatively, you can do it from fastboot: just type fastboot reboot-recovery
Let us know if any of this is relevant or solves your issue. If everything else fails, doing a full SBF back to stock fixes all issues nearly 100% of the time.
Good Luck
Click to expand...
Click to collapse
Im familiar with Android enough to know the difference between the bootloader and recovery, but thanks for making sure.
slushpupie said:
It was purchased used, and the original owner was not very tech savy, so I assumed it was fully stock (it appeared so at first glance, anyway).
Ill give this a try and report back. Perhaps there is something weird going on in there...
Im familiar with Android enough to know the difference between the bootloader and recovery, but thanks for making sure.
Click to expand...
Click to collapse
Haha, yes, I was hesitant to suggest there may be confusion between bootloader and recovery.... Glad you were on top of that one...
The return to stock thread is located here: http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
Again, manual method is easier and faster.
You will flash the 4.4.2 Sprint SBF file from here: http://sbf.droid-developers.org/phone.php?device=0
If my first theory was correct, you wouldn't be the first person who received a used phone that had an exploit used on it. The devs make it pretty easy even for not-so-tech-savvy people with all the "one-click" rooting scripts and the like. Often times, the seller just assumes that a "factory reset" will un-do the modifications, but in the case of the Moto X (with all the Write Protect-disable exploits and safestrap), the modifications actually persist through a factory reset.
samwathegreat said:
Haha, yes, I was hesitant to suggest there may be confusion between bootloader and recovery.... Glad you were on top of that one...
The return to stock thread is located here: http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
Again, manual method is easier and faster.
You will flash the 4.4.2 Sprint SBF file from here: http://sbf.droid-developers.org/phone.php?device=0
Click to expand...
Click to collapse
Well, I followed the directions and it seemed to flash ok. Booted it up, wanted to activate (I canceled that- I dont have service on the phone yet), everything seemed normal. Went back to flash TWRP, same behavior as before. Any other ideas?
slushpupie said:
Well, I followed the directions and it seemed to flash ok. Booted it up, wanted to activate (I canceled that- I dont have service on the phone yet), everything seemed normal. Went back to flash TWRP, same behavior as before. Any other ideas?
Click to expand...
Click to collapse
A couple more: some individuals have reported that they had issues using a USB 3.0 port. If possible, use a USB 2.0 port to flash the recovery.
If you flashed ALL the partitions in the SBF file starting with gpt.bin (basically manually executed the commands in the XML file, IN ORDER), it -should- have worked.
You might also try flashing twrp from a different PC...
OR
You can try flashing TWRP 2.6.3.1 from here: http://forum.xda-developers.com/moto-x/development/recovery-unlocked-twrp-2-6-3-1-android-t2534850
This version is confirmed to work on all versions up to and including 4.4.2, so as long as you aren't on 4.4.3 yet, you can give this a shot.
And lastly, since I don't know exactly where you got the mfastboot binary, be sure to try the mfastboot binary linked in the 'return to stock' thread. That one is confirmed to work.
2 suggestions:
- try a different TWRP - I'm using a 2.7 that is referred to in one of the threads here
- after flashing > use the volume down button to highlight boot to recovery, and the volume up button to select (execute) that command ... my first time I tried the power button to select it and that doesn't work. I experienced some strange issues when trying to flash recovery if I didn't immediately boot into recovery (don't power down).
jasoraso said:
2 suggestions:
- try a different TWRP - I'm using a 2.7 that is referred to in one of the threads here
Click to expand...
Click to collapse
Ive tried a few, but will see if I can find some more to try. There seems to be no negative to trying them at this point.
jasoraso said:
- after flashing > use the volume down button to highlight boot to recovery, and the volume up button to select (execute) that command ... my first time I tried the power button to select it and that doesn't work. I experienced some strange issues when trying to flash recovery if I didn't immediately boot into recovery (don't power down).
Click to expand...
Click to collapse
The volume-key navigation is familiar to me (Ive had Android devices going back to the Samsung Moment), and I wasnt sure if I was getting into recovery or not since it just booted normally when I select recovery from the boot menu. However, when I specifically boot to recovery with 'adb reboot recovery' I get the tell-tale "No command" screen indicating I still have stock recovery.
slushpupie said:
Ive tried a few, but will see if I can find some more to try. There seems to be no negative to trying them at this point.
The volume-key navigation is familiar to me (Ive had Android devices going back to the Samsung Moment), and I wasnt sure if I was getting into recovery or not since it just booted normally when I select recovery from the boot menu. However, when I specifically boot to recovery with 'adb reboot recovery' I get the tell-tale "No command" screen indicating I still have stock recovery.
Click to expand...
Click to collapse
If you boot into stock recovery on Moto X, it shouldn't say "No command".... It should show "Dead Andy" - the broken android with the exclaimation point.
Are you trying to do this while android is booted? If so, unplug the USB, turn off the phone. Now hold down VOL DOWN and turn it back on. You should be on the bootloader screen (AP Fastboot mode). Plug the USB back in now
(^ I realize you probably already know the procedure, but good to have it here for others that might visit this thread)
Now VOL DOWN to recovery and VOL UP to boot it
What happens? Do you see Dead Andy?
I just tested the procedure on my phone (after flashing stock recovery back). After I select recovery and VOL UP to boot it, it takes less than 10 seconds for Dead Andy to appear. Pressing VOL UP + POWER brings up the stock recovery menu: reboot, apply update, wipe cache, etc. etc.
EDIT: I also just tried rebooting from within android as you stated you had done. After typing adb reboot bootloader, the phone promptly booted to the Dead Andy Stock Recovery screen.
Nowhere did it say "no command" on either the device itself, or the command prompt from which the adb command was executed...
samwathegreat said:
A couple more: some individuals have reported that they had issues using a USB 3.0 port. If possible, use a USB 2.0 port to flash the recovery.
Click to expand...
Click to collapse
My MacBook Pro only has USB3.0 ports. I would expect an issue to show some error, though (like in the transfer). It seems everything transfers just fine; it just doesn't seem to take.
samwathegreat said:
If you flashed ALL the partitions in the SBF file starting with gpt.bin (basically manually executed the commands in the XML file, IN ORDER), it -should- have worked.
Click to expand...
Click to collapse
It appeared the full SBF flashing process worked. It reset everything and prompted me for activation.
samwathegreat said:
You might also try flashing twrp from a different PC...
Click to expand...
Click to collapse
I dont really have anything different to try. Ive got another MBP, but its pretty much identical, and I get the same results when I try there. I have several VMs I can try- Ive tried with Win7-64bit (as mentioned in the original post) but that was the same too. I could try Linux too, if I get the time to set one up, but my gut says it wont be any different.
samwathegreat said:
You can try flashing TWRP 2.6.3.1 from here: http://forum.xda-developers.com/moto-x/development/recovery-unlocked-twrp-2-6-3-1-android-t2534850
This version is confirmed to work on all versions up to and including 4.4.2, so as long as you aren't on 4.4.3 yet, you can give this a shot.
Click to expand...
Click to collapse
Since I just reflashed back to the stock image, it is 4.4.2. Ive tried this version as well, with the same result.
samwathegreat said:
And lastly, since I don't know exactly where you got the mfastboot binary, be sure to try the mfastboot binary linked in the 'return to stock' thread. That one is confirmed to work.
Click to expand...
Click to collapse
Being on a Mac makes this a bit more challenging, but yes, I did try this in my Win7 virtual machine with the same results.
samwathegreat said:
If you boot into stock recovery on Moto X, it shouldn't say "No command".... It should show "Dead Andy" - the broken android with the exclaimation point.
Are you trying to do this while android is booted? If so, unplug the USB, turn off the phone. Now hold down VOL DOWN and turn it back on. You should be on the bootloader screen (AP Fastboot mode). Plug the USB back in now
(^ I realize you probably already know the procedure, but good to have it here for others that might visit this thread)
Now VOL DOWN to recovery and VOL UP to boot it
What happens? Do you see Dead Andy?
Click to expand...
Click to collapse
Yes, I see the dead andy image, with the no command message below him.
No, I am doing this from the bootloader. When I attempt to load recovery from the bootloader, I see the white unlocked warning image, then it goes and boots normally. Once into Android, I can issue 'adb reboot recovery' and that's when I see dead andy with the no command message. Confused yet? Cause I am.
samwathegreat said:
I just tested the procedure on my phone (after flashing stock recovery back). After I select recovery and VOL UP to boot it, it takes less than 10 seconds for Dead Andy to appear. Pressing VOL UP + POWER brings up the stock recovery menu: reboot, apply update, wipe cache, etc. etc.
EDIT: I also just tried rebooting from within android as you stated you had done. After typing adb reboot bootloader, the phone promptly booted to the Dead Andy Stock Recovery screen.
Nowhere did it say "no command" on either the device itself, or the command prompt from which the adb command was executed...
Click to expand...
Click to collapse
Im really at a loss then.. Ill try to restore the stock images again. Maybe I missed something the first go around.
slushpupie said:
Im really at a loss then.. Ill try to restore the stock images again. Maybe I missed something the first go around.
Click to expand...
Click to collapse
I suggest a slight variation:
After you extract the entire SBF file to the same folder where mfastboot resides:
First, boot to bootloader. Next, issue the following commands:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
Device should reboot right back to bootloader. Now issue these commands (we are going to use mfastboot for ALL commands, and YES, we are repeating gpt and motoboot again. this is intentional):
mfastboot oem fb_mode_set
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 config carrier sprint
mfastboot oem fb_mode_clear
mfastboot reboot
Lets see if we can flash TWRP now. I helped another user on a MAC with a similar issue, and this resolved it for him. I'm hopeful we will fix your issue as well.
samwathegreat said:
I suggest a slight variation:
After you extract the entire SBF file to the same folder where mfastboot resides:
First, boot to bootloader. Next, issue the following commands:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
Device should reboot right back to bootloader. Now issue these commands (we are going to use mfastboot for ALL commands, and YES, we are repeating gpt and motoboot again. this is intentional):
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
<...>
Lets see if we can flash TWRP now. I helped another user on a MAC with a similar issue, and this resolved it for him. I'm hopeful we will fix your issue as well.
Click to expand...
Click to collapse
That did it, thanks! I wonder what is going on that I had to flash partition and motoboot twice. In any event, Im off and running. Thanks again!
slushpupie said:
That did it, thanks! I wonder what is going on that I had to flash partition and motoboot twice. In any event, Im off and running. Thanks again!
Click to expand...
Click to collapse
GPT stands for GUID Partition Table.
We aren't quite sure why this method works with stubborn flashes, but this is the theory:
We think that if the partition table somehow gets corrupted, the bootloader enforces write protection (on some or all partitions) even if you are unlocked...
The trick is to just flash the partition table, and the bootloader images, then immediately reboot, so the bootloader can load the NON-Corrupt partition table. Once the system reboots, all subsequent partition flashes seem to 'stick' without issue. It seems to involve some sort of 'bug' in the write protection implementation.
Regardless, once it is fixed, so is the issue. You shouldn't need to double-flash any partitions after rebooting like we did this time. AFAIK, all the users who got fixed using the above procedure have reported no further problems.
Just remember to never flash a previous version of android without checking here first. Most users who have to undergo the above procedure tried to downgrade for some reason, and many of them ended up having to do the procedures listed in the "Unbrick" thread (Not fun...)
Glad it all worked out.
samwathegreat said:
GPT stands for GUID Partition Table.
We aren't quite sure why this method works with stubborn flashes, but this is the theory:
We think that if the partition table somehow gets corrupted, the bootloader enforces write protection even if you are unlocked...
The trick is to just flash the partition table, and the bootloader images, then immediately reboot, so the bootloader can load the NON-Corrupt partition table. Once the system reboots, all subsequent partition flashes seem to 'stick' without issue. It seems to involve some sort of 'bug' in the write protection implementation.
Click to expand...
Click to collapse
Makes sense. Given that the bootloader is the one area you cant easily fix if you screw up, I would add as much protection as possible too. Of course, I would also add error messages... Makes me wonder if there is some hard coded entries in the event the GTP gets screwed up. Has anyone attempted to inspect the gpt.bin file?
samwathegreat said:
Regardless, once it is fixed, so is the issue. You shouldn't need to double-flash any partitions after rebooting like we did this time. AFAIK, all the users who got fixed using the above procedure have reported no further problems.
Just remember to never flash a previous version of android without checking here first. Most users who have to undergo the above procedure tried to downgrade for some reason, and many of them ended up having to do the procedures listed in the "Unbrick" thread (Not fun...)
Glad it all worked out.
Click to expand...
Click to collapse
Good to know. I dont plan on doing anything fancy, just want root for TI backups, really. I guess Ill see how well flashing the bootloader works again when the 4.4.3 OTA comes around to my phone.

(USA) XT1064 2nd Gen please help me restore! No backup :(

I foolishly didn't create a backup. I know. Stupid of me.
I have a Moto G 2nd Gen model XT1064 (USA, purchased at Best Buy off contract, Single SIM). I can fastboot and I have TWRP recovery installed. I cannot find a rom that works however. Of all the .zips I've downloaded only one, a dual SIM UK version, boots. But it does not recognize my SIM or wifi chip. The others fail without giving me an error as to why.
UPDATE: This thread.... http://forum.xda-developers.com/moto-g-2014/general/restore-to-stock-t2873657 helped restore my wifi, though the firmware linked was a dual sim and I cannot enable my SIM card, the option is grayed out.
I have tried over the past day to try and get this to go back to its factory image with no luck at all. I have a Nexus 4, seeing as it has a toolkit and factory images readily available, its always easy to work on. This Moto G is a different story.
What do I need to get this back right? I may already have the files and not even realize it..
Thanks for any help!
canyoudig_it said:
I foolishly didn't create a backup. I know. Stupid of me.
I have a Moto G 2nd Gen model XT1064 (USA, purchased at Best Buy off contract, Single SIM). I can fastboot and I have TWRP recovery installed. I cannot find a rom that works however. Of all the .zips I've downloaded only one, a dual SIM UK version, boots. But it does not recognize my SIM or wifi chip. The others fail without giving me an error as to why.
UPDATE: This thread.... http://forum.xda-developers.com/moto-g-2014/general/restore-to-stock-t2873657 helped restore my wifi, though the firmware linked was a dual sim and I cannot enable my SIM card, the option is grayed out.
I have tried over the past day to try and get this to go back to its factory image with no luck at all. I have a Nexus 4, seeing as it has a toolkit and factory images readily available, its always easy to work on. This Moto G is a different story.
What do I need to get this back right? I may already have the files and not even realize it..
Thanks for any help!
Click to expand...
Click to collapse
Did you try the this one(Blur_Version.21.11.17.titan_retuaws.retuaws.en.US) from this site(http://sbf.droid-developers.org/phone.php?device=36)
edog11 said:
Did you try the this one(Blur_Version.21.11.17.titan_retuaws.retuaws.en.US) from this site
Click to expand...
Click to collapse
I have tried flashing it from TWRP. I get this error message...
Code:
Package expects build fingerprint of motorola/titan_retuaws/titan_umts:4.4.4/KXB21.85-17/23:user/release-keys or motorola/titan_retuaws/titan_umts:5.0/LXB22.39-6/5:user/release-keys; this device has motorola/titan-retaildsds/titan_umtsds:4.4.4/KXB21.85-14/9:user/release-keys.
E:Error executing updater binary in zip "/sdcard1/Blur_Version.21.11.17.titan_retuaws.retuaws.en.US.zip"
Error flashing zip "/sdcard1/Blur_Version.21.11.17.titan_retuaws.retuaws.en.US.zip"
Updating Partition details...
canyoudig_it said:
I have tried flashing it from TWRP. I get this error message...
Code:
Package expects build fingerprint of motorola/titan_retuaws/titan_umts:4.4.4/KXB21.85-17/23:user/release-keys or motorola/titan_retuaws/titan_umts:5.0/LXB22.39-6/5:user/release-keys; this device has motorola/titan-retaildsds/titan_umtsds:4.4.4/KXB21.85-14/9:user/release-keys.
E:Error executing updater binary in zip "/sdcard1/Blur_Version.21.11.17.titan_retuaws.retuaws.en.US.zip"
Error flashing zip "/sdcard1/Blur_Version.21.11.17.titan_retuaws.retuaws.en.US.zip"
Updating Partition details...
Click to expand...
Click to collapse
You cannot use custom recovery(TWRP) to flash this.
You need to follow this and you will lose data.
Unlock the bootloader.
Download Blur_Version.21.11.17.titan_retuaws.retuaws.en.US from droid-developers dot org slash phone device 36
Unzip that file into your fastboot folder
Enter Fastboot on your phone (how to: hold power and volume down until your device turns off, then hold it another 5-10 seconds, then let go and you should see a basic text screen)
Use these commands on your computer while being in the fastboot folder.
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_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
You should now be at stock Android 4.4.4 with an unlocked bootloader.
edog11 said:
You cannot use custom recovery(TWRP) to flash this.
You need to follow this and you will lose data.
Unlock the bootloader.
Download Blur_Version.21.11.17.titan_retuaws.retuaws.en.US from droid-developers dot org slash phone device 36
Unzip that file into your fastboot folder
Enter Fastboot on your phone (how to: hold power and volume down until your device turns off, then hold it another 5-10 seconds, then let go and you should see a basic text screen)
Use these commands on your computer while being in the fastboot folder.
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_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
You should now be at stock Android 4.4.4 with an unlocked bootloader.
Click to expand...
Click to collapse
THANK YOU! That did it! Everything works as it did before. You were a great help!
canyoudig_it said:
THANK YOU! That did it! Everything works as it did before. You were a great help!
Click to expand...
Click to collapse
Glad you were able to get you phone working again.
Warriors, come out and plaay.
EDIT: Found a link from another XDA thread... here's the direct download from Mega: https://mega.co.nz/#!mlIz0KCQ!lVXP5PCLRV9MRxwRdhEbKesEoq9UCPs4Lv8ec1Nx0ZY
edog11 said:
Did you try the this one(Blur_Version.21.11.17.titan_retuaws.retuaws.en.US) from this site(http://sbf.droid-developers.org/phone.php?device=36)
Click to expand...
Click to collapse
Anyone have another link/mirror? SBF Droid site is down.
While I did download it from another site, it seems a number of files are missing from the download. HEre's what I'm getting:
Kelleys-Mac-mini:Blur_Version.21.11.17.titan_retuaws.retuaws.en.US kelley$ ./fastboot flash motoboot motoboot.img
error: cannot load 'motoboot.img'
Kelleys-Mac-mini:Blur_Version.21.11.17.titan_retuaws.retuaws.en.US kelley$ cd /Users/kelley/Desktop/Blur_Version.21.11.17.titan_retuaws.retuaws.en.US\ 01-12-18-009
Kelleys-Mac-mini:Blur_Version.21.11.17.titan_retuaws.retuaws.en.US 01-12-18-009 kelley$ ./fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (295 KB)...
OKAY [ 0.066s]
writing 'logo'...
OKAY [ 0.108s]
finished. total time: 0.174s
Kelleys-Mac-mini:Blur_Version.21.11.17.titan_retuaws.retuaws.en.US 01-12-18-009 kelley$ ./fastboot flash boot boot.img
error: cannot load 'boot.img'
Kelleys-Mac-mini:Blur_Version.21.11.17.titan_retuaws.retuaws.en.US 01-12-18-009 kelley$ ./fastboot flash recovery recovery.img
error: cannot load 'recovery.img'
Kelleys-Mac-mini:Blur_Version.21.11.17.titan_retuaws.retuaws.en.US 01-12-18-009 kelley$ ./fastboot flash recovery recovery.img
Click to expand...
Click to collapse
The SBF Droid website is down... and only gives an error message stating the following:
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
Click to expand...
Click to collapse
My phone is unusable at this point; not bricked but might as well be as I can't make/receive phone calls nor texts. Can anyone PLEASE send me a valid link to a what's noted above? I accidentally flashed the wrong file to my phone and absolutely need to get it back to stock. THANK YOU... more than you'll EVER know!
thewinelover said:
While I did download it from another site, it seems a number of files are missing from the download. HEre's what I'm getting:
The SBF Droid website is down... and only gives an error message stating the following:
My phone is unusable at this point; not bricked but might as well be as I can't make/receive phone calls nor texts. Can anyone PLEASE send me a valid link to a what's noted above? I accidentally flashed the wrong file to my phone and absolutely need to get it back to stock. THANK YOU... more than you'll EVER know!
Click to expand...
Click to collapse
Sir..if you don't find a known good download soon..let me know, I can upload to my Drive..
Sent from my:
4.4.4_23.3.24 XT1080M
Droid Maxx Developer Edition
http://waynekent.com/page6.html
"Praise Jah" YOU people.!
Oh gosh that would be SO HELPFUL!!! Would you NWKENT? You might just save my phone!
PS - I'm a girl...
NWKENT said:
Sir..if you don't find a known good download soon..let me know, I can upload to my Drive..
Sent from my:
4.4.4_23.3.24 XT1080M
Droid Maxx Developer Edition
http://waynekent.com/page6.html
"Praise Jah" YOU people.!
Click to expand...
Click to collapse
thewinelover said:
Oh gosh that would be SO HELPFUL!!! Would you NWKENT? You might just save my phone!
PS - I'm a girl...
Click to expand...
Click to collapse
Here you go young lady....
RETUAWS_XT1064_4.4.4_KXB21.85-17_cid9_CFC.xml
Linky
EDIT: Here's the md5 checksum. ALWAYS verify these prior to installing.
b44ffe73058ebb8b85c853151f8c3e36
*RETUAWS_XT1064_4.4.4_KXB21.85-17_cid9_CFC.xml.zip
@fathergweedo, You sir, are the BOMB!! Thank you so much!!!!
thewinelover said:
@fathergweedo, You sir, are the BOMB!! Thank you so much!!!!
Click to expand...
Click to collapse
Once you get back to full stock 4.4.4, take a look at this so you won't need to do that again. This (TWRP) will also backup your PDS should you somehow bork the MEID or anything later...
Cheap insurance
EDIT: TWRP doesn't backup PDS by default. You must select it prior to the backup. Just thought I should clarify that.
fathergweedo said:
Once you get back to full stock 4.4.4, take a look at this so you won't need to do that again. This (TWRP) will also backup your PDS should you somehow bork the MEID or anything later...
Cheap insurance
Click to expand...
Click to collapse
And we're BAAAAAA-AAAAACK!!! With the right file, it's easy peasy, lemon squeezy!
You BETCHA! All of my apps are restoring now and as soon as they finish, that will be my next task!!! @fathergweedo, I cannot thank you enough. I'm thinking you're in the states, and if you are, you'll understand what I mean.... you brought new meaning to a HAPPY THANKSGIVING!!!! Cheers!!!
Thx!
fathergweedo said:
Once you get back to full stock 4.4.4, take a look at this so you won't need to do that again. This (TWRP) will also backup your PDS should you somehow bork the MEID or anything later...
Cheap insurance
Click to expand...
Click to collapse
THX so much! Had the same problem as the OP
fathergweedo said:
Here you go young lady....
RETUAWS_XT1064_4.4.4_KXB21.85-17_cid9_CFC.xml
Linky
EDIT: Here's the md5 checksum. ALWAYS verify these prior to installing.
b44ffe73058ebb8b85c853151f8c3e36
*RETUAWS_XT1064_4.4.4_KXB21.85-17_cid9_CFC.xml.zip
Click to expand...
Click to collapse
Thank you so much I spent the last 3 hours trying to recover from a softbrick and this did the trick. :good:

Bricked Moto X 2014? Fastboot flashing, ADB Sideloading, Nothing Seems To Work

Bricked Moto X 2014? Fastboot flashing, ADB sideloading, nothing seems to work
Hello,
I have this Moto X 2nd gen (XT1092), and I wanted to install an Android Marshmallow OS last weekend.
I did it according to this article on XDA: http://forum.xda-developers.com/moto-x-2014/general/install-image-marshmallow-6-0-xt-1097-t3266858 , where an install image plus small install description is posted.
This is the first ‘non-standard’ thing I tried with this phone. It is not rooted, nor did I make any changes in the settings for developers, apart from enabling USB debugging. The device was running an stock version of Android 5.1, which I received the normal way(just an automatic system update).
Using some 'fastboot flash....' commands via the PC, the image should be installed. However, upon trying the first command: 'fastboot flash partition gpt.bin', the terminal responded with:
-------------------------
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.003s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.102s
-------------------------
Afterwards, my phone didnt boot to android anymore. The only thing it does is put me in "AP Fastboot Flash Mode (S)"
I have tried installing different stock Motorola images/zips for my phone, in order to try to get it back to how it was, but for every fastboot flash I want to do (except for the boot logo), I get the preflash validation error.
I also tried sideloading images via ADB via the recovery mode, bit this doesn’t work either:
When I try "adb sideload <IMAGE>.zip", it starts to send the file to the phone, and the phone receives it. Very quickly after completing the transfer, though, the phone can say two things (depending on what .zip file I try):
1.
Finding update package...
Opening update package...
Verifying update package...
Installing update...
Package expects build fingerprint of motorola/victara_reteu/victara:5.0/LXE22.46-19.1/1:user/release-keys or motorola/victara_reteu/victara:5.1/LPE23.32-25.1/1:user/release-keys; this device has motorola/victara_reteu/victara:4.4.4/KXE21.187-42/41:user/re
Installation aborted.
2.
Finding update package...
Opening update package...
Verifying update package...
Installation aborted.
One thing to note is that when I try 'adb devices', it gives me:
-------------------------
C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
TA99300SXJ sideload
-------------------------
It says that the device is in ADB sideload mode, which blocks me from using other ADB functions, like shell. Is there a way to get 'full' ADB acces?
I also tried using the official Motorola “RDS Lite” software, as some people say this can be used to correctly flash an image to the phone, but this program just does not see my phone.
I did install all drivers, and Windows recognizes the device correctly, in both fastboot and ADB (recovery) mode.
Another thing I wanted to do to solve this, is to unlock the bootloader, as some people on forums said that this would help. However, when I try “fastboot oem unlock UNIQUEKEY” with the key I got from the Motorola website, the bootloader responds with the message stating that I have to enable unlocking the bootloader via developer settings. And obviously, I cannot go to settings to enable this.
-------------------------
I’m very stuck here, and I would be the intensely happy if there would be someone around who can help me get my phone back to life!
I do have experience with flashing Android ROMs/Images/Zips, but not on Motorola devices.
I reckon that this:
“Package expects build fingerprint of motorola/victara_reteu/victara:5.0/LXE22.46-19.1/1:user/release-keys or motorola/victara_reteu/victara:5.1/LPE23.32-25.1/1:user/release-keys; this device has motorola/victara_reteu/victara:4.4.4/KXE21.187-42/41:user/re”
could possibly be caused by an incorrect zip file. If that is the case, is there any way to obtain the proper file?
I did read about some special micro USB cables connecting the normally unused pin 4. Could this be helpful?
Any help would be IMMENSELY appreciated. I'm not ready to give up the fight!
Kind regards,
Ostheer
This same thing happened to me today. Ive had my fair share of rooted phone issues but this one is a mystery to me. Ive rooted every other Moto device [G, G '14, X, X Pure] And now a new issue arises.
I used a .bat file from CLARK_RETUS_5.1.1_LPH23.116-18_cid9_subsidy-DEFAULT_CFC.xml_SHAWN5162 . It finished and booted into bootloader but wont go anywhere from there. I have a feeling Ive reset to a locked state with no boot file.
Device is LOCKED. Status Code:0
Software status: Modified
$ Normal Powerup
failed to validate boot img
boot up failed
fastboot oem get_unlock_data
(bootloader) could not get unlock data
boot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.016s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.040s
Just like you I tried several fixes and no luck.
1. ADB Lite: Same issue
2. mfastboot Same issue
3. RSD Lite: Does not recognize my devices (win 10 / sdk / all drivers / redownloaded 3 times)
4. any bat file I try / manual code / or adb all fail
There must be a solution to this. I want Marshmallow 6.0 just as much as the next guy to work on my phone. Thanks for the help
WhiteRaven96 said:
This same thing happened to me today. Ive had my fair share of rooted phone issues but this one is a mystery to me. Ive rooted every other Moto device [G, G '14, X, X Pure] And now a new issue arises.
I used a .bat file from CLARK_RETUS_5.1.1_LPH23.116-18_cid9_subsidy-DEFAULT_CFC.xml_SHAWN5162 . It finished and booted into bootloader but wont go anywhere from there. I have a feeling Ive reset to a locked state with no boot file.
Device is LOCKED. Status Code:0
Software status: Modified
$ Normal Powerup
failed to validate boot img
boot up failed
fastboot oem get_unlock_data
(bootloader) could not get unlock data
..... ..... .....
There must be a solution to this. I want Marshmallow 6.0 just as much as the next guy to work on my phone. Thanks for the help
Click to expand...
Click to collapse
At this point I would be happy to get anything to work on it, 6.0 is not a requirement for me anymore.
For me it says: "Software status: Official", and getting the unlock data works. Still can't unlock though, as this should've been enabled in settings apparently.
ostheer said:
At this point I would be happy to get anything to work on it, 6.0 is not a requirement for me anymore.
For me it says: "Software status: Official", and getting the unlock data works. Still can't unlock though, as this should've been enabled in settings apparently.
Click to expand...
Click to collapse
Well there is your problem, your bootloader is locked. You can't flash firmware that is not for your model/carrier with a locked bootloader. It absolutely will fail.
Try flashing this with mfastboot:
http://www.filefactory.com/file/i8htlx8fqpv/VICTARA_RETEU_XT1092_5.1_LPE23.32-25.3_cid7_CFC.xml.zip
Most likely gpt.bin and motoboot will fail to flash, just keep flashing all the files even if those 2 fail.
If this works, do NOT use the OTA update to get to 6.0 there is a high probability that you will hard brick your phone if you use OTA, and there is no way to fix that currently.
Because of what you did, you will have to wait for a full 6.0 firmware for the xt1092EU. Do not flash anything else until that is released.
Sent from my XT1095 using Tapatalk
AGISCI said:
Well there is your problem, your bootloader is locked. You can't flash firmware that is not for your model/carrier with a locked bootloader. It absolutely will fail.
Try flashing this with mfastboot:
http://www.filefactory.com/file/i8htlx8fqpv/VICTARA_RETEU_XT1092_5.1_LPE23.32-25.3_cid7_CFC.xml.zip
Most likely gpt.bin and motoboot will fail to flash, just keep flashing all the files even if those 2 fail.
If this works, do NOT use the OTA update to get to 6.0 there is a high probability that you will hard brick your phone if you use OTA, and there is no way to fix that currently.
Because of what you did, you will have to wait for a full 6.0 firmware for the xt1092EU. Do not flash anything else until that is released.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
@AGISCI,
Thank you for your reply. I am currently downloading the file you linked, and will try to flash it using mfastboot as soon as it finishes downloading.
I did indeed hear that using the OTA afterwards is not something you will want to do.
ostheer said:
At this point I would be happy to get anything to work on it, 6.0 is not a requirement for me anymore.
For me it says: "Software status: Official", and getting the unlock data works. Still can't unlock though, as this should've been enabled in settings apparently.
Click to expand...
Click to collapse
http://forum.xda-developers.com/mot...-0-xt-1097-t3266858/post64274827#post64274827 POST #33
This I think is your delay. I just woke up today and noticed my phone now says UNLOCKED I didnt do anything else but attempt all my failed steps on another computer and a reboot [which had not been done since system failure. So it boot up like it was unlocked and didnt go further. Back to bootloader mode, let see if it works
YES! Got it to load up and boot using this 6.0 zip http://forum.xda-developers.com/moto-x-2014/development/rom-installation-rsd-t3263800
However now my SIM card isnt being recognized. Which ssems to happen all the time when using a file from another country. Isnt there a simple solution for this fix?
WhiteRaven96 said:
http://forum.xda-developers.com/mot...-0-xt-1097-t3266858/post64274827#post64274827 POST #33
This I think is your delay. I just woke up today and noticed my phone now says UNLOCKED I didnt do anything else but attempt all my failed steps on another computer and a reboot [which had not been done since system failure. So it boot up like it was unlocked and didnt go further. Back to bootloader mode, let see if it works
YES! Got it to load up and boot using this 6.0 zip http://forum.xda-developers.com/moto-x-2014/development/rom-installation-rsd-t3263800
However now my SIM card isnt being recognized. Which ssems to happen all the time when using a file from another country. Isnt there a simple solution for this fix?
Click to expand...
Click to collapse
That is great news! I am still downloading the zip AGISCI linked.
So if I'm correct, in the fastboot screen it now says "device is unlocked" for you?
What steps did you make to try to unlock the bootloader?
Also, am I correct to assume that you used fastboot/mfastboot to flash your zip in the end?
How is it possible? Your bootloader just got unlocked without root!
I will be more than happy if you explain again what you did and what happend exactly.
Thanks.
Whenever you flash a firmware meant for another region/carrier, you are also flashing the modem/radio that supports that region/carrier, so you have to find the firmware that supports your device/region/carrier and flash the modem/radio from it, in bootloader mode:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
These are the files you need to flash "NON-HLOS.bin" and "fsg.mbn"
AGISCI said:
Well there is your problem, your bootloader is locked. You can't flash firmware that is not for your model/carrier with a locked bootloader. It absolutely will fail.
Try flashing this with mfastboot:
http://www.filefactory.com/file/i8htlx8fqpv/VICTARA_RETEU_XT1092_5.1_LPE23.32-25.3_cid7_CFC.xml.zip
Most likely gpt.bin and motoboot will fail to flash, just keep flashing all the files even if those 2 fail.
If this works, do NOT use the OTA update to get to 6.0 there is a high probability that you will hard brick your phone if you use OTA, and there is no way to fix that currently.
Because of what you did, you will have to wait for a full 6.0 firmware for the xt1092EU. Do not flash anything else until that is released.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
The download completed, and I have tried flashing it using mfastboot:
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_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 flash fsg fsg.mbn
what I get is the following:
the gpt.bin and motoboot.img indeed failed, logo.bin, boot.img, recovery.img, NON-HLOS.bin and fsg.mbn succeeded.
the system.img_sparsechunk.X files give this:
-------------------------
C:\Program Files (x86)\Minimal ADB and Fastboot\VICTARA_RETEU_XT1092_5.1_LPE23.3
2-25.3_cid7_CFC.xml>mfastboot flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (256681 KB)...
OKAY [ 8.068s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.181s
-------------------------
while the phone responds with:
-------------------------
cmd: getvar:max-sparse-size
cmd: download:0faaa7a0
cmd: flash:system
version downgraded for system
Invalid PIV signed system image
-------------------------
Any ideas? This zip seemed to have done 'better' than other, but the phone still doesn't accept it.
ostheer said:
The download completed, and I have tried flashing it using mfastboot:
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_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 flash fsg fsg.mbn
what I get is the following:
the gpt.bin and motoboot.img indeed failed, logo.bin, boot.img, recovery.img, NON-HLOS.bin and fsg.mbn succeeded.
the system.img_sparsechunk.X files give this:
-------------------------
C:\Program Files (x86)\Minimal ADB and Fastboot\VICTARA_RETEU_XT1092_5.1_LPE23.3
2-25.3_cid7_CFC.xml>mfastboot flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (256681 KB)...
OKAY [ 8.068s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.181s
-------------------------
while the phone responds with:
-------------------------
cmd: getvar:max-sparse-size
cmd: download:0faaa7a0
cmd: flash:system
version downgraded for system
Invalid PIV signed system image
-------------------------
Any ideas? This zip seemed to have done 'better' than other, but the phone still doesn't accept it.
Click to expand...
Click to collapse
It sounds like the download of the .zip is corrupt. You will need to download the zip again. There is a list of md5 values in an xml file inside the zip. If the md5 is different it won't flash as a safety precaution.
Sent from my XT1095 using Tapatalk
ostheer said:
That is great news! I am still downloading the zip AGISCI linked.
So if I'm correct, in the fastboot screen it now says "device is unlocked" for you?
What steps did you make to try to unlock the bootloader?
Also, am I correct to assume that you used fastboot/mfastboot to flash your zip in the end?
Click to expand...
Click to collapse
You are indeed correct. I dont think using another computer helped, although I managed to get FLASH Partition gpt.bin to work first try. What I think happened was my friend [not knowing it was in bootloader] did the bootloader button sequence and failed so instead it just tried to boot up [Stopped @ unlocked bootloader screen]
SO after I got 6.0 to work the radio network wasnt the same so now my SIM isnt being recognized.
So I looked for a simple solution and found directions
The Radio uses these lines of the flash process:
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
I searched for Moto X radio files but no luck, however I did find this link for Moto G which is everything I need to find the solution myself with instructions
http://forum.xda-developers.com/showthread.php?t=2649763
:highfive:
---------- Post added at 08:46 PM ---------- Previous post was at 08:27 PM ----------
OrenGazala said:
How is it possible? Your bootloader just got unlocked without root!
I will be more than happy if you explain again what you did and what happend exactly.
Thanks.
Click to expand...
Click to collapse
I believe that Root is a step that comes after bootloader
[YOUR PHONE]
1. unlock-Bootloader --> mfastboot oem get_unlock_data
This is the first step Motorola tells you to do. Go Here: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
2. Install TWRP --> mfastboot flash recovery 'your twrp.img'
At this point your phone should turn on, if not your not finished
3. Install Root --> push SuperSU-v2.--
This zip I have CLARK_RETUS_5.1.1_LPH23.116-18_cid9_subsidy-DEFAULT_CFC.xml_SHAWN5162.zip started this whole mess but it was made to where you can relock your phone after returning it to stock. Problem was that when I ran the .bat file it never took the files so it dumped every partition THEN locked me out, or just pretended to, Im still unsure because I think all I did was try to push a flash line by line [eg. gpt.bin,motoboot,logo...] only got to motoboot and then did a reset. :highfive:
bootloader unlock question
AGISCI said:
It sounds like the download of the .zip is corrupt. You will need to download the zip again. There is a list of md5 values in an xml file inside the zip. If the md5 is different it won't flash as a safety precaution.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
Thanks for the reply. I checked all MD5's and compared them to the ones I generated with a MD5 checksum tool, they all match. I am downloading the zip again, but theoretically that shouldn't help as de MD5's are good.
"Invalid signed image" stays the problem here, unfortunately...
Is there no way to unlock the bootloader if you didn't enable this via settings in Android?
ostheer said:
Thanks for the reply. I checked all MD5's and compared them to the ones I generated with a MD5 checksum tool, they all match. I am downloading the zip again, but theoretically that shouldn't help as de MD5's are good.
"Invalid signed image" stays the problem here, unfortunately...
Is there no way to unlock the bootloader if you didn't enable this via settings in Android?
Click to expand...
Click to collapse
No there is no way to unlock it if you didn't.
Question what version of android were you on before you did this? 5.1? With stagefright patch?
Sent from my XT1095 using Tapatalk
AGISCI said:
No there is no way to unlock it if you didn't.
Question what version of android were you on before you did this? 5.1? With stagefright patch?
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
Thought so,
I was on an official 5.1 build, presumably with the patch indeed, as my phone was fully updated and the patch came out in September. For the patch I can't be 100% sure though.
I downloaded the zip for the second time, but as expected after the MD5 check, the results were the same...
ostheer said:
Thought so,
I was on an official 5.1 build, presumably with the patch indeed, as my phone was fully updated and the patch came out in September. For the patch I can't be 100% sure though.
I downloaded the zip for the second time, but as expected after the MD5 check, the results were the same...
Click to expand...
Click to collapse
I don't know if this is the reason, but maybe if you did not have the stagefright patch you need the firmware without it. Here is the 5.1 without stagefright to try:
http://www.filefactory.com/file/w34zg9w3v4h/VICTARA_RETEU_XT1092_5.1_LPE23.32-25.1_cid7_CFC.xml.zip
Sent from my XT1095 using Tapatalk
AGISCI said:
I don't know if this is the reason, but maybe if you did not have the stagefright patch you need the firmware without it. Here is the 5.1 without stagefright to try:
http://www.filefactory.com/file/w34zg9w3v4h/VICTARA_RETEU_XT1092_5.1_LPE23.32-25.1_cid7_CFC.xml.zip
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
I am currently downloading this zip, and also some others.
Curiosity:
How is the phone actually checking the file signatures? What is it comparing them to?
I'm wondering how did I manage to make the phone unable to boot, while the bootloader doesn't allow anything to be flashed?
ostheer said:
I am currently downloading this zip, and also some others.
Curiosity:
How is the phone actually checking the file signatures? What is it comparing them to?
I'm wondering how did I manage to make the phone unable to boot, while the bootloader doesn't allow anything to be flashed?
Click to expand...
Click to collapse
The images are also signed by motorola with a special key that only they have and know. If the key does not match with your installed firmware flashing will fail.
Sent from my XT1095 using Tapatalk
AGISCI said:
I don't know if this is the reason, but maybe if you did not have the stagefright patch you need the firmware without it. Here is the 5.1 without stagefright to try:
http://www.filefactory.com/file/w34zg9w3v4h/VICTARA_RETEU_XT1092_5.1_LPE23.32-25.1_cid7_CFC.xml.zip
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
I downloaded the zip without stagefright, and flashing it using the described procedure again gave the error 'Preflash validation failed' - 'Invalid PIV signed system image'.
Strangely though, flashing motoboot.img actually did work for the first time. (!)
Also flashing the recovery.img works for most zips I tried. That's rather strange as apparently they are being checked too: flashing a twrp recovery (unsurprisingly) didn't work: "mismatched partition size (recovery)".
AGISCI said:
The images are also signed by motorola with a special key that only they have and know. If the key does not match with your installed firmware flashing will fail.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
I requested a compatible stock zip from Motorola for my device, using a ticket on their site. Probably they won't be very eager to supply it though.

Categories

Resources