Expose files through the Storage Access Framework

This allows e.g. external editors to edit files in the Termux home
folder. Fixes #79.
This commit is contained in:
Fredrik Fornwall
2016-04-22 02:13:50 +02:00
parent 533fa60516
commit 026d0b495e
2 changed files with 246 additions and 0 deletions

View File

@@ -98,6 +98,17 @@
android:grantUriPermissions="true"
android:name="com.termux.filepicker.TermuxFilePickerProvider" />
<provider
android:name=".filepicker.TermuxDocumentsProvider"
android:authorities="com.termux.documents"
android:grantUriPermissions="true"
android:exported="true"
android:permission="android.permission.MANAGE_DOCUMENTS">
<intent-filter>
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
</intent-filter>
</provider>
<service
android:name="com.termux.app.TermuxService"
android:exported="false" />