FORUMS

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

CleanSlate Brings Fingerprint Scanner Mod to HTC One M9+

Work of XDA Recognized Developer tbalden, CleanSlate custom kernel for the HTC … more

Sunday Debate: Which Factors Caused HTC’s Woes?

Join us in a fun Sunday Debate on HTC’s situation. Come with your … more

HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading … more

[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,729
 
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