diff --git a/buildozer/default.spec b/buildozer/default.spec index d5269b837..59e994d87 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -147,6 +147,10 @@ fullscreen = 0 # use that parameter to provide a filename from where to load your custom XML code #android.extra_manifest_xml = ./src/android/extra_manifest.xml +# (str) Extra xml to write directly inside the element of AndroidManifest.xml +# use that parameter to provide a filename from where to load your custom XML code +#android.extra_manifest_application_xml = ./src/android/extra_manifest_application_xml.xml + # (str) Extra xml to write directly inside the tag of AndroidManifest.xml # use that parameter to provide a filename from where to load your custom XML arguments: #android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 34364b5e8..57cf12612 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -955,6 +955,12 @@ def execute_build_package(self, build_cmd): if extra_manifest_xml: cmd.append('--extra-manifest-xml="{}"'.format(open(extra_manifest_xml, 'rt').read())) + # support for extra-manifest-application + extra_manifest_application_xml = self.buildozer.config.getdefault( + 'app', 'android.extra_manifest_application_xml', '') + if extra_manifest_application_xml: + cmd.append('--extra-manifest-application-xml="{}"'.format(open(extra_manifest_application_xml, 'rt').read().replace('"', '\\"'))) + # support for extra-manifest-application-arguments extra_manifest_application_arguments = self.buildozer.config.getdefault( 'app', 'android.extra_manifest_application_arguments', '')