kivy / buildozer

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

About adding AccessibilityService in the androidmanifest.xml file #1790

Open visonco2 opened 6 months ago

visonco2 commented 6 months ago

I have an idea to use the android.permission.BIND_ACCESSIBILITY_SERVICE permission, but I still need to declare a service with the server tag. I try to add service node <service under application in the file ~/dir_your_project/.buildozer/android/platform/python-for-android/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml

<service android:name="com.anheimoxin.access.service.AccessService" android:label="@string/access_name" android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">

  <meta-data
    android:name="android.accessibilityservice"
    android:resource="@xml/allocation" />

However, the declaration service fragment is still not seen in the AndroidManifest.xml in the apk file.

Versions

visonco2 commented 6 months ago

`<service android:name="com.anheimoxin.access.service.AccessService" android:label="@string/access_name" android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">

  <meta-data
    android:name="android.accessibilityservice"
    android:resource="@xml/allocation" />

`

visonco2 commented 6 months ago

I also can't find the available option in the buildozer.spec file