Theme Progress Log / How To

OP
S

sxtnitehawk

Member
Joined
Aug 31, 2010
Messages
36
Reaction score
0
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...
 

raidzero

n00b.
Premium Member
Developer
Theme Developer
Joined
Apr 15, 2010
Messages
1,054
Reaction score
3
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...

alright, check it out:

XML:
Code:
<com.android.server.status.DateView android:textSize="16.0sp" android:textStyle="bold" android:textColor="?textColorPrimaryInverse"
HEX:
Code:
 android:textColor="?textColorPrimaryInverse" = 08 00 00 02 39 00 01 01
(look up the ID in public.xml and you will see 01010039, but in hex the bits are read backwards)
so for example, to change textColor="?textColorPrimaryInverse" to textColor="#ffffffff"
all you do is replace
Code:
08 00 00 02 39 00 01 01 with 08 00 00 1c ff ff ff ff
this is, I believe, all in the ultimate android theming guide :)
 
Last edited:
OP
S

sxtnitehawk

Member
Joined
Aug 31, 2010
Messages
36
Reaction score
0
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?
 

raidzero

n00b.
Premium Member
Developer
Theme Developer
Joined
Apr 15, 2010
Messages
1,054
Reaction score
3
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?

indeed, but then the dalvik VM wouldn't know what to do with them (ever accidentally put a decompiled xml into an apk lol)

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
 
OP
S

sxtnitehawk

Member
Joined
Aug 31, 2010
Messages
36
Reaction score
0
Wanna help me find the time? cause I cant seem to find it in any of the xml's...
 

thebowers

Premium Member
Premium Member
Theme Developer
Joined
Nov 24, 2009
Messages
2,547
Reaction score
1
Location
Iowa
The clock is in the services.jar.
 
OP
S

sxtnitehawk

Member
Joined
Aug 31, 2010
Messages
36
Reaction score
0
i'm still having trouble changing the clock time..... tried a couple different methods and nothing so far has worked...

i did update a whole lot more graphics tonight... uploading them now...
 
Top