Add DocumentsProvider for working directory

Expose the service's running directory to file managers via Storage
Access Framework, allowing users to browse and manage files directly.
This commit is contained in:
世界
2025-12-19 13:28:37 +08:00
parent 72c7794ba9
commit d7be884674
4 changed files with 258 additions and 3 deletions

View File

@@ -225,6 +225,17 @@
android:resource="@xml/cache_paths" />
</provider>
<provider
android:name=".WorkingDirectoryProvider"
android:authorities="${applicationId}.workingdir"
android:exported="true"
android:grantUriPermissions="true"
android:permission="android.permission.MANAGE_DOCUMENTS">
<intent-filter>
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
</intent-filter>
</provider>
</application>
</manifest>