Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</activity>

<provider
android:authorities="net.rpcs3.documents"
android:authorities="${applicationId}.documents"
android:name="net.rpcs3.provider.AppDataDocumentProvider"
android:exported="true"
android:grantUriPermissions="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import java.io.IOException
class AppDataDocumentProvider : DocumentsProvider() {
companion object {
const val ROOT_ID = "root"
const val AUTHORITY = "net.rpcs3" + ".documents"

private val DEFAULT_ROOT_PROJECTION = arrayOf(
Root.COLUMN_ROOT_ID,
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/net/rpcs3/ui/settings/SettingsScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ fun SettingsScreen(
val file = DocumentFile.fromSingleUri(
context,
DocumentsContract.buildDocumentUri(
AppDataDocumentProvider.AUTHORITY,
"${context.packageName}.documents",
"${AppDataDocumentProvider.ROOT_ID}/cache/RPCS3.log"
)
)
Expand Down Expand Up @@ -429,7 +429,7 @@ private fun Context.launchBrowseIntent(
val intent = Intent(action).apply {
addCategory(Intent.CATEGORY_DEFAULT)
data = DocumentsContract.buildRootUri(
AppDataDocumentProvider.AUTHORITY,
"$packageName.documents",
AppDataDocumentProvider.ROOT_ID
)
addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_PREFIX_URI_PERMISSION or Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION)
Expand Down