Added file provider configuration

This commit is contained in:
Mark Qvist 2022-11-22 19:46:14 +01:00
parent 22b54b3853
commit db2ad8a7a7
3 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,7 @@ injectxml:
mkdir -p .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/res/xml
mkdir -p .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/templates
cp patches/device_filter.xml .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/res/xml/
cp patches/file_paths.xml .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/res/xml/
cp patches/AndroidManifest.tmpl.xml .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/templates/
debug:

View File

@ -142,6 +142,18 @@
{% for a in args.add_activity %}
<activity android:name="{{ a }}"></activity>
{% endfor %}
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="io.unsigned.sideband.provider"
android:exported="false"
android:grantUriPermissions="true">
<!-- ressource file to create -->
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths">
</meta-data>
</provider>
</application>
</manifest>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<files-path name="exports" path="exports/"/>
</paths>