I'm trying to (on-device) unzip my apk, decode the manifest to plain
xml, remove some permissions from the manifest, and then package it
again.

The problem is at the repackaging stage (aapt p -M
AndroidManifest.xml...) because one or two resource references in the
manifest, most importantly the application icon, are not resolvable.
If I provide the relevant drawable in a separate directory and refer
to it with -S then the icon shows up OK in the launcher but it seems
that aapt somehow messes with the existing resource IDs in
resources.arsc and so all the resource IDs referenced by classes.dex
are no longer valid.

If I remove all resource references from (the decoded)
AndroidManifest.xml before repackaging then it all works fine. But I
would quite like to have an application icon showing in the
launcher....

Any tips, suggestions etc that don't involve me hacking around in the
aapt C code ?

Thanks,

Pent

p.s. apktool is not available on-device

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to