Dynamic AndroidManifest.xml

Is it possible to dynamically determine aspects of AndroidManifest.xml? For example, is it possible to register or edit the definition of actions, services, and receivers on the fly using Java code?

If so, are there any restrictions on where this code should be placed? What else can be determined dynamically?

+4
source share
1 answer

I believe that most of the available operations are described in the PackageManager documentation.

You can add and remove permissions ( addPermission () ), and you can enable or disable components (services, recipients, etc.) using setComponentEnabledSetting () .

0
source

All Articles