yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] chuchuyxx:
Hello guys, i hope someone can help me. This is my situation:

At the begining i had a stock rom 4.1.1 from AT&T. I succesfully did S-OFF and installed Super CID 1111111. Everything went great but my goal was to install the Germany T-Mobile 4.2.2, so, the next step i did was to follow a tutorial wich guided me to install team win recovery. I copied the rom i mentioned to the sd card and when i tried to flash it failed. So, i did a wipe (Im so stupid :( ) and now i had no OS. after that, i tried to install ClockWorkMod to follow another tutorial and fix that. I did it using adb but when i tried to reboot in recovery it got stuck in a black screen and i need to push the three buttons for a long time to power it off. Since that, i turn it on, put it in fastboot mode but the console don't even recognize it when i try to use adb (It find no adb devices). So, i did a mess with my phone and i cant find a solution.

Can anyone help me please? Thank you so much guys.

PD: If you need any other details i can let you know anything.
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
I'm gonna need your bootloader details please. Also, what error did you receive in recovery when trying to flash the T-Mobile ROM?

The reason adb commands aren't working is because you need to use fastboot commands when connected in fastboot mode. I'd suggest flashing TWRP recovery back into the phone, mount the storage, copy a ROM across and flash it.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] chuchuyxx:
ok, this is all i can see

***TAMPERED***

***UNLOCKED***

EVITA PVT SHIP S-OFF RL

CID-11111111

HBOOT-2.14.000

RADIO-0.24p.32.09.06

openDSP-v34.1.0.45.1219

eMMC-boot

Nov 26 2012, 18:37:14:1706

Is that usefull?

I really dont rememeber exactly, but all i can remember was a Failure red legend in the TWRP. and as i said, i cant get the console to recognize the phone by adb :/

EDIT: i succesfully installed again Team Win Recovery. I moved the EVITA_UL_JB_50_S_TMO_DE_5.08.111.2_By_Turge ROM to the sdcard and try to flash but i it fails in the "Updating partition details...", i cant get any further. No OS.
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Yeah that's exactly what I needed to see. Like I said, adb isn't going to work, you need to use fastboot commands. So use fastboot to flash TWRP recovery back onto the phone and try flashing a ROM. If that doesn't work I'd suggest running an RUU.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] chuchuyxx:
EDIT: i succesfully installed again Team Win Recovery. I moved the EVITA_UL_JB_50_S_TMO_DE_5.08.111.2_By_Turge ROM to the sdcard and try to flash but i it fails in the "Updating partition details...", i cant get any further. No OS.
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Which version of TWRP are you using? Did you check the md5 of the ROM?

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] ray997:
HAve tryed all the guides in XDA but just doesnt work.

hey, i did the same thing and got the same result as him . just cant flash at all.. said " error installation.

do u have anyways like rewipe the whole thing and give me better guide. i wnt to flash back to the normal one.

HTC ONE X AT&T or international ones ( lastest ver )
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
Don't hijack this thread, it'll only confuse matters.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] chuchuyxx:
Hello timmaaa, i really appreciate your help. I did check the md5 checksum and the rom seems to be ok. As i mentioned before, the problems shows up when the flashing process steps to the partition detail "something" process. If you are ok with that, i can let you get into my computer by Teamviewer or some other remote control software so that way you can see anything you need by yourself. I don't know the Team Win Recovery version installed and i'm in my work right know and i didn't bring the htc with me, i'll let you know the version as soon as i get home.
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
I don't have a PC at the moment so Teamviewer isn't a possibility, just post the TWRP version when you can.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] chuchuyxx:
Ok, no problem. The version of TWRP is v2.5.0.0
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
That's your problem, 2.5 is full of bugs. Download TWRP 2.6 from here. Put the file in your fastboot folder. Connect phone in fastboot mode, open command prompt from within fastboot folder, issue the following commands:

fastboot flash recovery "filename.img"

(the exact filename, minus the talking marks)

fastboot erase cache

fastboot reboot-bootloader

Now you can enter recovery on your phone and try again.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] ted77usa:
Twrp One Click Tool Updated to V2.6.0.0 since timmaaa recommended this version alot and pretty Stable....click on my signature for the link..... [MENTION=4153349]timmaaa[/MENTION] u deserve Recognized Contributor from XDA since u been help alot of people with your time and knowledge ......:thumbup::D:thumbup:

Swyped From BlueICESense_JBE
[AT&T, Rogers HTC One X, Telstra One XL] Heisenberg:
I've never really thought about it, thanks though. All I do is help out when I can.

Sent from my Evita
[AT&T, Rogers HTC One X, Telstra One XL] chuchuyxx:
timmaaa, thank your sooo much. You are my hero. everything is working fine again and now i have 4.2.2. Thank you :D
[Galaxy S III Q&A, Help & Troubleshooting] mizzeeboy:
Hi all I recently used odin to flash the i9300xxella firmware on to my s3 but when the whole flashing process finished and my phone then restarted I had suddently realized this

kinda big transparent black prompt like box

invading my screen no matter what I do and it displays my PDA , PHONE ,CSC .etc details like these and for some reason it is not going. I don't really know the history of the phone that much but I am certain that some one has rooted it. Does anyone else have a problem like this and how it could be solved?
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
Why flash XXELLA? Its ancient

This is factory mode. Read general > sticky roll-up thread > imei /EFS - know this stuff

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Galaxy S III Q&A, Help & Troubleshooting] mizzeeboy:
Well to be honest with you I went on the sammobile site and I couldn't find the firmware I was looking for but then I went to the find my firmware field and it then found that this software was the most compatible with my phone and when you were talking about IMEI/efs are you saying that there could be something wrong with my modem or something . It this the problem that causes the box to appear on my phone?
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
As said read >>>This is factory mode. Read general > sticky roll-up thread > imei /EFS - know this stuff
[Galaxy S III Q&A, Help & Troubleshooting] mizzeeboy:
Yes I did read the thread about IMEI/EFS but what does factory mode have to do with it? Surely this black transparent box shouldn't appear in factory mode? Also if it does how can I get rid of it
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
You read

REF] IMEI / EFS - Know this stuff (i9300) - including "no network

I'm stuck in factorymode, is this related?
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
Its not hard. If you actually read the thread, you'd have read the fix for your problem

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Galaxy S III Mini Q&A, Help & Troubleshooting] djtom1:
Hello

After flash CWM keys under display stopped works and blink randomly during boot... In cwm in key test they are also unusable. Situation is on stock and on Maclaw. Bad recovery?

Regards
[Galaxy S III Mini Q&A, Help & Troubleshooting] klopp-o-mat:
I had this problem too. Then i closed all apps and turned off my screen and waited 45 min. And then my keys worked.

Sorry for my bad english

Gesendet von meinem GT-I8190
[Galaxy S III Mini Q&A, Help & Troubleshooting] djtom1:
every time You turn off screen for 45 min??? Thats madness! Anyone has other solution? Other recovery for this model?
[Galaxy S III Mini Q&A, Help & Troubleshooting] klopp-o-mat:
no i turned off the screen for 45 min. only for the first time. then it worked for me
[Galaxy S III Mini Q&A, Help & Troubleshooting] tys0n:
It's a "bug" from samsung. _Happens every time you boot from recovery to system. Just wait a minute or two and they work again. Nothing to do about it.
[Galaxy S III Mini Q&A, Help & Troubleshooting] djtom1:
Thanks for reply. So, I cannot never had custom rom? (install lustom require cwm or trwp). Only stock rooted rom? So sad... :(

I try boot phone not from recovery (normal boot) and this bug still exist, i wait 2 hours with offscreen and also exist...
[Galaxy S III Mini Q&A, Help & Troubleshooting] tys0n:
That's not normal. Try to reflash rom..
[Galaxy S III Mini Q&A, Help & Troubleshooting] djtom1:
Ok, I have CWM recovery from Rom Manager, weird thing is keys randomly blinkin when in recovery, in keytest mode this keys not responding and blinking. Other keys working. So, now i wipe/factory all in cwm and flash again lastest Maclaw. Please tell me, is there any special recovery for my model (8190N)?
[Galaxy S III Mini Q&A, Help & Troubleshooting] djtom1:
Waiting 10 minutes and again keys not working. This keys weird blinking randomly when i press combo to enter recovery...

Sadly, witch stock is newest for Poland? This? http://d-h.st/Hgs
[Galaxy S III Mini Q&A, Help & Troubleshooting] TheGamer1370:
Restart phone and problem solved
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] omarrm1999:
i flashed through kdz but it stucks in recovery mode how to get out from recovery??
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] andersonlima:
STOP ASKING TOO MANY THREADS COMON MAN HAVE A SENSE OF A HUMAN AND SEARCH INSTEAD OF ASKING WHEN U HAVE THOUSANDS OF THREADS TALKING / DISGUSING ABOUT IT ! LOL
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] sukkukikku:
Press and hold power button
[LG Optimus Black] paulroland:
Sorry for double posting, but in the Trasmusic thread, i got no answer.

I have a problem with the LG3contacts,apk. It is not possible (normally it is) in this rom, to sort the contacts with the family name (contacts, settings, sort by...), only with the given name (first name). I tried to use the apk from IZS, but this wont work. So, obviously, its not a setting in the LG3contacts.apk, where can i find it?

In the screenshot you see that an option is missing.

Any ideas?

screenshot
[Android Q&A, Help & Troubleshooting] jerryfreak:
figured it out
[Galaxy S 4 Q&A, Help & Troubleshooting] egendomligt:
I realize there's plenty of threads with more or less the exact same topic. But I haven't found an answer in any of them that helps my situation.

Alright here's the deal:

I'm getting the "Storage space running out"-notification. And apps are starting to FC.. My phone is a i9505 and I'm currently running Carbon. But this was a problem with CM 10.2 too.

Here's what confuses me:

root@jfltexx:/data # busybox df -m
Filesystem 1M-blocks Used Available Use% Mounted on
...
/dev/block/platform/msm_sdcc.1/by-name/userdata
9351 9300 50 99% /data
...
/dev/fuse 9351 9300 50 99% /mnt/shell/emulated
...
/dev/block/vold/179:33
30688 25851 4837 84% /storage/sdcard1

Those should be the interesting bits (I'm showing off my 32GB external card here as well). Right, so I'm using 99%, or 9300MB.

Now here's how I check what's taking up the space:

root@jfltexx:/ # du -d1 -m /data
1	/data/dontpanic
3404	/data/media
1	/data/misc
1	/data/local
252	/data/data
1	/data/app-private
176	/data/app-asec
203	/data/app-lib
939	/data/app
1	/data/property
1	/data/ssh
1	/data/radio
321	/data/dalvik-cache
1	/data/resource-cache
1	/data/lost+found
1	/data/drm
1	/data/mediadrm
1	/data/security
4	/data/system
1	/data/wpstiles
1	/data/wiper
1	/data/shared
1	/data/fota
1	/data/time
1	/data/bluetooth
1	/data/audio
1	/data/.ssh
1	/data/tombstones
1	/data/nfc
1	/data/user
6	/data/qcks
1	/data/backup
1	/data/anr
5302	/data

du sums it up for us: 5302MB on /data

DiskUsage is showing me "System data" is taking up the space, but it doesn't tell me what or where:

I've checked solutions mentioned in related threads (all over the internets):

* The "/datadata" issue - I don't have this directory

* The "lost + found" - It's 1MB as you can see

* The "/data/log" issue - I don't have this directory

So what am I missing?
[Galaxy S 4 Q&A, Help & Troubleshooting] egendomligt:
Well wouldn't you know. After a reboot the usage is down and df reports the same as du. I'm still confused as to what took up the space though.. I even got Java exceptions (from DiskUsage) saying the disk was full.
[MDA II, XDA II, 2060 General] djtwok:
Picodrive is fast but no sound, Pocketgenesis doesnt work (black screen only), Morphgear with sound is extreme slow. Any alternatives ? Picodrive on UIQ works on my Moto A925 nearly flawless with sound (and the CPU is only about 200 Mhz !).
[Nexus 4 Q&A, Help & Troubleshooting] da.trute:
I', thinking of moving away from samsung and over to the new Nexus 5 when it comes out, however i need screen mirroring (miracast) Anyone using screen mirroring to a latest model samsung TV, does it work, what's it like?
[HTC Pico (Explorer)] ELITAZER:
Hey, man I installed monect and it worked but in racing game nfs 12 mw steer right and left buttons are not working and also using the g sensor by tilting I can only accelerate or decelerate not steer, can you tell me which key of keyboard are emulated in steer left and right so that I may make it work, currently they are arrow keys, and manual d-pad in monect is working.. everything else is working.
[HTC Pico (Explorer)] xactor:
Give me ur app my playstore saying incompatible!
[HTC Pico (Explorer)] ELITAZER:
Just go to the thread, and download the package, both server and apk are included...
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] omarrm1999:
hey some one told me that he increased the ram of his mobile phone by something named swapping so i want to know how to use swapping??
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] YuriMasumoto:
I don't say increase, but I know methods to make free ram

Use tiny gapps

Uninstall some native(	unnecessary) apk's
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] Godlove:
Hey bro use roehsoft ram expander for increasing ram as it swaps memory as it is a paid app on google play
[Galaxy Y GT-S5360 General] kumar akarsh:
nice share bro!!!!!
[Galaxy Y GT-S5360 General] kumar akarsh:
powerpack link not working!!!!!! wat to do?????????????
[Galaxy Y GT-S5360 General] ~Unify~:
Try this one http://download.microsoft.com/downl...-684E8AD6F0AE/VisualBasicPowerPacks3Setup.exe
[Galaxy Y GT-S5360 General] radiocity966:
update the download links please :crying:
[Galaxy Y GT-S5360 General] aniket.lamba:
Updated!
[Galaxy Y GT-S5360 General] Flextrick:
Hey, thanks for sharing!

You can update to 3.0 if you've got some time. :)

Maybe also my new app is interesting for you guys: Sysfile Copymaster

Makes it easy to work with system files.

Greetings
[Galaxy Y GT-S5360 General] aniket.lamba:
Alright! :thumbup:

I'll try your app soon!

Thanks for the update alert! :D
[Galaxy Y GT-S5360 General] Tecior:
It refuses to recompile... no matter what.

It just won't compile. I edited nothing, recompiled it to test, and got a huge number of errors about it not being able to find directories. I moved the AndroidManifest.xml and META-INF folder...
[Galaxy Y GT-S5360 General] aniket.lamba:
Post your query in the original thread.
[Galaxy Y GT-S5360 General] Yash Mehta:
Link Not wrking man. Please Solve It .!!!
[Galaxy Y GT-S5360 General] -CALIBAN666-:
http://xdaforums.com/showthread.php?p=42639253

GREETZ FROM TEAM-OPTIMA!!!
[Galaxy Y GT-S5360 General] markmellarpes:
[TUT] How to use apktool for mobile

1.)Install Apktool4.1.1.apk

2.)Download Apktool Arm.zip

3.)Extract apktool armel.zip and you will see apktool folder inside..

4.)Move apktool folder in your sdcard (not in any folder) it should be look like this sdcard/apktool

5.)Make a new folder inside the apktool folder and put your framework-res.apk and twframework-res.apk inside the new folder. it should be look like this sdcard/apktool/newfolder/framework-res.apk

6.)Open Apktool4.1.1 App and go to apktool/newfolder and click framework-res.apk and click import as framework.. (do the same with twframework-res.apk)

7.)Now you can decompile and recompile any apk you want.. just put it in apktool folder and click decompile all..

NOTE: This is for rooted phones only.. :)

Original Thread

CREDITS

[MENTION=4491442]evanlocked[/MENTION]

and the maker of this app i dont know who he is
[Galaxy Y GT-S5360 General] aniket.lamba:
[MENTION=225651]op[/MENTION] - Check PM.
[Galaxy Y GT-S5360 General] markmellarpes:
del
[Galaxy Y GT-S5360 General] caydantl:
test

okay let me test you
[Galaxy Y GT-S5360 General] noturbru:
Good work. Sir!
[Galaxy Y GT-S5360 General] ~Unify~:
Nice share....trying
[Galaxy Y GT-S5360 General] kumar akarsh:
nice share bro!!!!
[Galaxy Y GT-S5360 General] shadman0:
Does not work

Shadman0 If I help U Pls Give Thanks

My Work http://xdaforums.com/showthread.php?t=2521867
[Galaxy Y GT-S5360 General] markmellarpes:
maybe you just did something wrong :p everything we share here in xda is tried and tested by us before we post it in here.
[Galaxy Y GT-S5360 General] :
Thanks. i'll try.
[Galaxy Y GT-S5360 General] Himan Boro:
Decompiling Is Working Fine..Bt Whats Wrong With Its Recompiling...Every tym shows W:Couldnt Load File resources...etc etc
[Galaxy Y GT-S5360 General] markmellarpes:
Just read the error to fix it.
[Galaxy Y GT-S5360 General] Epongzkii:
sir can this apps edit xml files ?? thanks
[Galaxy Y GT-S5360 General] markmellarpes:
yes .download any text editor to edit xml after decompile.
[Galaxy Y GT-S5360 General] gelodroidv:
can't decompile properly

i got this error

/data/data/per.pqy.apktool/lix/jvm/java-7-

openjdk-armel/jre/bin/java: error while

loading shared libraries: libpthread.so.0:

cannot open shared object file: No such file or

directory
[Galaxy Y GT-S5360 General] kumar akarsh:
worked like a charm for me!!!!!
[Galaxy Y GT-S5360 General] devilyuri:
[MENTION=4773488]markmellarpes[/MENTION]

I'm having an error while recompiling

It says me that doesn't found resources file but i don't find it :confused:

Inviato dal mio GT-S5570I con Tapatalk 2
[Galaxy Y GT-S5360 General] markmellarpes:
maybe you put something or remove somthing ;) can you take a ss
[Galaxy Y GT-S5360 General] markmellarpes:
it is normal when you decompile framework-res.apk as long as there is a "building apk" at the end.
[Galaxy Y GT-S5360 General] devilyuri:
[MENTION=4773488]markmellarpes[/MENTION]

I tried to translate a rom

When i recompile the apk in the end is written building apk file...

But when i put the framework in a rom and i flash it,when i go in language settings the language that i put isn't on the list

Inviato dal mio GT-S5570I con Tapatalk 2
[Galaxy Y GT-S5360 General] gh0st2022:
Eh

Is This Working For systemUI.apk ?

:confused:
[Galaxy Y GT-S5360 General] markmellarpes:
all apk
[Galaxy Y GT-S5360 General] siMp0lMaN:
Error while importing framework-res.apk as framework., using GB, working on my ics tho
[Galaxy Y GT-S5360 General] rahulraz:
GOOD ONE

Well i going it to try nows

seems really nice

thanks for sharing
[Galaxy Y GT-S5360 General] Raghuveer:
Thanks I'll try.

sent from terminal emulator
[Galaxy Y GT-S5360 General] wanyakuza:
sh:applet not found

get applet not found ,why??
[Galaxy Y GT-S5360 General] Lemon_Lime`s:
try to update/install latest busybox ..
[Galaxy Y GT-S5360 General] kakaana:
where will i find twframework-res.apk???
[Galaxy Y GT-S5360 General] TheFixItMan:
system/framework in roms that have touchwiz - eg stock samsung roms

aosp cm7 and other manufactuer phones will not have touchwiz
[Galaxy Y GT-S5360 General] kakaana:
Getting dis error while trying to recompile

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:164)

at brut.androlib.Androlib.build(Androlib.java:183)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

at brut.apktool.Main.main(Main.java:79)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:160)

... 4 more
[Galaxy Y GT-S5360 General] GalKill:
Why I always cannot recompile framework.jar? Should I rename it to apk first?
[Galaxy Y GT-S5360 General] TheFixItMan:
no just use apktool on pc

https://code.google.com/p/android-apktool/downloads/list

all you need to do after navigating to folder containing the file you want to decompile is type

to decompile

apktool d framework.jar NameOfFolderToDecompileTo

to recompile

apktool b NameOFDecompiledFolder newframework.jar

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

incorrectly installed or incorrect use of apktool
[Galaxy Y GT-S5360 General] a7stark:
Nice work.

This tutorial is very helpful thanks for sharing.
[Galaxy S 4 Q&A, Help & Troubleshooting] bhumika.k:
can I flash the perseus kernel to the octa core with 4.3 leak? will it brick my mobile phone??
[Galaxy S 4 Q&A, Help & Troubleshooting] Rahulrulez:
I would not recommend that to you.. 4.3 has entirely different kernel I believe. Samsung has not released source code of kernel yet.
[One (M7) Q&A, Help & Troubleshooting] akuma24:
Hi,

Now that I have S-Off on hboot 1.54, Im seeing the red text on bootup, is this due to being S-Off ? If I go S-On, will it remove the text ?

I ask because I need to send the phone back to htc so need to get back to stock.

also, Is this the command to go S-ON ?

fastboot oem writesecureflag 3
[One (M7) Q&A, Help & Troubleshooting] Guich:
Now that you're s-off, you've to flash a custom hboot form Sneaky thread :)

After you won't see the text ;)
[One (M7) Q&A, Help & Troubleshooting] akuma24:
If I send the phone back to HTC with this custom hboot, will that cause any warranty issues ?
[One (M7) Q&A, Help & Troubleshooting] Guich:
If you will send to htc for warranty, you can reflash an original hboot/firmware and rom ;)
[One (M7) Q&A, Help & Troubleshooting] akuma24:
ok, just so that Im clear,

I flash a custom hboot to get rid of the red text.

restore my nandroid backup,

remove TAMPERED message,

lock the bootloader

flash stock hboot

restore recovery,

set security on, or leave it off

???
[One (M7) Q&A, Help & Troubleshooting] nkk71:
DO NOT GO S-ON with custom hboot, that will most likely brick your phone.

Anyway, plenty of people have sent their phone back with S-Off and received back with S-Off. As long as you are LOCKED (not RELOCKED), not TAMPERED, etc. they can't complain abut S-off, because some devices are actually shipped S-Off.

If you do prefer to go S-On again before sending it, make sure you have done all the steps to remove any sign of unlocking your phone. S-On should be THE VERY LAST STEP, once you are satisfied everything is back to stock and no warning messages.
[One (M7) Q&A, Help & Troubleshooting] akuma24:
any idea if simply going back to s-on while remove the text without changing the hboot etc
[One (M7) Q&A, Help & Troubleshooting] nkk71:
The S-On/S-Off flag should not have anything to do with the red text (99.9% sure). In theory, having stock ROM and stock RECOVERY, and maybe relocked bootloader should remove the TAMPERED and red warning text.

However it seems that for some this does work, and for others it doesn't. I've personally even unlocked an HTC One (using HTCdev cause S-On), installed custom recovery, custom ROM, and even though it showed TAMPERED, it did NOT show the red warning text.

Still trying to figure out what combination would make it go away. Maybe, I'll mess with that over the weekend and see if I can find something.