nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.21k stars 1.75k forks source link

Enhance SAF with app protection #6916

Open tobiasKaminsky opened 4 years ago

tobiasKaminsky commented 4 years ago

As discussed with @grote, the current SAF's behaviour is unclear to users.

When selecting app protection we should

grote commented 4 years ago

To clarify, you would use [ContentResolver#getOutgoingPersistedUriPermissions()](https://developer.android.com/reference/android/content/ContentResolver#getOutgoingPersistedUriPermissions()) to get the permissions that were granted to other apps.

With a quick search, I didn't find any way for how you can revoke them.

jmue commented 4 years ago

From my knowledge I think https://developer.android.com/reference/android/content/Context#revokeUriPermission(android.net.Uri,%20int) is the key here.