yashsingh1/xdaforums huggingface dataset:
[One (M8) General] ptrsr7:
hi to every one. I get this:

C:\miniadb_m7>adb devices

List of devices attached

SXXXXXXXXXXX0 device

C:\miniadb_m7>adb reboot bootloader

C:\miniadb_m7>fastboot devices

SXXXXXXXXXXX0 fastboot

C:\miniadb_m7>fastboot reboot

rebooting...

finished. total time: 0.016s

C:\miniadb_m7>adb devices

List of devices attached

SH459WM05090 device

C:\miniadb_m7>adb shell

shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

su

/system/bin/sh: su: not found

127|shell@htc_m8:/ $ su

i can't get the # simbol. Any idea?
[One (M8) General] ducleostar:
Please help me

Please show me how to fix this? HTC one M8 T-Mobile. Thanks

i985.photobucket.com/albums/ae334/leo_elire/20150808_211453.jpg
[One (M8) General] scotty1223:
Fix what?
[One (M8) General] scotty1223:
Unlocked, install a recovery, flash superuser
[One (M8) General] ducleostar:
Please help me

My HTC M8 this error. I can not fix
[One (M8) General] scotty1223:
Unless there is something that I'm just not seeing on tapatalk, I don't know what error you're referring to. If you need help, you're going to need to stop being so vague and provide as much info as possible about your situation
[One (M8) General] ducleostar:
..

When powering on the machine are now fastboot. But can not refactory.. or at Recovery .
[One (M8) General] scotty1223:
So the prollem is that your phone will not boot?

Your pic shows you are locked,s on,and software status original. So you should be on bootable software with a stock recovery.

The only thing that you can do in your current situation is to flash an official,signed RUU or firmware.zip
[One (M8) General] shivasrage:
Hi [MENTION=3437245]scotty1223[/MENTION]

Excuse me I know it´s not the right device for this thread but dunno where to ask...

Searched the device threads but didn´t find anything about this...

The story is I get a desire eye in a few days.....will this also work for this device

I think I should ask you before I make a paperweight :p

thanks
[One (M8) General] Mr Hofs:
I certainly would NOT try it as they are different devices. When the memory blocks are different you will do more bad than good !

:)
[One (M8) General] teknokill:
Thank You

Great Job explaining clearly and simply the best instructions to clearing the tampered message in the boot loader. I will now be able to send my phone in for repair and have it fixed by HTC because of this excellent tutorial! Keep up the great work!
[One (M8) General] aj20010319:
Guys, so doesn't flashing a TWRP over custom recovery change the software status to unofficial? I flashed TWRP, took a backup and again flashed stock recovery on my Butterfly 2 (I know this thread is for M8 but both are kinda same) and I am still with software status original. I updated from S-OFF and unlocked bootloader to the latest software which brought HBOOT 3.19
[One (M8) General] scotty1223:
No. Not when you are s off
[One (M8) General] aj20010319:
Means it wont even say unofficial when i root?
[One (M8) General] scotty1223:
Correct. This flag is never tripped when you are s-off.
[One (M8) General] aj20010319:
Cool...that's great.

Bro, I think you can help me here, so please have a look, thanks

http://xdaforums.com/chef-central/android/cm13-htc-butterfly-2-please-help-t3311299
[One (M8) General] Captain_Throwback:
I know the workaround for blanking it out. However on previous devices, when a custom hboot was built, the dev text remained in the actual file, but does not display. Thus my reasoning that there must be a flag (or multiple flags) somewhere.
[One (M8) General] djkinetic:
I just glanced at a pulled m8 Hboot, and the value to blank out the text with spaces is the same. Only thing is if you get it wrong, you end up with a brick .
[One (M8) General] ZANGETSU786:
Thxs a lot mate.
[One (M8) General] gumboman4:
Dude, thanks, this method worked just fine on my AT&T variant M8.
[One (M8) General] Sim-X:
worked perfect htc m8 sprint. Worked fine on win 8.1 64 bit

Thanks op!

op, would you happen to have a guide on flashing m8 splash screen? I have an m7 splash screen I really like but not sure if I can use the same file on m8 even know resolution is the same.
[One (M8) General] guyd:
The red text is only displayed after you flash a custom recovery, so there must be a flag setting it.
[One (M8) General] Antagonist42:
My thinking is it is already written into HBOOT on production, once you unlock the bootloader and flash anything Custom the text shows up, to remove the text and not just blank it out with spaces requires editing the ELF file itself, the offsets and data sizes....

Not for the faint-hearted unless you know how that file system works (preferably inside out).

Bashing away at my HTC Desire C
[One (M8) General] Antagonist42:
That kinda makes it more of an actuality .... I've not found the text in any Custom ROM, Kernel, Boot or in the PL0110000.img for the Desire C even after unpacking, hex reading and throwing almost everything into IDA so unless it's part of production or is a part of the unlock-token.bin there's a tiny little guy inside with a red pen who needs a good-hiding for being a pest! :D

Bashing away at my HTC Desire C
[One (M8) General] florelui001p:
I DID IT!!!

I was able to remove the red text! Now my At&t m8 boots without that annoying message. I extracted the hboot partition using

dd if=/dev/block/mmcblk0p11 of=/sdcard/misc.img then opened up the misc.img using a hex editor. I found the lines and replaced them according to the guide found a few pages back. I then pushed the file back and flashed it and BAM! Red text gone

This is the guide I used. http://xdaforums.com/showpost.php?p=44137829&postcount=4

A picture with edited text saying "i did it" :D

Link for full image http://i62.tinypic.com/262bdoo.jpg
[One (M8) General] Antagonist42:
Yes, it's been posted and also HBOOT with text 'blanked' out (0x20 written in place of text hex value which = Spacebar) text already, the real test will be to edit the whole thing to have no text and no need of replacing text with 0x20 ;)

....I may have a look at it sometime today if it's only a displayed text after the splash :screwy: ....

Bashing away at my HTC Desire C
[One (M8) General] florelui001p:
Ah ok! I'm new to this so I was just excited to get rid of it.

Hmm very interesting, maybe some other night when I have spare time I'll look more into the hboot stuff it's actually quite interesting.
[One (M8) General] Antagonist42:
Nice to know it's working though ;) and could do it right on the phone without PC :thumbup:

I've not had chance to do S-OFF yet...then I'll look at editing the ELF IF that's viable :confused: ...it more depends what else it might entail editing (offsets, partitions, entering the nightmare realms...that last one might be easier!).

Bashing away at my HTC Desire C
[One (M8) General] florelui001p:
...that sounds like some crazy stuff!

The XDA community is amazing so it's usually a matter of time until someone figures this all out.

If you give it a shot, best of luck. I'll use your description as a guideline on what to research and read up on, thanks.
[One (M8) General] scotty1223:
This is correct. There is not a red text flag. The red text is hboot's reaction to finding a boot,system,or recovery image(and maybe other firmware mismatches I'm not sure) it does not expect.

The safe way to eliminate the text is to hex edit hboot and replace the characters with all spaces so can still display its warning,without us actually seeing it. As was said you can easily brick your device by flashing a corrupt hboot.

I don't get why folks hate the warning to the point theyre willing to risk screwing up their most important piece of firmware. You only see the warning for 5 seconds on boot.
[One (M8) General] pro4ever:
hi scotty finally got s off gone trough ur guide 4 times and still says tampered?
[One (M8) General] Antagonist42:
I wouldn't mind the warning so much but only once has it ever had the entire text on the screen :banghead:

With a bit of the right info (and reading up on the whole File Systems, MBR's, partitions etc...) It should be possible to edit it correctly, thus enabling Custom Boots for ROM's along with Splash screens.

Not something to be delved into lightly, I'm only looking at trying it once I know, all I've come across and learnt in the last couple of years, I'm able to reverse it if it doesn't work, even if it does work it's still a risk :cool: but plenty more reading and checking ...and double..Triple Checking beforehand :(

Bashing away at my HTC Desire C
[One (M8) General] rustykwak:
I have also just tried twice still showing tampered!
[One (M8) General] 0pen:
Ive done it 4 times. 2x on my windows pc running windows 8.1 and 2 times on my mac

it still says tampered as well
[One (M8) General] do0m:
HTC One M8 from AT&T here. Worked like a charm, thanks!
[One (M8) General] bookfast:
Telus M8 worked perfectly first try. Thanks!!
[One (M8) General] daniel2744:
Here is my question? I bought the developer edition of the M8 so should I even do this since I"m s-off now. I mean HTC shipped out these phones with the bootloader already unlocked. They must know we are going to s-off the damn thing right lol
[One (M8) General] Antagonist42:
Unless your red text bothers you or (as I think mine does) doesn't show on screen correctly and seems to take a while to boot once the text is displayed .... I wouldn't bother myself ;)

Bashing away at my HTC Desire C
[One (M8) General] santod040:
You know I never mind doing these when everything is provided...

Here is my thread for m8 hboots :)

Always good to see you around, lending a hand Scotty. :good:
[One (M8) General] dominicstg2:
Hi can you please help me I have an Australian m8 from Optus s off and rooted running viper Rom I tried this 3 times it says everything is fine copied word by word and my screen still says tampered please help me thanks

Sent from my HTC One_M8 using all and mighty viper one m8
[One (M8) General] Z51:
Tagging this for tomorrow. Thanks guys
[One (M8) General] scotty1223:
anyone still displaying the tampered banner:

First make sure you're not mistaking the red text on the splash screen for the black tampered banner displayed in bootloader.

Then,dump mmcblk0p6

Upload this file and pm me a link,along with results of: fastboot getvar all

Boot time is not going to be affected by hex editing hboot. If the red text is prolonging boot,its not going to change,as hboot still is displaying the text. It's just displaying all spaces so it won't bother you.

If you guys really want rid of the text,use santod's hboots and don't make these edits yourself. He's done several of these and can do them safely. Make sure to thank him for his time :)
[One (M8) General] Antagonist42:
My Desire C has incorrectly displayed it since day 1.... Only once has it displayed the full text and that was in place of the splash screen! And I've not got access yet as not S-OFF yet *moved house = nightmare*

From stock to unlocked bootloader it's always taken longer to run, my guess is it's as the text runs off the bottom of the screen.

I wouldn't recommend anybody editing HBOOT themselves unless you know what you are doing, what it effects, all the calls/offsets/blocks/bytes/LSB/MSB/arch_type/p_type/v_addr...etc..etc.. etc.... * you get the idea! *

Take Scotty's advice and use what's Already made and known to work or stick strictly to the guides details... nobody wants a brick ;)

Bashing away at my HTC Desire C
[One (M8) General] Forsaked:
Works fine thanks! :)
[One (M8) General] meleelord:
Worked great thanks!
[One (M8) General] Z51:
this worked beautifully! :)
[One (M8) General] Simpody:
works like a charm. Thank you
[One (M8) General] mlts22:
I took a walk on the wild side and entered the dd command via an Android terminal. Worked well, and no Tampered badge showing.

Thank you very much.
[One (M8) General] Blazeitup123:
worked on telus m8 :laugh:
[One (M8) General] freelockuk:
worked here too thanks
[One (M8) General] the_scotsman:
Simple and effective, thanks for this! :good:
[One (M8) General] scotty1223:
only rustykawk has pmed me his info,and we have (i think) figured out his situation.

for those who have been successful,how many of you are ona european x.xx.401.x build?

the others who have not success,send me a link and your info
[One (M8) General] Antagonist42:
REQUEST FOR INFO!!!

Desire C user flashed in a ONE M7 Lock/Unlock file and is possibly bricked (not 100% sure as yet) if possible could the offset the L/UL data is at be passed on us/me to possibly write/flash back original data.

Much appreciated for any help ;)

Bashing away at my HTC Desire C
[One (M8) General] scotty1223:
Ai yai yai what state is the phone currently in? Someone will need to dump mmcblk0p3 from a functioning phone and PM me a link.
[One (M8) General] Antagonist42:
I have mmcblk0p3 and the files that were flashed in, ATM it's stated as not booting but that could just be normal boot?!?

Check my last couple of posts if that's quicker ;)

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

Urgent help!!!!!!!!!!

Bashing away at my HTC Desire C
[One (M8) General] wera750:
I copied a pasted the command you had here and it put me in a bootloop and didn't clear the tampered flag.
[One (M8) General] rustykwak:
Thanks [MENTION=3437245]scotty1223[/MENTION] that fixed the issue! :good:
[One (M8) General] scotty1223:
He may need jtag services if he cannot even power on in to hboot
[One (M8) General] scotty1223:
Dump p6 and send me a link to that and a fastboot getvar all.

Do you have a copy of your command window?
[One (M8) General] Antagonist42:
I wonder if there should be a "Noob-Move" button we can mark profiles with... I'll only msg back if they suddenly get past knowing the difference between CWM.apk and recovery partition ;)

Bashing away at my HTC Desire C

---------- Post added at 06:33 PM ---------- Previous post was at 05:58 PM ----------

Killed it.... no HBOOT ... Thank you for the assistance ;) and the jot of info ;)

Bashing away at my HTC Desire C
[One (M8) General] scotty1223:
No problem. You are still welcome to PM me what you have, if you want to try and find out if that was the cause
[One (M8) General] Antagonist42:
It was...they linked it and flashed it... then no boot at all, the exploit started at your device, then made for ours but that's the only similarity on the face of everything ;)

More annoyingly is that they don't seem to realise what it is they're flashing to their phones and having little or no knowledge before they do it...

Then again, maybe XDA wouldn't exist if they didn't ;) :D

Bashing away at my HTC Desire C
[One (M8) General] tiho5:
Scotty,

Thank you for this! I've used it also on my m7.

Something isn't quite clear for me:

So this one works mainly for x.xx.401.x ones? Or the opposite, mainly does not work for them?

Forgive me but I'm somewhat confused. I don't have my m8 yet and didn't try.
[One (M8) General] scotty1223:
So far it has worked for almost everybody. And I have not looked at any preliminary dumps that Were any different. I think that rustykwaks phone was a fluke, but that's why I have asked for additional information :)

If you have a 401 phone showing tampered, you are welcome to dump p6.and I'll have a look
[One (M8) General] Tiann:
Worked amazingly first time, no issues.

Many thanks for this!
[One (M8) General] jody04c:
Works like a charm!!

Cheers!!!
[One (M8) General] scotty1223:
the peculiar thing is that i had a one v user change the lock flag,and his phone was fine. still booted and worked. we did dump p3 from a working phone and write his original data back,just to be safe. assuming the 2 share a partition layout,im curious why the one v users phone still worked,and the desire c does not- what was in p3 that killed the phone.

the flag in some devices is in p7,some in p17,i can help you look if youre interested
[One (M8) General] Antagonist42:
mmcblk0p3 is BOOT partition

HTC_BOOT_7227A V1.10.98 0R

So my guess is whatever it's overwritten there's nothing finished to operate or connect to.

Desire C is a cross between Wildfire S and Desire I think it is but so dissimilar you can't swap and change much.

Bashing away at my HTC Desire C
[One (M8) General] scotty1223:
Hmm the boot partition is just your kernel. Borking that should not have hard bricked the phone to the point you have no hboot.

Did he flash the zip file, or run the adb command?

A cat/proc/emmc and cat/proc/partitions or a link to a partition table would be interesting.
[One (M8) General] Antagonist42:
Not boot partition, it's ARM11/RADIO boot I think (PBL or SBL, depends if ELF or QNX is classed as a PBL/SBL?), this is what runs after initial config, the kernel boot (boot.img) and recovery are on partitions 17+18 I think it is (not at PC and headache :( ) so if it writes the Lock/Unlock data to mmcblk0p3 then it's goosed! :eek:

From what he's posted and inability to know how to get HBOOT up... Flashed.

Bashing away at my HTC Desire C
[One (M8) General] scotty1223:
Aaaah gotcha
[One (M8) General] Antagonist42:
Can go one a little better than that ;)

Have a looksie here This thread is worth keeping an eye on ;) also links for partition tools *NOT to be played/toyed with!!*

And when you read this >> Radio FW version: 10.16.98.09H_1.10.98.15 <<

the >> HTC_BOOT_7227A V1.10.98 << makes more sense ;)
[One (M8) General] mmilani:
Cannot open for write: Permission denied

Hi I am trying to run the commands but I keep getting this:

Cannot open for write: Permission denied

Can anyone help?

I have S-OFF and the device is rooted.
[One (M8) General] Fallen Spartan:
Try using an app like Root Explorer and mount designated folder beforehand
[One (M8) General] scotty1223:
Sounds like you are not rooted. Or not in a root shell.
[One (M8) General] mmilani:
Thanks. Looks like I lost my root because I loaded the firmware after flashing the rom. So I rooted it again and now it's perfectly fine.
[One (M8) General] Toxicology:
Thx [MENTION=3437245]scotty1223[/MENTION] :) Worked like a charm!!!
[One (M8) General] darksurfr:
Awesome! Thanks so much.
[One (M8) General] agarp:
Did anyone from Australia successfully removed the banner. I own a Telstra version and no go
[One (M8) General] prgopala:
Nope. I am on Vodafone and no go.:(
[One (M8) General] LQQKS:
thanks heaps mate :)

success on Australian Telstra M8!!!
[One (M8) General] lezperez:
Just done mine. Unbranded International version from Carphone Warehouse. S-OFF'd and removed the tampered text, thanks!
[One (M8) General] scotty1223:
Pm me:

-fastboot getvar all

-link to uploaded p6
[One (M8) General] prgopala:
I can get you the getvar, but what is p6?
[One (M8) General] scotty1223:
in the booted os,in a root shell( # prompt) enter:

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

this will leave a file on internal storage that you can upload,and pm mea link
[One (M8) General] thenags:
Followed the directions 100% twice and not working on my Sprint device..
[One (M8) General] scotty1223:
its worked on other sprint devices. without a copy/paste of your cmd window we cant really know if you followed the dirctions "100%" ;)

youre welcome to dump p6 and upload
[One (M8) General] crashfocus:
Chiming in, T-Mobile USA Varient M8 -- command worked beautifully. <3
[One (M8) General] prgopala:
Thanks [MENTION=3437245]scotty1223[/MENTION]. I ran the command and got the file, opened it in HEX editor and did a find for 'tamper'. Then i noted the position for the same, in my case it was 11264.

I just changed the command in the op to write to that position and voila, the TAMPERED banner was no longer there.

So my command looked like below

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

Thanks a lot for the guide.

P.S: I knew a little bit about the command since I had to return my Nexus 5 last week and I had ran similar command to set the TAMPER flag to false on that ;).
[One (M8) General] andrewnelson:
Worked perfectly on my m8.
[One (M8) General] VolcanicSkunk:
Confirmed working on T-Mobile HTC One M8
[One (M8) General] Toxicology:
[MENTION=3437245]scotty1223[/MENTION]:

I dunno exactly - but could my problem here - > http://xdaforums.com/showpost.php?p=51890055&postcount=74

maybe has something to do with using the "removing Tampered Flag"-instructions? :confused:
[One (M8) General] scotty1223:
It should not have anything to.do with it. I can't say exactly why your main version disappeared,but its not really uncommon,and doesn't affect anything. Main version is stored in a different partition.
[One (M8) General] scotty1223:
Hmm that doesn't make sense... I'd still like to take a look to satisfy my own curiousity if you don't mind.
[One (M8) General] Fallen Spartan:
I ran this as per instructions:

... and everything went smoothly, yet "tampered" remains :(
[One (M8) General] Toxicology:
Thanks really a lot Scotty for taking time on that! So I'm save and nothing can harm my m8?

Sent from my M8
[One (M8) General] scotty1223:
your welcome. i would not say "nothing" ;) but you should be safe as far as main version goes :)
[One (M8) General] scotty1223:
ive stated this several times in this thread,and this is the last time i will do it. you need to pm me results of

fastboot getvar all

and a link to an uploaded p6.

you dump p6 by:

adb shell

su (if needed to get a #)

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

transfer the file on internal storage to your pc and upload it
[One (M8) General] prgopala:
No worries. Sent you a PM..
[One (M8) General] bkeaver:
Thanks!!!!! worked on my AT&T M8 perfectly... :D
[One (M8) General] thenags:
Same here. Do you have a Sprint device also?
[One (M8) General] Marcismo55:
Great to have you around here Scotty. I think I've been following you around since the Dinc days! :D
[One (M8) General] vanamar:
Did not work for me.

I have sent you a PM with my p6 dump and a copy of fastboot getvar all
[One (M8) General] scotty1223:
Okay. Will take a look when I get home :)
[One (M8) General] scotty1223:
ive done this on my phone a few times. flip flopped from tampered to not,then back to tampered then back again.

seems the common issue with folks having issue is writing too may bytes. for reference,this process should look like this:

(red= my inputs,blue=additional comments):

c:\miniadb_m8>[COLOR="Red"]adb shell[/COLOR]
shell@htc_m8:/ $ su
su
root@htc_m8:/ # [COLOR="red"]echo -ne '\x00' | dd of=/dev/block/mmcblk0p6 bs=1 seek=5314564[/COLOR]
ock/mmcblk0p6 bs=1 seek=5314564 <
1+0 records in [COLOR="Blue"]<this is important. if you write more than one byte,your tampered banner is likely still there[/COLOR]
1+0 records out
1 bytes transferred in 0.007 secs (142 bytes/sec)
root@htc_m8:/ # [COLOR="Red"]exit[/COLOR]
exit
shell@htc_m8:/ $ [COLOR="red"]exit[/COLOR]
exit

c:\miniadb_m8>[COLOR="red"]adb reboot bootloader[/COLOR]

c:\miniadb_m8>[COLOR="red"]fastboot reboot[/COLOR]
rebooting...

finished. total time: 0.022s

c:\miniadb_m8>
[One (M8) General] Coops1977:
Thank you, worked fine first time on a UK Vodafone model. :good:
[One (M8) General] madshabz:
This helped me with my Telstra HTC M8. I just double checked that mine was also 11264. Thanks heeps scotty1223 and prgopala