Skip to content

Commit

Permalink
Fix [7157]Remove WRITE_EXTERNAL_STORAGE in CameraLauncher…
Browse files Browse the repository at this point in the history
This commit removes the request for the WRITE_EXTERNAL_STORAGE
permission in the CameraLauncher file for Android API 32 or lower. This
is a fix for bug [7157] where the permission was always being denied and
was also deemed not necessary for the function of the app.
  • Loading branch information
dpesch committed May 23, 2024
1 parent 1638119 commit 1da1591
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/android/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ private String[] getPermissions(boolean storageOnly, int mediaType) {
} else {
// Android API 32 or lower
permissions.add(Manifest.permission.READ_EXTERNAL_STORAGE);
permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);

// dom, 2024-05-22, Bugfix [7157]: WRITE_EXTERNAL_STORAGE is always denied and not needed!
//permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
}

if (!storageOnly) {
Expand Down

0 comments on commit 1da1591

Please sign in to comment.