All jobs / Mobile developer / Device Capabilities
Mobile developer interview question · 1–3 years
The feature is “attach one photo.” Which permission story is right in 2026?
The strongest answer
Use the system photo picker / share sheet so I do not need broad storage or full photo-library access — ask for more only if the product truly needs a gallery browser
Why it works
Exactly. Least privilege. The picker is the default; broad access is a review and trust cost.
What a good answer covers
- Prefer the system picker.
- Ask for library access only when you browse it.
- Purpose strings must match.
- Do not hoard the camera roll.
Answers that fall short
- Close, but not the strongest: Request READ_MEDIA_IMAGES / full Photo Library on first launch so we are ready
Full-library for one attachment is how you fail review and scare users. - Weak: Request MANAGE_EXTERNAL_STORAGE; it is the only reliable way
All-files access is for file managers, not a photo attach. - Red flag: Copy the whole camera roll into app storage on first run
Copying the roll is a privacy incident, not a cache.
Who gets asked this
More Device Capabilities questions
- You add biometric unlock. What else must exist?
- Product asks for location “always” so a map feels snappier. What do you do?
- A delivery app asks for the highest-accuracy location updates continuously so the map pin never lags. How do…
- Product wants the app to notice NFC tags as the user walks past them, with the app closed. What do you tell…
- A field app talks to a Bluetooth sensor. In the lab it is solid; in the field users say it “just stops”. How…
- The feature is “attach a photo to a report”. Do you build a camera screen inside the app?
- A step-counting screen keeps draining the battery long after the user has moved on to another screen. What do…