FORUMS

Analysis & Opinion

Top Forum Discussions

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

486 posts
Thanks Meter: 0
 
By avimak, Senior Member on 27th May 2009, 07:14 AM
Thread Closed Subscribe to Thread Email Thread
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
 
 
27th May 2009, 07:21 AM |#2  
Senior Member
Thanks Meter: 3
 
More
You would have to use a hex editor. More helpful information may be found here:

http://forum.xda-developers.com/showthread.php?t=479019
27th May 2009, 07:23 AM |#3  
jashsu's Avatar
Senior Member
Thanks Meter: 15
 
More
AXMLPrinter2:

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

Stericson's hex editing tutorial:

http://forum.xda-developers.com/showthread.php?t=479019
27th May 2009, 07:28 AM |#4  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
More
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.
27th May 2009, 08:52 AM |#5  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
More
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?
27th May 2009, 09:20 AM |#6  
jashsu's Avatar
Senior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by avimak

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.
27th May 2009, 10:29 AM |#7  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by jashsu

There's a converter in the Android SDK.

Which one? there's a lot of them there...
27th May 2009, 12:57 PM |#8  
cyanogen's Avatar
Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,736
 
Donate to Me
More
Quote:
Originally Posted by avimak

Which one? there's a lot of them there...

"aapt dump xmltree" will show the contents but not in actual xml.
27th May 2009, 01:07 PM |#9  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by cyanogen

"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?
27th May 2009, 02:31 PM |#10  
Member
Thanks Meter: 0
 
More
Hey Avi,
why don't you use the hebrew keyboard that already published in iandroid.co.il forums?
27th May 2009, 05:11 PM |#11  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by zrubi

Hey Avi,
why don't you use the hebrew keyboard that already published in iandroid.co.il forums?

Well, first of all I'm using it now and it's great.. but still the HTC official keyboard looks bigger and wider for me, plus there is a space there (in the Russian layout) for question mark etc...
Last edited by avimak; 27th May 2009 at 05:17 PM.

Read More
Thread Closed Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes