Bootloader unlocked warning still shows after re-lock and 100% stock. - Moto X Q&A

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.

Related

Moto X - re-locking bootloader

Guys,
do you have any RELIABLE script for going back to STOCK ROM - with re-locking bootloader as well?
I created this, but it does NOT work on my Moto X (XT1052 - GB RETAIL)
(It worked only on my Moto G, but not Moto X.)
It showed some error like "No valid PIV block in SP for system" when I wanted to restore the GB RETAIL ROM from this source:
http://sbf.droid-developers.org/phone.php?device=14
Thanks.
===
::Set our default parameters
@ECHO off
SET fastboot=fastboot.exe
%fastboot% devices
%fastboot% oem lock begin
%fastboot% flash partition gpt.bin
%fastboot% flash motoboot motoboot.img
%fastboot% flash logo Moto-logo.bin
%fastboot% flash boot boot.img
%fastboot% flash recovery recovery.img
%fastboot% flash system system.img
%fastboot% flash modem NON-HLOS.bin
%fastboot% erase modemst1
%fastboot% erase modemst2
%fastboot% flash fsg fsg.mbn
%fastboot% erase cache
%fastboot% erase userdata
%fastboot% oem lock
pause
post the XML for the ROM you want to use.
also, what ROM & Android version is on your phone now?
xml
Thanks for reply.
1. XML from STOCK ROM is in the attachment.
Source: http://sbf.droid-developers.org/phone.php?device=0
2. I am using this almost stock ROM: http://forum.xda-developers.com/moto-x/development/fxz-xt1060-google-play-edition-unlocked-t2715488
JaroslavHruska said:
Thanks for reply.
1. XML from STOCK ROM is in the attachment.
Source: http://sbf.droid-developers.org/phone.php?device=0
2. I am using this almost stock ROM: http://forum.xda-developers.com/moto-x/development/fxz-xt1060-google-play-edition-unlocked-t2715488
Click to expand...
Click to collapse
Wait. I'm a little confused.
I read #2 saying your using the rom from that thread... so are you saying that you were running that GPE rom from that thread, but are trying to get back to stock by flashing the rom/SBF that goes with the RETAIL-GB_GHOST_KLA20.16-2.16_cid7_CFC_1FF_v2.xml you posted?
If so, after unzipping the "RETAIL-GB_GHOST..." SBF, you'd want to try the following commands from the folder where you unzipped the SFB after booting the phone to fastboot/bootloader mode....
Option 1 (based on Moto's web site and the XML you posted)
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem lock
mfastboot reboot <- only if phone doesn't reboot after reporting the relock was successful
Option 2: (based on some threads here on XDA, and the XML you posted)
mfastboot oem lock begin
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem lock
mfastboot reboot <- only if phone doesn't reboot after reporting the relock was successful
Try option 1 first. If it doesn't work, try option 2.
NOTE: by Mfastboot, I mean the Moto modified version of fastboot, not the one that comes with the standard Android SDK/Platform Tools. The moto modified Fastboot.exe can sometimes be found in a windows folder inside an SBF, or you can download from -> http://mark.cdmaforums.com/X-STUFF/Mfastboot-4.4.zip
Thanks A LOT from a desperate noob. This helped me a lot
help
Czechnolog said:
Thanks for reply.
1. XML from STOCK ROM is in the attachment.
Source: http://sbf.droid-developers.org/phone.php?device=0
2. I am using this almost stock ROM: http://forum.xda-developers.com/moto-x/development/fxz-xt1060-google-play-edition-unlocked-t2715488
Click to expand...
Click to collapse
Any luck on moto x?

[Q] Can't relock my Bootloader

Hey guys...
I'm preparing my moto g for selling, but i need to relock my bootloader, so everything goes like the first day i bought'em.
But when i try to flash the stock rom using fastboot i can't follow it through. It gives an error of "Preflash validation".
PS: I'm doing the correct sequences on flashing. Like this:
"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 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"
What can i do? Cheers!
Have you flashed stock lollipop ota? If yes, you cannot lock bootloader again. Nevertheless to say, that after unlock it, you cannot relock it again like pre factory.
Bootloader status code
Code 0 - locked with warranty
Code 2 - relocked without warranty
Code 3- unlocked without warranty
There is no procedure atm to put code 0. And never will be, because when bootloader gets unlocked, the e-fuse is blowned
Sent from my XT1068 using XDA Free mobile app
Have you flashed stock lollipop ota? If yes, you cannot lock bootloader again. Nevertheless to say, that after unlock it, you cannot relock it again like pre factory.
Bootloader status code
Code 0 - locked with warranty
Code 2 - relocked without warranty
Code 3- unlocked without warranty
There is no procedure atm to put code 0. And never will be, because when bootloader gets unlocked, the e-fuse is blowned
Sent from my XT1068 using XDA Free mobile app
Click to expand...
Click to collapse
Nope, i'm trying on Kitkat.
So there is nothing i can do to get the Code 2 again? The warranty stuff doesn't make such difference to me...

[BRICK?] Moto G 8GB XT1064

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

Moto G XT1068 2014 bricked and stuck in fastboot

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

Moto x1068 phone boots saying bootload is unlocked but boot loader screen say it lock

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

Categories

Resources