yashsingh1/xdaforums huggingface dataset:
[One (M7) General] jsteuart:
unlock / re-locked HTC Fireball - Thanks

Used your method for resetting the Lock flag on my HTC Incredible 4G LTE. I had lost my unlock code and need to get unlocked again!

Flawless.

Thank you.
[One (M7) General] tetakpatak:
LOL, you can warn as much as you want, [MENTION=3437245]scotty1223[/MENTION], people just like to risk. But now we at least know that the method works also for 4G LTE

tetakpatalked from Nexus 7
[One (M7) General] scotty1223:
There is a thread in inc 4g general. I allready knew it worked ;) :D
[One (M7) General] omiron:
A few questions

So... before I go do something crazy with my phone, can anyone please answer these questions?

1. After being locked (but still being s-off), will I be able to use an RUU from my computer?

2. After being locked (but still being s-off), will I be able to flash any other ROMS/Mods?

3. Does it matter which ROM I am using in order to lock / unlock my device?

4. After locking the bootloader and using the RUU (if question 1 is yes), will I be able to unlock it back using the normal way (using the unlock code that was sent to me by HTC - fastboot flash unlocktoken unlock_code.bin)?

5. Will locking/unlocking the bootloader work on the newest hboot, or is it independent of it?

6. Will I be able to s-on after I lock my bootloader? If so, could you please tell me which method/link to a thread that will do the trick?
[One (M7) General] omiron:
2 More Questions :D

1. I am talking about the .exe RUU, which requires you to be relocked/locked. Will it work after I lock my phone and have s-off?

6. Will this thread do the trick if I am willing to go back to s-on? http://xdaforums.com/showthread.php?t=1630569
[One (M7) General] scotty1223:
1. doesnt matter,the exe will run just the same while unlocked.

6. my advice is DO NOT TURN S ON. if you chose not to follow it,youre on your own.
[One (M7) General] tetakpatak:
S-On has nothing to do with guarantee, but can make life very difficult... I also don't get it why so many people want to enable it.

tetakpatalked from Nexus 7
[One (M7) General] globalgpj:
deleted thread,

all solved.
[One (M7) General] Pinak.ahuja:
I had initially s-off'ed my device using firewater temp root method. Then I updated to 4.4.2 with 1.56 hboot. I had to send my phone for warranty so I returned it to stock and locked bootloader but remained s-off. Now I have a device which is s-off but neither rooted nor unlocked. Is there a way I can unlock my phone without using HTCdev?
[One (M7) General] dado75:
+ I have the same question here :D

---------- Post added at 09:25 AM ---------- Previous post was at 09:13 AM ----------

I try this metod and I get this:

C:\miniadb_m7>adb devices

List of devices attached

SH364W902813 device

C:\miniadb_m7>adb shell

shell@m7:/ $ #su

#su

shell@m7:/ $

I have S-off, but my Hboot is 1.56 and it is locked.

Any idea? I just want to root my One again :)
[One (M7) General] scotty1223:
you dont really need to unlock. pack your recovery image with an android info text document for your variant. you can get the document from an OTA firmware package or decrypted ruu.

you can install this type of zip file in the following manner:

if youre working with a booted,operational phone,you can flsh the file in the following manner:

-open a cmd window

-change to adb/fastboot directory

cd c:\foldername

(cd c:\mini-adb if youve used any of my guides :))

-place the zip file you want to flash into adb/fastboot directory

-enable usb debug,disable fastboot,plug in phone

-check for connectivity

adb devices (should return serial number)

-boot to fastboot

adb reboot bootloader

-check for connectivity again

fastboot devices

-flash the file

fastboot erase cache

fastboto oem rebootRUU (will put you in ruu mode,black screen silver htc letters)

fastboot flash zip zipfilename.zip (will send and flash the file. dont interupt it while the cmd window shows its writinging,and the green status bar is moving on the phone screen)

*sometimes a file will fail with a pre-update error. this is normal,just enter again:

fastboot flash zip zipfilename.zip

and this time it will finish

-when you get "finished" and "OK"

fastboot reboot-bootloader (takes you back to fastboot)

-reboot back to the OS

fastbooot reboot

you can use this if you dont have an operational phone as well. you just need to manually put the phone in fastboot(select from hboot menu) then skip the "adb" commands and start with fastboot devices

once you have a custom recovery you can add superuser,or flash a rom. you do not need to unlock,but you can if you want after adding superuser,or by just running the command in recovery,as most custom recoverys have an adb root shell access.
[One (M7) General] tetakpatak:
[MENTION=3437245]scotty1223[/MENTION] strangely, I have been encountering issues with the superuser since Android 4.2.x more frequently.

SuperSU however never failed me, so at least for all supported devices I really prefer it.

Particulary the people who return to stock (major part of visitors of this truely awsome thread) might also benefit from SuperSU's feature of one-click unroot.

What do you think?
[One (M7) General] nkk71:
Hi scotty, love your work :good:

Just dropped by to leave this here: TWRP/CWM for RUU mode for M7_U/UL only

these are packaged with an android-info.txt that has PN0710000 through PN0714000 and all CIDs should work (except 1 or 2 very rare ones).

in bootloader/FASTBOOT USB:

fastboot oem rebootRUU

fastboot flash zip fw_m7ul_TWRP_2.6.3.3_1.26.401.33.zip

fastboot reboot-bootloader

-> enter RECOVERY (should be TWRP or CWM now)

and use [MENTION=3437245]scotty1223[/MENTION]'s commands in custom recovery http://xdaforums.com/showthread.php?t=2475914 to unlock bootloader

C:\ADB3>[B][COLOR="Blue"]adb devices[/COLOR][/B]
List of devices attached
HT34xxxxxxxx recovery [I]<- you need to be in custom recovery to
ensure [B]root[/B] privileges
i.e. an adb shell with [B]#[/B] as opposed to [B]$[/B][/I]

C:\ADB3>[B][COLOR="Blue"]adb shell[/COLOR][/B]

[SIZE="1"][I][U]Note[/U]
CWM shell prompt usually looks like [B]~#[/B]
TWRP shell prompt usually looks like [B]~ # ←[6n[/B]
it doesn't matter, you just type (or even better copy/paste) the commands in bold blue
[/I][/SIZE]

[I][SIZE="1"]Setting UNLOCKED[/SIZE][/I]
~ # [B][COLOR="Blue"]echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796[/COLOR][/B]
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
4+0 records in
4+0 records out
4 bytes (4B) copied, 0.007691 seconds, 520B/s

~ # [B][COLOR="Blue"]exit[/COLOR][/B]
exit

C:\ADB3>[B][COLOR="Blue"]adb reboot bootloader[/COLOR][/B]
^^ if this doesn't work in your particular version, just select reboot to bootloader in TWRP.

ps: your version-main will now say 1.26.401.33 (reflecting the recovery version 2.6.3.3); it didn't actually change, but version-main always show the last thing flashed in ruu mode.

.
[One (M7) General] deeevan:
Cheers [MENTION=3437245]scotty1223[/MENTION] and [MENTION=2605798]nkk71[/MENTION] for making life easier for us
[One (M7) General] dado75:
I follow the procedure and flashed zip file with custom recovery...now I have custom recovery and I manage to root my stock rom. Even my Hboot was changed from 1.56 to 1.54.5555...is that right?

Now when I try to follow Scotty1223 next step to umlock the bootloader, ADB DEVICES command does not recognize my device. I try in fastboot usb, recovery...only when my phone is in usb debugging mode I can see my device.

I have installed latest HTC drivers, fastboot unchecked in use original usb cable. Any idea?

Tnx
[One (M7) General] nkk71:
hboot is unaffected by those packages, they only contain a custom recovery, nothing else is.

for adb, check FAQ #2 while in custom recovery: http://xdaforums.com/showpost.php?p=52135024&postcount=2
[One (M7) General] dado75:
Thank you very much. I follow you tutorial an finnish scotty1223 procedure.

I check my bootloader and I have instead UNLOCK text, rumrunner text?!

https://docs.google.com/file/d/0B0Zk45o3Z_EMUEh5M2dkSmNQQlE/edit

What is that? Did I do something wrong here?

Please any idea will be appriciated.

Tnx
[One (M7) General] nkk71:
You probably flashed a custom rumrunner HBOOTs from here: http://rumrunner.us/hboots/

PS: just checked and "hboot_rumrunner_2.24_401.8.zip" from that site, has hboot 1.54.5555

Since I'm unsure what you want to do, I don't know what to answer exactly, but you can just flash a firmware package to change hboot,

Here are three good threads for firmware(s) for your M7_U and M7_UL models:

[Guide] Vomer's Ultimate AIO - S-OFF, SuperCID, Firmware Upgrade & Custom Recovery (in the firmware section)

or

[2014.03.30][GUIDE] [MOD] GSM Firmware Flashing & Hboots red warning gone

or

[HTC ONE M7] Newest Firmware 4.19.401.11 for KITKAT modified HBOOT, (No Red warning)

remember you need to be S-Off, and don't even THINK about going S-On!!

I think [MENTION=1363323]vomer[/MENTION] uses stock hboots, and the other two use modded hboots to remove the red warning text.

also don't forget the flash has to be done twice:

fastboot oem rebootRUU

fastboot flash zip <name of firmware>.zip

fastboot flash zip <name of firmware>.zip

fastboot reboot-bootloader

EDIT: just noticed you're using the CWM recovery... remember for 4.4 ROMs, you'll need TWRP 2.6.3.3 or higher
[One (M7) General] dado75:
Thank you very much, you are very helpfull. I am trying to set my One like it was before...rooted and able to flash custom roms.

About 2 weeks ago I needed to set my device back to stock because of technical fault and send it back to HTC service. Only thing I leave was S-OFF.

So, now I have S-OFF, rumrunner Hboot 1.54.5555 and custom recovery (fw_m7ul_CWM_6.0.4.5_1.60.401.45.zip) from the link you provide.Now I dunno if my bootloader is UNLOCKED or not, beacouse in booloader says rumrunner instead of actual state of my bootloader. I want to get back to original bootloader and maintain the s-off, so i can securely flash any rom I want.
[One (M7) General] nkk71:
Sure no problem.

If you ran scotty's commands you should be unlocked now. And this is sort of off topic, so in order not to clutter this thread, if you have more questions, please open a new thread in the Q&A section (if you need to get my attention, you can mention me using @ nkk71 <- without the space)

1- Flash a firmware (includes "normal" hboot) from one of the links I gave above

fastboot oem rebootRUU

fastboot flash zip <name of firmware>.zip

fastboot flash zip <name of firmware>.zip <- yes TWICE!!

fastboot reboot-bootloader

now you should have a normal hboot

2- update your recovery to TWRP 2.6.3.3 or higher: get TWRP from:

2.6.3.3: http://techerrata.com/browse/twrp2/m7

or 2.6.3.4: http://techerrata.com/browse/twrp2/m7ul

(make sure MD5 is correct, that site does not play nice with download managers)

2.7.0.4b: http://xdaforums.com/showthread.php?t=2708134

in bootloader/FASTBOOT USB:

fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img

fastboot erase cache

fastboot reboot-bootloader

then you can install any ROM you like.

Enjoy :)
[One (M7) General] dado75:
I did it.

Again, thank you very much for assistance and knowledge...you are true hero for me :)
[One (M7) General] nkk71:
no problem :)

and many thanks to [MENTION=3437245]scotty1223[/MENTION] for his lifesaver threads, has helped a lot of peopel! :good::good:

PS: sorry for the OT posts :o
[One (M7) General] scotty1223:
I agree,I personally always superSU.
[One (M7) General] scotty1223:
Glad you have found the threads useful. Do not worry yourself about the OT posts,that was a good question.I'm sure you have found the answer by now,but for others,the rum runner hboot is patched to ignore the lock flag,so is basically unlocked no matter what the actual flag is reporting.

In addition,it gives full erase and write commands fir all partitions,not just the boot,system and recovery of stock.
[One (M7) General] nkk71:
Interesting, thanks for the info.

I wish there was more documentation about those rumrunner and firewater hboots available, most of the things I found on the net about ENG hboots are pretty useless :(
[One (M7) General] mitas35:
Hi mate, how can i install superuser ?the ling is not working and i just flash RUU so i cant go in recovery anymore pls help .Thanks
[One (M7) General] tetakpatak:
If your bootloader is older than v1.54 you can boot into the custom recovery via fastboot without flashing it. From there on, flashing the SuperSU zip works.

tetakpatalked from Nexus 7 flo
[One (M7) General] uzman1243:
I'm on android 4.4.2 unlocked bootloader and rooted (s-om). I got on OTA update but when I click install, it reboots and goes into twrp. I'm guessing I cant install the OTA update without relocking bootloader and unrooting?

I tried this method to relock the boot loader while im on S-on?
[One (M7) General] IberianPrince:
You can't install OTA because you have twrp. Only stock recovery will process an OTA update.
[One (M7) General] toniybea:
impossible to root or install TWRP, you need to have the original and install
[One (M7) General] IberianPrince:
What do you mean?
[One (M7) General] toniybea:
you need the original recovey and any other root to install.
[One (M7) General] IberianPrince:
I have no idea what you're trying to say. It certainly doesn't bear any relation to my post.
[One (M7) General] toniybea:
I will have not understood then apologizes
[One (M7) General] sporadic77:
Hi, I need to submit my phone for warranty repairs. I have flashed the original RUU, but cant lock the bootloader. I get the following error. PLease help

C:\ADB\sdk\platform-tools>adb shell

shell@android:/ $ echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1

seek=33796

dd of=/dev/block/mmcblk0p3 bs=1 seek=33796 <

/dev/block/mmcblk0p3: cannot open for write: Permission denied

1|shell@android:/ $
[One (M7) General] thanostsimo:
where did you find the original ruu? I can't seem to find any ruu's for me and I don't have a phone right now!
[One (M7) General] Uzephi:
You forgot to ask for su. That is why you got permission denied error. To run these commands, you must have root.
[One (M7) General] zalech:
Status "locked" and "S-ON"

Is there a way to get the factory default status for Bootloader "Locked" and also the S-ON status?

I found this thread and I assume this is the way to get the bootloader status "locked" only??

Cheers
[One (M7) General] Uzephi:
Yes, it will turn your bootloader to locked. After you do that, run an ruu to be on official firmware before going s-on as you will hard brick your device if you are on any custom stuff when you run the Fastboot oem command to turn s-on
[One (M7) General] tetakpatak:
There is no need for S-On

tetakpatalked from Nexus 7 flo
[One (M7) General] neosic:
So I'm curious, does this really lock the bootloader or this a visual thing?
[One (M7) General] nkk71:
it's not visual, this will truly LOCKED / UNLOCKED your bootloader
[One (M7) General] neosic:
Good to know. However feels like I went through a bunch just to get the bootloader unlocked when I first did this and now I just thought it was too easy to lock it again.
[One (M7) General] scotty1223:
the main point of this is to get back to stock locked if you need to warranty your device. without it,best you can do is relocked
[One (M7) General] urkotheone:
I locked bootloader with these commands on first site and install RUU so i went back to stock recovery and rom. I left S-OFF.

Now I want to unlock bootloader but i can't (permission denied). That's probably because i have stock recovery and no root ( SU).

So can someone please tell me how ( with all commands) how to install custom recovery and SU so i can unlock bootloader again ? Because fastboot flash recovery recovery.img doesn't work because of locked bootloader.

Thank you
[One (M7) General] wewenk:
What is your device?

Find your recovery.zip or firmware.zip file from latest ota zip file.

Change the recovery.img with your custom recovery in that zip file with 7zip.

Flash it on fastboot under rebootRUU mode
[One (M7) General] nkk71:
and again :p

Since you are S-Off, use a custom recovery masked in a firwmare package: you can use of these "firmware" packages (m7_u/ul only):

http://www.androidfilehost.com/?w=files&flid=13085

in bootloader/FASTBOOT USB:

fastboot oem rebootRUU

fastboot flash zip fw_m7ul_TWRP_2.6.3.3_1.26.401.33.zip

fastboot reboot-bootloader

-> enter RECOVERY (should be TWRP or CWM now)

and use scotty1223's commands in custom recovery http://xdaforums.com/showthread.php?t=2475914 to unlock bootloader

C:\ADB3>[B][COLOR="Blue"]adb devices[/COLOR][/B]
List of devices attached
HT34xxxxxxxx recovery [I]<- you need to be in custom recovery to
ensure [B]root[/B] privileges
i.e. an adb shell with [B]#[/B] as opposed to [B]$[/B][/I]

C:\ADB3>[B][COLOR="Blue"]adb shell[/COLOR][/B]

[SIZE="1"][I][U]Note[/U]
CWM shell prompt usually looks like [B]~#[/B]
TWRP shell prompt usually looks like [B]~ # ←[6n[/B]
it doesn't matter, you just type (or even better copy/paste) the commands in bold blue
[/I][/SIZE]

[I][SIZE="1"]Setting UNLOCKED[/SIZE][/I]
~ # [B][COLOR="Blue"]echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796[/COLOR][/B]
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
4+0 records in
4+0 records out
4 bytes (4B) copied, 0.007691 seconds, 520B/s

~ # [B][COLOR="Blue"]exit[/COLOR][/B]
exit

C:\ADB3>[B][COLOR="Blue"]adb reboot bootloader[/COLOR][/B]
^^ if this doesn't work in your particular version,
just select reboot to bootloader in TWRP.

ps: your version-main will now say 1.26.401.33 (reflecting the recovery version 2.6.3.3); it didn't actually change, but version-main always shows the last thing flashed in ruu mode.

.
[One (M7) General] Quipp:
as soon as I write the secure flag 3 the devices is locked and S-on again. but also the Tampert flag is back.

were am I going wrong
[One (M7) General] deeevan:
You're better off in this thread: http://xdaforums.com/showthread.php?t=2541082

Read the bit about going S-ON with hboot 1.55 and above
[One (M7) General] gelo01:
Hello guys! i just want to ask if i reset my locked status, does it mean that my bootloader is locked, just like when i was on stock unrooted ROM out of the box? i want to ask this because some of the ROMs, kernels and/or MODs out here does require an unlocked bootloader. thanks guys! :)
[One (M7) General] miggsr:
If you lock it yes it will be as it was stock locked now you still can flash roms and firmware with a locked Bootloader only thing you can't do is flash recovery
[One (M7) General] scotty1223:
you can still flash a recovery. you just need to pack it up in a zip file with an android info document and flash via ruu mode.

you do not need to be unlocked for anything. it is strictly a personal preference(of youd rather use fastboot flash than a zip file)
[One (M7) General] miggsr:
Yes you are right I just didn't think of it at that moment but yes.. What's funny also I just did that for one of my devices couple days ago lol
[One (M7) General] Kratos90:
hi, I ran and RUU and restored my phone to stock (I was S-Off and unlocked), I'm sending my phone in for warranty service and want to at least set the bootloader which now says relocked to just locked. For some reason when I'm running the command it says invalid argument. Any idea how I can get it to work?
[One (M7) General] Uzephi:
The command needs root. Reroot lock then run ruu again. After you ruu then you can S-on
[One (M7) General] Kratos90:
Thanks, I did root it, but it didn't work, no idea why. just after posting I thought of that same idea :) (RUUing now), thanks again :highfive:
[One (M7) General] Uzephi:
You could do the recovery flashable zip. Needs twrp or cwm
[One (M7) General] Kratos90:
delete, got it working, thanks bro
[One (M7) General] Smac7:
delete
[One (M7) General] lateral18:
hi ,

this looks great . one question though , will this affect the flashing of future firmware to the phone , or is a just a mod ?
[One (M7) General] miggsr:
If you are s-off you will still be able to flash firmware zips.
[One (M7) General] lateral18:
I know that,

I meant If it is to affect it ?
[One (M7) General] miggsr:
Clarify affect it? As far as I know it does not.
[One (M7) General] Uzephi:
This method also will work with anything else you want to flash, like firmware, etc.

this isn't a mod. It will actually lock or unlock your bootloader. Read what Scotty said in the quoted text above and please read the thread before asking questions. This answer was literally on the last page.
[One (M7) General] lateral18:
Now I know , see I read till page 22, didn't find anything , so I ask

Thanks for the clarification
[One (M7) General] icanttinkofaname:
I found a SU.zip that I managed to flash (the link in OP is dead). Now when I type adb shell it outputs: Viper One @/${/B] is this because I'm running ViperOne 6.2.1? is that output from it's own Super user app or what's going on here? I want to flash a stock rom for repairs. Can I do that at the moment without re-unlocking the bootloader?

ok. unlocked it. nevermind
[One (M7) General] miggsr:
Are you attempting to do this from the phone.... If so it will not work. This must be done from pc... And rooted. Any rooted rom will work I'm pretty sure that it says that in op. Secondly are you S-off... If you are s-on this will not work either. If you still are s-on and you want to flash ruu for repair type "fastboot oem lock" while the phone is in bootloader
[One (M7) General] icanttinkofaname:
thank you for the assistance. I managed to sort it all out in the end. all 100% stock again for repairs.
[One (M7) General] stoned99:
The link above doesn't work anymore. Any idea is still a way to keep bootloader locked and gaining root access with an S-Off M7?

I'd like to use this tool to change my bootloader to locked instead of relocked and would like to get rid of the HTC test device message.
[One (M7) General] miggsr:
Are you s-off? With a rooted rom then yes this will work
[One (M7) General] stoned99:
I'm S-Off. But since my bootloader is relocked and that I don't have a custom recovery, I can't install a rooted rom
[One (M7) General] miggsr:
Just backup everything on the computer then use htc dev to unlock once that's done flash custom recovery I recommend twrp it will install su on your device once you boot up install the su then follow the lock command from this thread. Your bootloader will look like this. You can still flash recovery using flashify app
[One (M7) General] Uzephi:
If I remember right, locked or relocked while s-off only restricts Fastboot commands from bootloader. Doing anything in ruu mode should still work, like flashing a custom recovery from a packaged zip
[One (M7) General] stoned99:
Unfortunately the unlock file from HTC DEV didn't work. After flashing it, I didn't get anything on the phone to select the YES option to unlock it (like the first time it was unlocked).

---------- Post added at 02:13 PM ---------- Previous post was at 02:13 PM ----------

oh good to know. I didn't know that. I'll try it and let you know. Thanks!
[One (M7) General] miggsr:
Odd you may have missed something. If your bootloader says ***RELOCKED*** and you run the command for the unlock it should work. Are you using the same unlock token provided from htcdev
[One (M7) General] stoned99:
Nope, I requested another one from HTC DEV. I've had that issue before. The only option was to run the RUU and then I was able to use the unlock token provided by HTC. I just don't want to run the RUU before the version available breaks my touchscreen.
[One (M7) General] miggsr:
Put phone in bootloader. Make sure it says fastboot usb in command prompt type fastboot devices see if your serial shows up. I'm just trying to double check if it's the wire or USB cable
[One (M7) General] stoned99:
I've done it multiple times with that cable and that phone so I know it's not in the cable or the wire. It's really related to the phone/hboot. Back a year ago when I had this issue I even had help from an HTC tech who finally provided with a RUU for my carrier then the unlock using the HTC unlock token worked.
[One (M7) General] sjorge3442:
Like the guy above said, this link is dead. how can I install Superuser on a stock recovery, relocked bootloader, that all I want to do is set to locked, so I can send in to AT&T for warranty?