android / android/camera-samples

CameraXBasic does not ask for WRITE_EXTERNAL_STORAGE permissions

Open Beginner friendly
#546 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Trying the exemple in a Samsung Tablet with Android 8 the PermissionsFragment class always shows a Toast

"Permission request denied"

I noticed that the only permission asked with registerForActivityResult is the CAMERA permission, and not the WRITE_EXTERNAL_STORAGE

Adding

in the manifest solve the bug

Contributor guide

Open the contributing guide

Research direction

Start with PermissionsFragment and the CameraXBasic Android manifest, comparing the permissions declared there with those requested through registerForActivityResult. Reproduce or inspect the Android 8 behavior, then verify that WRITE_EXTERNAL_STORAGE is requested and that the permission-denied Toast is no longer shown when storage access is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.