MOTO X 2014, bootloader relook fails! - X 2014 Q&A, Help & Troubleshooting

Guys I really love this smartphone..but I can't believe that just because I've been curious to try a custom rom now I cannot look again the bootloader!!
I am using the official documentation, I found that many others had the same problem..but it is not clear to me the solution! Would it possible to receive some support from you?
This is what I did to restore my official factory image into my XT1092 (previously unlocked using the code sent by Motorola):
Code:
adb reboot bootloader
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot reboot-bootloader
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot oem lock
fastboot reboot
Everything looks ok till the oem look, when I get this error:
(bootloader) FAIL: Please run fastboot oem lock begin first!
(bootloader) sst lock failure!
Please help me!
Fabio

May I ask why you want to relock the bootloader? It really is pointless. When you entered the serial number into motorola's website, they already know that you unlocked it. So the warranty is void and they already know you did it because you sent them the code. Relocking it won't help for warranty purposes at all. Also the fastboot oem lock command will only write "relocked" into the bootloader, which clearly shows that it had been unlocked before. It is impossible to go back to a true "locked" state. If the command works like it should it will say "relocked" not "locked".
Regarding warranty, if it is a PURE model, then the warranty is valid whether or not it is unlocked or locked. For example I have an XT1095 with an unlocked bootloader and the warranty is still valid because it the Pure Edition.
Anyway, if you still want to do it, try this:
Code:
fastboot oem lock begin
fastboot oem lock

AGISCI said:
May I ask why you want to relock the bootloader? It really is pointless. When you entered the serial number into motorola's website, they already know that you unlocked it. So the warranty is void and they already know you did it because you sent them the code. Relocking it won't help for warranty purposes at all. Also the fastboot oem lock command will only write "relocked" into the bootloader, which clearly shows that it had been unlocked before. It is impossible to go back to a true "locked" state. If the command works like it should it will say "relocked" not "locked".
Regarding warranty, if it is a PURE model, then the warranty is valid whether or not it is unlocked or locked. For example I have an XT1095 with an unlocked bootloader and the warranty is still valid because it the Pure Edition.
Anyway, if you still want to do it, try this:
Code:
fastboot oem lock begin
fastboot oem lock
Click to expand...
Click to collapse
Thanks for the answer! Well..it is more for avoiding security risks, as the initial logo says and which I would remove too!!
I tried and this is the result:
Code:
C:\platform-tools>adb reboot bootloader
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\platform-tools>fastboot oem lock begin
...
(bootloader) Ready to flash signed images
OKAY [ 0.055s]
finished. total time: 0.056s
C:\platform-tools>fastboot oem lock
...
(bootloader) sst lock failure!
OKAY [ 0.008s]
finished. total time: 0.009s
C:\platform-tools>
On my phone I see in purple:
Code:
failed to validate the system image
Probably because I didn't continue with the flashing operations in between those two statements. Anyway this where I downloaded my actual image:
http://forum.xda-developers.com/mot...tory-image-android-5-0-lollipop-moto-t3001221
Thanks

mrfabio80 said:
Thanks for the answer! Well..it is more for avoiding security risks, as the initial logo says and which I would remove too!!
I tried and this is the result:
Code:
C:\platform-tools>adb reboot bootloader
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\platform-tools>fastboot oem lock begin
...
(bootloader) Ready to flash signed images
OKAY [ 0.055s]
finished. total time: 0.056s
C:\platform-tools>fastboot oem lock
...
(bootloader) sst lock failure!
OKAY [ 0.008s]
finished. total time: 0.009s
C:\platform-tools>
On my phone I see in purple:
Code:
failed to validate the system image
Probably because I didn't continue with the flashing operations in between those two statements. Anyway this where I downloaded my actual image:
http://forum.xda-developers.com/mot...tory-image-android-5-0-lollipop-moto-t3001221
Thanks
Click to expand...
Click to collapse
If you want to remove that bootloader warning message, search these forums for a topic on how to remove the warning screen. It doesn't require you to lock the bootloader.
As far as security concerns, that message says that anything YOU do or change after it is unlocked may cause the device to malfunction or have problems. It has nothing to do with the security from external sources such as hackers. For example maybe you install a ROM that is insecure, the security problem is the ROM you installed not in the fact that the bootloader is unlock. Locking the bootloader isn't going to make it more secure since you already unlocked and modified it anyway.

AGISCI said:
If you want to remove that bootloader warning message, search these forums for a topic on how to remove the warning screen. It doesn't require you to lock the bootloader.
As far as security concerns, that message says that anything YOU do or change after it is unlocked may cause the device to malfunction or have problems. It has nothing to do with the security from external sources such as hackers. For example maybe you install a ROM that is insecure, the security problem is the ROM you installed not in the fact that the bootloader is unlock. Locking the bootloader isn't going to make it more secure since you already unlocked and modified it anyway.
Click to expand...
Click to collapse
Understood, thanks for the clarification!! I "solved" flashing a new logo.bin from here:
http://forum.xda-developers.com/moto-x-2014/general/warning-message-unlocked-bootloader-t2871478

AGISCI said:
Also the fastboot oem lock command will only write "relocked" into the bootloader, which clearly shows that it had been unlocked before. It is impossible to go back to a true "locked" state. If the command works like it should it will say "relocked" not "locked".
Click to expand...
Click to collapse
I have never relocked my device, but if you use the fastboot oem lock command I believe in bootloader mode it will say Locked Status Code 2, which means locked now but has been unlocked in the past by the fastboot command.
When these devices are first manufactured they are in the state Unlocked Status Code 1, then locked in the factory and after that they say Locked Status Code 0. So when we first buy a device it says Locked Status Code 0, which means locked and has never been unlocked by the fastboot command. And then when we use the fastboot oem unlock command they say Unlocked Status Code 3. If you relock after that using fasboot oem lock, then the device will say Locked Status Code 2, but once you unlock the BL, you can never go back to Locked Status Code 0.
And no one should have an Unlocked Status Code 1 device as they are supposed to be locked before they leave the factory. However, you can buy them off of Tao Bao, they are referred to as factory devices and they "somehow" made their way out of the factory in the Unlocked Status Code 1 state.
There is something similar for root. You will see this in stock recovery:
qe = 0/0 - this is the never been rooted state
qe = 1/1 - this is the currently rooted state
qe = 1/0 - this is the currently unrooted state but has been rooted in the past.
Once you root you can never go back to qe = 0/0.

Related

Unable to unlock N6 bootloader (Android 6.0.1 Build MMB29X) [resolved]

Hi,
I am unable to unlock the bootloader on my Nexus 6, which was purchased new from Amazon.com. Or more accurately, I can issue the fastboot flashing unlock command without error, but my phone still says LOCKED and screen is frozen for 60 seconds.
I have followed the various HOWTOs on this website to the best of my ability:
1. Installed latest Android SDK tools(25.1.4.rc1), Platform-tools (24rc2) & Java8. I originally installed with the 23.1 platform-tools but then moved to the preview channel release when I had no luck.
2. USB debugging and OEM unlocking are both ON
3. Both "adb device" and "fastboot device" show my phone's serial number when in their respective modes, so I know communication is good between my laptop and phone.
How to replicate problem:
a. With my phone connected, I first issued "adb reboot bootloader". My phone then sucessfully changes to the AP Fastboot Flash Mode (Secure) screen. Beneath the green BATTERY OK (Charging) are the lines
Device is LOCKED. Status Code: 2
Transfer Mode: USB Connected
b. I then type "fastboot flashing unlock" and the output is
...
OKAY [ 0.016s]
finished. total time: 0.016s
However my phone does not ask me if I want to unlock. In fact, the screen then appears to be frozen -- pressing the volume up and down buttons does not change the power button selection menu. If I try to issue any other fastboot command, it says FAILED (command write failed (Unknown error)) finished. total time: 5.017s
The screen is frozen for 60 seconds. After that, the bootloader screen is once again functional (I can change menu options again) and I can issue new fastboot commands, such as 'fastboot reboot'
However, the device still says LOCKED and will refreeze for 60 seconds if I type 'fastboot flashing unlock'
Any suggestions would be appreciated!
Thank you.
type fastboot oem unlock to unlock your bootloader, then follow instruction. But beware, this will wipe your device
TMG1961 said:
type fastboot oem unlock to unlock your bootloader, then follow instruction. But beware, this will wipe your device
Click to expand...
Click to collapse
In newer versions of fastboot, the command is fastboot flashing unlock, not OEM unlock.
Code:
$ ./fastboot
usage: fastboot [ <option> ] <command>
commands:
update <filename> Reflash device from update.zip.
flashall Flash boot, system, vendor, and --
if found -- recovery.
flash <partition> [ <filename> ] Write a file to a flash partition.
flashing lock Locks the device. Prevents flashing.
flashing unlock Unlocks the device. Allows flashing
any partition except
bootloader-related partitions.
@webtrader,
@TMG1961 was trying to help you. Have you tried his recommendation before replying?
cam30era said:
@webtrader,
@TMG1961 was trying to help you. Have you tried his recommendation before replying?
Click to expand...
Click to collapse
No, I had not. I tried using fastboot oem unlock on an older version of the SDK toolkit and that had failed, but I had not tried using oem unlock again on the latest version, having noticed that "oem unlock" was no longer listed as an option.
I just tried it now on the latest SDK toolkit and it does indeed work for me. :good:
Thank you to the both of you for helping me out!
webtrader said:
No, I had not. I tried using fastboot oem unlock on an older version of the SDK toolkit and that had failed, but I had not tried using oem unlock again on the latest version, having noticed that "oem unlock" was no longer listed as an option.
I just tried it now on the latest SDK toolkit and it does indeed work for me. :good:
Thank you to the both of you for helping me out!
Click to expand...
Click to collapse
Welcome
i do believe the "fastboot flashing unlock" is for when a manufacture issues a binary token kinda of like how HTC does it. If the Nexus or any phone that is not carrier branded, "fastboot oem unlock" will be the command to pass.

FRP unlock

Is there any way to unlock frp from the fastboot if the bootloader is unlocked and the device is bricked.
Already tried : fastboot oem relock xxxxx
Returns : command not allowed
I am on stock recovery and the device is bricked right now.
Help needed!Many thanks!

frp unlock

Is there any way to unlock frp from the fastboot if the bootloader is unlocked and the device is bricked.
Already tried : fastboot oem relock xxxxx
Returns : command not allowed
I am on stock recovery and the device is bricked right now.
Help needed!Many thanks!

"FAILED (remote: unknown command)" trying to unlock bootloader

Hello, I'm trying to follow This guide and This one to unlock the bootloader with no luck.
This is what I get:
Code:
C:\Minimal ADB and Fastboot>fastboot devices
ZY322MF6XP fastboot
C:\Minimal ADB and Fastboot>fastboot oem get_unlock_data
...
FAILED (remote: unknown command)
finished. total time: 0.000s
I updated drivers and adb and fastboot with no luck.
Any help?
Edit: I have a Moto G6 Plus in RETLA channel with the march security patch.
I'd double check that Allow OEM Unlock in dev options is actually on
ZeroPoke said:
I'd double check that Allow OEM Unlock in dev options is actually on
Click to expand...
Click to collapse
Tried it with it on and off twice!
Angelelz said:
Tried it with it on and off twice!
Click to expand...
Click to collapse
Same thing happened to me. When you get your unique identifier find an online generator and then paste that into the Motorola website, worked for me.
H0LT3R said:
Same thing happened to me. When you get your unique identifier find an online generator and then paste that into the Motorola website, worked for me.
Click to expand...
Click to collapse
Yeah, can't get the unique identifier though, that particular command is not working for me. Anyone have any idea why?
Hi,
For Working this command "Fastboot oem get_unlock_data"
First you need to remove or delete your phone's SCREEN LOCKS like your fingerprint, face-unlock, pattern or password etc... And keep on NONE option in lock screen. After all above procedure done than, You run that commend "Fastboot oem get_unlock_data". After runing thant command, You will not get "FAILED (remote: unknown command)"
It will work 200%.
PRUTHVIRAJ S VASUDEV said:
It will work 200%.
Click to expand...
Click to collapse
no. it doesnt.
It depends on your fastboot version. Please check "fastboot --version" and post it here.
---------- Post added at 03:49 AM ---------- Previous post was at 03:44 AM ----------
...or try "fastboot oem help". This option will show you whether this command is available.
hi!
i have same problem.
product: Lenovo TB-7504x
fastboot getvar info:
warranty: yes
unlocked: no
secure: yes
kernel: lk
product: WT98997_LTEROW
version-preloader: 0.1.00
version: 0.5
PS: Allow OEM Unlock in developer options is actually on
Also having this issue trying to root my LG G6; I successfully set up adb, fastboot, and started up into bootloader, but it keeps returning the failed/unknown command error when I try to do any further steps. "fastboot devices" shows up correctly but "fastboot oem device-info", device-id, "fastboot flash recovery twrp.img", all keep failing
renforrest-EX said:
Also having this issue trying to root my LG G6; I successfully set up adb, fastboot, and started up into bootloader, but it keeps returning the failed/unknown command error when I try to do any further steps. "fastboot devices" shows up correctly but "fastboot oem device-info", device-id, "fastboot flash recovery twrp.img", all keep failing
Click to expand...
Click to collapse
same
Did you try another USB port? Some users reported that USB 3.0 did not work but 2.0.
I would be willing to bet this is happening on devices that are not allowed to be unlocked. Like those purchased from a phone company.
its been a week since i'm trying on my htc 10, but getting the same error, i tried,
- delete the drivers and re-install
- delete sync manager
- enabled debug & oem unlock
- done reset factory for the phone
- change USB ports and cables
- tried 3 latops
nothing works, sometimes i'll just the error "waiting for any phone" and other times "FAILED (remote: unknown command)"
Angelelz said:
Hello, I'm trying to follow This guide and This one to unlock the bootloader with no luck.
FAILED (remote: unknown command)
finished. total time: 0.000s[/CODE]
I updated drivers and adb and fastboot with no luck.
Try fastboot oem unlock first, then fastboot oem get_unlock_data
Any help?
Edit: I have a Moto G6 Plus in RETLA channel with the march security patch.
Click to expand...
Click to collapse
Try fastboot oem unlock first then fastboot oem get_unlock_data
I'm following a tutorial and obviously got stuck and the very same step as you did. And presumably you are following a tutorial, too.
1. Go to Security Settings and remove device lock (PIN, fingerprint, whatever you are using) and set it to NONE.
2. Go to Developer Settings and Unlock Bootloader. (If you skip step 1., you'll be asked to unlock your device here, but find that the Unlocking failed afterwards. Hence, go to step 1. and remove the lock first.)
3. fastboot oem unlock
Done. (Bootloader is unlocked now. Confirm via boot to fastboot mode (Volume down + Power button))
fastboot oem get_unlock_data is probably removed (deprecated) and maybe you don't even need a key from the manufacturer to unlock anymore.
gelignite said:
maybe you don't even need a key from the manufacturer to unlock anymore.
Click to expand...
Click to collapse
You still need a key to unlock the bootloader for the first time! When it's locked with status "flashing_locked" you don't need a key for it.
Is it a brand new device...?
WoKoschekk said:
You still need a key to unlock the bootloader for the first time! When it's locked with status "flashing_locked" you don't need a key for it.
Is it a brand new device...?
Click to expand...
Click to collapse
If that question refers to my post: I have a Moto E4 (XT1762). Bought it like half a year ago to tinker around with. I started it, ran all updates available and set a device lock (here: PIN).
Today I finally found the time to get started with lineageos and followed the guide at: rootmygalaxy.net (download-and-install-lineage-os-16-on-motorola-moto-e4-android-9-0-pie)
I got stuck at the error the OP had. (This lead me here.)
In my case I got past the error by doing the steps mentioned in my first post, i.e.
1. started the device (normal boot) and got rid of the device lock (PIN in my case), enabled USB debugging, enabled bootloader unlocking
2. powered off the device and started it again in fast boot mode (volume down + power button)
3. On computer / in terminal: fastboot oem unlock (without any key from the manufacturer)
The device showed a confirmation dialog. (Volume up: Yes, Volume down: No)
Code:
[email protected]:~/downloads/lineageos/Android_SDK_platform_tools/platform-tools$ ./fastboot oem unlock
(bootloader) Start unlock flow
OKAY [ 9.657s]
Finished. Total time: 9.667s
Now in fast boot screen I see Device Status: unlocked
I just wanted to share my experiences from today's struggles and maybe it'll help the OP.
gelignite said:
If that question refers to my post: I have a Moto E4 (XT1762). Bought it like half a year ago to tinker around with. I started it, ran all updates available and set a device lock (here: PIN).
Today I finally found the time to get started with lineageos and followed the guide at: rootmygalaxy.net (download-and-install-lineage-os-16-on-motorola-moto-e4-android-9-0-pie)
I got stuck at the error the OP had. (This lead me here.)
In my case I got past the error by doing the steps mentioned in my first post, i.e.
1. started the device (normal boot) and got rid of the device lock (PIN in my case), enabled USB debugging, enabled bootloader unlocking
2. powered off the device and started it again in fast boot mode (volume down + power button)
3. On computer / in terminal: fastboot oem unlock (without any key from the manufacturer)
The device showed a confirmation dialog. (Volume up: Yes, Volume down: No)
Code:
[email protected]:~/downloads/lineageos/Android_SDK_platform_tools/platform-tools$ ./fastboot oem unlock
(bootloader) Start unlock flow
OKAY [ 9.657s]
Finished. Total time: 9.667s
Now in fast boot screen I see Device Status: unlocked
I just wanted to share my experiences from today's struggles and maybe it'll help the OP.
Click to expand...
Click to collapse
Moto E4 is a developer's device without a locked bootloader. I thought you were talking about a Moto G6.
Baronstragen said:
Try fastboot oem unlock first then fastboot oem get_unlock_data
Click to expand...
Click to collapse
fastboot oem unlock worked for me

Xiaomi Mi8 bricked by locking bootloader after running Lineage OS

After having problems restoring my Lineage OS (TWRP Restore), I found a guide that recommended to do a "fastboot flashing lock" and "fastboot flashing unlock" to delete the data partition. In a fit of mental derangement I did exactly did that. Well, at least the the first part. Stupid move - really. Now I'm stuck with a locked bootloader. I can't unlock it via fastboot commands:
c:\fastboot flashing unlock
FAILED (remote: 'Token Verify Failed, Reboot the device
')
fastboot: error: Command failed
Same results for "fastboot oem unlock".
Fyi:
c:\fastboot oem device-info
(bootloader) Verity mode: true
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
The Mi Unlock tool gives me a charming "Please add your account in MIUI's Settings > Developer options > Mi Unlock status." Which isn't possible because I had Lineage OS running and I can only get into Fastboot now. If I try to boot regularly the phone says "The system has been destroyed".
Well, I almost accepted that I have to dismantle the phone to get into EDL mode, but then I discovered hints that I might need some kind of authorization to update the phone via EDL mode. And a lot of shady offers to do exactly that ...
Did I brick my phone for good, or is there any hope to fix it?
Thanks a lot!
Hi, did you solved it?
If not, try to ut the phone in fastboot mode, then download exactly stock firmware (global, india, china,...etc) version for this phone, then flash it via Miflash.

Categories

Resources