PhilippC / PhilippC/keepass2android

[FEAT] Ask user where to create a new database

Open
#2,812 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
6.2k
Forks
478
Avg merge
1h 4m
Merged PRs (30d)
2

Description

The current default is to create new databases in the "ExternalFilesDir" (https://learn.microsoft.com/en-us/dotnet/api/android.content.context.getexternalfilesdir?view=net-android-35.0) which is accessible for other apps (intentionally, such that sync apps can read/write it or create backups).

However, this behavior is not well explained/documented and not very intuitive to use (https://github.com/PhilippC/keepass2android/issues/2806).

When CreateDatabaseActivity opens, it should show a dialog asking where to place the file with these options:

  • in ExternalFilesDir (not included in phone backup, accessible for other apps)
  • in FilesDir (included in phone backup, not accessible for other apps)
  • in NoBackupFilesDir (not included in phone backup, not accessible for other apps)
  • location of the user's choice (including local files and cloud files)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start in CreateDatabaseActivity and trace how the default ExternalFilesDir location is selected. Review the existing file/location picker flow, then implement the requested choice dialog and verify that each option maps to the stated backup and accessibility behavior, including user-selected local or cloud locations.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.