Skip to main content
Participant
August 8, 2011
Question

Editing the AndroidManifest.xml file

  • August 8, 2011
  • 1 reply
  • 6396 views

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

This topic has been closed for replies.

1 reply

Participating Frequently
August 8, 2011

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).

Inspiring
August 10, 2011

You could also use this technique if the 2 first suggestions dont work : http://www.jamesward.com/2011/05/11/extending-air-for-android/