yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Q&A] Oliv3:
touche
[Nexus 7 (2013) Q&A] ParanoidKang:
Its a build.prop tweak I think, I just don't know what the tweak is:mad:
[Nexus 7 (2013) Q&A] ArmedandDangerous:
Stuff like the Steam app is absolutely terrible without GPU Rendering..
[Nexus 7 (2013) Q&A] imran1000:
Build.prop edit

debug.sf.hw = 1 paste this line in /system/build.prop
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] treboren:
Hello! I have installed the ReVolt ROM and I can't hide the navigation bar. It works on other roms but not on this one for some reason. Can someone help me? Unfortunately I can't post on that thread. Or can someone tel me why I would want something like that to take up screen space when I have a physical button and two touch sensitive buttons that do the exact same thing? Thank you!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] GuestK00261:
IIRC Revolt was an all in one rom, so because of that, you should have Paranoid Preferences and I think it was Interface>Nav Bar>slide it down to 0%. Sorry if I wasn't very clear!
[One (M7) General] scotty1223:
99% is good enough for me haha! Phone just hut 50% charged, give me a minute. Will post back with pictures.

---------- Post added at 08:56 PM ---------- Previous post was at 08:41 PM ----------

Confirmed, code working. Flags set/reset. Phone even reboots and works :D will upload pics/screenshots.

Thanks!

Starting out unlocked:

Locking:

Locked:

Unlocking:

Re-unlocked:

Very good work!
[One (M7) General] akuma24:
Any idea how you would get rid of the tampered flag?
[One (M7) General] scotty1223:
http://xdaforums.com/showthread.php?t=2477792
[One (M7) General] deeevan:
Is this intended for people who got S-OFF and didn't use revone to unlock their bootloader at the same time? What would be the motivation for people doing that (not unlocking)?
[One (M7) General] broli-zn:
will this also remove the "Tampered" flag once S-on has been returned?
[One (M7) General] scotty1223:
it can be used for that,with the advantage of being able to unlock without having to submit ones perosnal phone info to htcdev for an unlock code(i.e. no record of having unlocked)

however,it is moreso intended for folks who are unlocked to get back to 100% stock locked. fastboot oem lock gets you relocked and before anyone can suggest it,using the bootloader modifier to just change the banner is IMO fraud.

if you need to return a phone for a legitimate warranty claim,its easy to make it 100% correct in case it makes it back out into the public

once s on,youll have to run an ruu. prior to s on,you can use the link mentioned above(this one) to reset the tampered flag and remove that banner
[One (M7) General] deeevan:
My question is, Can't both of these be achieved with revone -u and revone -l? I unlocked using revone, I never requested an unlock code from htcdev. If you need to be S-OFF ie, use revone, why wouldn't someone just add the extra -u parameter and unlock bootloader at the same time?

The lock command is definitely useful for those on a revone incompatible hboot (most).
[One (M7) General] maxal:
Just tried this and it worked just fine, thanks very much.:good:
[One (M7) General] zaphodbeeb:
Cool

Much better than using revone to do this, as it leaves no tracks. Kudos 2 u.
[One (M7) General] scotty1223:
i never claimed this was a major breakthru. this is just anotehr way to skin the cat. if revone is still working and your more comfortable using that,by all means do so.

thanks for all the comments,im glad some are finding it useful :cool:
[One (M7) General] piterk:
Could you tell me if this method to lock/unlock bootloader wipes phone data like the method via htcdev?
[One (M7) General] Wafflez_SE:
Simple and easy guide much obliged Scotty ?

Skickat från min HTC One med Tapatalk
[One (M7) General] jaypeg123:
Can I relock It this way if I unlocked it through htc dev, and get the status locked instead of relocked?
[One (M7) General] scotty1223:
no,it does not erase data.

the flashing of unlock code,and relock command initiate hboot to factory reset. this is only changing the flag that hboot checks.

yes. thats the whole point- no relocked watermark :)
[One (M7) General] jaypeg123:
Yes this is outstanding. Thank you :):thumbup::thumbup::thumbup::thumbup:
[One (M7) General] Nikos2k:
if we have installed a modified hboot to remove the red text, can we use this method to lock or it will brick it?
[One (M7) General] scotty1223:
you are fine. this mod has nothing to do with hboot.
[One (M7) General] Golv:
[MENTION=3437245]scotty1223[/MENTION]

I tried to copy mmcblk0p3 from /dev/block/ to /data/local/tmp and verify that all is done OK..

However, after command

echo -ne '\x00\x00\x00\x00' | dd of=/data/local/tmp/mmcblk0p3 bs=1 seek=33796

I noticed that size of mmcblk0p3 in /data/local/tmp instead of 127 Mb changed to 33800 b (ie 33796 + 4 b).

Where is mistake? I have or have you? :confused: Check your mmcblk0p3 in /dev/block/

There are should be no all 00 after offset 0x8408.

Thank you!!!
[One (M7) General] scotty1223:
im not sure what youve got going on with the filesize,but he 33796 is an address,not a size.

the command is writing only 4 bytes,at 8404,8405,8406,8407. if you wish to verify your HTCU or HTCL has been overwritten,dump it to your sd card: dd if=/dev/block/mmcblk0p3 of=/sdcard/mmcblk0p3 then pull it,and open it with a hex editor.

if youre working with a different device,pull mmcblk0p3 first,before issueing any commands,open with a hex editor,and verify the location of the lock flag.

the rest of 8400 is in fact all nulls, or 00

hope that answers your questions. i think youve just found some funky data becasue of the way youre attempting to verify it.
[One (M7) General] Owdy:
do i need rooted phone for this?

linux-mp52:/home/osku # adb shell
shell@m7:/ $ su
/system/bin/sh: su: not found
[One (M7) General] scotty1223:
try reading the first post.
[One (M7) General] japodude:
dont work on uk vodafone hboot 2.47. still locked
[One (M7) General] scotty1223:
Are you s off and rooted?
[One (M7) General] japodude:
yes im rooted and s-off.
[One (M7) General] scotty1223:
you are welcom to dump p3 and p7 for me

adb shell

su (if needed)

dd if=/dev/block/mmcblk0p3 of=/sdcard/mmcblk0p3

dd if=/dev/block/mmcblk0p7 of=/sdcard/mmcblk0p7

upload and link them for me and ill see if anything is in a different spot
[One (M7) General] zukers:
Do I have any other option than htcdev if I am on stock 1.55 and s-on to unlock my bootloader?
[One (M7) General] scotty1223:
Nope
[One (M7) General] zukers:
do you think will it be possible in near future (does any devs working on it)?
[One (M7) General] maarawoe:
Are the commands in the OP still actual?

What technique should I use to relock so I can flash the new firmware?

thx!
[One (M7) General] scotty1223:
Yes the cmmqnds are still correct.

However,if you are s off,you do not need to relock to flash firmware.
[One (M7) General] scotty1223:
No it will not likely be possible soon. It is not necessary or productive to make a temp root tool for specific devices/firmwares that will became obsolete as holes are patched. Htcdev unlock is a reliable method of adding root access for other tools to work.
[One (M7) General] maarawoe:
You are right...- I forgot that when I am s-off I don't need to do that.... :)

It few months ago I flashed the firmware for the last time so I am quite out and I forgot many things :)
[One (M7) General] tetakpatak:
Thanks, [MENTION=3437245]scotty1223[/MENTION] it worked like a charm!

HTC One M7

2.24.401.1

:)
[One (M7) General] -Duir-:
Just thought I'd add this method also works on HTC Desire 601 (zara_cl).
[One (M7) General] monemhamid:
thanks, used this guide to return to stock my HTC__044 :)
[One (M7) General] Thela7:
Thank you for this observation. I do agree with the need of appending conv=notrunc

I double checked whether GuruBootloaderReset-1.0.zip uses it or not and indeed the mod uses it.

META-INF/com/google/android/updater-script:

run_program("/sbin/busybox", "dd", "if=/tmp/unlock", "of=/dev/block/mmcblk0p3", "bs=1", "count=4", "seek=33796", "conv=notrunc");
[One (M7) General] scotty1223:
thanks for letting us know,but...

you guys that just blindly enter commands without knowing what lives in the location the command is writing to are either:

1)extremely ignorant of what youre doing

or

2)have some huge,manly hairy balls and dont care what heppens to your phone.

if you actually dumped p3 and checked,you are commended and this is not directed towards you. but seriously,yall that just run the command on an s off phone that hasnt been explored or checked first need to realize if the flag happened to be in a different spot,you could potentially seriuosly damage your phone,potentially unrecoverably. remember s-off devices are

not

doing any security checks or have any write protections in place. an s off phone will quietly and obediently let you brick it.
[One (M7) General] santidoo:
Has anyone tried on HTC One V?

I am S-OFF and UNLOCKED, and I want to back to LOCKED flag, but this command is not working for me. I got S-OFF using rumrunner. Any ideas how can I back to LOCKED flag?

Cheers
[One (M7) General] scotty1223:
do not use this on the one v

!!! the partition layout is completely different,and ive no idea what youre overwriting that could affect something else.

i am more than happy to help you look for it. lets start with partitions 3-7. ill need a set that are unlocked ,and dumps from someone who is is locked. if you cannot find someone with those criteria,then send dumps after locking the bootloader with fastboot oem lock

upload your dumps and pm me a link(dont post links publicly cause some partitions may contain personal info such as meid,esn,etc). name them in such a way that i can tell what they are.

dump them with:

dd if=/dev/block/mmcblk0p3 of=/sdcard/mmcblk0p3

dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4

and so on
[One (M7) General] santidoo:
Ok, thanks a lot. I will get the dump files in a while. I do not know noone with Locked bootloader, so I will relock my own and grab the dump files again.

Anyway, do you know any other way to back to LOCKED status?
[One (M7) General] tetakpatak:
You rock, [MENTION=3437245]scotty1223[/MENTION] :)
[One (M7) General] thebott:
Will this work with hboot 1.55 and I used rumrunner to s-off, does that matter?
[One (M7) General] wewenk:
hi [MENTION=3437245]scotty1223[/MENTION] can you please make it work for HTC One Dualsim variants?
[One (M7) General] scotty1223:
We are working on that.

http://xdaforums.com/showthread.php?p=50546613

Let's keep discussions on that thread. If youd like to help, I'd like a getvar all, and I need to see mmcblk0p3 and 0p7
[One (M7) General] niksssss:
Is this going to work on 4.4.2 with 1.56HB (HTC_032 international variant) ?
[One (M7) General] scotty1223:
Yes
[One (M7) General] wewenk:
To get s-off we have to get root right? and to get root we have to unlocked? CMIIW

So it is not work for device which never get htcdev unlocked before?
[One (M7) General] scotty1223:
If you can get s off via some method that does not require htcdev unlock, then it is not required
[One (M7) General] taha198:
Hi scotty buddy.

My Model id PN07110, cid HTC__38, hboot 1.56, android 4.4.2. Indian HTC one. I am soff and locked boot loader and not rooted. Need recovery zip to flash in ruu mode. Bro, can you make a proper recovery zip of twrp to flash in ruu mode. Thanks.
[One (M7) General] nirez:
Hey, i tried to lock my bootloader on hboot 1.56 and with TWRP. It worked very well! But after the overwriting, it didnt rebooted my device, because it didnt read my device. So i manually rebooted to bootloader, and i see its ***LOCKED***. Thank you. :good:
[One (M7) General] MICH_**:
Why do i need superuser for this? My phone is not on stock rom with stock recovery. I just want to lock the bootloader... Any way to do so?
[One (M7) General] scotty1223:
No one said you needed to be on a stock room and recovery. You just need to be in a root shell to enter the lock command.

If you're not rooted, you can run the command in a custom recovery, or use a temp root.
[One (M7) General] MICH_**:
How can i use a temp root?
[One (M7) General] scotty1223:
You'll have to find one that works with wherever software build you're on. You're on you're own there, I've no idea.
[One (M7) General] picard47:
I've used this method to lock the bootloader for shipping it to HTC service (camera issues).

Additionally I set the device back to S-ON.

Problem is that I am no longer able to unlock the bootloader with htcdev. The unlock-splash doesn't appear anymore. My guess is it could has something to do with this: http://xdaforums.com/showpost.php?p=50335978&postcount=197

So be careful with this.
[One (M7) General] scotty1223:
Is your phone a converted GPE? Your error sounds consistent with converted phones. I've not heard this complaint on phones converted back to their original state.

I don't think the post you referenced is an issue. When you run the command,it only writes 4 bytes,im by no means an expert,but there is no evidence to me that the command is filling the rest of the partition with 00(it actually is all 00 allready) .

If you trace the origins of this all the way back to s_trace's original thread, you'll see that unlocking makes a couple other changes in other partitions. It may be possible we need to change more than the lock flag,but again,I've not heard of folks having trouble reunlocking again,other than the converted gpe phones.

IMO,people need to start understanding that s-off is not an indicator you have messed with the device,and stop turning the radio secure flag back on for warranty work. If you were still s off,you could easily install a recovery and re-root.

I apologize this mod has.gotten you into a pickle. Please keep us updated on your solution :) have you tried a.factory reset from hboot?

Thanks for bringing it to our attention,folks indeed should be careful.

edit:

a bit of research before i have to leave for the day shows its an issue with some real GPE phones as well,possibly some sort of mismatch with the 4.4 update.

if you have a "normal" phone,it sounds like one of your partitions may be something other than what the phone is expecting(tho not extreme enuff to invoke a "do not boot" mode).

i had similar issue with an att one x. i did not get the splash failure error,but did get the failure of an unlock splash/option to appear :eek: in my case,i had hex edited the misc partition to a lower main version,and after i restored the original,the unlock worked successfully.

i did find references to GPE s-off folks who got your same error being able to downgrade to 4.2.2,and then fastboot oem unlock worked again. doesnt help you much,but may add to the liklehood that the prollem lies within the 4.4 update

my only suggestion is at this time is to try and find a working temp root and then run firewater. a bit more info about your phone may help... specs of before and after if its a converted phone,and maybe a getvar all
[One (M7) General] picard47:
Factory Reset was one of the first things I tried. Didn't help.

Converted GPE means it originally was a Google Edition converted to a Stock Edition? In this case - no. It was a european unbranded "401" phone. I only converted it once in the other direction to a GPE by this thread. Maybe this cause my problem.
[One (M7) General] scotty1223:
No... The other way. As you did.

Very likely the issue is missing bits of other firmware done the conversion ruu is not complete and signed by HTC.

You should have gone back to stock .401 if you wanted to turn s on.

Did you change cid/mid as well?
[One (M7) General] picard47:
Oh ok, I wasn't aware of that.

Before I locked the phone I flashed the original 2.24.401.1 firmware and Stock Odexed ROM inclusive Stock Recovery and CID HTC__102 but I assume there was something the GPE RUU changed I didn't roll back before locking. You could say I locked out myself and flushed the key down the toilet :D.
[One (M7) General] scotty1223:
Let's see results from: fastboot getvar all

Maybe there is an ruu that could get you squared away
[One (M7) General] AndrewM3:
Help to root

Hey I locked my device and ran the ruu.zip and everything went back to completely stock. Now I want to unlock and go back to root. I am still s-OFF with hboot 1.55 so I've been using ubuntu since fastboot doesn't work on windows 8.1

I ran these commands in ubuntu and got this

adb devices

adb shell

su

su not found

so I can't get that # because it says that su is not found also tried sudo still didn't work in ubuntu.
[One (M7) General] tetakpatak:
[MENTION=5329264]AndrewM3[/MENTION] boot it in bootloader mode to custom recovery while connected to your PC (you don't even need to install it) and flash SuperSU zip with it. After reboot, you will have root access.

With ADB, if for example TWRP.img is in the platform-tools, it is done this way:

fastboot boot recovery TWRP.img

It will work similar way in Linux, with entering directory where your TWRP is saved. The SuperSU zip should previously be copied to your internal memory. Then you can install it and reboot.
[One (M7) General] AndrewM3:
Yes it worked that was the problem. I flashed twrp then installed supersu from recovery and then ran your commands and now I am unlocked. Thanks very much for all your hard work.
[One (M7) General] Amar.B:
[MENTION=699730]Scoty[/MENTION]1223 He Bro.. is it possible your method work firewater as i already claimed S-off with it and removed the tempered flag and Now it's [ UNLOCKED] but when i tried to do LOCK by using fastboot command [Fastboot oem Lock] it went to relock bootloader!! My device is HTC One Dual Sim 802d india.. Please i need your Help ASAP.. cheers
[One (M7) General] scotty1223:
Yes,it should work with the dual SIM 802
[One (M7) General] Amar.B:
Thanks bro it worked like a charm :D Locked bootloader successful
[One (M7) General] sbr_23:
Returning to stock with s-on

Hi, Just a quick question. If anyone can help me out. I need to send my phone in for warranty. they need it to be s-on. So how do i go about it? i cant find an ruu compatible with my device online. I only have a nandroid backup of my stock roms.

Before OTA my device details were:

(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.63.707.3

After OTA it was

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.56.0000

(bootloader) version-baseband: 4A.23.3263.28

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.20.707.6

Edit

Managed to get it done
[One (M7) General] scotty1223:
they dont need it to be s on.
[One (M7) General] sbr_23:
Thanks for your quick reply.:D
[One (M7) General] scotty1223:
You're welcome. I would have addressed the other part, but you seem to have figured it out already. Holler of you have further questions :)
[One (M7) General] sbr_23:
Hey, any idea how to get rid of the red warning when you boot up the phone? it started ever since i s-offed it.

Edit:

Sorry, it seemed to have sorted itself out. the warning just disappeared after i booted it up a couple of times. or maybe because i locked the bootloader. Thanks again.
[One (M7) General] scotty1223:
For the record,the red text appears when you run a custom rom kernel. After you're stock,the warning will stop.
[One (M7) General] Sim-X:
Worked perfect for me even on Windows 8.1. Reset my flag to locked, no issues. Sprint HTC One M7. Just got the m8 so cleaning up my m7. Thanks!
[One (M7) General] avcoolkarni:
Status reverted automatically

Hi,

I have a htc one which I unlocked using htc dev and installed custom recovery only for rooting.

Later on as I want to give phone for camera issue, I used firewater to do S OFF successfully on hboot 1.56. I then used commands to reset tampered and unlocked back to locked. Then using writesecurityflaf reset back to S ON. I restarted my phone few times after this and checked status which was locked and s on and no tampered. But today my battary drained out and when I plugged power charger it again went to boot loader page automatically and shows status as tampered.

Can somebody help me why this happened? What things I did wrong which caused this?:confused:

Command to remove tampered:

echo -ne '\x00' | dd of=/dev/block/mmcblk0p7 bs=1 seek=4265988 conv=notrunc
[One (M7) General] generosity21:
I need to install su temporarily in order to use this guide to go from "relocked" to "locked", but the link in the op is broken. Is there an easy way to install su.apk to system without installing a custom recovery, and then delete after I follow this guide?

I'm following this overall guide: http://www.htc1guru.com/guides/return-stock-guide/ to get to 100% stock.

Thanks
[One (M7) General] devildog08:
Thx M8,

Worked like a charm.
[One (M7) General] picard47:
OK, I've managed to get S-OFF again.

in short:

- I flashed 4.19.401.9 RUU.exe in fastboot mode (it worked suprisingly on a 4.19.401.11 OTA installation)

- after that I could unlock my One again (with HTC Dev)

- installed Custom Recovery TWRP 2.7.0.0

- flahsed SuperSU

- S-OFF with Firewater standard method

The new RUU.exe saved my ass.
[One (M7) General] leo.sutton:
I'm struggling as I have s-off but a relocked bootloader. I tried to follow this guide but I don't have su installed so what do I need to do to make it work? I am on hboot 1.56, will this work with that?
[One (M7) General] scotty1223:
To make it work you need to install su,or find a working temp root.

It works with all hboots.
[One (M7) General] leo.sutton:
Thanks, but how would I do that? I installed SuperSU but it says 'There is no SU binary installed, and SuperSU cannot install it.'
[One (M7) General] scotty1223:
Install recovery... Flash superuser zip file
[One (M7) General] leo.sutton:
I tried that, but when I tried to flash the recovery image through fastboot I get the error FAILED (remote: not allowed), I assumed this was because I had a locked boot loader.
[One (M7) General] tetakpatak:
Exactly. Unlock bootloader, flash SuperSU zip, reboot, check if SU binary has to be updated (open SuperSU app)

tetakpatalked from Nexus 7
[One (M7) General] scotty1223:
You can also install recovery as a zip file in ruu mode. Reading the first few pages of this thread will give you more info on that :)
[One (M7) General] leo.sutton:
If I could easily unlock the bootloader I wouldn't be here!
[One (M7) General] tetakpatak:
I fail to understand your problem, mate. Can you not run fastboot commands from your PC? As your device is relocked, you probably did unlocked your bootloader already before? Or did you buy it that way?

tetakpatalked from P5110
[One (M7) General] leo.sutton:
[MENTION=3437245]scotty1223[/MENTION]

Sorry if I've been confusing people. The problem that I'm having is this. I have s-off because I did that ages ago with revone. I have a locked bootloader because I locked it again ages ago thinking that with s-off I would easily be able to unlock it again. I have totally stock recovery and rom and no root but I want to install custom recovery and rom. Does this mean that the only option for me is to unlock the bootloader from HTC Dev?

Thanks for your patience and help!

Or does anyone have a zip I can flash in RUU mode? I can't find one anywhere.
[One (M7) General] tetakpatak:
Of course, mate. There is nothing useful you can do without unlocking the bootloader. Scotty will answer you the same (please do, he doesn't trust me).

Can he still use his old unlock code to unlock?

tetakpatalked from Nexus 7
[One (M7) General] scotty1223:
just make it your self. start reading at post 41

take your recovery image,take the android-info.txt file from a firmware package or some other zip you have flashed, and then zip them up.

if you cant do that,let me get out my spoon ;)

here you go: https://www.mediafire.com/?ae3d9p9fweovgmb
[One (M7) General] bracketslash:
Will this work with M8?
[One (M7) General] scotty1223:
no,it will not. partitions have moved,look in m8 general