[Q] Generate theme from framework_res.apk - Android Themes

I was wondering if there are any sdk tools out there that automatically generate themes from framework_res.apk and .com.android.resources.apk without having to edit pngs, just xmls?
I've been editing every single png in system themes for Desire HD roms with Sense 2.0. Does anyone know if it is possible to automatically generate themes from pulled framework and resources? Similar threads seem to lead to manual editing with Photoshop or Gimp. Ripping off of other peoples skins is irritating, I'd rather edit pulled system files but there are like 2,000 of em!

Related

Theme with multiple clock widgets

Hi, I am currently working on aHome themes and clocks. I got that down but I would like to have the ability to have more than one clock with a theme. Any ideas anybody on how to implement that?
I'm kinda reintroducing myself to Java, its been sometime since I last used it.
Adding more than one clock would require some major edits to the source code in AlarmClock.apk. What would be easier is creating a directory in the sdcard that holds multiple clock files, then incorporating a script in your ROM that will switch out the clocks (using metamorph for example).
He wants to add it to an aHome theme, so he'd have to edit the source for the theme to be able to somehow give the choice of which clock widget you would like, it would be a good amount of editing since the Home Replacements just look for a specific name in the theme and match it to the android source.
The code for adding the widget comes from aHome itself, not the theme though, the theme merely assigns image files to their location in the system. The sdcard idea is probably the easiest way to do it, instead of having it call out the image, it could call out the directory on the sdcard where they are stored.
Thank you for the responses, I figured it would be a little more complicated than just matching a file name. can you put the images in the drawable folder and call them from there?
diggidy said:
Thank you for the responses, I figured it would be a little more complicated than just matching a file name. can you put the images in the drawable folder and call them from there?
Click to expand...
Click to collapse
Not without some serious recoding of the source.
Actually the code for the single clocks isn’t that big, kinda figured I could add the extra dial.pngs and duplicate my code. Or something of that nature

help editing png files

ive been having some trouble editing the .png files from the Facebook.apk.....
all im trying to do is replace the widget background png but it keeps sizing it wrong once its changed...
I am guessing this has to do with the fact that it's a .9.png but ive messed with it in draw9patch and i just cant seem to make it work
Are you compiling your .9's?
Had exactly the same problem, tried exactly the same solution
It turns out that the all draw9patch tool does is adding 1 pixel wide black stripes that define which area is resizable and which is fixed plus it shows you a preview. But you can as well do this in normal graphic editing program. The real magic happens when you compile a project containing png's with these black bars: the image is cropped from 1 pixel border containing the extra bars and necessary information is stored in the image itself.
I don't know if there even is a method of converting only the png's without setting up an entire development environment, so reading on how to do that might be a good starting point. Note that you don't need any fancy programming skills here, just compiling some simple example app should do the trick if you add your png's to it. Can't give you any details on the process since it's still something i have to try myself
Or is there a simpler way - just running the png's trough the compiler without actually setting up a project?
ffff00 said:
Are you compiling your .9's?
Click to expand...
Click to collapse
no i wasn't .. and obviously that was my problem.. got it all sorted out now though

[Q] Help theming Launcher Pro Plus widets

basically what i am asking is if i have an apk how do i theme it with either a smoked glass/ transparent look? so far i have found most of my themed widgets online. i am particularly looks to theme my launcher pro (widgets only)... i know member signals23 has done this, but i cannot get it to work for the life of me and decided i want to do it myself and besides it could give me good practice for if i want to learn more theming in the future. i have tried metamorph but unsuccessfully but then again i am a somewhat semi-noob at it, advice? suggestions?
Not sure exactly how you are going about modifying the images, but when I do it, I transfer the apk to my desktop, and extract the drawable files to my desktop, then I can look at each individual image, and then make my changes, and add the modified images back to the apk. But the only way I can get it to work, is to put the apk in system/apps...
Sent from my SAMSUNG-SGH-I897 using XDA App
This post in his thread explains what to change and where.
http://forum.xda-developers.com/showpost.php?p=8201765&postcount=2

[Q] Help with resolving mis-aligned text.

Another user on this forum is having an issue with mis-alligned text. Originally they felt it was an issue with malformed .9.pngs, but I have replaced all the pngs in the framework with stock pngs and the issue is still ongoing.
Question I have is what controls the text alignment (an xml in framework? or elsewhere such as services.jar)
I have recently learned how to theme the Andoid OS. I understand how to de-compile an apk, make xml edits (color edits using word pad), re-compile the apk. (replace the android-manifest and meta folders from the recompiled apk with the originals).
I know how run baksmali on services.jar make the appropriate edit to change the clock color. (as far as the services.jar, That is truely all I know).
I would like like to help this person, but need a sense of direction as to where to begin looking to fix.
Any and all help regarding this would be greatly appreciated.
Below is a link to the original thread they posted with screen shots of the mis-aligned text.
http://forum.xda-developers.com/showthread.php?t=991105
Update:
Had him test another framework-res.apk and services.jar file from another rom and he still has the same results with mis-aligned text.
Where else should I look?
This is truely out of my realm, but I am always interested in learning, so I would like to see if I can come to the resolution.

Honeycomb Skin Maker

Introducing my latest project, the Honeycomb Skin Maker and Tablet Skin Installer.
Honeycomb Skin Maker can modify SystemUI.apk and framework-res.apk to allow skinning system files on honeycomb tablets. Paired with the Android app "Tablet Skin Installer" skins can be applied easily with virtually no hacking required.
All images within these two APKs can be modified, and the XML files inside are modifiable to allow much greater skinning possibilities than previously possible.
Honeycomb Skin Maker can make .androidskin files which must be placed in the "Skins" folder on your internal SD card. This folder is created automatically when "Tablet Skin Installer" is first run.
The app requires root, and I can't give enough warnings about the potential to damage your tablet with this program. Ensure you have a method of recovery before attempting to install / make a skin.
Download Honeycomb Skin Maker for free from stormwave.me.uk/AndroidSkinInstaller/
(I can't post links yet).
It is still early days for this project and I have many ideas on how to expand it, but all feedback is appreciated and will be taken onboard.
Seems to be a very helpful project for themers!
Honeycomb Skin Maker v0.2
Thanks for the link and screenshot, that's a really big help.
The app is now free, I may choose to add a paid verson in the future.
I really want people to try this out as I think it'll make theming much easier.
Also, would it be possible for a moderator to add [TOOLS] to the beginning of this thread title?
Here is a market link to the skin installer.
https://market.android.com/details?...xLDEsImNvbS5zdG9ybXdhdmUuc2tpbmluc3RhbGxlciJd
I'll have to give this a test run as it looks pretty nice. Thanks for making it.
im tring to edit an .xml, because my systemui.apk will not decompile with any tools due to multilple resource errors. when I change a string in the xml with honeycombskinmaker.. it says dimension attribute not set, etc. any idea? built an .androidskin and installed on device streak 7, and doesnt show up in list in app. theres a blank listing at top but tried that, rebooted fine but didnt see changes I was hoping for: trying to edit HC 3.2 status bar clock color and change to bold. ?? thanks.

Categories

Resources