Trouble (accidentally locked dev edition device) - One (M8) Q&A, Help & Troubleshooting

I accidentally locked the bootloader on my developer edition one M8. I was returning it to stock for a warranty exchange (I already have the replacement device and I need to ship the old one back within the next few days).
I need to get this thing back to stock ASAP
Right now my bootloader is locked (laugh all you want. I'm an idiot.) but I'm S-OFF. Where do I go from here? I need to make sure I'm S-ON and have the tampered flag removed before I send it back, otherwise I'm sure they will bill me for a replacement motherboard and not allow me to have any say in that.

This is basically what I need to undo (I was in a hurry and copy/pasted the wrong text from a tutorial)
adb shell
su
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
exit
exit

Code:
to UNLOCK your bootloader,enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
This is from this thread -
http://forum.xda-developers.com/showthread.php?t=2708571

Thanks a million! It worked like a charm!

Related

restore "locked" flag in bootloader with s-off

Hi,
this is the adb command for m7:
adb shell echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
which partition is this on m8?
here is the m8 partition list: https://docs.google.com/spreadsheets/d/1uTfhr5sUFpdYKpHMFOOUnb1T5kOBu411_rcEb_Fz37A/edit#gid=0
can't find this for m7, someone has a link?
regards
starbase64
starbase64 said:
Hi,
this is the adb command for m7:
adb shell echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
which partition is this on m8?
here is the m8 partition list: https://docs.google.com/spreadsheets/d/1uTfhr5sUFpdYKpHMFOOUnb1T5kOBu411_rcEb_Fz37A/edit#gid=0
can't find this for m7, someone has a link?
regards
starbase64
Click to expand...
Click to collapse
look here

[Q] I can't reunlock bootloader (Relocked)

Hi, this is my first thread at XDA
I have a problem with my HTC one
my bootloader is RELOCKED after flash a RUU.
HTCdev sent me a error, so i cant unlock the bootloader with this method.
any of you can help me to reunlock my bootloader?
Elneu said:
Hi, this is my first thread at XDA
I have a problem with my HTC one
my bootloader is RELOCKED after flash a RUU.
HTCdev sent me a error, so i cant unlock the bootloader with this method.
any of you can help me to reunlock my bootloader?
Click to expand...
Click to collapse
are you s-off by chance?
synisterwolf said:
are you s-off by chance?
Click to expand...
Click to collapse
yes, I'm still S-off
Elneu said:
yes, I'm still S-off
Click to expand...
Click to collapse
follow this guide
http://forum.xda-developers.com/showthread.php?t=2475914
Code:
to UNLOCK your bootloader,enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
synisterwolf said:
follow this guide
http://forum.xda-developers.com/showthread.php?t=2475914
Code:
to UNLOCK your bootloader,enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
Click to expand...
Click to collapse
Thanks a lot, it works

[Q] Help.Changing MID meets a problem.

I followed this thread to change my mid to Developer Edition,but I've got a problem
[how to]change your MID without the eng bootloader
I'm under Windows 8.1
when I run
Code:
adb shell
Code:
echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\ x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384
it showed this:
Code:
0\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384
/dev/block/mmcblk0p5:cannot open for write: Permission denied
I thought running su might help,however after I run su it showed:
Code:
su
/system/bin/sh:su:not found
Any one knows how to deal with this?I think it's a permission problem,so do I have to run it under Linux as root?Or there's another way?
I have solved this problem,just have my device rooted,then it worked.
1. your device must be S-Off & rooted
2. adb shell
3. su
4. su
5. run that command
6. exit
7. exit
8. done
ckpv5 said:
1. your device must be S-Off
2. adb shell
3. su
4. su
5. run that command
6. exit
7. exit
8. done
Click to expand...
Click to collapse
I'm s-off,and I'm thinking if I have to root my device.Perhaps that's the solution.
int_young said:
I'm s-off,and I'm thinking if I have to root my device.Perhaps that's the solution.
Click to expand...
Click to collapse
Yes ... device must be S-Off and rooted.

M9 S-0ff, can't unlock

Verizon M9, is S-0ff, cid 11111111.
When I do fastboot request for token, here's the error message:
c:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot oem get_identifier_token
(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp
(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock
(bootloader) [KillSwitch] oem unlock Turn Off!
OKAY [ 0.071s]
finished. total time: 0.072s
Can you guess what this is and how to fix it?
Thanks
michaelbsheldon said:
Verizon M9, is S-0ff, cid 11111111.
When I do fastboot request for token, here's the error message:
c:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot oem get_identifier_token
(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp
(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock
(bootloader) [KillSwitch] oem unlock Turn Off!
OKAY [ 0.071s]
finished. total time: 0.072s
Can you guess what this is and how to fix it?
Thanks
Click to expand...
Click to collapse
How to unlock the bootloader? Don't go through HTC (they don't need to know )
http://forum.xda-developers.com/one-m9/general/how-to-lock-unlock-bootloader-htcdevs-t3092036
to UNLOCK your bootloader,enter the following:
Code:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
andybones said:
How to unlock the bootloader? Don't go through HTC (they don't need to know )
http://forum.xda-developers.com/one-m9/general/how-to-lock-unlock-bootloader-htcdevs-t3092036
to UNLOCK your bootloader,enter the following:
Code:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
Click to expand...
Click to collapse
Thanks for this: it was stock recovery, no SU - but finally got it done....
:good::good::good:
Tried that, though got the following
-ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796 <
dd: /dev/block/mmcblk0p2: Permission denied
1|[email protected]_himawl:/ $
Any idea what that is, and how to rectify?
andybones said:
How to unlock the bootloader? Don't go through HTC (they don't need to know )
http://forum.xda-developers.com/one-m9/general/how-to-lock-unlock-bootloader-htcdevs-t3092036
to UNLOCK your bootloader,enter the following:
Code:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
Click to expand...
Click to collapse
mlev1987 said:
-ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796 <
dd: /dev/block/mmcblk0p2: Permission denied
1|[email protected]_himawl:/ $
Any idea what that is, and how to rectify?
Click to expand...
Click to collapse
Copy n paste code...
The code is:
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
Not
-ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
Forgetting "echo"
You're lucky you didn't brick your device.
andybones said:
Copy n paste code...
The code is:
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
Not
-ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
Forgetting "echo"
You're lucky you didn't brick your device.
Click to expand...
Click to collapse
I copy and pasted exactly how you put it, with echo as well. This is the response I got
mlev1987 said:
I copy and pasted exactly how you put it, with echo as well. This is the response I got
Click to expand...
Click to collapse
You're doing something wrong then. Guy above you followed same direction and worked fine.
This is link to the thread if you want to direct your questions there.
http://forum.xda-developers.com/one-m9/general/how-to-lock-unlock-bootloader-htcdevs-t3092036
andybones said:
You're doing something wrong then. Guy above you followed same direction and worked fine.
This is link to the thread if you want to direct your questions there.
http://forum.xda-developers.com/one-m9/general/how-to-lock-unlock-bootloader-htcdevs-t3092036
Click to expand...
Click to collapse
my phone is not S-off. does that make a difference?
mlev1987 said:
my phone is not S-off. does that make a difference?
Click to expand...
Click to collapse
oh boy.. yes.
Please go to the thread I linked to you.
the guy above you had posted he was S-OFF.
Last thing I'd want is to see a brick happen.
andybones said:
oh lord yes.
Click to expand...
Click to collapse
sorry. back to square one. gotta get s-off
thanks
mlev1987 said:
sorry. back to square one. gotta get s-off
thanks
Click to expand...
Click to collapse
Sunshine now supports the Verizon HTC M9, I highly suggest it.
$25 is WELL worth it.
http://theroot.ninja/index.html
http://forum.xda-developers.com/showthread.php?t=2792487
"3.3.2 - now supports verizon m8 on the marshmallow firmware HTCOneM8vzw/htc_m8wl:6.0/MRA58K/708002.3:user/release-keys
3.3 - The Verizon m9 update
The LONG awaited update, we have added Temproot (and thus unlock and s-off) support for the Verizon HTC m9 on the HTCOneM9vzw/htc_himawl:6.0/MRA58K/669662.7:user/release-keys firmware (latest as of this posting)."
andybones said:
Sunshine now supports the Verizon HTC M9, I highly suggest it.
$25 is WELL worth it.
http://theroot.ninja/index.html
http://forum.xda-developers.com/showthread.php?t=2792487
"3.3.2 - now supports verizon m8 on the marshmallow firmware HTCOneM8vzw/htc_m8wl:6.0/MRA58K/708002.3:user/release-keys
3.3 - The Verizon m9 update
The LONG awaited update, we have added Temproot (and thus unlock and s-off) support for the Verizon HTC m9 on the HTCOneM9vzw/htc_himawl:6.0/MRA58K/669662.7:user/release-keys firmware (latest as of this posting)."
Click to expand...
Click to collapse
Thanks
But what if you already used sunshine and like a dummy relock it to do update. Now I'm s off and can't unlock or relock.
Sent from my HTC6535LVW using Tapatalk
---------- Post added at 02:35 PM ---------- Previous post was at 02:33 PM ----------
I've already downgraded and still cant
Sent from my HTC6535LVW using Tapatalk
johnnycm77 said:
But what if you already used sunshine and like a dummy relock it to do update. Now I'm s off and can't unlock or relock.
Sent from my HTC6535LVW using Tapatalk
---------- Post added at 02:35 PM ---------- Previous post was at 02:33 PM ----------
I've already downgraded and still cant
Have you tried this set of commands with a clean install of rooted custom rom? (With SuperSU setup correctly.)
to UNLOCK your bootloader, enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recommend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
Click to expand...
Click to collapse
I tried that it denied me. I can't root for some reason
Sent from my HTC6545LVW using Tapatalk
johnnycm77 said:
I tried that it denied me. I can't root for some reason
Sent from my HTC6545LVW using Tapatalk
Click to expand...
Click to collapse
If you have TWRP installed, place one of the custom roms from here in the M9 section.
Odexed, deodexed - doesn't matter - just not a stock RUU. It will be rooted already. Then proceed with unlock.
I keep doing that but for some reason it isn't rooted when I boot back up. In my twrp it shows that it installed it but it doesn't. My bootloader status shows locked instead of relocked or tampered.
Sent from my HTC6545LVW using Tapatalk
johnnycm77 said:
I keep doing that but for some reason it isn't rooted when I boot back up. In my twrp it shows that it installed it but it doesn't. My bootloader status shows locked instead of relocked or tampered.
Sent from my HTC6545LVW using Tapatalk
Click to expand...
Click to collapse
Open adb Shell while your phone is booted into twrp. That shell has root prompts by default so simply run the echo cmd to unlock the phone.
Sent from my SM-N930V using Tapatalk
Thank you
Sent from my HTC6535LVW using Tapatalk
dottat said:
Open adb Shell while your phone is booted into twrp. That shell has root prompts by default so simply run the echo cmd to unlock the phone.
Sent from my SM-N930V using Tapatalk
Click to expand...
Click to collapse
NICE, is this for M9 only, or will it work on HTC10?

Reset Warning Flags for E9+

Hello all,
Please help me to reset warning flags for my E9+, in order to send it to HTC. My battery is overheating and the phones turns off, despite the fact it is not warm outside. I presume a temperature sensor is not functioning correctly or a faulty battery cell...
I have S-off, I changed the SuperCID in HTC__621, the original one, I flashed the proper TW RUU, but I need the commands to get rid of "UNLOCKED" and "Status software:Modified" things...
I found the adb commands for M8, M9, M7, but not for E9+...
Can somebody share these to me, please?
Thanks
After a sleepless night, I found the command on a chinese forum. I share it with you now:
adb shell
su
echo -ne '\x00' | dd of=/dev/block/mmcblk0p11 bs=1 seek=39940
Worked perfect for me! I'm back to status "official"!
And for locking/unlocking bootloader (not tested yet) :
adb shell
su
Locked
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p9 bs=1 seek=33796
Unlock
echo -ne 'HTCU' | dd of=/dev/block/mmcblk0p9 bs=1 seek=33796
Relock
echo -ne 'HTCL' | dd of=/dev/block/mmcblk0p9 bs=1 seek=33796

Categories

Resources