yashsingh1/xdaforums huggingface dataset:
[One (M7) General] clsA:
worked great [MENTION=3437245]scotty1223[/MENTION]

Just grabbed my self an extra 25gigs of Google drive space

Thanks for posting this
[One (M7) General] scotty1223:
Sorry,forgot to reply to that question,thanks. The flag is in a different partition,so it's independent of hboot version.
[One (M7) General] scotty1223:
I'm not sure exactly what you're asking. If the question is "will running the ruu change me back to locked?" Then the answer is no.

Again,this is NOT a patched hboot. It's legitimately changing the flag hboot checks to determine lock status. Official,out of the box stock locked.
[One (M7) General] naughty6t9:
Deleted
[One (M7) General] kikinhorap:
Hey! I have tried to lock it but after typing adb shell I get this "shell@android:\ $" instead of the # that you are getting. I've tried to type "su" after that but it says that the command cannot be found. Also, when I type the code "echo -ne..." it says that I have permission denied so dunno what to do now...any advice?

Thanks!
[One (M7) General] pimser:
Had same problem after updating to stock 4.3. Solved by unlocking again over htcdev page. After, rerooting by flashing tarp.

---------- Post added at 03:49 PM ---------- Previous post was at 03:47 PM ----------

Sorry twrp of course...
[One (M7) General] scotty1223:
sounds like you are not rooted. youll need to install a recovery,and install superuser if you have not. then youll need to have the phone awake and watch for a pop up to grant permissions for the root shell. once you haVE THe # you can enter the command :)
[One (M7) General] kikinhorap:
yea I just unrooted my phone in order to go back to stock 100%, the only thing missing is to relock the bootloader but without leaving the mark thats why I was following this threat. Do i really have to root my phone again to do so? Im confused :S
[One (M7) General] scotty1223:
yes,you do. you cannot change things without root access.

why are you returning to stock? if you just want to run stock for awhile,there are no advantages to locking and turning s on. just run stock and enjoy it.

if you need to turn in the phone for a legitimate warranty claim,youll need to re install recovery and root. then the proper order of things would be:

-change mid and cid back to stock

-lock bootloader

-remove tampered banner

-run ruu

-turn security on
[One (M7) General] pimser:
I think he wants do relock to get the ota's...
[One (M7) General] scotty1223:
if thats the case,then he doesnt need to be locked. ota will occcur just fine if unlocked or relocked

if he wants to not be unlocked,he can simply fastboot oem lock to get to relocked,tho doing so will perform a factory reset,wiping any data.

even if you want to go back to locked,please dont turn s on just becasue you want to recieve OTAs. s off will not hinder them... i promise.
[One (M7) General] kikinhorap:
I just wanted to go back to stock for warranty purposes but it is all fine now, I reinstalled the custom recovery, installed supersu and lock the bootloader and then flashed the RUU! Im keeping s-off, would that be a problem if i return the phone to htc to get fixed?
[One (M7) General] scotty1223:
i personally would leave s off,especially if they are repairing the device and sending the same one back.

phones did legitimately come s off. if you are locked and otherwise stock,being s off is not an indicator that you have messed with the phone,and likely they wont notice anyway ;)
[One (M7) General] LibertyMarine:
Hey, I need to unroot my phone to return it to HTC for warranty claims... but if I unroot my phone after setting it to the LOCKED state can I regain a unlocked bootloader with using HTCdev tools?
[One (M7) General] uronfire:
Hi,

Stupid me:silly:

I used this command on my brand new nexus 5 and it wont boot now. Any suggestions or Advice would be very helpful please because I'm not getting any from the Nexus 5 forums.:confused:

Still have my beloved HTC one and thinking of returning the N5 as Im not really impressed.

Thanks:(
[One (M7) General] scotty1223:
why on earth would you do that?? :confused: the unlocking methods are not the same between nexus devices and htc,and the filesystem is completely different. there is no telling exactly what you changed and in what partition.

is the phone booting to anything? charge light? how does it show up in windows device manager?

if you can get to your bootloader,you can maybe use whatever means that device uses to re-install factory software/firmware. unfortunately this is the htc one forum and i do not have any idea how you would accomplish that. unless someone eles happens to see this with some knowledge of the nexus 5,that forum is where you need to find your help.

hopefully this has taught you a valuable lesson in getting an understanding of what youre doing prior to doing it.
[One (M7) General] fabioaalves:
Hi, there!

i need to locked the bootloader so that i can claim the 25GB Google Drive space offer.

is it safe to do this since i have s-off with rumrunner.

i read some were that since the bootloader was modified to obtain s-off.if you relock the bootloader the phone will brick because the verification signatures will not work and the bootloader also will not start is this true?

some help please? sorry for the English

thx
[One (M7) General] petro_ionut:
Best way to get locked/unlocked, gone for warranty!
[One (M7) General] scotty1223:
Yes,it is safe. Even if you are running a patched hboot,the lock status has no affect.

Changing the lock status,however,will not necessarily change what the boot loader displays if is not stock.
[One (M7) General] lqrt:
Is removing tampered and unlocked a permanent thing? or would it be triggered whenever i flash custom anything?
[One (M7) General] scotty1223:
permanent. lock status is only triggered by you,and tampered flag is only tripped while s on.
[One (M7) General] drift devil:
Hi,

Im returning to stock.Installed the stock rom but now want to remove the unlocked and tampered option.Its S-on as well.

When i run adb shell - i get SU not found.Any ideas?

Windows 7 64 Bit

HTC one 4.2.2
[One (M7) General] scotty1223:
youll need to re-s off,re-root,and then run the commands. both are required for this to work.
[One (M7) General] Smoothrob:
Worked great THANKYOU!!!
[One (M7) General] drift devil:
Thanks Scotty - Any guide to do this?
[One (M7) General] J_M_V_S:
Works perfectly on 802w for both locking and unlocking! Thanks!
[One (M7) General] vishalchandna:
Hi all,

I have HTC one dual SIM 802d. I just unlocked the bootloader using htcdev & then installed twrp recovery & then probably flashed the rooted file & in this way rooted the phone. Now I have to visit HTC service centre, plz guide do I need to unroot and relock the bootloader and how to do that. For firmware upgrade will HTC people be able to find that my phone is rooted and bootloader unlocked and will they entertain me with the same. Plz help.

Regards,

Vishal (India)
[One (M7) General] scorror:
I just bought a new HTC One and found out that there's no software update in the menu. I went to the bootloader and found this (attached image): . I want to go back to stock to get the latest OTA updates. Do I need to unlock the bootloader as stated in your thread and after that what will be the next steps to go stock.
[One (M7) General] scotty1223:
You do not need to unlock. Just run an ruu. Make sure your MID is compatible with the ruu you want to run,and change your CID to match. I would not recommend accepting OTAs with superCID (11111111)
[One (M7) General] scorror:
Thanks. I just got a replacement

T-Mobile branded HTC one.
[One (M7) General] kucluko:
hi scotty... i want to access " adb shell in command = #" but every step adb shell in command=$ how i do command abd shell = #?:confused:
[One (M7) General] scotty1223:
enter su

have your phone awake,and watch for a pop up to grant permission.

you mush have a superuser package installed on your phone from a custom recovery.
[One (M7) General] kucluko:
Yes.. i do. But.. iam hboot 1.55 and firmware 3.63.707.4

Position in fastboot iam success check device. But "fastboot reboot" on home screen i can't send command adb shell . "device not detected" iam confused....:confused:

What you this trick in hboot 1.54? I hopes your update trick man
[One (M7) General] MindlessLeadership:
I didn't realise you could flash custom recovery images whilst S-OFF if you have a locked boot loader if you're in RUU mode. I presumed you needed to unlock it first.

I made a quick zip just to test. Cheers!
[One (M7) General] ruggedman:
I want my HTC ONE to be stock. I have stock rom, recovery and so on.

I have S-OFF and relocked bootloader.

I managed to remove tampered before but i dont know how to change from relocked to locked?

Any idea? I wont root my phone again.
[One (M7) General] scotty1223:
just enter the command.

and do not turn s on.
[One (M7) General] ruggedman:
Wich command?

And should i let s-off always like that? There is no harm in having S-off?
[One (M7) General] scotty1223:
the command to lock your bootloader. That is what you were trying to accomplish, correct?

S-off is much better, and will not harm or hinder anything. There are absolutely zero benefits to being s-on
[One (M7) General] ruggedman:
Correct but it already is locked but it says RElocked and if possible i would like it to say Locked instead.
[One (M7) General] scotty1223:
:rolleyes:

Follow directions in the first post.
[One (M7) General] ruggedman:
Yes but as far as i understand i must be rooted? Or am I wrong?

And i don't get along with mini adb. Everything i have done i did it with toolkit.
[One (M7) General] scotty1223:
correct,you need to be rooted,no way around it. your options are reroot,or deal with a relocked bootloader

you need to at least install a recovery. you can install it as a zip file from ruu mode in your current state,or you will need to re-unlock so you can use the fastboot flash command. or i guess you can reuse your toolkit.

at this point,you can install superuser and use the adb command in the first post to become locked. if you do not want to do that,crushalot has made an aroma recovery tool: http://androidforums.com/internatio...ock-bootloader-remove-tampered-aroma-gui.html
[One (M7) General] ruggedman:
I think I'll leave it as it is for the moment. But thanks anyways.

I am almost fully stock as it is now and I can get ota updates and stuff. My goal was to get stock.

It's just S-OFF left but I'm not going to change it to on.

And the esthetics between relocked and locked.

Other than that I am fully stock.

Again thanks for the help! Apriciate it!
[One (M7) General] scotty1223:
Nothing wrong with leaving it as is. Neither s-off or relocked will hinder your abilities to get updates.

As you said,it's just aesthetics. You only need to worry about relocked if you have to send it in for warranty :)
[One (M7) General] ruggedman:
To be honest I have sent it for warranty with RELOCKED and they fixed everything that they should fix before. They didn't say nothing. Maybe I was lucky haha..
[One (M7) General] MindlessLeadership:
It depends where you live.
[One (M7) General] ruggedman:
Sweden
[One (M7) General] scotty1223:
youre not the first to have sent back a rooted/unlocked/relocked device for warranty. most stories that we hear are that they dont check very closely.

however,if you unlocked via htcdev they do have record of your having unlocked,and you did check the little boxes that you understood that you have voided "all or parts of your warranty" by unlocking and modifying your operating system. as such they do have every right to refuse any repair that could have resulted from that,and if you chose to send your device in,in that state,you ARE rolling the dice that you may have to pay full retail for a new one if they decide to not honor your warranty.
[One (M7) General] ruggedman:
Hope the phone won't brake then :)
[One (M7) General] arturamaral1:
What do I do ?

C:\miniadv_m7>adb devices

List of devices attached

SHXXXXXXXXXXX device

C:\miniadv_m7>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] MindlessLeadership:
You need to be running as root, if you're rooted you can type "su" to elevate yourself.

They could of either not bothered to check or remembered that consumer laws in Europe mean unlocking your bootloader does not void your statuary warranty.

I've sent a phone back in to HTC before with its bootloader unlocked, they complained. I mentioned my consumer rights and got it replaced on the warranty.
[One (M7) General] arturamaral1:
I think I prefer having a little more work and send it locked ! What I need to do ? Install custom recovery, root, use guru reset to get locked, install stock recovery and remove root ? I'm S-OFF!
[One (M7) General] ruggedman:
Nice to know that i can send in for warranty if it says relocked.

But how is it with S-OFF?
[One (M7) General] MindlessLeadership:
It's still safer to send it in with "Locked", just incase. Some devices are shipped S-OFF, so you're generally okay with that.
[One (M7) General] tfouto:
Hi, is there a way to root my htc one without having to loose the stock recovery?

As far as i know the folowing command:

fastboot boot recovery.img

dont work anymore with the new hboots...

I want my phone to be rooted, but with stock rom, and user these comands...

Thanks
[One (M7) General] donmarkoni:
You can always flash custom recovery, root, then flash stock one. Check out [MENTION=4647967]Guich[/MENTION]'s thread: [Recovery]Collection of Stock Recovery
[One (M7) General] tfouto:
thanks,

seems a good option...

does flashing from stock recovery->custom recovery->stock recovery might leave some "garbage" files, or files from the old recovery are deleted?
[One (M7) General] donmarkoni:
Whole partition gets overwritten every time, so no trace. ;)
[One (M7) General] tfouto:
i have made it... installed custom recovery, rooted and stock recovery again. how do i know if the stock recovery is installed correctly?

If i boot and choose recovery it will show the phone with the red exclamation. Is it normal?
[One (M7) General] ruggedman:
I suppose so. If you press power and volume up you'll get to the menu.
[One (M7) General] donmarkoni:
That's it, stock one. :good: Only thing that I don't understand is why you don't want to keep custom one. :confused:
[One (M7) General] ruggedman:
You won't get OTA with custom recovery?
[One (M7) General] tfouto:
Shoudn't the appear the phone with the green mark? Why does it appear the red mark? because there is nothing to update?

Well because i want to update via OTA. Besides my HTC One had a problem, it wouldn't charge, only charge when totally uncharged. And there would no way to connect to computer, even via ADB or RUU...

So i sent to HTC repair, and couldn't unlock my bootloader. They said that i had to pay because bootloader was unlock. Afterwards, alfterall they didn't charge me, but for the safe game, i just want to root, then stock recovery, then lock bootloader. I lock and unlock this easy way:

http://xdaforums.com/showthread.php?t=2475914

So if this problem appears again i have the bootloader locked, just s-off. I do a normal reset, and root and everything goes away.
[One (M7) General] ruggedman:
I said that you press power button and volume up while the red rectangle appears...
[One (M7) General] tfouto:
no menu appear. it just reboots normally...
[One (M7) General] ruggedman:
Don't hold them in. Press them at the same time a couple of times.
[One (M7) General] tfouto:
OK, the menu appeared...

but below appeared with yellow letters...

Mount SDCARD failed 1 times

...

Mount SDCARD failed 5 times

can not mount SD Card. (No such file or directory)

write host_mode:0 done

Is it normal?
[One (M7) General] ruggedman:
I don't know. Someone else maybe can answer that for you. But i think it's normal. If i remember correctly it shows the same on my phone.

---------- Post added at 10:14 PM ---------- Previous post was at 10:12 PM ----------

Does your bootloader say relocked or locked?
[One (M7) General] tfouto:
Locked
[One (M7) General] ruggedman:
OK.

Must the bootloader be open to be able to flash recovery?
[One (M7) General] tfouto:
Yes, for sure... If the bootloader is locked you will not be able to flash recovery (custom or stock)... You'll have to unlock your bootloader first...
[One (M7) General] ruggedman:
I've been through almost the same process as you. I was rooted and had unlocked bootloader but I wanted to return to stock and I did but except I have s off left which i want.

But my bootloader says relocked.

I didn't fix it to locked at the time. That annoys me but if i unlock the bootloader again i will lose all data. So for now I'll just leave it as it is.
[One (M7) General] tfouto:
How did you lock the bootloader?

by the method on the first post of this thread i can lock the bootloader and it will appear Locked. I can unlock and lock without loosing any data...
[One (M7) General] ruggedman:
I used gurus reset program. It flashed stock recovery and rom so it got automatically relocked.

To unlock bootloader I use a toolkit which uses HTC devs unlock code.

I don't know why but I can't get along with mini adb. It don't find my phone and i have all the drivers installed. I am on Windows 8 maybe that's why.
[One (M7) General] ivanny:
i tried this method with my inspire 4G but it didnt work....fastboot devices worked but anytime i type the command adb devices, i get only the sentence "list of devices attached" without listing my device....when i tried typing in adb shell,i get "error" as the reply message....please,how do i get through this...i am s-off and i have root access
[One (M7) General] scotty1223:
This WILL NOT work on an inspire 4g,or any other single core s1/s2 device. Partition tables are completely different. I'm not sure what you'll overwrite in that location.it could be bad!
[One (M7) General] scotty1223:
The guide is based on windows 7. From what I understand 8 is prollematic,you'll need different drivers and im not sure what else to get it working. If you're using USB 3.0 that compounds the prollem. Find yourself a win 8 adb guide and you can use that to enter the commands in the first post
[One (M7) General] ivanny:
please i know this question is not suppose to be here...how do i unlock my inspire 4G...im s-off and i want to use htcdev but am not seeing inspire 4G on the drop down list,can i choose DESIRE HD instead?
[One (M7) General] scotty1223:
just selecet "other supported devices" if you allready have an uncompatible bootloader, more info here: http://androidforums.com/desire-hd-...-how-unlock-install-recovery-root-htcdev.html

for what its worth,you dont really need to be unlocked as long as your s off.
[One (M7) General] ivanny:
i was trying to flash a rom on my inspire 4G...buh i get d error...E:signature verification failed....when i boot into recovery mode it shows a phone with a red triangle and an exclamation mark...i have rooted the phone...i want to try unlocking of the bootloader...what do u advice me to do?
[One (M7) General] donmarkoni:
What's wrong with you man? This is HTC [highlight]One[/highlight] forum. Stop posting here and try your luck in HTC Inspire 4G forum.
[One (M7) General] ivanny:
i was actually asking scotty1223....if you know the solution to my problem, please tell me
[One (M7) General] scotty1223:
you have the stock recovery. you just need to install a recovery,you dont really need to unlock. you can use download and directions from this post:

http://androidforums.com/desire-hd-...lock-supercid-inspire-4g-dhd.html#post5660950

as was said,this is the one forum,i cannot continue adding irrelevant info to the thread here. id be happy to continue helping you in either of the threads i have linked.
[One (M7) General] tfouto:
Does the commands for unlock/lock can be used on a program like Android Terminal Emulator?

Or it has to be connect via PC?
[One (M7) General] scotty1223:
others have done it that way,so it is possible. i would still highly recomend to paste the command rather than try and type it.

i personally prefer to be connected to the pc for any command window work.
[One (M7) General] tfouto:
yes i understand it's better. But just out of curiosity. If i wanted to lock the phone via terminal emulator on the phone, all i had to do would be:

su (if needed to get a # prompt)

echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796

Is this correct?
[One (M7) General] amauryaa:
Lock and S-on

Hi,

I am on hboot 1.55 and my bootloader is unlocked with S-off. I have to go to send my phone for repair so I need to lock the bootloader and put S-on back. How can I do that. I used revone to s-on when I was on hboot 1.44 at the time. thank you for your help.
[One (M7) General] rootlinux:
I made this for my device which is a Sprint HTC ONE.

It should word work.

Flash this, flash a stock Rom and unroot.

I did this with my LTE and they couldn't tell the diff.

Hboot shows 1.55, S-on, proper 1.55 date and no red text.

http://xdaforums.com/showthread.php?t=2565201
[One (M7) General] scotty1223:
Sending in a device for warranty repair with a patched bootloader that is displaying the incorrect information is, in my opinion, fraud and gives the community a bad name. It is easy enough to reset everything to 100 percent legitimate stock
[One (M7) General] rootlinux:
Perhaps but then again at least at BB they try to factory reset now and will just send you home with the same device.

I just offered another option.

Some have gotten s offed refurbs before so don't see a huge issue.

I am a member of the HTC forum and they don't seem to care if you are s off there.

The carriers may so that is were this option comes it.
[One (M7) General] amzter:
Hi,

I had to recently restore from an HTC One Google Edition RUU.zip as there was no RUU for my phone (Vodafone UK) and I was stuck in bootloader.

I have s-off but my phone is showing relocked. I tried to run your command but it said i didn't have privileges to do so. I tried to run the SU command and that didn't work either saying su not found.

What do you recommend I do?

Should I install a custom recovery. I don't have the White bootloader either, I have a black one.

Thanks in advance?
[One (M7) General] scotty1223:
I don't see a prollem turning in a phone that's relocke and/or s off. At least that's honest.
[One (M7) General] scotty1223:
You can change your cid and run any ruu that you wish to recover. The bootloader that you have doesn't matter.

If you are now just wanting your bootloader to be locked,you'll need to install a recovery. You can install superuser if you want to be rooted,or just run the command in recovery.
[One (M7) General] rootlinux:
Sure but if we were gonna be completely honest we wouldn't S-off to start with.

Locking to take it in after we unlocked it isn't really being honest either.

Simply unlocking it voids their disclaimer warranty so locking it back isn't really being honest.

Plus if you look at the bootloader anyone can tell it was locked back.
[One (M7) General] amzter:
Ok so I want to unlock my boot loader again. Should I just flash a new recovery, install the super user.zip and then run your command to unlock the boot loader?
[One (M7) General] scotty1223:
Yup
[One (M7) General] amzter:
Sweet. Thank you so much!
[One (M7) General] donmarkoni:
[MENTION=1877667]rootlinux[/MENTION] you are obviously in disagreement with OP. I disagree with you too. So, I will repeat for you: fraud is wrong. Your attitude is wrong too IMO.

If you can restore your phone to stock/factory state, then it's OK, you didn't do anything wrong, you didn't break anything. But if you can't, then man up and take the consequences of your doing, don't use fraud to amend your wrong doings.
[MENTION=3437245]scotty1223[/MENTION] is a nice guy, so he didn't report you for spamming his thread with unwanted posts. I'm asking you to remove your posts and especially the link to your thread.

BTW, I will not be pulled into argument here, meaning I won't post any replies, so you know.