News for hackers. Stuff that matters.
Re:Tell HN: Dropbox now requires access to contacts for Goog... by higerordermap on Friday January 15, 2021 @07:53AM (#25790362)
Does android have this API? The problem I see is, if they are introduced in later versions, people are anyway used to apps asking these permissions and developers don't bother to use these.

Also, a question to security experts: In many apps say we want a UX where the user would immediately be able to see their recent pics and select from them (think recent photos bar in whatsapp), but app shouldn't be able to access them. Is it safe if OS provides it as a screen overlay service which doesn't require a separate screen/window, but runs out of process (a la file picker).

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.
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.

Re:Tell HN: Dropbox now requires access to contacts for Goog... by wlesieutre on Friday January 15, 2021 @09:22AM (#25791223)
Re:Tell HN: Dropbox now requires access to contacts for Goog... by dividuum on Friday January 15, 2021 @09:50AM (#25791567)
I wish there was an easier way to add additional photos quickly. From what I understand the only way is search for the app in settings, open the "Photos" permission and click on "Edit Selected Photos". Is there an easier way I missed? I guess I can't expect a simple click from within the app itself while selecting photos, as it's not aware it's seeing a limited selection.
Re:Tell HN: Dropbox now requires access to contacts for Goog... by wlesieutre on Friday January 15, 2021 @10:11AM (#25791817)
I think it requires developers to fix that. At least in Slack there's two buttons next to their in-app image picker. One opens the camera to take a photo, the other pops up the iOS photo picker overlay where you can select more images.