diff --git a/buildozer/default.spec b/buildozer/default.spec index 46d08e2c8..0f36be381 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -154,6 +154,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 6b419527f..953ff5c7c 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -944,6 +944,12 @@ def execute_build_package(self, build_cmd): cmd.append('--extra-manifest-xml') cmd.append('{}'.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())) + # support for extra-manifest-application-arguments extra_manifest_application_arguments = self.buildozer.config.getdefault( 'app', 'android.extra_manifest_application_arguments', '')