Re:Tell HN: Dropbox now requires access to contacts for Goog...
by grishka on Friday January 15, 2021 @08:04AM
(#25790469)
Android has a better API, and has had it for at least 5 years. An app can open the system UI for you to choose a file, and it would then only get access to that particular file while the activity (screen) that requested it is running. As far as the user is concerned, this requires no permissions. Under the hood, the app gets a content:// URI with an "URI permission" granted. This is also how sharing (Intent.ACTION_SEND) works. You could as well use this mechanism to expose the content in your app to other apps in a controlled manner.
[ Parent
| on HN ]
Re:Tell HN: Dropbox now requires access to contacts for Goog...
by jannes on Friday January 15, 2021 @08:30AM
(#25790704)
Yep. Android also has a Contact Picker that doesn't require contacts permissions where you just select a single person in a dialog.
I have never seen it used in a real app. Most apps request permission to your entire address book.