as far as adding lines in xml's go, I use apktool for that. if apktool doesn't work than I suggest using apktool to install a copy of the framework that is used with the apk you are editing and then trying again specifying the framework file
How can you find it if its in binary and not text... the color codes don't change between binary and XML but text does...otherwise android would have been built with standard XML instead of binary...
Take the binary /res/layout/status_bar.xml and find the date color string and show it to me cause all I see is binary data...
HEX:Code:<com.android.server.status.DateView android:textSize="16.0sp" android:textStyle="bold" android:textColor="?textColorPrimaryInverse"
(look up the ID in public.xml and you will see 01010039, but in hex the bits are read backwards)Code:android:textColor="?textColorPrimaryInverse" = 08 00 00 02 39 00 01 01
so for example, to change textColor="?textColorPrimaryInverse" to textColor="#ffffffff"
all you do is replace
this is, I believe, all in the ultimate android theming guideCode:08 00 00 02 39 00 01 01 with 08 00 00 1c ff ff ff ff
By the way, android IS written using regular XML.. go here and read some of the source:
the framework is in platform/frameworks/base.git
The source is standard XML but compiled and built into binary... I meant things would be so much easier if the files didn't end up being in binary...
And my mistake on the I'd thing... I didn't recall seeing that in the guide but thank you for pointing that out... I thought I hit somewhat of a dead end...
A script or program to build single files would still be awesome though because then you could edit the standard XML and then build it and put just that file back into the Apk... know what I mean?
unfortunately the utility you talk about cannot exist, you have to decompile all or none, and at the same time it has to be decompiled into a format that can be recompiled correclty using the correct ID nomenclature..
axmlprinter plus hex edit is as good as it gets, unless you use apktool but then sometimes it cannot recompile correctly and you will notice strange happenings on your phone
anyway, I quite enjoy hex-editing, it makes me feel 31337 :P