Shamim1977 / android-random

Automatically exported from code.google.com/p/android-random
0 stars 0 forks source link

But how to generate the binary XML file from a readable xml document? #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Is there a xml2Axml tool?

Original issue reported on code.google.com by diyh...@gmail.com on 13 Mar 2010 at 8:11

GoogleCodeExporter commented 8 years ago
There isn't one.
Do you want to replace the existing manifest file (AndroidManifest.xml) within 
the app, i.e. .apk file?

If yes - here's what I would try if I was you.
1. Create a project with has all the classes (activities, intent filters, 
services...) referenced in the source 
AndroidManifest file. This may be tedious for bigger apps, but might be the 
requirement to get the 
correct binary manifest file.
2. Include the binary manifest file that has been decoded into its source using 
axml2xml tool.
3. Compile this project. Fingers crossed. ;-)
4. Unzip the new binary manifest and zip it back into the original .apk file. 
If this doesn't go well with zip 
then try with pushing the newly crafted binary manifest onto the device and 
using NinjaMorph to replace 
the manifest file within the .apk

My assumption was that checksums in binary manifests do not depend on checksums 
on dex file, i.e. 
original class files, which you do not have. If that's the case, than this 
problem requires a bit more 
hacking. :-)

Original comment by shonzi...@gmail.com on 1 May 2010 at 10:39