yashsingh1/xdaforums huggingface dataset:
[Android Themes] ZilverZurfarn:
Yeah, you're right. colorChanger only deals with stuff in the framework folder, which has to be in the root of the zip. The rest can be anywhere they want, as long as the update-script reflects that.

/Mats
[Android Themes] Barina:
i changed to 'system/app' and still get this:

C:\sdk1.5\AndroidMod\SignApk>java -Xmx512m -jar colorChangev3.jar *.zip ticker=F
FFFFFFF clock=FFFFFFFF date=FFFFFFFF ongoing=FFFFFFFF latest=FFFFFFFF none=FFFFF
FFF clear=FFFFFFFF network=FFFFFFFF roam=FFFFFFFF

*************************************************************************
** Color Changer v3.0 (ALL YOUR VERSIONS ARE BELONG TO US) by Ohsaka **
*************************************************************************

OS is Windows
debug=false
zipDebug=false

Deleted exisiting temp directory
Made temp directory: C:\Users\Roy\AppData\Local\Temp\cc-temp
java.io.FileNotFoundException: C:\Users\Roy\AppData\Local\Temp\cc-temp\framework
(Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.ohsaka.ColorChange.unzip(ColorChange.java:1026)
at com.ohsaka.ColorChange.main(ColorChange.java:217)
Error unzipping file :(

C:\sdk1.5\AndroidMod\SignApk>

any ideas..? :\
[Android Themes] d750:
Try this lite cm4.1.999 template.

http://www.4shared.com/file/140846998/aba4c92c/template.html
[Android Themes] daveid:
You can also find a template for 4.1.999 in my thread here.
[Android Themes] Ohsaka:
The colorChange jar does this:

1) unzips the file to <temp-cc>

2) looks for <temp-cc>/framework/services.jar

3) unzips services.jar

4) modifys classes.dex

5) rezips services.jar

6) looks for <temp-cc>/framework/framework-res.apk

7) unzips framework-res.apk

8) modifys status_bar.xml

9) zips framework-res.apk

10) zips contents of <temp-cc>

You are getting access denied errors, not "file not found" errors... Are you running as root?
[Android Themes] Barina:
in earlier versions it was fine idk what happens..

im using Vista

the templates didnt help.. now i get "ERROR: Argument should contain an equal sign: template.zip" :confused:

maybe i need to reinstall android SDK or java? :\

maybe because im using Stericson lockscreen??(v0.5a)

edit:

OMG :eek:

you need to take a big brutal hammer and smash it on my head!!

i found the problem..:o

it was a little 'zip2' file that cause these problems! i didnt noticed it(i have in this folder a lots of files..)

so i removed it away and now its work!!

im checking now my DarkDream0.9.5.3 and it will be soon released!

yay

proof:

C:\sdk1.5\AndroidMod\SignApk>java -jar colorChange.jar *.zip ticker=FFFFFFFF clo
ck=FFFFFFFF date=FFFFFFFF ongoing=FFFFFFFF latest=FFFFFFFF none=FFFFFFFF clear=F
FFFFFFF network=FFFFFFFF roam=FFFFFFFF

*************************************************************************
** Color Changer v3.0 (ALL YOUR VERSIONS ARE BELONG TO US) by Ohsaka **
*************************************************************************

OS is Windows
debug=false
zipDebug=false

Deleted exisiting temp directory
Made temp directory: C:\Users\Roy\AppData\Local\Temp\cc-temp

**** BEGIN SERVICES.JAR *******

Deleting current services.jar file
found classes.dex
Executing in shell: java -jar baksmali.jar -o C:\Users\Roy\AppData\Local\Temp\cc
-temp\framework\services C:\Users\Roy\AppData\Local\Temp\cc-temp\framework\servi
ces\classes.dex

Finished un-dexing classes.dex
Deleting current classes.dex file

Finished editing the StatusBarIcon.smali file

date first time color alteration
ongoing first time color alteration
latest first time color alteration
noNotifs first time color alteration
clearTxt first time color alteration
roaming first time color alteration
network first time color alteration

Finished editing the StatusBarService.smali file

Executing in shell: java -Xmx512M -jar smali.jar C:\Users\Roy\AppData\Local\Temp
\cc-temp\framework\services -o C:\Users\Roy\AppData\Local\Temp\cc-temp\framework
\services\classes.dex

Finished re-dexing classes.dex

Deleted dex out directory
updated zipFileName=C:\Users\Roy\AppData\Local\Temp\cc-temp\framework\services.j
ar
Rezipped services.jars

**** END SERVICES.JAR ******

**** BEGIN framework-res.apk ******

Deleting current framework-res.apk file
Start edit of status_bar.xml file

textColor pattern found at offset: 2808
textColor pattern found at offset: 2944
textColor pattern found at offset: 3168
Finished editing the status_bar.xml file

updated zipFileName=C:\Users\Roy\AppData\Local\Temp\cc-temp\framework\framework-
res.apk
Rezipped framework-res.apk
Deleted unzipped framework directory

**** END framework-res.apk ******

updated zipFileName=C:\sdk1.5\AndroidMod\SignApk\Dark-Dream-0.9.5.3-cm-4.1.999-n
ew-unsigned.zip

Calling internal testsign with: input-C:\sdk1.5\AndroidMod\SignApk\Dark-Dream-0
.9.5.3-cm-4.1.999-new-unsigned.zip , output-C:\sdk1.5\AndroidMod\SignApk\Dark-Dr
eam-0.9.5.3-cm-4.1.999-new.zip
Finished resigning update file

Automagic complete! Enjoy. -- Ohsaka
[Android Themes] bkmo:
usb connect notification odd

I am noticing an odd usb connect notification. I think it is happening with maybe all notifications. The notification text color is alternating from white to black on alternate usb connects. This is with the services.jar that is included in the ultra spikey aero 1.6 theme. Can I plug in any of the fixed services.jar to fix this? Which one would be best? Thanks

Update: All notifications are alternating black to white text. I replaced the services.jar with the one on the first page of this thread, and it is still alternating text colors. Anything else I need to change?
[Android Themes] mianosm:
I haven't seen that at all, if you'd like to try a different one, be my guest.

Click.

Remember to resign after modifying the update.zip.
[Android Themes] bkmo:
Went back to your theme and pulled in the dark tinted elements from ultra spikey. Notifications work just fine. I have had no problem modding and re-signing in the past. Just this time with this specific theme.
[Android Themes] mianosm:
Tell ultra spikey what's up - I'm sure he'll be happier with a more complete zip. : )
[Android Themes] bkmo:
Now I have the best of both worlds. The perfect functionality of your theme, and just the dark launcher and widgets of his. Thanks for being part of the good work being done with changing text colors,and producing a nice clean functional theme.
[Android Themes] Ohsaka:
Did you modify any smali code? I thought you were doing all the text color changes by hex editing the XML layout files and leaving the actual services.jar as the base template version....
[Android Themes] sir*mez:
have you guys tested out any other color than black/white??
[Android Themes] Ohsaka:
Lol, good timing on your question...

I am going back over all my notes putting together a pseudo tutorial to show what changes effect what and I am using red instead of white for the text color. I will be updating the first post of this thread with the info.
[Android Themes] mianosm:
No, that's simply not possible. I had to edit 2 lines in the services.jar (one line in the statusbar.smali, and one in the statbaricon.smali - not 100% on those file names with the time being so late for me....).

The notifications are dictated in the xml, I'm working on Lime green, and a deep red for both the Clock/Date and notifications. Should have the services.jar available for download within 24 hours.

Then upon request: http://html-color-codes.com/
[Android Themes] Ohsaka:
Yeah, I see the changes now. When I un-dexed your version, it showed -0x1 for the white constant value which is the same as 0xFFFFFFFF but not as obvious. :)

In the 2nd post of this thread, I think you have the filenames reversed... clock=StatusBarIcon and date=StatusBarService

I only noticed it cause I am redoing my notes to edit the first post.
[Android Themes] SteveTilsed:
Sorry XDA must have capped the size.

http://img136.imageshack.us/img136/4434/xml2c.png

Thanks again :)
[Android Themes] mianosm:
You're on the money now, those: FF FF FF FF indicate a color. Great work/job! ; )
[Android Themes] SteveTilsed:
Final question i promise :) As the screen print indicates, their are 8 F's in multiples of two. Do i delete all of these and replace with my 6 diget RGB colour code? Of just the first 6 F's leaving the last two?

Will i have to compile once edited?

Thanks for your help, top stuff!
[Android Themes] beagz:
(those are your colors first 2 digits are the transparency FF=Solid, digits 3,4 = R value, Digits 5,6 = G value, Digits 7,8 = B value)

When you open the xml with a hex editor and search for the values they are in reverse pairs.

So if you have Hero Green it will look like this in the text file

#80649016

But in the hex file like this

16 90 64 80

so make sure you search in reverse pairs.

3) replace with the color you want. (light blue,slightly transparent = 804394EF)

So I find 16 90 64 80 and replace it with EF 94 43 80.

4) save your new xml file and place it in the theme
[Android Themes] mianosm:
beagz is 100%

12 34 56 78

12 = Alpha Channel

34 = Red

56 = Green

78 = Blue
[Android Themes] c7aig:
Hi does anyone know what xml file changes the 'loading bar' in the browser/brightness screen?

Thanks :)
[Android Themes] beagz:
Horizontal_progress in framework-res.apk
[Android Themes] Ohsaka:
Instead of retyping my notes, I decided to start on the automated script to change colors.

You just pass the script your update file and the color you want...

For instance: "java -jar colorChange.jar template-cm-3.6.5.zip 804394EF"

And it will do all the rest.

I am about 50% done with it now. It unzips everything and re-zips it in native Java, so it should be portable across both windows and unix platforms. I tested the unzip/re-zip process last night, and the new update file installed file on my phone.

I plan on the script doing the .smali and the .xml hex edits automatically...

Should take me about two days to finish it. Anyone interested in helping me beta test it? :)
[Android Themes] SteveTilsed:
Thanks guys! Successfully edit my status bar! I will continue to edit mre xml and master this. I would be happy to return the help in the form of beta testing so drop me a pm.

Thanks again!
[Android Themes] beagz:
I'm game. Count me in.

keyboard.......keyboard.....keyboard

JK take your time.
[Android Themes] Ohsaka:
Good deal! Glad to hear it wasn't with with the jar itself.

PEBKAS! :)
[Android Themes] mat_pav:
Is there any way to change the theme.zip ( wich have folder structure /SYSTEM/FRAMEWORK/) with colorchanger
[Android Themes] ZilverZurfarn:
Time to adapt colorchange for Stericson's new theme file format...

/Mats
[Android Themes] pdudek:
I get this
[Android Themes] jubeh:
spelling, man,

it's colorchange.jar, drop the u
[Android Themes] jubeh:
I've seen this problem before, and it's because of an error when re-compressing the apk. I'm still researching the problem, but using 7za anything over -mx1 compression will make android throw this error, I think it has something to do with the resources.ansc? file being over compressed or somewhat treated as lossy. Don't know how to fix it yet, knowing exactly the settings apks are compressed under would help a lot.
[Android Themes] pdudek:
It wont work ..
[Android Themes] ZilverZurfarn:
Do you have colorchange.jar in C:\Users\hj\Desktop\color changer?

/Mats
[Android Themes] pdudek:
Oh thx

it starts now :)

where i find the baksmali file ?
[Android Themes] ZilverZurfarn:
http://smali.googlecode.com/files/baksmali-0.95.jar

http://smali.googlecode.com/files/smali-0.95.jar

/Mats
[Android Themes] pdudek:
So easy :P h3h3

thank you
[Android Themes] Ohsaka:
Decided to make an official 3.0 release.

Please post any problems.

I appreciate all the donations guys!

Less than 30 min after I post my update, 4.2 is released. It's pretty much confirmed now he waits for my release to release his! :)
[Android Themes] Ohsaka:
Tested it with the 4.2 template file from daveid's thread. No errors, so the "all versions" moniker is holding true for now...
[Android Themes] bkmo:
Works fine with 4.2.1. What would be nice is if you could add a switch so that it will work with a full rom update, and not just a theme template. I have to pull the rom apart, set it up like a theme template, then put it back into the full rom. Nice work....thanks a bunch.
[Android Themes] daveid:
davidea sounds cool too, but I'm Dave Id... ;)
[Android Themes] Ohsaka:
Lol, sorry about that. I realized I misspelled your name but then forgot to go back and fix it! Mucho apologies.
[Android Themes] Ohsaka:
Done. I added an extra optional flag on the commandline, "goFull". Will override the full ROM check. Had to make it look for /system/framework/ instead of just /framework to find the files to modify.

Give it a shot and let me know if it works.
[Android Themes] pcmaniacs:
Microsoft Windows [Version 6.1.7100]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\ANDROID>java -Xmx512M -jar colorChange.jar TuX_eclair-hero_theme_cm4.2.3.1_v1
.0_signed.zip ticker=FFFF0000 date=FFFF0000 clock=FFFF0000

******************************************
** Color Changer v0.05_BETA by Ohsaka **
******************************************

Made temp directory: C:\Users\TuX\AppData\Local\Temp\cc-temp

**** BEGIN SERVICES.JAR *******

found classes.dex
Executing in shell: java -jar baksmali-0.93.jar -o C:\Users\TuX\AppData\Local\Te
mp\cc-temp\framework\services C:\Users\TuX\AppData\Local\Temp\cc-temp\framework\
services\classes.dex
Finished un-dexing classes.dex

found line: .line 46
skipping line: const/high16 v6, -0x100
adding line: const v6, 0xFFFF0000
Finished editing the StatusBarIcon.smali file

found line: check-cast v7, Lcom/android/server/status/DateView;
skipping line:
adding line: const v8, 0xFFFF0000
adding line: <blank>
adding line: invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColo
r(I)V
adding line: <blank>
found line: .line 351
PANIC: skipped line was not what is expected!
Please report this to Ohsaka on xda-developers forum.
line= const/4 v1, 0x0

C:\ANDROID>
[Android Themes] bkmo:
Worked just fine it seems. Nice....thanks
[Android Themes] ultra spikey:
If anyones wondering, this works fine on CM4.2.3.1. Great work!
[Android Themes] kryptik06:
hmm how do I even run this? I am extra clueless looking in this entire thread and cant seem to find out how.

edit: never mind I basically found out how to run this by paying attention to small details people mentioned. Lol it wasn't easy but I managed to get it running
[Android Themes] dying4004:
Ohsaka and others....... guys i need a help regarding my Htc Hero. I am creating a theme with white taskbar and clock font in hero is white. so i need to change clock font to black. i have found that i need to edit statusicon.smali file to change font color. cud any1 please tell me exactly which line i need to change in hero? caz the .Line 46 of dreams statusicon.smali and hero statusicon.smali is different. it wud be really appreciated. cheers

heres the link for statusbaricon.smali for hero.

http://xdaforums.com/attachment.php?attachmentid=245307&d=1257920055
[Android Themes] Barina:
there is a way to change the color of the browser bar and the volume bar from yellow to.. other colors...?

thanks
[Android Themes] sir*mez:
yep thats in the framework-res.apk>res>drawable>progresshorizontal.xml
[Android Themes] Barina:
progressBarForeground did not worked for me... :confused:

im getting this:

Start edit of progress_horizontal.xml file

textColor pattern found at offset: 756
Exception in thread "main" java.lang.NullPointerException
at com.ohsaka.ColorChange.modifyFrameworkColor(ColorChange.java:668)
at com.ohsaka.ColorChange.main(ColorChange.java:253)

what should i do?
[Android Themes] Barina:
any idea..?
[Android Themes] ZilverZurfarn:
It doesn't work, perhaps?

(I've never seen progress bar color change work - After all, it's an experimental feature).

/Mats
[Android Themes] d750:
It's working but not all at once we have to split and run twice or drop one variable.
[Android Themes] Barina:
i tried just this:

java -jar colorChangev3.jar *.zip progressBarForeground=FF07ACFF

with and without -Xmx512M

and getting this:

*************************************************************************
** Color Changer v3.0 (ALL YOUR VERSIONS ARE BELONG TO US) by Ohsaka **
*************************************************************************

OS is Windows
debug=false
zipDebug=false

Deleted exisiting temp directory
Made temp directory: C:\Users\Roy\AppData\Local\Temp\cc-temp

No changes needed to services.jar, skipping it

**** BEGIN framework-res.apk ******

Deleting current framework-res.apk file
Start edit of progress_horizontal.xml file

textColor pattern found at offset: 756
Exception in thread "main" java.lang.NullPointerException
at com.ohsaka.ColorChange.modifyFrameworkColor(ColorChange.java:682)
at com.ohsaka.ColorChange.main(ColorChange.java:263)
Press any key to continue . . .
[Android Themes] d750:
It seems doesn't work with one variable try this:

java -jar colorChangev3.jar template.zip progressBarBackground=FF9D9E9D progressBarForeground=FF07ACFF
[Android Themes] Barina:
ill check it when i got back home :)
[Android Themes] Ohsaka:
Sorry I haven't checked in for a while. I have been out of commission with Swine Flu and a secondary infection of bronchitis. I am much better now though.

I will look at that null pointer error and also see if progressbar edits work with the new 4.2.6 ROM. I am going to have to remove the progress circle edits though. There is no way to change the progress circle with a simple XML edit.
[Android Themes] MontAlbert:
yeah i had issues with the progress bar as well- good thing i did i reckon because it forced me to learn xml editing :D
[Android Themes] Ohsaka:
K, program has been updated.

I tested all the possible color change values including the progress bar by making them red. It all works with 4.2.6.

First post in thread has been updated with official 3.1 release.
[Android Themes] MontAlbert:
so is the app attached to the first post 3.0 or 3.1? It is labelled as 3... thanks for great work with this mate...
[Android Themes] dying4004:
guys.... any idea how to change these font colors in Eclair 2.1?? cheers
[Android Themes] MontAlbert:
Ohsaka,

Just wondering if we can get the colour changer to be more accurate for progress bar? there are 6 colours in the progress_horizontal.xml file- i think 3 of them are on the progress bar (I did a test using different colours_.... this is how you get the gradients from light to dark colours i think cos i did a manual edit of the colours using 2 different blues and it looks awesome.. any chance we could do that or not? currently changing progressbar makes it all one colour..... (except for background of course)....

i have attached a pic showing the different colours on my horizontal from one i edited myself manually.
[Android Themes] dying4004:
it works pretty fine with Hero Eclair 2.0 AOSP. thnx Ohsaka.
[Android Themes] dumfuq:
Is it possible to change the temp directory to be in /tmp or $HOME so it doesn't have to be run as root under linux?
[Android Themes] Binary100100:
ticker problems with 4.2.8.1

java -Xmx512M -jar colorChangev3.jar theme.zip network=FFFFFFFF roam=FFFFFFFF clock=FFFFFFFF ticker=FFFFFFFF date=FFFFFFFF

still comes up with black text in the status bar. anyone else experience this?

EDIT:

opps... nevermind. false alarm.
[Android Themes] zeroplace:
Very nice! I just did the hex change on my MT3G for the notification. Anyway of changing the Clock text color by hex?
[Android Themes] mikey98277:
colorChange on Cyanogen 4.2.10.1

Every time I try to change the color of anything on my theme on 4.2.10.1 , it changes the color like it is supposed to, but after that point, widgets stop working, and phone is so slooooowwwww, thankfully i have nandroid, just want to know what i can do to get it to work on 4.2.10.1. anyone have any ideas whats wrong, or what I am doing wrong.
[Android Themes] opasha:
try clearing your dalvik-cache in recovery. otherwise back up your apps from ext to fat32 (amon_ra recovery allows u to do so) just wipe everything from scratch, flash htc image 1.6, flash cyan 4.2.10.1, reboot. set everything up. use recovery to restore ur apps from fat32 to ext or use adb to push them back. then let it sit there until it loads all the apps and allow all your su permissions, then reboot, flash ur theme, reboot. ur done.
[Android Themes] mikey98277:
ok thanks i will give it a try
[Android Themes] mikey98277:
Changing color of text within the "labels"

I was wondering if there is anyway of changing the color of the text within the labels, for instance, i changed the ONGOING label to white, but when i connect my phone to a computer, when it says USB Connected it is Black and hard to read with my theme, is there a way to change that to white also? I included a screen shot incase i didnt make much sense...
[Android Themes] ZilverZurfarn:
Don't have colorchange on this computer, but isn't ongoing one of the labels you can change? Just run colorchange without parameters to have usage options displayed.

/Mats
[Android Themes] mikey98277:
Yes i can change ongoing label, but as you can see in the picture, ONGOING is white, but what is actually ongoing at the moment as USB Connected is Black..
[Android Themes] ZilverZurfarn:
Ah - I see what you mean. In the status items. Another XML edit, I'd guess, but where? And would changing it affect other labels where you want black? (I suspect so)

/Mats
[Android Themes] Ohsaka:
Rumors of my demise have been greatly exaggerated... :)

I separated all of the XML color edits for the progress bars. Now you can address them individually or all at once. Check out the menu when you run the jar with no args for the full details.

Progress Bar Color Change (Must specify BOTH fore and back at once, at least one of each)
[allProgressBarBackground] - All progress bars background color
[pbBg1] - Progress bar background color 1
[pbBg2] - Progress bar background color 2
[pbBg3] - Progress bar background color 3
[allProgressBarForeground] - All progress bars foreground color
[pbFg4] - Progress bar foreground color 4
[pbFg5] - Progress bar foreground color 5
[pbFg6] - Progress bar foreground color 6
[pbFg7] - Progress bar foreground color 7
[pbFg8] - Progress bar foreground color 8
[pbFg9] - Progress bar foreground color 9

Test the attached jar and let me know if it works...
[Android Themes] dumfuq:
worked great for me. thanks.
[Android Themes] XxKOLOHExX:
I've been trying to change the "T-Mobile" thing in the Notification panel to white and every time i try to boot up it doesn't... can anyone help me please :D
[Android Themes] dumfuq:
simple wrapper for linux users

here's a simple wrapper I use to be able to right click a .zip in linux. It runs colorChange twice (once for progress bars, once for text color), and chowns the resulting file to the user specified.

zenity is used for graphical dialog box but could easily be changed to gdialog for gnome users or whatnot.

USER and LOC variables need to be changed to represent your system.

#!/bin/bash

FILENAME=$(ls $1 | sed 's/\(.*\)\..*/\1/')
TMPFILE=${FILENAME}-new.zip
SUCCESS=
ERROR=
LOC=/usr/local/lib/colorChange/
USER=jp

my_exit()
{
code=$1
zenity --info --title "colorChange" --text "colorChange FAILED! \n`cat /tmp/colorChangeTmp`"
exit $code
}

#### change progress bar colors #####
java -jar -Xmx512m "$LOC"colorChangev3.jar $1 pbBg1=FF3A3A3A pbBg2=FF000000 pbBg3=FF3A3A3A pbFg4=FF423DFF pbF
g5=FF2C27FF pbFg6=FF0000FF pbFg7=FF0600ee pbFg8=FF0500DB pbFg9=FF0f00B8 goFull 2> /tmp/colorChangeTmp
SUCCESS=$?
if [ $SUCCESS -eq 1 ]
then
my_exit 1
fi

#### change everything else ####
java -jar -Xmx512m "$LOC"colorChangev3.jar $TMPFILE ticker=FFFFFFFF clock=FFFFFFFF date=FFFFFFFF debug goFull
2> /tmp/colorChangeTmp
SUCCESS=$?
if [ $SUCCESS -eq 1 ]
then
my_exit 1
fi

rm $TMPFILE
mv ${FILENAME}-new-new.zip ${FILENAME}-new.zip
chown $USER:$USER ${FILENAME}-new.zip

zenity --info --title "colorChange" --text "colorChange completed!"