Balgam commented on issue #611:
URL:
https://github.com/apache/cordova-plugin-camera/issues/611#issuecomment-679952855
Can confirm this issue, it occurs at checkForDuplicateImage when try to
delete the file by ContentResolver:
```
this.cordova.getActivity().getContentResolver().delete(uri, null, null);
Caused by: android.app.RecoverableSecurityException: com.xxx has no access
to content://media/external/images/media/477
at
android.app.RecoverableSecurityException$1.createFromParcel(RecoverableSecurityException.java:197)
at
android.app.RecoverableSecurityException$1.createFromParcel(RecoverableSecurityException.java:194)
at android.os.Parcel.readParcelable(Parcel.java:2973)
at android.os.Parcel.createException(Parcel.java:2066)
at android.os.Parcel.readException(Parcel.java:2039)
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
at
android.content.ContentProviderProxy.delete(ContentProviderNative.java:553)
at android.content.ContentResolver.delete(ContentResolver.java:1952)
at
org.apache.cordova.camera.CameraLauncher.checkForDuplicateImage(CameraLauncher.java:1236)
at
org.apache.cordova.camera.CameraLauncher.cleanup(CameraLauncher.java:1202)
at
org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:596)
at
org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:808)
at
org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:159)
```
Cordova CLI: 9.0.0
Android Platform: 9.0.0
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]