ankidroid / ankidroid/Anki-Android

Unable to share image from app to AnkiDroid

Đang mở
#20,917 1 bình luận 0 reaction 1 người được giao Được @criticalAY nhận Xem trên GitHub
Needs Triage
Ngôn ngữ chính
Kotlin
Star
11.8k
Fork
2.9k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
171

Mô tả

### Checked for duplicates?

- [x] This issue is not a duplicate

### Does it also happen in the desktop version?

- [ ] This bug does not occur in the latest version of Anki Desktop

### What are the steps to reproduce this bug?

Try to share image to AnkiDroid i.e. Add Image and you will get error snackbar and there is exception i.e.

```
internalizeUri() unable to open input stream from content resolver for Uri file:///data/user/0/com.ichi2.anki.debug/cache/PXL_20260414_083401732.jpg (Fix with AI)
java.lang.SecurityException: java/android/unsafe-content-uri-resolution
at com.ichi2.utils.FileUtilKt.openInputStreamSafe(FileUtil.kt:205)
at com.ichi2.utils.FileUtil.internalizeUri(FileUtil.kt:101)
```

### Expected behaviour

Image is added

### Debug info

```text
Latest commit on dev
```

### (Optional) Anything else you want to share?

_No response_

### Research

- [x] I have checked the [manual](https://ankidroid.org/docs/manual.html) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/FAQ) and could not find a solution to my issue
- [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release ([instructions](https://docs.ankidroid.org/manual.html#betaTesting))

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.