Learn How to Create an Old School Dialer

XDA is not only a great source for custom ROMs, kernels, and various modifications for numerous … more

USB Desktop Charger Roundup – XDA TV

Sometimes you learn one way to do something, and that’s the way you do it forever. You never … more

Samsung Galaxy Grand Duos Receives Early CM12 Port

Samsung Galaxy Grand is a dual-SIM phone with a 5 screen that was announced two years ago. … more

Google Adds New Features to Drive, Sheets, Slides and Docs

In the last few months, Google has been working very hard to adapt all its apps to … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

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

OP avimak

27th May 2009, 08:14 AM   |  #1  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
486 posts
Join Date:Joined: Nov 2008
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, 08:21 AM   |  #2  
Senior Member
Thanks Meter: 3
 
835 posts
Join Date:Joined: Nov 2008
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, 08:23 AM   |  #3  
jashsu's Avatar
Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: 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
27th May 2009, 08:28 AM   |  #4  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
486 posts
Join Date:Joined: Nov 2008
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, 09:52 AM   |  #5  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
486 posts
Join Date:Joined: Nov 2008
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, 10:20 AM   |  #6  
jashsu's Avatar
Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: Nov 2008
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, 11:29 AM   |  #7  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
486 posts
Join Date:Joined: Nov 2008
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, 01:57 PM   |  #8  
cyanogen's Avatar
Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,715
 
2,485 posts
Join Date:Joined: Jan 2009
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, 02:07 PM   |  #9  
avimak's Avatar
OP Senior Member
Thanks Meter: 0
 
486 posts
Join Date:Joined: Nov 2008
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, 03:31 PM   |  #10  
Member
Thanks Meter: 0
 
41 posts
Join Date:Joined: Dec 2008
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