keepass2android
keepass2android copied to clipboard
Failure to open DB on Android 12
There are two issues that are closely related.
Have "offline" Keepass on Windows laptop and Android phone. Databases are shared by sideloading onto the phone via USB. These files open on laptop and used to open on Galaxy 9.
Switched from a Galaxy 9 to a Galaxy 22 Ultra. Installed current Keepass on the 22.
A kdbx file was side loaded from laptop into "/android/data/keepass2android.keepass2android_nonet/files".
Issue #1: Attempts to open the file by using "Open" dialog and the "System file picker" or "Receive from another app" fail - the app cannot list the contents of /android/data (after hitting "allow" to grant file access), so it cannot access the kdbx files. Attempting to save the kdbx files to "Documents" or "Downloads" or any other location also failed - the app can access the directory but does see the kdbx file there.
Issue #1 was circumvented by using File Explorer to "open" the kdbx file from "/android/.../files", thereby launching Keepass. This was successful. After that, several attempts to open the same file by selecting it from the recently used list were successful.
Issue #2: Exit the File Explorer. Now attempts to open the same file (there have been NO writes or saves to the file) start failing with "EFAULT (bad address)". Sometimes the error changes to "File header is corrupted, less data was read than...". Also seen: "Could not access source file, read failed (bad address). Loaded from internal cache" on app launch.
Closing the app or killing the app process does not help.
In such failed state, opening a File Explorer, navigating to the kbdx file, and opening it (launching Keepass) fixes the failure, until Explorer is exited.
Android: 12 One UI: 4.1 Keepass: 1.08d-r5
I enabled log file, but hitting "Send debug log" does nothing.