mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-27 21:25:49 +01:00
EN: Use applicationId as authority for export file provider
This commit is contained in:
parent
15609af676
commit
0e8c8bb712
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user