yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] eg1122:
I decompiled did the .9 edits then the code edits then recompile...I only touched xmls with text color in them. I'll zip up the images and a word document with all my edits in it. But basically all I did was open all the xmls with notepad+ and searched for 'black' then replaced with white, then did the same with #ff00000, the green codes etc. give me a moment and i'll post everything up.
[HTC EVO 3D] thesparky007:
the text color edits are not housed in any of the xmls...

they are actually in two different smali files

Max_Pain was nice enough to send me how to do it

Originally Posted by DJZager
Here you go:

You are going to be opening up two separate files, paths are:
HTC_IME/com/htc/android/htcime/ezsip/KeyboardView.smali
HTC_IME/com/htc/android/htcime/ezsip/Port20KeySIPView.smali

Below you will find the edits for both files (I can't remember which has the v28 and which has the v30). All that you need to know is that when you open up each of these files there will be (1) instance of the Primary text, (1) instance of the Secondary text, and (8) instances of the Shadow Layer.

The purpose of the # is to comment out the shadow layer, so just add it before each of the 8 appearances of the shadow layer.

Make sure that you are finding exact matches to what you see below, there are alot of things that look similar that are NOT what you are looking for.

A note about what you'll see below
Code:
0xAARRGGBB
AA - Alpha Channel, read: Transparency
RR - Red goes from 00 to FF
GG - Green goes from 00 to FF
BB - Blue goes from 00 to FF

so white would be 0xFFFFFFFF
PRIMARY TEXT
Code:
const/high16 v28, -0x100
Change to:
const v28, 0xAARRGGBB (Hex Value of color you want)
and SECONDARY TEXT (Read: Special Characters)
Code:
const v28, -0x888889
Change to:
const v28, 0xAARRGGBB (Hex Value of color you want)
and the Shadow Layer
Code:
invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V
Change to:
#invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V
okay this should only take care of ONE file. Once you have taken care of the one file move onto the second and find:

PRIMARY
Code:
const/high16 v30, -0x100
Change to:
const v30, 0xAARRGGBB (hex color you want)
SECONDARY
Code:
const v30, -0x888889
Change to:
const v30, 0xAARRGGBB (hex color you want)
SHADOW
Code:
invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V
Change to:
#invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V
After you have made your changes compile. Take a working copy and replace classes.dex with the classes.dex from what you just compiled.
[HTC EVO 3D] jeffsanace:
Thanks!! Very informative! I know what I was doing wrong now. Lol! Looking everywhere but there.
[HTC EVO 3D] eg1122:
ok so I tried that and now I get red letters...going to star over from the base
[HTC EVO 3D] jeffsanace:
Here's a mod I have wanted for awhile. I would like to remap the car panel app to do away with footprints and replace it with music. Anyone have any idea how to pull that off?

Sent from my Bad Seed customized EVO 3D!!
[HTC EVO 3D] il Duce:
Silly thought but i had white look red messing with miui images today, because for some reason coloring was set to indexing and not rgb. Just a thought.
[HTC EVO 3D] jeffsanace:
I haven't tried yet, did you start with stock?

Sent from my Bad Seed customized EVO 3D!!
[HTC EVO 3D] eg1122:
just tried it with stock and i get red primary letters the secondary is white.

This would look great if I was doing a superman theme

ok for the secondary text in the smali i replaced with 0xFFFFFFFF and I got it white, so if 0xFFFFFFFF is red in index what would be white?
[HTC EVO 3D] fernando sor:
i have it but i cant upload it from work. havnt found the orange highlight color tho.i do have all white text and numbers. the reason your getting the pinkish letters is you need to remove the high16 from the code line.

and smali color conversion can when designated follow aarrggbb but usually does not. i have a tutorial i will post on converting html to java
[HTC EVO 3D] jeffsanace:
You can email it to me and I'll post it if you want bro.

Sent from my Bad Seed customized EVO 3D!!
[HTC EVO 3D] fernando sor:
you dont need to assign alpha like that. for white in smali just 0x1 will do
[HTC EVO 3D] eg1122:
Thank you all for helping out, now I just need to get rid of that orange if not no big deal.
[HTC EVO 3D] jeffsanace:
Haven't tried it, but I wonder if it's associated with the tutorial highlight colors in values/colors.xml.... You still want me to post the one from fern?
[HTC EVO 3D] eg1122:
well i had changed all of those in and i couldnt find any orange, there were all green or light blue colors unless it was not hex.

Here is the moded HTC_IME if anyone want it.
[HTC EVO 3D] fernando sor:
no he changed those
[HTC EVO 3D] jeffsanace:
I'll keep my eye out for it, it may not even be in the apk.
[HTC EVO 3D] eg1122:
I was just changing everything I could find to see what changed...lol

The last version that I posted only has the smali edits and the images swapped.
[HTC EVO 3D] jeffsanace:
I installed ferns version and I have no orange, I have grey highlight color. What app was that in the screen shot from earlier? I checked in mail, gmail, mms and search.
[HTC EVO 3D] silverxbv2:
There is a good guide here on xda. But it is outdated. 3.0 is a whole different beast. http://xdaforums.com/showthread.php?t=916814

From the mobile command center
[HTC EVO 3D] vanessaem:
Haha...I read the OP more closely and answered my own question. :p
[HTC EVO 3D] fernando sor:
ok i have stared my first guide. it is no where near completion but its a start. see post 8
[HTC EVO 3D] thoughtlesskyle:
here is the post i learned a lot from

http://xdaforums.com/showpost.php?p=9978779&postcount=62

i feel like this should be in the OP, and we handle it like the d3rp question thread and help when issues arise along with putting any tutorials in the OP, but thats just me.

I am an AOSP guy i haven't really themed much lately, esp since i never got onboard the whole theme chooser boat
[HTC EVO 3D] pstevep:
Boomsauce my friend.. That's a heck of a start..

______________________

Now available in 3D
[HTC EVO 3D] vanessaem:
Beep beep!

Transparent notification pull-down tutorial request:

Ok...I don't know if it's been done already but I'm looking for something like this http://xdaforums.com/showpost.php?p=15199389&postcount=1237 for Sense 3.0.

This tutorial seems to only be for Sense 2.1.

I asked on the Warm thread for a tutorial like this a while back and I was given a little grief about it...lolz. They couldn't understand why I would want a tutorial on this when it was already made in the rom. But my assertion was I wanted to know how it was done. I'm not just looking for something ready made.

This would also be particularly useful for those who are on roms that do not have a transparent notification pull-downs.

Thanks in advance.
[HTC EVO 3D] pstevep:
It will be. The op here is an ever changing playground. That's the plan.

______________________

Now available in 3D
[HTC EVO 3D] fernando sor:
a good guide but this is an htc thread. sense needs to be covered. plus this thread kind of has a cool community feel to it

---------- Post added at 01:20 AM ---------- Previous post was at 01:19 AM ----------

we have one here some where. ill find and link you to it
[HTC EVO 3D] il Duce:
oh and tommytomatoe made a couple decent guides afaik, like "what do you know about rosie"
[HTC EVO 3D] fernando sor:
this is a good thread freeza started and i added further transparency and all text color changes for sense systemui

sense transparent notification pulldown guide
[HTC EVO 3D] pstevep:
ok, my super troll. you find, i will see if they link worthy.
[HTC EVO 3D] vanessaem:
You're awesome. :)
[HTC EVO 3D] pstevep:
i have a couple aosp style guys on board to field aosp stuff, because i know we will get it eventually. i personally dont know crap about aosp themeing, i barely know anything about sense themeing.
[HTC EVO 3D] vanessaem:
Knock it off Mr. Moderator. You know plenty.
[HTC EVO 3D] fernando sor:
theming sense is far far more difficult

---------- Post added at 01:32 AM ---------- Previous post was at 01:31 AM ----------

thats right your a mod now! you should sticky this
[HTC EVO 3D] thoughtlesskyle:
I completely agree
[HTC EVO 3D] pstevep:
im getting someone to. i cant sticky it myself. for multiple reasons.
[HTC EVO 3D] il Duce:
what you know about rosie

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

twss - boom.
[HTC EVO 3D] fernando sor:
awesome quote in your sig bro. should be taught in every grade in every school
[HTC EVO 3D] il Duce:
just realized once they crack sense 3.5 there's gonna be a whole new beast to tame lol.
[HTC EVO 3D] fernando sor:
Keep typing. It turns orange

It only does it with nonsensical words
[HTC EVO 3D] jeffsanace:
I see it now, only in prediction when not typing an actual word.
[HTC EVO 3D] eg1122:
Thanks to all of your help, I was able to make these...MY FIRST THEMED KEYBOARDS!! :D

sorry for taking up so much space...forgot to re-size them with all the excitement of getting them done

edit* for anyone interested, I posted them over in my thread at the bottom of each theme
[HTC EVO 3D] jeffsanace:
Very nice looking keyboards there bro! Nice work
[HTC EVO 3D] fernando sor:
hex-smali conversion

he_stheone64 actually layed this on my apps thread a while back. its very well written so ive always kept it.

<Looks to me like you have to edit this line - btw, great job here fernando

const v6, -0xfa2736

Change this to your prefered color in HEX, but you need to calculate the correct code before for smali

The color codes in smali are 1’s complement Hex codes. This means they are in Hex, but you have to add some math to convert them. You first start with the Hex color code you want to use. You will then invert the binary digit (0 becomes 1 and 1 becomes 0) and then you convert this back into Hex. This is the color you want to use in the smali file.

Hex Binary 1’s New

Code Code complement Hex

binary

0 0 1111 F

1 1 1110 E

2 10 1101 D

3 11 1100 C

4 100 1011 B

5 101 1010 A

6 110 1001 9

7 111 1000 8

8 1000 111 7

9 1001 110 6

A 1010 101 5

B 1011 100 4

C 1100 11 3

D 1101 10 2

E 1110 1 1

F 1111 0 0>

also ive attached a script by allockse that is very user friendly
[HTC EVO 3D] eg1122:
that script is cool man, thanx
[HTC EVO 3D] il Duce:
@fernando, jeffs new anim sig pwns yours :P

@eg, nice new sig too lol

I just thought of the best gif sig idea ever...

team d3rp short bus pic, driving to the right, as our d3rp avatars run after it... lmao - I haz no skills to make, just came to me in a stroke og d3rp genius lol.
[HTC EVO 3D] pstevep:
ok i am going to show my ignorance here.. and i am still having some slight confusion with this whole .9.png thing. if i edit a .9.png with gimp and save it, will there be an issue that it would have to be patched??
[HTC EVO 3D] nuggyunlimited:
Hey everyone would someone mind helping me out with decompiling and recompiling? I can successfully decompile apk's but when compiling them I always get errors. In linux and windows I'll post the logs in a sec.... Thanks in advance and I appreciate it.
[HTC EVO 3D] thoughtlesskyle:
The only time there would be is if the following occurred

1 you made a new image from scratch

2. If you messed with any of the traces ( if you zoom in on the image you will see 1x1 black lines around the border if you mess with those there will be problems, just make sure they are black also (like actually black #000000)
[HTC EVO 3D] pstevep:
ok awesome. thanks kyle. :cool:
[HTC EVO 3D] fernando sor:
Haha. That would be cool
[HTC EVO 3D] thesparky007:
yup, the black lines basically define how the image stretches... so without them properly compiled in... you freak the **** out of the app

If anyone is interested, i can make a noob guide for themeing the htc keyboard
[HTC EVO 3D] il Duce:
ikr... oh if I knew how to make a gif :(
[HTC EVO 3D] Papa Smurf151:
If u edit the image with out it being decompiled first u have to run it through draw9patch and recompile it. If u don't u will have problems.

To recompile easily I've included tgw xultimate draw9patch compiler. Pull folder out of zip file. Open up folder and click on original then Res and create a drawable mdpi folder a drawable hdpi folder a drawables ldpi folder and a drawable folder. Put images in respective folders. Then go to the xultimate d9pc.bat and click on it. Images will be put into a done folder.

Xultimate draw9patch compiler

32 bit windows

http://db.tt/gxtR0NpW

Xultimate draw9patch compiler

64 bit windows

http://db.tt/hFWHNnEG
[HTC EVO 3D] jeffsanace:
You would probably have to do that sort of gif in photo shop. The program I use probably could do it, I just haven't figured it out yet. LOL
[HTC EVO 3D] steal25:
are you decompiling and editing? If you get .9 errors when decompiling then you know its a bad .9. the easiet way i've found to do it is decompile your apk then edit your .9s and to compile them I use Xultimate .9 compiler, It will tell you if there are errors and it wont compile. then most likely like thoughtlesskyle said just reblacken the patches and compile again, then just place the compiled .9 into the original apk not the decompiled one.

Edit: Im a slow typer!!! Papasmurf beat me too it.
[HTC EVO 3D] Papa Smurf151:
Just posted this two above yours. Guess I was quicker at the draw lol....pun intended
[HTC EVO 3D] silverxbv2:
I may do this the hard way, but when i edit 9pngs with gimp, i decompile the apk, open the 9PNG in gimp. Then i use the selector tool and select the entire image minus the border, so basically i have selected a rectangle inside of the borders. Then i right click inside of the selected area and go to colors/ hue saturation and make my color changes. Doing it this way ensures that the borders are not affected by the changes. And I have never had one error out.

From the mobile command center
[HTC EVO 3D] steal25:
Yep i need to learn to type faster, This one finger staring at the keybord method isn't working for me anymore!
[HTC EVO 3D] eg1122:
I use photo editor by pixlr.com do recolor images and decompiled .9 pngs and it has never given me trouble when compiling .9 images.

http://pixlr.com/editor/
[HTC EVO 3D] silverxbv2:
The way that i posted really only applies if you are making any changes to the lightness or opacity of the images. Technically just color changes should have no effect on the border. No matter what color you add to black, it's still black. But if you lighten the image at all, that does effect the black.

From the mobile command center
[HTC EVO 3D] nuggyunlimited:
I'm interested :-)
[HTC EVO 3D] dased14:
^^^^^^yeah what he said ^^^^

Tapa away from a galaxy far away
[HTC EVO 3D] nuggyunlimited:
Heres the log can someone help me find out why I get an error when recompiling apk's? I'm using apkmanager 4.9 windows 7 64-bit

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

|Thu 11/10/2011 -- 9:18:55.27|

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

java version "1.6.0_20"

Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

I: Framework installed to: C:\Users\Nuggy\apktool\framework\2.apk

I: Baksmaling...

I: Loading resource table...

I: Decoding resources...

I: Loading resource table from file: C:\Users\Nuggy\apktool\framework\1.apk

I: Loading resource table from file: C:\Users\Nuggy\apktool\framework\2.apk

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: java.io.FileInputStream@c00025

at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)

at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)

at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)

at brut.androlib.src.SmaliBuilder.build(Unknown Source)

at brut.androlib.src.SmaliBuilder.build(Unknown Source)

at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)

at brut.androlib.Androlib.buildSources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Press any key to continue . . .
[HTC EVO 3D] il Duce:
Dear mad scientists of sense3. Where dies the transparency live for app drawer / personalization bg? Rosie what? SteelH was trying to find it.
[HTC EVO 3D] fernando sor:
I have to look. All apps xml and values-hdpi/styles

There is another I believe but this is from memory
[HTC EVO 3D] fernando sor:
You probably need to update your resources and i recommend NOT using Apkmanagrr but apktool from a command line
[HTC EVO 3D] tommytomatoe:
In sense 3.0 transparent app drawer is also in smali. HTC made it black by default in the smali. It's referenced in two or three files, launcher.smali being one of them. Unfortunately I haven't done this in some time. I am stuck on old school sense 1.0 :-)

Sent for the EVO Classic.
[HTC EVO 3D] fernando sor:
I have been able to make the drawer trans without smali edits
[HTC EVO 3D] tommytomatoe:
For sense 3.0? I know for sense 2.1 you had to, and when I helped someone do it for sense 3.0 it was the same...

Sent for the EVO Classic.
[HTC EVO 3D] silverxbv2:
I just did mine recently without smali edits also.

From the mobile command center
[HTC EVO 3D] tommytomatoe:
Oh ok. Even better then. It must have just been for sense 2.1. I didn't do the sense 3.0 myself but just helped whoever it was do it. The smali edit must not have been necessary. Thanks for clarification

Sent for the EVO Classic.
[HTC EVO 3D] fernando sor:
There are background visibility edits you can make tho i believe for certain small areas in Rosie in smali if i remember correctly
[HTC EVO 3D] nuggyunlimited:
Thanks Fernando I will try that
[HTC EVO 3D] nuggyunlimited:
Is this good or bad I decompiled it ok but this is what I get recompiling with apktool

C:\apktool>apktool b Browser

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: apktool.yml

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

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

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

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

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

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

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

103)

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

... 4 more

C:\apktool>
[HTC EVO 3D] fernando sor:
you have java installed in your path right?
[HTC EVO 3D] fernando sor:
Nuggy what resources did you install? I can give you mine if you want
[HTC EVO 3D] nuggyunlimited:
I wouldn't mind trying yours I have a lot of time on my hands off the rest of today and all day off tomorrow
[HTC EVO 3D] dased14:
Yeah what he said^^^^^^, please post

Tapa away from a galaxy far away
[HTC EVO 3D] steal25:
POST 318 I think these are the ones Fernandos refering to.
[HTC EVO 3D] fernando sor:
yes they are. thanks steal
[HTC EVO 3D] steal25:
NO!Thank you,those plus apktool1.4.3 are like MAGIC!!
[HTC EVO 3D] jeffsanace:
No thank both of you! LOL! Anyone get on the swiftkeyx new beta vip? It's pretty awesome! Has multi touch and gestures now and keyboard sizing.
[HTC EVO 3D] nuggyunlimited:
I'm going to try it out :-)
[HTC EVO 3D] fernando sor:
Can you send me that?
[HTC EVO 3D] dkdude36:
i got it. i might restore a tb from the normal one to it cuz i want my autocorrect data back lol i feel so much slower. would that work? lemmie try. i cant rlly tell the difference anyways.
[HTC EVO 3D] dased14:
ok fern whats what in there you have

1.apk(framework?)

2.apk(resource maybe?)

127.apk(*******)

just so i know
[HTC EVO 3D] steal25:
+1 I had asked the same thing but i think it got buried, i never seen the third resource before.
[HTC EVO 3D] fernando sor:
Actually you really just need the one and two but there is a reason for the 127. Just can't remember off hand.
[HTC EVO 3D] fernando sor:
And yes framework- res is 1 and com.htc.resources is 2
[HTC EVO 3D] dased14:
cool thanks
[HTC EVO 3D] steal25:
I just through all 3 in and figured one day ill see it pop up.
[HTC EVO 3D] silverxbv2:
Just install the first 2, not the 127.apk

From the mobile command center
[HTC EVO 3D] steal25:
is there harm in having it in the apktool folder, it'll only use it if it needs to right?
[HTC EVO 3D] silverxbv2:
That's where i keep mine at, but i think you still have to install them.

From the mobile command center
[HTC EVO 3D] fernando sor:
It usually installs resources to separate folder apktool/framework. And you can just drop them in
[HTC EVO 3D] steal25:
That's what I meant apktool/framework, and

I just tag them its a couple extra letters each command, its not a big deal though so I have like 5 sets in there now. But since using yours I don't really use any other right now. But if I keep that 127.apk in there it won't don't do harm right ? I'm just asking cuz silver said don't install it.
[HTC EVO 3D] fernando sor:
driving me nuts what i used that for. cant remember. you can have it in there. it wont cause any harm
[HTC EVO 3D] silverxbv2:
Let me rephrase that. I did not install it because I don't know what it is. :p

From the mobile command center
[HTC EVO 3D] steal25:
Gotcha! I'll just leave, I have all three with the same tag, I'm sure one day it'll get called on.
[HTC EVO 3D] nuggyunlimited:
I'm still having a little trouble ever with fernando's resources

C:\apktool>apktool if 1.apk

I: Framework installed to: C:\Users\Nuggy\apktool\framework\1.apk

C:\apktool>apktool if 2.apk

I: Framework installed to: C:\Users\Nuggy\apktool\framework\2.apk

C:\apktool>apktool d Browser.apk

I: Baksmaling...

testI: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\Nuggy\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Loading resource table from file: C:\Users\Nuggy\apktool\framework\2.apk

I: Loaded.

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

C:\apktool>apktool if 1.apk

I: Framework installed to: C:\Users\Nuggy\apktool\framework\1.apk

C:\apktool>apktool if 2.apk

I: Framework installed to: C:\Users\Nuggy\apktool\framework\2.apk

C:\apktool>apktool b Browser

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: java.io.FileInputStream@c6eff5

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

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

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

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

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

C:\apktool>