jfoclpf commented on issue #797: URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1411864902
Before Android 13 the permission requested was [`READ_EXTERNAL_STORAGE`](https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE) With Android 13 and higher this permissions was divided in three: Images, Video and Audio. For this plugin we just need images, thus with Android 13 and higher we will need to request [`READ_MEDIA_IMAGES`](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_IMAGES) It should be noted this just happens for new installations > if your app was previously granted the [READ_EXTERNAL_STORAGE](https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE) permission, then any requested READ_MEDIA_* permissions are granted automatically when upgrading @breautek I was digging into the repo and `READ_EXTERNAL_STORAGE` just popups in `/src/android/CameraLauncher.java`. I guess we should have some sort of global switch that replaces `READ_EXTERNAL_STORAGE` by `READ_MEDIA_IMAGES` when faced with Android 13 or higher. This will be backwards compatible because, as said if `READ_EXTERNAL_STORAGE` was already granted in Android 12 or lower and user upgraded to Android 13, `READ_MEDIA_IMAGES` is granted automatically. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
