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.

Did you change something that was pointing to colors.xml to a direct color?

ie...

From: @colors/black

To: #ffff0000

If so, it might be better to create a color in colors.xml and have it point to it. Hope that made sense.
 
I must be missing something installed. If I take the framework-res.apk and do the decompile. Then, without making changes to the files... try to do a compile.... it errors. After all of the "Public symbol drawable/"... errors

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\James\AppData\Local\Temp\APKTOOL3838932145100342123.tmp, -x, -0, arsc, -S, E:\Users\James\Documents\Droid X Stuff\Theming Stuff\android-sdk_r06-windows\android-sdk-windows\tools\Apk_Manager_4.8\other\..\out\res, -M, E:\Users\James\Documents\Droid X Stuff\Theming Stuff\android-sdk_r06-windows\android-sdk-windows\tools\Apk_Manager_4.8\other\..\out\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(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)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\James\AppData\Local\Temp\APKTOOL3838932145100342123.tmp, -x, -0, arsc, -S, E:\Users\James\Documents\Droid X Stuff\Theming Stuff\android-sdk_r06-windows\android-sdk-windows\tools\Apk_Manager_4.8\other\..\out\res, -M, E:\Users\James\Documents\Droid X Stuff\Theming Stuff\android-sdk_r06-windows\android-sdk-windows\tools\Apk_Manager_4.8\other\..\out\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
 
Delete your log file. Decompile and recompile without changing anything. Two things that are more then likely going on. You don't have you environment path set or the .apk you are editing has a .9 that is missing the guides.
 
Did you change something that was pointing to colors.xml to a direct color?

ie...

From: @colors/black

To: #ffff0000

If so, it might be better to create a color in colors.xml and have it point to it. Hope that made sense.
can you make up an example, like how would you put it to it,lol does that make since
 
Ok. I did the decompile.... recompile.... same issue.

Environment path is set for the aapt program. When I open a cmd prompt and type aapt anywhere.... it displays the list of paramaters.

The .apk is the framework-res.apk that is in 928Droid's Black Glass X theme.

On a side note... I was able to do the png edit in the first section of APK manager. Option 1, 2, 3, then 8 since it's a system apk. It worked fine with a png that I edited... shows up on my phone fine.

My issue is the next section trying to do xml files. Is there any other special program that needs to be installed for this section?
 
It don't really matter how you do the code as long as you do it right. If you put a custom color in the colors.xml you would point to it by doing this.

Add the variable in colors.xml

<color name="custom color">#ffff00ae</color>

Then in the xml you want that color changed to would be this.

android:textColor="@android:color/custom color"

Otherwise you can just do this anywhere

android:textColor="#ffff00ae"
 
Ok. I did the decompile.... recompile.... same issue.

Environment path is set for the aapt program. When I open a cmd prompt and type aapt anywhere.... it displays the list of paramaters.

The .apk is the framework-res.apk that is in 928Droid's Black Glass X theme.

On a side note... I was able to do the png edit in the first section of APK manager. Option 1, 2, 3, then 8 since it's a system apk. It worked fine with a png that I edited... shows up on my phone fine.

My issue is the next section trying to do xml files. Is there any other special program that needs to be installed for this section?

Try a stock .apk and see how that goes. There is a .9 image that is missing a guide.
 
pretty sure I have seen some of the .9's in 928's framework that were added in after the fact so they won't decompile and therefore won't have the guides to recompile. Grab a stock one to work off of. As soon as it hits the first bad .9 image it will log errors for all the ones that come after it too. You can usually tell if you look at the uncompiled images and there are a couple without thumbnails.
 
Ok. Another thing. The apk's under the /system/app folder are all system apks? They don't need to be resigned? or do they need to be signed? Kinda confused as to which ones should go through the "sign" process.
 
All .apks need to be signed. All /system/apps need to be signed with 12 and all /data/apps need to be signed with 4.
 
Too easy. Sorry. If there is a help file that answers these ?'s... feel free to throw it at me. The simple app like calculator was easy to edit. Now to move onto more complicated ones.

Thanks! dancedroid
 
There really isn't a help file. Just read this thread or the one where you download apk manager. A lot comes just from playing around. Just think of it like this. It is almost impossible to screw the phone up completely. Tinker and see if it works!!!
 
Anyone know how to change the black text on the home screen long press menu?

It's one of the foreground colors. Look at the foreground colors in:

values/colors
values/drawable

It will be in one of those.
 
Back
Top