What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Theming Guide for changing system text settings.

so UD 6.0 has added the rotary lockscreen, would i have to edit these two new files in order to achieve the lockscreen text color (keyguard_screen_rotary_unlock.xml & keyguard_screen_rotary_unlock_land.xml
 
so UD 6.0 has added the rotary lockscreen, would i have to edit these two new files in order to achieve the lockscreen text color (keyguard_screen_rotary_unlock.xml & keyguard_screen_rotary_unlock_land.xml

those along with Android.policy.jar trust me its no fun! working on it now!
 
so UD 6.0 has added the rotary lockscreen, would i have to edit these two new files in order to achieve the lockscreen text color (keyguard_screen_rotary_unlock.xml & keyguard_screen_rotary_unlock_land.xml

those along with Android.policy.jar trust me its no fun! working on it now!


hmm,i have not been inside any .jar files, i think ill need a lil guidence here.
how do you decompile a .jar file or the .dex file, im on ubuntu at the moment,i can open up the .jar as an archive but not sure how to open the .dex
 
Last edited:
so UD 6.0 has added the rotary lockscreen, would i have to edit these two new files in order to achieve the lockscreen text color (keyguard_screen_rotary_unlock.xml & keyguard_screen_rotary_unlock_land.xml

those along with Android.policy.jar trust me its no fun! working on it now!


hmm,i have not been inside any .jar files, i think ill need a lil guidence here.


you have to use baksmali to decompile the .jar file then port to the rom you are on. then Smali to recompile take the new .dex file it creates and replace it in your android.policy.jar file and pray to god you ported it right

you can learn about Smali and baksmali here

smali - Project Hosting on Google Code



some useful commands


backsmali:
java - jar baksmali.jar -o classout/ classes.dex

and then smali:
java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
 
Last edited:
those along with Android.policy.jar trust me its no fun! working on it now!


hmm,i have not been inside any .jar files, i think ill need a lil guidence here.


you have to use baksmali to decompile the .jar file then port to the rom you are on. then Smali to recompile take the new .dex file it creates and replace it in your android.policy.jar file and pray to god you ported it right

you can learn about Smali and baksmali here

smali - Project Hosting on Google Code

thanks ill look at the reference you posted but im pretty sure this is way over my head. how hard would it be for someone else(like you) to make some edits then send it my way,would it be to hard for me to add it to my current rom im using. the color im going after is #ffff6600
 
hmm,i have not been inside any .jar files, i think ill need a lil guidence here.


you have to use baksmali to decompile the .jar file then port to the rom you are on. then Smali to recompile take the new .dex file it creates and replace it in your android.policy.jar file and pray to god you ported it right

you can learn about Smali and baksmali here

smali - Project Hosting on Google Code

thanks ill look at the reference you posted but im pretty sure this is way over my head. how hard would it be for someone else(like you) to make some edits then send it my way,would it be to hard for me to add it to my current rom im using. the color im going after is #ffff6600

are you on UD?? If so you can just edit the XMLs lol! I thought you want to get the rotary Lockscreen going!!! lol if you are on UD then yeah just edit like you did the slide Lockscreen!
 
you have to use baksmali to decompile the .jar file then port to the rom you are on. then Smali to recompile take the new .dex file it creates and replace it in your android.policy.jar file and pray to god you ported it right

you can learn about Smali and baksmali here

smali - Project Hosting on Google Code

thanks ill look at the reference you posted but im pretty sure this is way over my head. how hard would it be for someone else(like you) to make some edits then send it my way,would it be to hard for me to add it to my current rom im using. the color im going after is #ffff6600

are you on UD?? If so you can just edit the XMLs lol! I thought you want to get the rotary Lockscreen going!!! lol if you are on UD then yeah just edit like you did the slide Lockscreen!


lmao, yeah im already on UD. that is good news then cause i tried just a quick test on the classes.dex file,i placed all three files on desktop( classes.dex,smali and backsmali) and ran the java - jar baksmali.jar -o classout/ classes.dex command but recieved Unrecognized option: -
Could not create the Java virtual machine error, yes i did not read very much on the webpage and i new it wasnt that easy. worth a try though
 
So first off I'd like to thank everyone for there input in this thread and the bowers for starting it. On to my main question how in the world can I get transparent mms or anything else for that matter. I've tried so many different things it would take far too long to list. I like figuring things out on my own I find out more along the way but I am completely stumped. I did recompile both phone and contacts from insane 1.3 which are transparent and see that it had background pointing at the wallpaper butwhen I tried doing that mms fcs as soon as I try to go to any of the actual messages. I don't know like I said I tried way to many things too list them.... Anyways any insight would be greatly appreciated.
 
This is located in the /res/layout folder as keyguard_screen_tab_unlock.xml and keyguard_screen_tab_unlock_land.xml.
To help out I have added a color values string to the text areas (they don't have them by default)
Grab the Lockscreen Text xmls.zip found at the bottom. Unzip
Open these files in a Hex editor like HxD.
Do a hex-string search of 08 00 00 1c. The first one is for a background color skip it.
The next eight are for the text on the screen. By default I have them set at FF FF FF FF for white.
Just remember in hex editing the color values are backwards. Save the files and add to your framework-res.apk.
I will add more later. Just wanted to get these out right now.

I keep getting error. error parsing xml: not well formed <invalid token>

I downloaded your template, unzipped it and then made changes. Moved and overwrote those files into the framework and then tried to recompile and got those errors.
 
I didn't use those but I don't think you shouldn't have to recompile those...just edit them then open your framework with 7zip and drop then in. no decompiling or compiling should be needed.
 
I keep getting error. error parsing xml: not well formed <invalid token>

I downloaded your template, unzipped it and then made changes. Moved and overwrote those files into the framework and then tried to recompile and got those errors.

Those files are already recompiled or in binary format. That is why I stated that you can edit them in a hex editor. Otherwise add then to a compiled framework and decompile. Then open the xmls and edit that way.
 
I keep getting error. error parsing xml: not well formed <invalid token>

I downloaded your template, unzipped it and then made changes. Moved and overwrote those files into the framework and then tried to recompile and got those errors.

Those files are already recompiled or in binary format. That is why I stated that you can edit them in a hex editor. Otherwise add then to a compiled framework and decompile. Then open the xmls and edit that way.

what i did was take the example keyguard_xxxx.xml from here http://www.droidforums.net/forum/dr...nging-system-text-settings-16.html#post694738 and copy/past it in (empty) notepad then opened up my decompiled keyguard_xxx.xml and compared the difference, anywhere i saw android:textColor="#whatever" i added it to mine. make sence
 
ok cool. So basically I've been looking too much into it. I will give that a shot tomorrow. Thanks man.
 
You guys might want to consider apktool also ([UTIL][14.06.10] Apktool v1.3.1 - a tool for reengineering apk files - xda-developers)

It decompiles all of the xml's and the resources. It also handles the baksmali for the java classes. There is a bit of an issue on the recompile side but I generally just take the recompiled files I need and put them in my original apk.

The nice thing about it is that it decompiles your 9patch images so you have the original stretch lines.
 
Back
Top