Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,194 Members 42,086 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to decompile/recompile binary XML from .apk file?

Tip us?
 
avimak
Old
#1  
avimak's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 486
Join Date: Nov 2008
Default [Q] How to decompile/recompile binary XML from .apk file?

I have an .apk file which containing the new HTC keyboard, and I tried to translate the Russian layout to Hebrew so I'll be able to use any ROM which use this keyboard (I can't find the original Android SK on the ROM).

There is no problem to find the Russian XML files, but it's all compiled to a strange binary XML.. can someone help me with it? is there any way to decompile it to a normal XML again and then recompile it so i'll be able to override the original on my system?

thanks in advance
Avi
 
andonnguyen
Old
#2  
Senior Member
Thanks Meter 3
Posts: 835
Join Date: Nov 2008
You would have to use a hex editor. More helpful information may be found here:

http://forum.xda-developers.com/showthread.php?t=479019

T-mobile G2X
Gingerbread
 
jashsu
Old
#3  
jashsu's Avatar
Senior Member
Thanks Meter 12
Posts: 1,852
Join Date: Nov 2008
AXMLPrinter2:

http://forum.xda-developers.com/showthread.php?t=514412

Stericson's hex editing tutorial:

http://forum.xda-developers.com/showthread.php?t=479019
 
avimak
Old
#4  
avimak's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 486
Join Date: Nov 2008
Thanks you two

I wish we'll have an app in the future (maybe i'll write one ) that can easly decompile/recompile - just like we have for mode9 files etc.
 
avimak
Old
#5  
avimak's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 486
Join Date: Nov 2008
A problem, I can only decode it to a normal txt file - but I can't recode it back to that binary xml format...
How can I do that?
 
jashsu
Old
#6  
jashsu's Avatar
Senior Member
Thanks Meter 12
Posts: 1,852
Join Date: Nov 2008
Quote:
Originally Posted by avimak View Post
A problem, I can only decode it to a normal txt file - but I can't recode it back to that binary xml format...
How can I do that?
There's a converter in the Android SDK.
 
avimak
Old
#7  
avimak's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 486
Join Date: Nov 2008
Quote:
Originally Posted by jashsu View Post
There's a converter in the Android SDK.
Which one? there's a lot of them there...
 
cyanogen
Old
#8  
cyanogen's Avatar
Retired Recognized Developer
Thanks Meter 5688
Posts: 2,485
Join Date: Jan 2009
Location: Seattle

 
DONATE TO ME
Quote:
Originally Posted by avimak View Post
Which one? there's a lot of them there...
"aapt dump xmltree" will show the contents but not in actual xml.
 
avimak
Old
#9  
avimak's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 486
Join Date: Nov 2008
Quote:
Originally Posted by cyanogen View Post
"aapt dump xmltree" will show the contents but not in actual xml.
Hi man, I'm already using AXMLPrinter2.jar to decode the xml file, that's not the problem. I'm looking for a way to recode it back to binary - and jashsu says it's in the SDK, but we have there about 100 different tools so I asked him which one is to recode a simply xml to binary xml that's fits Android

do you know?
 
zrubi
Old
#10  
Member
Thanks Meter 0
Posts: 41
Join Date: Dec 2008
Hey Avi,
why don't you use the hebrew keyboard that already published in iandroid.co.il forums?

THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...