Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.31k stars 260 forks source link

How to create a new database? #568

Closed vishalnandagopal closed 4 years ago

vishalnandagopal commented 4 years ago

How do I create a new database with this app? I looked all over the app, can't find it. I'm either too dumb, or is the app only for viewing and editing already created databases? Thanks!

J-Jamet commented 4 years ago

As indicated in the wiki, you must have a file manager compatible with the Intent ACTION_CREATE_DOCUMENT action, if this is not the case, several solutions are available to you:

There are no plans to implement direct access to device files for security reasons and to respect the encapsulation of the components. KeePassDX detects if a compatible file manager can be used and deactivates the button if it is not.

vishalnandagopal commented 4 years ago

I already use material files. But I can't see any button or toggle to create a new database in KeepassDX app. It only shows open existing database.

Do I just create a file and give it a .kdbx extension with Material Files?

J-Jamet commented 4 years ago

I already use material files. But I can't see any button or toggle to create a new database in KeepassDX app. It only shows open existing database.

In this case, it may be a recognition bug. Can you tell me which version of Android you are using?

Do I just create a file and give it a .kdbx extension with Material Files?

It will not work, because the file must have an internal structure formatted to accommodate a database.

vishalnandagopal commented 4 years ago

Android 10.

I can see only open existing database at the bottom of the app.

J-Jamet commented 4 years ago

Indeed, it seems that Material Files no longer react to the intent. I will do more tests and ask the creator of the application.

J-Jamet commented 4 years ago

Indeed, the file creation functionality is not available in Material Files -> https://github.com/zhanghai/MaterialFiles/issues/153

You must therefore use another manager for creation. I will test those in the wiki and add a new column to the table to indicate the compatibility of the creation.

vishalnandagopal commented 4 years ago

The new default android file manager works for creating a file. I couldn't find it on the play store, but it came pre-installed on my stock Android 10.

App ID for reference - com.android.documentsui

Shall I close this? Or leave it to you?