M8 s-on, relocked bootloader custom recovery...cannot unlock bootloader again

Search This thread

WarEduar

Senior Member
Aug 24, 2011
193
12
Medellín
hi mates,

here is my problem, m8 whit kikat, s-on.


I tried to update to version 5 per ota but by recovery custom I did not allow it, by mistake I gave a relock to the bootloader with the twrp now I can not unlock the bootloader nor can I put the original recovery because I always get the error failed signature , What I can do, i need to reflash the stock recovery.

fastboot flash unlocktokem code.bin
target reported max download size of 1826017280 bytes
sending 'unlocktokem' (0 KB)...
OKAY [ 0.142s]
writing 'unlocktokem'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 0.158s
 
Last edited:

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,354
18,301
Kuala Lumpur
fastboot flash unlocktokem code.bin
target reported max download size of 1826017280 bytes
sending 'unlocktokem' (0 KB)...
OKAY [ 0.142s]
writing 'unlocktokem'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 0.158s

unlocktokem is wrong
unlocktoken is correct

fastboot flash unlocktoken Unlock_code.bin
 
Last edited:
  • Like
Reactions: ahmed.ismael

saiyansection

Senior Member
Aug 10, 2013
93
3
29
Pune
nice to see you around ( long time no see you )



it turns out OP was sending a wrong command i didn't notice it was "m" not "n" :rolleyes:
anyway he did what he wants to do

bro when i try to relock it error comes as

bootloader) [PGFS] partition_update_pgfs: pg1fs_security
(bootloader) TZ_HTC_SVC_ENC ret = 0
(bootloader) [PGFS] partition_update_pgfs: pg2fs_sec_recovery
(bootloader) Lock successfully...
(bootloader) deinit_lcd
(bootloader) mipi display off
(bootloader) mdp_clock_off
(bootloader) turn off fd8c2308 failed 1 times. Try again...
(bootloader) disable_mmss_clk done
(bootloader) pll1_disable done
(bootloader) TZ_HTC_SVC_DISABLE ret = -1610744452 (0x9FFDFD7C)
(bootloader) [CRITICAL] SPMI write command failure: cmd_id = 0, error
(bootloader) = 4
(bootloader) [CRITICAL] SPMI write command failure: cmd_id = 0, error
(bootloader) = 4
(bootloader) [ERR] Cannot halt SPMI arbiter!!
(bootloader) [INFO] Rebooting device
FAILED (status read failed (No such device))
finished. total time: 6.177s

phone gets rebooted and then nothing happens
 

ahmed.ismael

Senior Member
Oct 14, 2015
2,443
1,252
Samsung Galaxy S21+
Xiaomi Poco F3
bro when i try to relock it error comes as

bootloader) [PGFS] partition_update_pgfs: pg1fs_security
(bootloader) TZ_HTC_SVC_ENC ret = 0
(bootloader) [PGFS] partition_update_pgfs: pg2fs_sec_recovery
(bootloader) Lock successfully...
(bootloader) deinit_lcd
(bootloader) mipi display off
(bootloader) mdp_clock_off
(bootloader) turn off fd8c2308 failed 1 times. Try again...
(bootloader) disable_mmss_clk done
(bootloader) pll1_disable done
(bootloader) TZ_HTC_SVC_DISABLE ret = -1610744452 (0x9FFDFD7C)
(bootloader) [CRITICAL] SPMI write command failure: cmd_id = 0, error
(bootloader) = 4
(bootloader) [CRITICAL] SPMI write command failure: cmd_id = 0, error
(bootloader) = 4
(bootloader) [ERR] Cannot halt SPMI arbiter!!
(bootloader) [INFO] Rebooting device
FAILED (status read failed (No such device))
finished. total time: 6.177s

phone gets rebooted and then nothing happens
which device variant you have ?
also why you want to relock the bootloader ?

Sent from my OnePlus 5T using XDA Labs
 

saiyansection

Senior Member
Aug 10, 2013
93
3
29
Pune
which device variant you have ?
also why you want to relock the bootloader ?

Sent from my OnePlus 5T using XDA Labs

I feel like my htc one m8 is messed up with emmc hardware , as i have phone suddenly rebooted

phone is s-on with unlocked bootloader!

current scenario is /data is corrupted I have tried all methods like changing the /data filesystem , format internal storage through TWRP , Repair the /data but no luck

bootloader is not getting relocked by using fastboot oem lock , unable to pass RUU through fastboot , fastboot zip gets halted if i try to pass RUU.zip through sdcard!

please help me to resolve the issue


fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.24.21331147A1.09G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: Hxxxxxxxxxxxxx
(bootloader) imei: xxxxxxxxxxxxxxxxx
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B65000
(bootloader) cidnum: HTC__038
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 3aa067db
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.035s
 

ahmed.ismael

Senior Member
Oct 14, 2015
2,443
1,252
Samsung Galaxy S21+
Xiaomi Poco F3
I feel like my htc one m8 is messed up with emmc hardware , as i have phone suddenly rebooted

phone is s-on with unlocked bootloader!

current scenario is /data is corrupted I have tried all methods like changing the /data filesystem , format internal storage through TWRP , Repair the /data but no luck

bootloader is not getting relocked by using fastboot oem lock , unable to pass RUU through fastboot , fastboot zip gets halted if i try to pass RUU.zip through sdcard!

please help me to resolve the issue


fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.24.21331147A1.09G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: Hxxxxxxxxxxxxx
(bootloader) imei: xxxxxxxxxxxxxxxxx
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B65000
(bootloader) cidnum: HTC__038
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 3aa067db
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.035s
have you tried to back to stock using twrp backups ?
from this thread https://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860

it's the easiest way to back to stock and see if your problem is solved
also you can update through OTA easily ( just accept it ) also it doesn't matter if the bootloader is locked or unlocked in this method

Sent from my OnePlus 5T using XDA Labs
 

saiyansection

Senior Member
Aug 10, 2013
93
3
29
Pune
have you tried to back to stock using twrp backups ?
from this thread https://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860

it's the easiest way to back to stock and see if your problem is solved
also you can update through OTA easily ( just accept it ) also it doesn't matter if the bootloader is locked or unlocked in this method

Sent from my OnePlus 5T using XDA Labs

thanks brother at least you gave me proper suggestion ,

i am downloading backup , will flash and will let you know!

hope this will work :)
 

saiyansection

Senior Member
Aug 10, 2013
93
3
29
Pune
have you tried to back to stock using twrp backups ?
from this thread https://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860

it's the easiest way to back to stock and see if your problem is solved
also you can update through OTA easily ( just accept it ) also it doesn't matter if the bootloader is locked or unlocked in this method

Sent from my OnePlus 5T using XDA Labs

I have tried to restore backup but data is not getting restored hence it is failing to restore!

when i only marked to restore cache , it went till 30mb and then phone rebooted itself!

any idea to set up m8 partitions? like my /data partition is corrupted or there is damn possibility of EMMC failure!

i have tried almost all methods still data is not mounting!
 

ahmed.ismael

Senior Member
Oct 14, 2015
2,443
1,252
Samsung Galaxy S21+
Xiaomi Poco F3
I have tried to restore backup but data is not getting restored hence it is failing to restore!

when i only marked to restore cache , it went till 30mb and then phone rebooted itself!

any idea to set up m8 partitions? like my /data partition is corrupted or there is damn possibility of EMMC failure!

i have tried almost all methods still data is not mounting!
did you used the suggested twrp version in the thread ( every backup have a suggested twrp version ) ?

if yes then try to format data in twrp then reboot to twrp and wipe all partitions then restore system and boot then reboot to system
if not solved i'm afraid it's a hardware failure and i can't help you further sorry

Sent from my OnePlus 5T using XDA Labs
 

saiyansection

Senior Member
Aug 10, 2013
93
3
29
Pune
did you used the suggested twrp version in the thread ( every backup have a suggested twrp version ) ?

if yes then try to format data in twrp then reboot to twrp and wipe all partitions then restore system and boot then reboot to system
if not solved i'm afraid it's a hardware failure and i can't help you further sorry

Sent from my OnePlus 5T using XDA Labs

https://www.aliexpress.com/item/329...chweb0_0,searchweb201602_8,searchweb201603_52

its EMMC failure , so can i fix this motherboard on my old HTC one m8 16gb? please suggest so i can order!

above link is related to 32GB
 

saiyansection

Senior Member
Aug 10, 2013
93
3
29
Pune
as i said,if it's a hardware failure i can't help
sorry

Sent from my OnePlus 5T using XDA Labs

Image CRC check result

rpm :0xAxxxxxxAB
sbl1: :0x9xxxxxxC4
sbl2 :0x0
sbl3 :0x0
tz :0xCxxxxxxxDC
radio :0x3xxxxxxx83
hboot :0x6DxxxxxxGA
boot :0x0
recovery :0x0
system :0x2xxxxxxxx8C

Can you explain the meaning of this... So i will be sure that it's hardware issue only..

Check sbl2 and sbl3
 

ahmed.ismael

Senior Member
Oct 14, 2015
2,443
1,252
Samsung Galaxy S21+
Xiaomi Poco F3
Image CRC check result

rpm :0xAxxxxxxAB
sbl1: :0x9xxxxxxC4
sbl2 :0x0
sbl3 :0x0
tz :0xCxxxxxxxDC
radio :0x3xxxxxxx83
hboot :0x6DxxxxxxGA
boot :0x0
recovery :0x0
system :0x2xxxxxxxx8C

Can you explain the meaning of this... So i will be sure that it's hardware issue only..

Check sbl2 and sbl3
sorry i can't

Sent from my OnePlus 5T using XDA Labs
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    request another unlock code from http://www.htcdev.com/bootloader/
    and flash it then you can flash the stock recovery and do ota
    or simply search for an RUU for your device variant ( if it's available ) and flash it while relocked
    1
    fastboot flash unlocktokem code.bin
    target reported max download size of 1826017280 bytes
    sending 'unlocktokem' (0 KB)...
    OKAY [ 0.142s]
    writing 'unlocktokem'...
    (bootloader) signature checking...
    FAILED (remote: signature verify fail)
    finished. total time: 0.158s

    unlocktokem is wrong
    unlocktoken is correct

    fastboot flash unlocktoken Unlock_code.bin