[FIXED][Q] Stuck in a relocked bootloader (bootloader [ERR] Command Error)

XSafire

Senior Member
May 5, 2009
316
44
0
I'm stuck with a 1.55 hboot it seems. I have S-off, but the bootloader is relocked. I'm desperately trying to unlock it again.

I've gotten my unlock token from htcdev, but I get an error.
Code:
fastboot gettoken Unlock_code.bin
returns
Code:
(bootloader) [ERR] Command error !!!
and doesn't give me the option to unlock the bootloader on the device. fastboot oem unlock returns the same error.

Can anyone help me out here?

Here's my getvar
Code:
[email protected]:~/Downloads/rumrunner$ sudo fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.55.0000
(bootloader) version-baseband: 4A.21.3263.04
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.62.401.1
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: 
(bootloader) imei: 
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0712000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 4040mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-bb768ae1
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
 
Last edited:

Guich

Senior Member
May 18, 2012
4,413
3,334
0
Somewhere
I'm stuck with a 1.55 hboot it seems. I have S-off, but the bootloader is relocked. I'm desperately trying to unlock it again.

I've gotten my unlock token from htcdev, but I get an error.
Code:
fastboot gettoken Unlock_code.bin
returns
Code:
(bootloader) [ERR] Command error !!!
and doesn't give me the option to unlock the bootloader on the device. fastboot oem unlock returns the same error.

Can anyone help me out here?
Mate, remove your IMEI and your S/N from op.
However, in the top of bootloader you will see relocked?
If yes, go in recovery and:

1) use the command:
Code:
adb shell[/url]
2) [code]su
3)
Code:
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
4)
Code:
exit
, probably you new type this x2

Now you will see unlocked in your bootloader and you can flash all you want :)
 
  • Like
Reactions: XSafire

XSafire

Senior Member
May 5, 2009
316
44
0
Mate, remove your IMEI and your S/N from op.
However, in the top of bootloader you will see relocked?
If yes, go in recovery and:

1) use the command:
Code:
adb shell[/url]
2) [code]su
3)
Code:
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
4)
Code:
exit
, probably you new type this x2

Now you will see unlocked in your bootloader and you can flash all you want :)
Thanks a ton! I searched for hours and couldn't find a solution. That worked great.

What exactly is the code doing that I ran, if you wouldn't mind explaining it to me.
 

n1234d

Senior Member
Aug 18, 2013
1,375
483
0
Mumbai
Anyways, you were typing the wrong command.. it's actually fastboot flash unlocktoken Unlock_code.bin

Sent from my HTC One using Tapatalk
 

Guich

Senior Member
May 18, 2012
4,413
3,334
0
Somewhere
Thanks a ton! I searched for hours and couldn't find a solution. That worked great.

What exactly is the code doing that I ran, if you wouldn't mind explaining it to me.
The code will change in that partition the string of unlocked, locked etc.
Now you have the unlocked string :)

Anyways, you were typing the wrong command.. it's actually fastboot flash unlocktoken Unlock_code.bin

Sent from my HTC One using Tapatalk
Is better unlock without htcdev if you're s-offed ;)
 

n1234d

Senior Member
Aug 18, 2013
1,375
483
0
Mumbai
The code will change in that partition the string of unlocked, locked etc.
Now you have the unlocked string :)



Is better unlock without htcdev if you're s-offed ;)
That's right ;) but anyways, just so that the OP knows what the mistake was.


Sent from my iPod touch using Tapatalk