yashsingh1/xdaforums huggingface dataset:
[Android Themes] matt_stang:
I've been trying to get this to work but it won't work! I'm trying to use v.5 and it

keeps telling me that baksmali-0.93.jar needs to be in the same directory and it

is...
[Android Themes] mianosm:
You may have the wrong version?, try changing the name using copy paste - just in the case that one character is off, or it's not the correct version?
[Android Themes] matt_stang:
Can someone just post the files for a 4.0.2 template and a 4.0.4 template using this color: FF002FFF for everything. That would be really awesome
[Android Themes] xidominicanoix:
also make sure that smali is that directory as well ;)

i remember hex editing those files ... if i have some free time, I can modify the code for you :)
[Android Themes] mbiza:
I get this error when i try to change the clock color (tried also date and ticker) of a theme with the new stericson lockscreen and template 4.1.7.

mbiza-laptop:/home/mbiza/Desktop/android/temi/[theme]mbiza_0.1# java -jar -Xmx512m colorchange-0.3.jar tema_mbiza.zip clock=FFFFFF

************************************
** Color Changer v1.0 by Ohsaka **
************************************

Made temp directory: /tmp/cc-temp

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

found classes.dex
un-dexing...
Finished un-dexing classes.dex

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

found line: .line 277
PANIC: skipped line was not what is expected!
Please report this to Ohsaka on xda-developers forum.
line= const-string v2, "Statbarunlock"
line=
line= invoke-virtual {v1, v2}, Landroid/app/KeyguardManager;->newKeyguardLock(Ljava/lang/String;)Landroid/app/KeyguardManager$KeyguardLock;
[Android Themes] mianosm:
line= const-string v2, "Statbarunlock"

Try applying the color changer before the lock screen modification.
[Android Themes] quzhiwei:
Help me!

How should this document be amended?(delete .zip)
[Android Themes] ZilverZurfarn:
Hmm. That would be rather pointless, as Stericson's lock screen replace many of the files ColorChange edits...

/Mats
[Android Themes] mianosm:
Talk to your boy Stericson then. This colorChanger seeks out specific lines to edit the broken down dex file. If he is doing the same thing - you are not going to be able to use both. Sorry champ.
[Android Themes] ZilverZurfarn:
No need to be sorry - ColorChange is a life saver for theming CM updates. "Problem" is, Cyanogen seems determined to include Stericson's lock screen some time in the not too distant future, which surely will affect his theme packages too...

/Mats
[Android Themes] bkmo:
Stericson's services.jar has the edits on different lines. That is why it has made the current colorchange.jar useless for his services.jar.
[Android Themes] mianosm:
Here's the source:

http://github.com/faux/Android-Theme-ColorChanger/blob/master/src/com/ohsaka/ColorChange.java

If you want to be pre-emptive on the changes to it. : )
[Android Themes] drpfenderson:
Is this compatible with the new Stericson lockscreen business?
[Android Themes] mianosm:
It's the source code, so you can make it compatible with whatever business you'd like it to be. ; )
[Android Themes] Ohsaka:
Can someone take the latest Cyan template file, apply the Stericson lockscreen to it, and then attach the file in a post in this thread?

Make sure to start with the base template file, not an already themed file...
[Android Themes] jonnybueno:
I would if I knew where to download the stock, unthemed files from. Only way I've been able to use that lockscreen in my own themes is by snagging the files from others themes.
[Android Themes] NguyenHuu:
^ what do you mean? cyanogen always includes his stock template in his first post that's unthemed. :confused:
[Android Themes] jonnybueno:
New lockscreen needs modded framework-res.apk, I grab my files from moonspoons theme.

read here:http://xdaforums.com/showthread.php?t=557061
[Android Themes] ZilverZurfarn:
Don't really know if it's time to start digging into this just yet, as Stericson is still hacking away on his lock screen. At some point I had a stock CM (4.1.7) theme to which I added Stericson's files, and then ran thru ColorChange. If my memory servers me, all worked except TICKER color, which remained unchanged. But that was with the Stericson files present at that time. No telling how it will work with current.

/Mats
[Android Themes] NguyenHuu:
o no, i know the new ones does. when you said you didnt no where to find the default unthemed files, i thought you meant cyanogens. BUt if you are lookin for the default stericson files it is here on stericson 's github: http://bit.ly/17CbNt
[Android Themes] ZilverZurfarn:
I'm testing a CM/Stericson mash up right now, and will upload it once I've made sure it works.

<edit>Yes, it booted at least. Here it is. It's CM 4.1.10 theme + Stericson files for 4.1.9.2 (attachments_5_.zip)</edit>

Nice to see you back jonnybueno!

/Mats
[Android Themes] Ohsaka:
Is there supposed to be a framework.jar file inside the framework folder? The default 4.0.4 theme doesnt have that file...
[Android Themes] ZilverZurfarn:
Yes it is. Stericson obviously do some modifications to framework.jar, as he ships it with his update package. It's not present in Cyanogen's theme zip.

/Mats
[Android Themes] drpfenderson:
Yes, it is something custom with his lockscreen. It also adds a modified settings.apk.

Weird...ticker change works with the lockscreen in 4.1.10.1.

Network, however, does not change. No errors, however.

If you want to take a look, my EnochX 1.3.6 uses the new lockscreen, and was modified with the newest ColorChanger.jar.
[Android Themes] ZilverZurfarn:
Could well be my memory slipping. SD card full... ;)

/Mats
[Android Themes] david1171:
ticker is status_bar.xml (or statusbar can't recall and to lazy to look) in layout. its not touched by stericsons changes so it will still work
[Android Themes] d750:
Yes that's right i use colorchange-0.3.1.jar on Stericson attachments_5_.zip and ticker, clock, date has been changed but everything else still same as default.
[Android Themes] Ohsaka:
I am working on a colorChangeMulti.jar that will work on multiple versions. It will have a properties file in it that anyone can edit to update for newer versions without recompiling the jar...

Stay tuned...
[Android Themes] nabzilla1990:
nice work on this havin a problem with the new stericsson lockscreen release i put it in the 4.0.4 theme template everything seems to go well but when i flash the update after signing it i just get a black screen
[Android Themes] Ohsaka:
Ok, here are the new test templates and the new test jar...

Please test them for me, or use the new jar if you dare. :)

4.0.4 Template - All text should be RED

http://www.4shared.com/file/133516135/6eba8389/template-cm-404-signed-RED_BETA.html

4.1.11 Template - All text should be GREEN

http://www.4shared.com/file/133516220/58df81e/template-cm-4111-signed-GREEN_BETA.html

Stericson 4.1.9.2 - All text should be BLUE (looks like the base version on this is Cyan 4.1.10)

http://www.4shared.com/file/133516308/38a27899/STERICSON-cm4110_st4192-BLUE_BETA.html

colorChangeMulti.jar (run it with no args, i updated the usage message)

http://www.4shared.com/file/133516312/c16ca0c6/colorChangeMultijar-remove-zip-extension.html

Looking forward to some feedback.
[Android Themes] ZilverZurfarn:
I dare! Will give it a go with 4.1.11.1

<edit>Worked well indeed!</edit>

/Mats
[Android Themes] d750:
With stericson working like charm.
[Android Themes] bkmo:
V2 and Multi issues Ubuntu

I am having a strange problem using the new V2 and Multi jar files on my ubuntu 9.0.4 machine. The smali/baksmali and status_bar.xml edits work fine. But when it re-zips and signs it creates the -new.zip and then deletes it as it finishes up. If I go to the temp directory I can pull out the edited jars and apk and they work fine. Any ideas?

The multi is working fine for me except for this issue BTW. Thanks
[Android Themes] Ohsaka:
That is strange, lol.

Can you post the output?
[Android Themes] bkmo:
I have attached the output. It is odd that at this point I see the zip created in the filemanager:

updated zipFileName=/home/bkmo/CC2/my411theme-new.zip

Executing in shell: java -cp testsign.jar testsign /home/bkmo/CC2/my411theme-new.zip

Then after:

Finished resigning update file

it is "automagically" deleted and not to be seen again.

EDIT: If I break out of the program with ctrl-C after the zip is created, then run the testsign from the command line: java -cp testsign.jar testsign /home/bkmo/CC2/my411theme-new.zip

Guess what.....all it does is delete the zip. I have to see if I can find this .jar again to see if there is a problem with it.
[Android Themes] Ohsaka:
I made another version with debug turned on...

http://www.4shared.com/file/133743913/90acbcf/colorChangeMulti-debug.html

Give this jar a shot and post the output. The output will be significantly longer...
[Android Themes] bkmo:
Thanks, but look at my last post. I edited it to say that the zipfile is being deleted by testsign.jar even if I execute it from the command line. It deletes EVERY zip I run it on.

So if I put a dummy file called "testsign.jar" in the directory with colorchange.jar then at least it leaves the zipfile for me to sign myself.
[Android Themes] Ohsaka:
Fixed it. I incorporated the testsign.jar into the code. And there were some NullPointerExceptions...

So now... its fixed and you dont need testsign.jar in the same directory anymore...

Test it out and let me know.
[Android Themes] bkmo:
The "fixed" version with internal testsign works perfectly for me now. Thanks so much for taking the time to work things out.
[Android Themes] bkmo:
Issues with new Stericson release.

Attached is the log with the results of the new multi against the new sttericson services .jar. It has failed once again because of changes I assume.
[Android Themes] Ohsaka:
Yeah, Stericson needs to slow down! Lol

I know what I need to do to make it future proof,

Just need to find the time. UFC is tonight for instance..

Till then, there is a property file for stericson version

In the jar that can easily be editted and replaced without needing to recompile the jar.

By comparing old and new versions of stericson smali files, an enteprising person could fix this jar for me. :)
[Android Themes] bkmo:
I'll take a look at it later. I'm not a total dummy you know. :)
[Android Themes] Ohsaka:
I never said you were. Please be the enterprising person! Please! :)
[Android Themes] bkmo:
I spoke too soon. The resulting zip doesn't have the edits in it, but the files in the tmp directory are good.

On the positive note....there was one tiny change to the new stericson services.jar that kept it from passing the sanity check. All edits are on the same lines. It was just this that was changed:

const v7, 0x10201ef (was const v7, 0x10201ee )

Attached is a working .prop remove the .txt extension and zip it into the existing jar
[Android Themes] Honestly77:
Tried using it with cm 4.1.11.1 and i ran it as is and set all the values to white. Everything is still black. Ugh.
[Android Themes] bkmo:
It is working perfectly well up to the point that it creates the -new.zip without the edits. If you go to the \tmpcc-temp folder that is left after it runs, then you can get the correctly edited files there. Best workaround I know of until it gets looked at.
[Android Themes] Honestly77:
tempcc is where?
[Android Themes] Honestly77:
Found it nevermind
[Android Themes] bkmo:
Were the files there edited properly for the color you selected? I am just looking for someone to second my findings to help track down the issue.
[Android Themes] Ohsaka:
I got my first donation today.

Kinda cool and unexpected, so I guess I was a little inspired...

Here is a TEST version of colorChangev3.jar

It should work on all Cyan templates (regardless of version and/or Stericson) and be fairly future proof. Famous last words I'm sure, lol. I test ran it on 4.0.4, 4.1.11, and Stericson 4192 with no errors.

I also fixed the "changes are in the temp directory but not in the actual -new zip file" bug. It was a bug caused by not using the external testsign.jar anymore.

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

Usages:
java -jar colorChangev3.jar <theme.zip> [ticker] [clock] [date] [ongoing] [latest] [none] [clear] [network] [roam]

Same execution parameters as always, no need to put any "version" parameter.

Please test and let me know, as I can't flash all the different themes and different base ROMs to my phone right now...
[Android Themes] bkmo:
Hey, thanks for the quick fix and dedication. I can't beleive I was the first to donate though. All the themers that use this should be kicking in a few shots of vodka to you.

Also smali/baksmali 0.96 is what you get when you go to the link you have posted on the OP. I had to rename them to 0.95 to get it working.
[Android Themes] david1171:
i guess this means jesusfreke has updated again.:) thank you for the amazing script Oshaka, will give it a go around later on today with 4.1.11.1, i wonder is it possible for you to include a means to change an already modded classes.dex to another color? that would put the final seal of complete awesomeness on this, if not, its not hard to grab an un-modified classes.dex, i have no clue how hard it would be, so either way i am more than pleased with this script. you have brought a new level of what can be done with themes without having to have an amazing understanding of how to manipulate the un-dexed classed.dex.
[Android Themes] Ohsaka:
Lol, everyone just refuses to stop coming out with new versions!

I will change the jar file to look for baksmali and smali files with the version numbers removed... That way newer versions can be used without recompiling the jar.

Also, with the way I rewrote it now, it should be fairly simple for it to re-do the colors even if they already exist. Ok, so my NEXT version will be future proof! :)

Almost time to update the first post I think if I can get these couple changes working.
[Android Themes] drpfenderson:
Your hard work definitely deserves more than one donation. Hope you can at least buy a drink or two with what I sent. ;)

Thanks for updating - my theme is pretty useless without your hard work.

EDIT: Just so you're aware, there are some simple beefs on Linux.

Without Sudo, it will no create the tmp-cc directory...or delete the old one...or use an empty one...

So, you have to run this with sudo - which means that the output file is unable to be manipulated by anyone except root. Which is not a huge issue, just a little annoying to have to CHMOD every time I change the file. ;)
[Android Themes] Ohsaka:
I am familiar with Linux, but don't have a VM handy to test with. I can detect the OS and for Linux have it add an additional 'chmod 777' command on the final file. Let me know of any other Linux related enhancements you can think of.
[Android Themes] bkmo:
I am running here without Windows myself and have to sudo for it to work too. I can however open and extract the zip from Nautilus filemanager without haveing to change its permissions. But a simple chmod would be nice. :)

BTW I tested colorChangeV3 out and checked the edits of the status_bar.xml file in the resulting -new.zip and all looks fine. Thanks
[Android Themes] Ohsaka:
Ok, got my fingers crossed on this test version. It worked with all my test templates, and worked on all my already modified templates.

I also added a chmod call at the end for non-windows:

// If non-windows, chmod the file
if (!isWindowsOS) {
String command = "chmod 777 " + signOutputFile;
executeCommand(command);
}

You have to rename your baksmali and smali files to remove the version. The error message reminds you of this also. (I did test with the new 0.96 versions also)
[Android Themes] david1171:
you are making it harder and harder to give me an excuse not to go ahead and port my theme to 4.1.11.1 thank you very much for this:)
[Android Themes] Ohsaka:
Once I get a few people to test this and confirm it works for them I will update the first post since this is a pretty major update to the code...
[Android Themes] mianosm:
Not to nit-pick, but 755 (rwxr-xr-x) might be a better choice of octals...

It's your party though! : )
[Android Themes] Ohsaka:
Good point, I will change that in the final release. No need to re-release the test version though.
[Android Themes] bkmo:
It seems to be working ok for me on linux. I tested it with the latest Stericson. The only issue I see is that it reports all colors as being previously edited even though I have only previously changed clock, date, and ticker.

date already altered
ongoing already altered
latest already altered
noNotifs already altered
clearTxt already altered
roaming already altered
network already altered
[Android Themes] Ohsaka:
The old version was actually altering them. It was just altering them to be the default color...
[Android Themes] bkmo:
The only version I ran on the zip was the latest test V3 with the OS detect and CHMOD. It must still be altering to default then too.

Edit: Stericson released V0.5 today. Good news is that the latest V3 colorchange beta ran flawlessly on it. I also re-ran it on an update.zip I created of just the lockscreen and had it change just roaming, and it worked perfectly.

Thanks
[Android Themes] ultra spikey:
Are you planning on adding the option to change the progress bar/circle colors to this?
[Android Themes] Ohsaka:
Heh, I'm just now starting to get over my google-anger...

I will look into this and do it if possible.
[Android Themes] Ohsaka:
Good news on the new release front. On the other issue, it was still setting all the colors even if it didn't need to. I reworked the code some to where it only changes the absolute minimum amount of text and leaves everything else alone.

I am going to add the progress circle changing stuff and release a test version tonight hopefully.
[Android Themes] jonnybueno:
akirah's 1.6

I haven't had a chance to try this on akirahs 1.6 yet, but will soon. If this isn't compatible with that rom, is there a chance you'll put out a version that is compatible.
[Android Themes] Ohsaka:
Anything is possible :)

This test version seems to only be able to change the progress bar/cirlces on 4.0.4. Apparently the XML files were reworked in 4.1.4 and on....

It should still work for the newer versions if you leave off the progressXXX related parameters...

But hopefully someone will test the progressXX change on 4.0.4 for me. I also added the "only change whats needs to be changed" fix.

I am tired and going to bed.
[Android Themes] david1171:
i can confirm that colorChangev3.jar (one you posted a while back haven't tried the newest one yet) will work with akirah's 1.6 build.

this is truly great Oshaka :)
[Android Themes] Ohsaka:
Nothing jumps out at me. Now that there is a new stable on the horizon, I will be holding off on any updates until then.
[Android Themes] nabzilla1990:
can you if its not too hard make templates of new roms with white text that would be great its fine if u cant i just cant get this working need the packaged version with baksmali and all that included like it was for version 1 somebody on this thread releases it worked perfectly
[Android Themes] Ohsaka:
TA DA!!!!!!

Here is my first try at a "fat" version of the jar which includes all needed libraries internally... Let me know if it works for you.
[Android Themes] bkmo:
CC3 FatBoy

The CC3 "fat" release seems to work just fine for me.
[Android Themes] Ohsaka:
Thanks for the test.

I will probably hold off until 4.2 stable comes out to update this thread.

Has anyone figured out how to edit the progress circles for the newer donut roms?
[Android Themes] nabzilla1990:
thanks hope this works for the new 4.2 when it comes out
[Android Themes] Ohsaka:
FYI, for the latest test version...

You need to run it with "java -Xmx512m -jar colorChangev3.jar ...."

the -Xmx512m tells java it can use up to 512 megs of memory. Else you will get out of memory errors...
[Android Themes] Barina:
there is a version of ColorChanger for cm4.1.999?

thanks
[Android Themes] sir*mez:
version 3 work for 4.1.999.
[Android Themes] Barina:
its work for the full rom? because i cant find any "theme template" in cyan's thread and it doesn't work for me..

thanks again :)

edit:

when i put this command:

java -jar colorChange.jar *.zip ticker=FFFFFFFF clock=FFFFFFFF date=FFFFFFFF ongoing=FFFFFFFF latest=FFFFFFFF none=FFFFFFFF clear=FFFFFFFF network=FFFFFFFF roam=FFFFFFFF

i get 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
java.io.FileNotFoundException: C:\Users\Roy\AppData\Local\Temp\cc-temp\app (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 :(

Press any key to continue . . .
[Android Themes] d750:
Do you don't know how to make theme template from full rom?
[Android Themes] Barina:
oh there is a special way or something..?

i have an empty template file that im putting all the apk's that i modified inside.. is that wrong?
[Android Themes] sir*mez:
you have to use this instead now:

java -Xmx512M -jar colorchange.jar *.zip ticker=FFFFFFFF clock=FFFFFFFF date=FFFFFFFF ongoing=FFFFFFFF latest=FFFFFFFF none=FFFFFFFF clear=FFFFFFFF network=FFFFFFFF roam=FFFFFFFF

not really. take the cm update itself. open it and take what you need from /system/app and then take the /framework folder and you should know what you need. Boom, theres your template. i hope this helps if not pm me. ill help you out!!

Edit: changed spelling on command.
[Android Themes] Ohsaka:
Sorry about the typo in my previous post (editted and corrected now)..

It should be: java -Xmx512m -jar colorChangev3.jar ....
[Android Themes] Barina:
i still got 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\app (Acce
ss 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 :(

:(
[Android Themes] daveid:
Just did some playing, your theme template has to follow this exact structure:

/

/framework

/system/app

otherwise it will not work.
[Android Themes] ZilverZurfarn:
Are you sure? I have successfully used ColorChanger on my update, which has framework and app in the root of the zip. If you take a look at an official CM theme template (like template-cm-4.1.11.1-signed.zip), you'll see it also has app and framework at the zip root.

/Mats
[Android Themes] daveid:
I would assume that since the app directory is not important to the mod, that it's placement does not matter. However, I needed to point out that the framework had to exist in the root.

I tried creating a much simpler template that uses this structure:

/

/system

/system/app

/system/framework

making a cleaner looking zip file, however it fails.