Ask for permision only to notable folder

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start with app/src/main/java/com/olup/notable/MainActivity.kt, where the issue says permission requests are handled, and read the related permission request in issue #24. Determine how to request access only to the Notable documents folder while supporting Android 10. Done means the app can use its database there without requesting access to all storage.

Written by the indexing model from the issue text.

Description

help wanted

Notable now keeps its database in /Documents/notabledb. I want to keep it there because it is easy to find and back up. Currently, I am requesting permission to manage all storage, as it was the easier solution. However, this does not work on Android 10 and is an excessive approach. We do not need permission for other folders, except perhaps for /Documents/Notable. If someone knows how to do it correctly I would appreciate your help.

https://github.com/Ethran/notable/issues/24

Asking for permission is handled in:
https://github.com/Ethran/notable/blob/dev/app/src/main/java/com/olup/notable/MainActivity.kt

Dominant language
Kotlin
Stars
269
Forks
44
Avg merge
1d 17h
Merged PRs (30d)
22

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Ethran/notable

All issues in Ethran/notable

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.