Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

EN: Use applicationId as authority for export file provider

parent 15609af6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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