Editing the AndroidManifest.xml file
Copy link to clipboard
Copied
Hi guys,
I'm trying to figure out how I can manually edit the AndroidManifest.xml file of an APK.
It seems that they're generated by the ADL compiler, but I'm not seeing any options to edit the file itself, nor can I find the templates in the AIR 2.7 sdk.
I need to do this to try out some features on android 3.2.1 on a prototype device.
Anyone know how to do this? Do I have to get into using the google android SDK for my packaging? Or can I edit a config/command somewhere?
Thanks in advance,
Alias Cummins
Copy link to clipboard
Copied
The Android manifest is generated, in part, from the <android> section of your application descriptor. (See http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html). If the items that you need to add can be put into this <android> section, then that's definitely the easiest way.
Otherwise, you have to open up the APK, extract the manifest, edit it and put everything back together, sign it, etc. This: http://code.google.com/p/android-apktool/ might help (I haven't tried it personally).
Copy link to clipboard
Copied
You could also use this technique if the 2 first suggestions dont work : http://www.jamesward.com/2011/05/11/extending-air-for-android/
