Verified Commit 0e8c8bb7 authored by Marvin W.'s avatar Marvin W. 🐿
Browse files

EN: Use applicationId as authority for export file provider

parent 15609af6
......@@ -45,7 +45,7 @@
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="org.microg.gms.nearby.exposurenotification.export"
android:authorities="${applicationId}.microg.exposure.export"
android:grantUriPermissions="true"
android:exported="false">
<meta-data
......
......@@ -994,7 +994,7 @@ class ExposureDatabase private constructor(private val context: Context) : SQLit
// Use the FileProvider to get a content URI for the new DB
val fileUri: Uri? = try {
FileProvider.getUriForFile(context,"org.microg.gms.nearby.exposurenotification.export", exportFile)
FileProvider.getUriForFile(context,"${context.packageName}.microg.exposure.export", exportFile)
} catch (e: IllegalArgumentException) {
Log.e("EN-DB-Exporter", "The database file can't be shared: $exportFile $e")
null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment