kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.72k stars 496 forks source link

Add rule receiver in AndroidManifest.xml #1518

Open dvjdjvu opened 1 year ago

dvjdjvu commented 1 year ago

Versions

Description

I found some flags for add rules in AndroidManifest.xml:

But no one can't add rule receiver in block application:

<application>
<receiver android:name=".MyBroadcastReceiver" android:enabled="true" android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
    </intent-filter>
</receiver>
<application/>

like so.

I need the flag android.extra_manifest_application or some that for add rule receiver in AndroidManifest.xml. How to do it?

Thank you.

dvjdjvu commented 1 year ago

https://github.com/kivy/buildozer/pull/1519

https://github.com/kivy/python-for-android/pull/2691

or you can write rules ~/dir_your_project/.buildozer/android/platform/python-for-android/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml