FORUMS

XDA Office Space: Frankenstein’s Perfect IM Client?

The portal’s decentralized XDA office lies in a Hangouts chatroom, where … more

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and … more

Android Factory Reset Security Flaw and More – XDA TV

Nvidia is releasing a 500Gb SHIELD TV Pro! That and much more news is … more

Android M Code Name: Macadamia Nut Cookie

While the official name for the latest iteration of Android has yet to be revealed, the code … more
Thread Closed Subscribe to Thread Email Thread

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

27th May 2009, 07:14 AM |#1  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
More
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,726
 
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?
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes