Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

The changes documented here do not include those from the original repository.

## [1.0.2]

### 2026-07-07

- Fix: explicitly grant `FLAG_GRANT_READ_URI_PERMISSION` (in addition to the existing write permission) when launching camera capture intents, required for Android 18's implicit URI grant restriction ([RMET-5241](https://outsystemsrd.atlassian.net/browse/RMET-5241)).

## [1.0.1]

### 2026-04-27
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.ionic.libs</groupId>
<artifactId>ioncamera-android</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class IONCAMRMediaHelper : IONCAMRMediaHelperInterface {
if (activity != null && imageUri != null) {
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri)
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_READ_URI_PERMISSION)
val mPm: PackageManager = activity.packageManager
if (intent.resolveActivity(mPm) != null) {
activity.startActivityForResult(
Expand All @@ -49,8 +49,8 @@ class IONCAMRMediaHelper : IONCAMRMediaHelperInterface {
val safeActivity = activity ?: return null
val safeUri = imageUri ?: return null
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri)
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
intent.putExtra(MediaStore.EXTRA_OUTPUT, safeUri)
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_READ_URI_PERMISSION)

return if (intent.resolveActivity(safeActivity.packageManager) != null) {
intent
Expand Down
Loading