THIS IS NOT FOR WARRANTY, I KNOW IT'S NO LONGER VALID, I DON'T CARE ABOUT WARRANTY, IT'S FOR SECURITY PURPOSES.
This is not so much a question, more of informing of my findings. So I finally managed to relock the bootloader of the phone, apparently it is possible with non dev version. Just had to run this with the latest T-Mobile 4.4.2 firmware:
mfastboot oem lock begin
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
Click to expand...
Click to collapse
It is confirmed as locked in the fastboot.
Code:
Device is LOCKED. Status Code: 2.
However, the boot logo still have the "bootloader unlocked warning", which was what I wanted to get rid off, this is even after flashing the stock logo.bin to the phone before relocking. I also noticed that even after it is locked, I am still able to flash the modified logo.bin (that replace the bootloader unlocked warning). I guess this will have to do, however, my intention was to returned the device to 100% stock.
I can understand why Motorola does it, but it's just bad for user security to have a big label to alert everyone that your phone is insecure.
I tried to flash my Moto G XT1068 from Android Open Source Project (AOSP) 5.1.1 to the stock firmware and relock the bootloader.
I followed these steps I found on a website:
mfastboot.exe flash partition gpt.bin
mfastboot.exe flash motoboot motoboot.img
mfastboot.exe flash logo logo.bin
mfastboot.exe flash boot boot.img
mfastboot.exe flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash modem NON-HLOS.bin
mfastboot.exe erase modemst1
mfastboot.exe erase modemst2
mfastboot.exe flash fsg fsg.mbn
mfastboot.exe erase cache
mfastboot.exe erase userdata
mfastboot.exe oem lock
mfastboot.exe reboot
After I had typed those to the command prompt on the folder I had placed the firmware and mfastboot v2 I found out that the phone didnt reboot, and that it was stuck in the fastboot mode where it says failed to validate system image and something about falling-through boot mode or something.
I read the text again carefully that I didn't do anything wrong, and I didnt. I went to the comments and there were people complaining that it doesnt work and you need to add one command more
mfastboot.exe flash system system.img_sparsechunk.3
well I did type that to the command prompt and it did nothing after I tried to reboot again, so I typed all the commands again including the command I mentioned, and still nothing.
now I'm stuck in the fastboot mode where it says:
Failed to validate system image
Fastboot reason: fall-through from not charger boot mode
I'm begging for immediate help
I got the bootloader re-unlocked
I got the phone's bootloader re-unlocked
I'll keep posting more info If I dont solve this mess myself
Munkkimake said:
I tried to flash my Moto G XT1068 from Android Open Source Project (AOSP) 5.1.1 to the stock firmware and relock the bootloader.
I followed these steps I found on a website:
mfastboot.exe flash partition gpt.bin
mfastboot.exe flash motoboot motoboot.img
mfastboot.exe flash logo logo.bin
mfastboot.exe flash boot boot.img
mfastboot.exe flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash modem NON-HLOS.bin
mfastboot.exe erase modemst1
mfastboot.exe erase modemst2
mfastboot.exe flash fsg fsg.mbn
mfastboot.exe erase cache
mfastboot.exe erase userdata
mfastboot.exe oem lock
mfastboot.exe reboot
After I had typed those to the command prompt on the folder I had placed the firmware and mfastboot v2 I found out that the phone didnt reboot, and that it was stuck in the fastboot mode where it says failed to validate system image and something about falling-through boot mode or something.
I read the text again carefully that I didn't do anything wrong, and I didnt. I went to the comments and there were people complaining that it doesnt work and you need to add one command more
mfastboot.exe flash system system.img_sparsechunk.3
well I did type that to the command prompt and it did nothing after I tried to reboot again, so I typed all the commands again including the command I mentioned, and still nothing.
now I'm stuck in the fastboot mode where it says:
Failed to validate system image
Fastboot reason: fall-through from not charger boot mode
I'm begging for immediate help
Click to expand...
Click to collapse
As far as I can see, you didn't lock the bootloader corectly, use this: http://forum.xda-developers.com/moto-g-2014/general/restore-to-stock-t2873657
I have same problem, I had to unlock the bootloader again and it worked like normal. I ended up reflashing twrp and going back to 5.1.1 aosp rom. To clarify your phone is probably not bricked. Re unlock the bootloader with fastboot oem unlock {unique code} and flash twrp and the rom of your choice.
ethanchow said:
I have same problem, I had to unlock the bootloader again and it worked like normal. I ended up reflashing twrp and going back to 5.1.1 aosp rom. To clarify your phone is probably not bricked. Re unlock the bootloader with fastboot oem unlock {unique code} and flash twrp and the rom of your choice.
Click to expand...
Click to collapse
-----Update----
I think I have it fixed: just flash the system images again after you do
Code:
fastboot oem lock
You seem to have to flash them twice
Code:
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 system system.img_sparsechunk.4
ethanchow said:
-----Update----
I think I have it fixed: just flash the system images again after you do
Code:
fastboot oem lock
You seem to have to flash them twice
Code:
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 system system.img_sparsechunk.4
Click to expand...
Click to collapse
you found this to be working? What firmware file are you using?
ethanchow said:
-----Update----
I think I have it fixed: just flash the system images again after you do
Code:
fastboot oem lock
You seem to have to flash them twice
Code:
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 system system.img_sparsechunk.4
Click to expand...
Click to collapse
and in that code you arent using mfastboot? Is there no use for it?
Munkkimake said:
you found this to be working? What firmware file are you using?
Click to expand...
Click to collapse
I am using lastest one for xt1064 from here forum.xda-developers.com/moto-g-2014/orig-development/original-motorola-firmware-collection-t3153533
For adb and fastboot I am using the 15 second installer, no mfastboot.
I managed to successfully relock the bootloader and get the phone to boot to stock rom but the "unlock warning" boot logo still appears.
ethanchow said:
I am using lastest one for xt1064 from here forum.xda-developers.com/moto-g-2014/orig-development/original-motorola-firmware-collection-t3153533
For adb and fastboot I am using the 15 second installer, no mfastboot.
I managed to successfully relock the bootloader and get the phone to boot to stock rom but the "unlock warning" boot logo still appears.
Click to expand...
Click to collapse
you think that the unlock warning could somehow be removed with a locked bootloader?
Munkkimake said:
you think that the unlock warning could somehow be removed with a locked bootloader?
Click to expand...
Click to collapse
i don't know if works on stock bootloader locked, but you can try after you are on stock rom the command
mfastboot.exe flash logo logo.bin
with a modify boot logo like this but dont know if will works on locked bootloader...
if you try and the command is accepted and the device don't boot use the command again with the logo.bin file that is in the stock XML zip that you download.
in the case of not be able to flash and error that you described on OP.
before do the commands you need to check how many system.img_sparsechunk files you have and change the commands line according.
Motorola stock rom's may have up to 6 of those file maybe more in the future, the 5x.x have 4 to 6 so you need to add the lines in the script before:
mfastboot.exe flash modem NON-HLOS.bin
the rest doesn't change
All you need is
this official firmware of XT1068 https://drive.google.com/file/d/0Bzr0qvz6uRerOGRfOEptU2p0ZkU/view?usp=sharing
This is the complete zip which is having mfastboot v2 also in that and you just now need to flash below commands correctly, and you're done.
Code:
------------------------------------------------------------------|
Moto G 2014 Stock 5.0.2 Restore Script
mfastboot.exe oem lock begin
mfastboot.exe flash partition gpt.bin
mfastboot.exe flash motoboot motoboot.img
mfastboot.exe flash logo logo.bin
mfastboot.exe flash boot boot.img
mfastboot.exe flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash system system.img_sparsechunk.3
mfastboot.exe flash system system.img_sparsechunk.4
mfastboot.exe flash modem NON-HLOS.bin
mfastboot.exe erase modemst1
mfastboot.exe erase modemst2
mfastboot.exe flash fsg fsg.mbn
mfastboot.exe erase cache
mfastboot.exe erase userdata
mfastboot.exe oem lock
mfastboot.exe reboot
------------------------------------------------------------------|
hope this'll help you out
Also if you wanna get rid of that "Unlocked Warning" boot logo, you can easily flash any of the logo.bin file successfully on a locked bootloader too. So you can flash your own bootlogo, custom or stock, as you prefer.
Thanks
Thanks!
ArtRahul said:
this official firmware of XT1068 https://drive.google.com/file/d/0Bzr0qvz6uRerOGRfOEptU2p0ZkU/view?usp=sharing
This is the complete zip which is having mfastboot v2 also in that and you just now need to flash below commands correctly, and you're done.
Code:
------------------------------------------------------------------|
Moto G 2014 Stock 5.0.2 Restore Script
mfastboot.exe oem lock begin
mfastboot.exe flash partition gpt.bin
mfastboot.exe flash motoboot motoboot.img
mfastboot.exe flash logo logo.bin
mfastboot.exe flash boot boot.img
mfastboot.exe flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash system system.img_sparsechunk.3
mfastboot.exe flash system system.img_sparsechunk.4
mfastboot.exe flash modem NON-HLOS.bin
mfastboot.exe erase modemst1
mfastboot.exe erase modemst2
mfastboot.exe flash fsg fsg.mbn
mfastboot.exe erase cache
mfastboot.exe erase userdata
mfastboot.exe oem lock
mfastboot.exe reboot
------------------------------------------------------------------|
hope this'll help you out
Also if you wanna get rid of that "Unlocked Warning" boot logo, you can easily flash any of the logo.bin file successfully on a locked bootloader too. So you can flash your own bootlogo, custom or stock, as you prefer.
Thanks
Click to expand...
Click to collapse
Well I got the stock firmware through an automatic installer and yes the phone let me flash the logo.bin waiting for the official 5.1
Munkkimake said:
Well I got the stock firmware through an automatic installer and yes the phone let me flash the logo.bin waiting for the official 5.1
Click to expand...
Click to collapse
with locked bootloader you flash the logo.bin and the logo warning disappeared?
Yes and it worked! I have no longer proof of that the warranty has been void / the warranty is back
Sent from my XT1068 using XDA Free mobile app
Munkkimake said:
Yes and it worked! I have no longer proof of that the warranty has been void / the warranty is back
Sent from my XT1068 using XDA Free mobile app
Click to expand...
Click to collapse
ok is nice to know that works. But only to remove that warning thing...
Because the bootloader have 3 stats:
Status code 0 =locked with warranty
Status code 3 = unlocked without warranty
Status code 2= relocked but also without warranty
check in the bootloader screen yours must be 2...
Status code 1 is unknown.
baybutcher27 said:
ok is nice to know that works. But only to remove that warning thing...
Because the bootloader have 3 stats:
Status code 0 =locked with warranty
Status code 3 = unlocked without warranty
Status code 2= relocked but also without warranty
check in the bootloader screen yours must be 2...
Status code 1 is unknown.
Click to expand...
Click to collapse
Oh, according to that, the tool program which installed the firmware, didnt lock the bootloader. I assumed that it was locked cause i was told that the bootloader warning still exists after relocking so...
Sent from my XT1068 using XDA Free mobile app
Unable to Relock Bootloader and SIM card NOT READING error on MOTO X 2014 AT&T XT1097
i have unlocked bootloader on my moto X 2014 (canada variant) XT1097 and status code : 3
after flashing stock roms & many attempts to relock the bootloader but no luck to lock my phone bootloader
with this cmd in the fastboot mode.
{
fastboot oem lock
(bootloader) FAIL: Please run fastboot oem lock begin first!
(bootloader) sst lock failure!
} (this statment also shows to flash any signed img (i dont know what it means))
as well as while i am flashing rom i got this errors
{
hab check failed for recovery
hab check failed for boot
} in pink colour
my phone is unable to read sim card (NO Network)
can anyone suggest any solution.
maninder.email said:
i have unlocked bootloader on my moto X 2014 (canada variant) XT1097 and status code : 3
after flashing stock roms & many attempts to relock the bootloader but no luck to lock my phone bootloader
with this cmd in the fastboot mode.
{
fastboot oem lock
(bootloader) FAIL: Please run fastboot oem lock begin first!
(bootloader) sst lock failure!
} (this statment also shows to flash any signed img (i dont know what it means))
as well as while i am flashing rom i got this errors
{
hab check failed for recovery
hab check failed for boot
} in pink colour
my phone is unable to read sim card (NO Network)
can anyone suggest any solution.
Click to expand...
Click to collapse
If you're using your ATT XT1097 with a Canadian carrier, then you need to flash the VICTARA_RETCA_XT1097_6.0 firmware:
https://mega.nz/#F!ow8igZRL!Z7vmN8GOpez2bVMYDvEKkg!IkEVHRxS
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_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 system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
Every single line, so that ALL files are stock. There's no advantage to relocking the bootloader, you won't get warranty back. But try relocking it after flashing the full factory firmware.
Gus Ghanem said:
If you're using your ATT XT1097 with a Canadian carrier, then you need to flash the VICTARA_RETCA_XT1097_6.0 firmware:
https://mega.nz/#F!ow8igZRL!Z7vmN8GOpez2bVMYDvEKkg!IkEVHRxS
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_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 system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
Every single line, so that ALL files are stock. There's no advantage to relocking the bootloader, you won't get warranty back. But try relocking it after flashing the full factory firmware.
Click to expand...
Click to collapse
yahoo! Phone is able to read my Wind sim card and i am able to make phone calls.
Thanks Gus Ghanem
I really appreciate your help
i followed your instructions.
maninder.email said:
yahoo! Phone is able to read my Wind sim card and i am able to make phone calls.
Thanks Gus Ghanem
I really appreciate your help
i followed your instructions.
Click to expand...
Click to collapse
You're welcome! I'm glad it's working
Hi I hope someone can help with this. I have a moto x1068 duel sim phone that was not booting it would only get as far as the moto logo.
I flashed some moto phones before just not this model.
I unlocked the boot loader with code.
Then tried to flash the phone it went okay but I still would not boot. Using 5.0.2
I have repaired some phone in the past by down flashing them so I down flashed the phone to 4.4.4. and it worked the phone booted works 100% but when I tried to lock the bootload it say the boot image as downgraded and not valid so it would not lock it.
I then tried the same files before of 5.0.2 and they worked phone is fully working.
I relocked the bootload and in the boot loader screen is say it is locked code 2
But when I power the phone on, I still the red writing screen say the bootloader is unlocked.
On other phones I have do after I have locked the bootload the warning disappears.
These are the commands I used to try and lock the phone
mfastboot.exe oem lock begin
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot oem lock
mfastboot reboot
Then give no error art all.
Now can I fix this please?
It is just how it is...Did you just manually entered those commands or used the easy installer
ecdteck said:
Now can I fix this please?
Click to expand...
Click to collapse
Once you unlock the bootloader the startscreen appears with "Bootloader Unlocked", even when you "relock".
It is a normal behavior
You can't do anything to relock the bootloader before the first unlock. But you can flash a modified logo.bin from the xda forum without the unlock message.
On other phones it is maybe how you described, but not with the Moto G2.
Status Code explanations:
Status Code 0: "Untouched", Never unlocked, factory status
Status Code 2: Relocked after Unlock
Status Code 3: Unlocked
Attempted to root & install TWRP, went to revert to stock, through about 6 different ROM variants for this phone, none of which have restored either the imei or baseband, some help/ insight would be amazing right about now
Did you ever figure this out, if not i can help you, i have had to restore both of them about 50 times, and i have an automated way of doing it, at this point. hit me up if you still need help.
for those having this problem, this is only for the MetroPCS variant xt1921-3 James model, flash back to stock build JAMES_T_OCP27.91-150-5-1_cid21_subsidy-MPCS_RSU_regulatory-DEFAULT_CFC from the bootloader using these commands -
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash dsp adspso.bin
fastboot flash bootloader bootloader.img
fastboot flash recovery recovery.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
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 system system.img_sparsechunk.4
fastboot erase DDR
fastboot erase cache
fastboot erase userdata
fastboot flash oem oem.img
fastboot flash vendor vendor.img
fastboot oem fb_mode_clear
fastboot reboot
- after you flash and reboot, it will boot up normally, setup up a wifi connection on it and it will tell you there is a new security update. Let it download and install the update, once finished, it will boot up and your baseband and IMEI will be working again.
What did you do to mess those up? I just got this phone, used to love doing this stuff, but it's become such a pain in the a$$ to just use a device I paid for like I want. I don't want that kind of problem. On a Samsung, that problem woud occur if your baseband and modem didn't match properly and the fix was to reflash the correct ones. Might not help you in this case tho.
Sent from my [device_name] using XDA-Developers Legacy app