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.49k stars 266 forks source link

SecurityException: Permission Denial #1066

Closed J-Jamet closed 3 years ago

J-Jamet commented 3 years ago

From #1065

I can't re-open my databases, only at the first time.

I thought it was an Android permission problem (I have had my databases stored in the internal memory of the phone), but even moving them to the SD memory the error persists.

java.lang SecurityException: Permission Denial

java.lang SecurityException: Permission Denial

My phone: HONOR 10 Lite running Android 10 (EMUI 10.0). KeePassDX_3.0.0_beta01

Default Android's file manager.

When I open the database the first time in the app. But I've realized this: having the database and key file registered, I have to re-associate the key file without having to re-enter the database password, every time I have to open the database.

J-Jamet commented 3 years ago

The issue is present because non-permanent URIs are now unbound from the file manager and only database URIs are considered persistent URIs. Not requiring the unbinding of saved key file URIs should solve the problem.

For those who test the beta, you must reselect your key file at each unlock.

Bob-465 commented 3 years ago

I reported the same problem last night. I also found the solution. The problem lies in using the key file. Reselecting the key file currently solves the problem.

J-Jamet commented 3 years ago

Version 3.0.0_beta02 fixes this issue.