App crashes on export when AnkiDroid doesn't have Storage permissions
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the permission-denied export flow in the API Sample app, then inspect AnkiDroidHelper::getDeckId and the Instant-Add share path. Determine the intended user-facing behavior for an inaccessible AnkiDroid database; done means this state no longer causes an unhandled IllegalStateException.
Written by the indexing model from the issue text.
Description
Steps to reproduce:
- Install AnkiDroid but do not run OR remove Storage permissions from existing AnkiDroid app via App Info UI
- Launch API Sample app
- Select entry, hit share button, select AnkiDroid Instant-Add
Expected: Not sure? Maybe user gets prompted with dialog explaining why Anki cannot be exported to?
Actual: App crashes due to unhandled IllegalStateException in AnkiDroidHelper::getDeckId with message "AnkiDroid database inaccessible. Open AnkiDroid to see what's wrong."
- Dominant language
- Java
- Stars
- 28
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ankidroid/apisample
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in ankidroid/apisample
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
linagora/twake-calendar-side-service#1578 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
tchiotludo/akhq#3438 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#266 ·
Maintainers usually reply within 1 day