keepass2android icon indicating copy to clipboard operation
keepass2android copied to clipboard

[BUG] Keyfile raises fail password

Open schweigerson opened this issue 7 months ago • 9 comments

Checks

  • [x] I have read the FAQ section, searched the open issues, and still think this is a new bug.

Describe the bug you encountered:

Since yesterday, I cannot decrypt the kdbx file anymore on my Google Pixel 10 with Android 16. I'm using a Password with Keyfile. I can open the file on my PC with password and the Keyfile. I have made a fresh copy of both files from my PC to the Phone, did not help. I also have tried other Keepass apps, it didn't work as well. Then I changed the kdbx-database-file (on the PC) from password with Keyfile to password only and opened the new database. Now it works again.

Describe what you expected to happen:

I still want to use a Keyfile. Is there a bug on Android 16 while calculating the decryption with a Keyfile? Can you please check if there is a possibility for a workaround for Keepass2Android? Thanks, Manfred

What version of Keepass2Android are you using?

1.14-r4

Which version of Android are you on?

16

schweigerson avatar Apr 05 '26 13:04 schweigerson

What type of keyfile are you using?

Also, sending a log would help. Enable logging under settings -> app -> logging file (for debugging). Try unlocking the database with your password and keyfile again. If it fails again, now you have a log that you can send in here.

VinVel avatar Apr 05 '26 14:04 VinVel

Hi VinVel,

I'm using a jpg-file as keyfile. The database is (successfully) read via nextcloud from a server, the keyfile has freshly been copied again from my PC to the Pixel 10 Phone. Here is the logfile after trying to decrypt the database with password and keyfile:

05.04.2026 18:22:30:797 -- DatabaseSettingsActivity.OnPause 25 05.04.2026 18:22:30:802 -- Timeout start 05.04.2026 18:22:30:812 -- GroupActivity.OnStart 24 05.04.2026 18:22:30:813 -- GroupActivity.OnResume 24 05.04.2026 18:22:30:813 -- DatabaseIsUnlocked=True 24 05.04.2026 18:22:30:814 -- Timeout cancel 05.04.2026 18:22:31:345 -- DatabaseSettingsActivity.OnStop 25 05.04.2026 18:22:31:349 -- DatabaseSettingsActivity.OnDestroyTrue 25 05.04.2026 18:22:33:974 -- GroupActivity.OnPause 24 05.04.2026 18:22:33:976 -- Timeout start 05.04.2026 18:22:33:989 -- SelectCurrentDbActivity.OnStart 22 05.04.2026 18:22:33:991 -- SelectCurrentDbActivity 22: OnActivityResult FirstUser/0 05.04.2026 18:22:33:991 -- AppTask keepass2android.NullTask in OnActivityResult 05.04.2026 18:22:33:992 -- Task in activity SelectCurrentDbActivity 22 changed to NullTask 05.04.2026 18:22:33:993 -- Task in activity SelectCurrentDbActivity 22 changed to NullTask 05.04.2026 18:22:33:993 -- Finishing SelectCurrentDbActivity 22 05.04.2026 18:22:33:997 -- Finishing SelectCurrentDbActivity 22 05.04.2026 18:22:35:81 -- GroupActivity.OnStop 24 05.04.2026 18:22:35:83 -- GroupActivity.OnDestroyTrue 24 05.04.2026 18:22:35:122 -- SelectCurrentDbActivity.OnStop 22 05.04.2026 18:22:35:123 -- SelectCurrentDbActivity.OnDestroyTrue 22 05.04.2026 18:23:15:35 -- KeePass.OnCreate 26 05.04.2026 18:23:15:35 -- KeePass:apptask= 26 05.04.2026 18:23:15:35 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:15:35 -- Task in activity KeePass 26 changed to NullTask 05.04.2026 18:23:15:35 -- KeePass.OnCreate 05.04.2026 18:23:15:37 -- KeePass.OnStart 26 05.04.2026 18:23:15:37 -- KeePass.OnStart 05.04.2026 18:23:15:52 -- SelectCurrentDbActivity.OnCreate 27 05.04.2026 18:23:15:52 -- SelectCurrentDbActivity:apptask= 27 05.04.2026 18:23:15:54 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:15:54 -- Task in activity SelectCurrentDbActivity 27 changed to NullTask 05.04.2026 18:23:15:55 -- SelectCurrentDbActivity.OnStart 27 05.04.2026 18:23:15:56 -- SelectCurrentDbActivity.OnResume 27 05.04.2026 18:23:15:56 -- DatabaseIsUnlocked=True 27 05.04.2026 18:23:15:61 -- SelectCurrentDbActivity.OnPause 27 05.04.2026 18:23:15:67 -- GroupActivity.OnCreate 28 05.04.2026 18:23:15:67 -- GroupActivity:apptask= 28 05.04.2026 18:23:15:68 -- Setting FLAG_SECURE. 05.04.2026 18:23:15:68 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:15:68 -- Task in activity GroupActivity 28 changed to NullTask 05.04.2026 18:23:15:80 -- GroupActivity.OnStart 28 05.04.2026 18:23:15:80 -- GroupActivity.OnResume 28 05.04.2026 18:23:15:80 -- DatabaseIsUnlocked=True 28 05.04.2026 18:23:15:80 -- Timeout cancel 05.04.2026 18:23:15:574 -- KeePass.OnStop 26 05.04.2026 18:23:15:574 -- KeePass.OnDestroyTrue 05.04.2026 18:23:15:575 -- KeePass.OnDestroyTrue 26 05.04.2026 18:23:15:577 -- SelectCurrentDbActivity.OnStop 27 05.04.2026 18:23:19:485 -- GroupActivity.OnPause 28 05.04.2026 18:23:19:486 -- Timeout start 05.04.2026 18:23:19:491 -- GroupActivity.OnCreate 29 05.04.2026 18:23:19:492 -- GroupActivity:apptask= 29 05.04.2026 18:23:19:492 -- Setting FLAG_SECURE. 05.04.2026 18:23:19:492 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:19:492 -- Task in activity GroupActivity 29 changed to NullTask 05.04.2026 18:23:19:505 -- GroupActivity.OnStart 29 05.04.2026 18:23:19:505 -- GroupActivity.OnResume 29 05.04.2026 18:23:19:505 -- DatabaseIsUnlocked=True 29 05.04.2026 18:23:19:505 -- Timeout cancel 05.04.2026 18:23:20:22 -- GroupActivity.OnStop 28 05.04.2026 18:23:22:178 -- GroupActivity.OnPause 29 05.04.2026 18:23:22:179 -- Timeout start 05.04.2026 18:23:22:186 -- GroupActivity.OnCreate 30 05.04.2026 18:23:22:186 -- GroupActivity:apptask= 30 05.04.2026 18:23:22:186 -- Setting FLAG_SECURE. 05.04.2026 18:23:22:187 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:22:187 -- Task in activity GroupActivity 30 changed to NullTask 05.04.2026 18:23:22:197 -- GroupActivity.OnStart 30 05.04.2026 18:23:22:197 -- GroupActivity.OnResume 30 05.04.2026 18:23:22:197 -- DatabaseIsUnlocked=True 30 05.04.2026 18:23:22:197 -- Timeout cancel 05.04.2026 18:23:22:709 -- GroupActivity.OnStop 29 05.04.2026 18:23:26:8 -- GroupActivity.OnPause 30 05.04.2026 18:23:26:8 -- Timeout start 05.04.2026 18:23:26:18 -- EntryActivity.OnCreate 31 05.04.2026 18:23:26:18 -- EntryActivity:apptask= 31 05.04.2026 18:23:26:18 -- Setting FLAG_SECURE. 05.04.2026 18:23:26:28 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:26:28 -- Task in activity EntryActivity 31 changed to NullTask 05.04.2026 18:23:26:35 -- EntryActivity.OnStart 31 05.04.2026 18:23:26:35 -- EntryActivity.OnResume 31 05.04.2026 18:23:26:35 -- DatabaseIsUnlocked=True 31 05.04.2026 18:23:26:36 -- Timeout cancel 05.04.2026 18:23:26:51 -- Received intent to provide access to entry 05.04.2026 18:23:26:53 -- Create Combined Notifications: True True True False 05.04.2026 18:23:26:542 -- GroupActivity.OnStop 30 05.04.2026 18:23:27:374 -- EntryActivity.OnPause 31 05.04.2026 18:23:27:375 -- Timeout start 05.04.2026 18:23:27:384 -- GroupActivity.OnStart 30 05.04.2026 18:23:27:384 -- LockingActivity: OnActivityResult 05.04.2026 18:23:27:385 -- TryGetFromActivityResult: no data 05.04.2026 18:23:27:385 -- GroupActivity.OnResume 30 05.04.2026 18:23:27:385 -- DatabaseIsUnlocked=True 30 05.04.2026 18:23:27:386 -- Timeout cancel 05.04.2026 18:23:27:886 -- EntryActivity.OnStop 31 05.04.2026 18:23:27:891 -- EntryActivity.OnDestroyTrue 31 05.04.2026 18:23:28:683 -- GroupActivity.OnPause 30 05.04.2026 18:23:28:683 -- Timeout start 05.04.2026 18:23:28:690 -- EntryActivity.OnCreate 32 05.04.2026 18:23:28:690 -- EntryActivity:apptask= 32 05.04.2026 18:23:28:690 -- Setting FLAG_SECURE. 05.04.2026 18:23:28:699 -- Loaded task keepass2android.NullTask 05.04.2026 18:23:28:699 -- Task in activity EntryActivity 32 changed to NullTask 05.04.2026 18:23:28:708 -- EntryActivity.OnStart 32 05.04.2026 18:23:28:708 -- EntryActivity.OnResume 32 05.04.2026 18:23:28:709 -- DatabaseIsUnlocked=True 32 05.04.2026 18:23:28:709 -- Timeout cancel 05.04.2026 18:23:28:726 -- Received intent to provide access to entry 05.04.2026 18:23:28:727 -- Create Combined Notifications: True True True False 05.04.2026 18:23:29:217 -- GroupActivity.OnStop 30 05.04.2026 18:23:38:390 -- Received intent to provide access to entry 05.04.2026 18:23:41:50 -- EntryActivity.OnPause 32 05.04.2026 18:23:41:51 -- Timeout start 05.04.2026 18:23:41:451 -- EntryActivity.OnStop 32 05.04.2026 18:23:45:50 -- EntryActivity.OnStart 32 05.04.2026 18:23:45:50 -- EntryActivity.OnResume 32 05.04.2026 18:23:45:50 -- DatabaseIsUnlocked=True 32 05.04.2026 18:23:45:50 -- Timeout cancel 05.04.2026 18:23:51:452 -- Received intent to provide access to entry 05.04.2026 18:23:52:635 -- EntryActivity.OnPause 32 05.04.2026 18:23:52:635 -- Timeout start 05.04.2026 18:23:53:11 -- EntryActivity.OnStop 32 05.04.2026 18:24:00:159 -- EntryActivity.OnStart 32 05.04.2026 18:24:00:159 -- EntryActivity.OnResume 32 05.04.2026 18:24:00:159 -- DatabaseIsUnlocked=True 32 05.04.2026 18:24:00:160 -- Timeout cancel 05.04.2026 18:24:03:41 -- Received intent to provide access to entry 05.04.2026 18:24:04:210 -- EntryActivity.OnPause 32 05.04.2026 18:24:04:210 -- Timeout start 05.04.2026 18:24:04:586 -- EntryActivity.OnStop 32 05.04.2026 18:24:11:2 -- EntryActivity.OnStart 32 05.04.2026 18:24:11:2 -- EntryActivity.OnResume 32 05.04.2026 18:24:11:2 -- DatabaseIsUnlocked=True 32 05.04.2026 18:24:11:2 -- Timeout cancel 05.04.2026 18:24:16:526 -- EntryActivity.OnPause 32 05.04.2026 18:24:16:527 -- Timeout start 05.04.2026 18:24:16:536 -- GroupActivity.OnStart 30 05.04.2026 18:24:16:536 -- LockingActivity: OnActivityResult 05.04.2026 18:24:16:536 -- TryGetFromActivityResult: no data 05.04.2026 18:24:16:537 -- GroupActivity.OnResume 30 05.04.2026 18:24:16:537 -- DatabaseIsUnlocked=True 30 05.04.2026 18:24:16:537 -- Timeout cancel 05.04.2026 18:24:17:78 -- EntryActivity.OnStop 32 05.04.2026 18:24:17:83 -- EntryActivity.OnDestroyTrue 32 05.04.2026 18:24:17:440 -- GroupActivity.OnPause 30 05.04.2026 18:24:17:441 -- Timeout start 05.04.2026 18:24:17:450 -- GroupActivity.OnStart 29 05.04.2026 18:24:17:451 -- LockingActivity: OnActivityResult 05.04.2026 18:24:17:451 -- AppTask keepass2android.NullTask in OnActivityResult 05.04.2026 18:24:17:451 -- Task in activity GroupActivity 29 changed to NullTask 05.04.2026 18:24:17:452 -- GroupActivity.OnResume 29 05.04.2026 18:24:17:452 -- DatabaseIsUnlocked=True 29 05.04.2026 18:24:17:452 -- Timeout cancel 05.04.2026 18:24:17:980 -- GroupActivity.OnStop 30 05.04.2026 18:24:17:982 -- GroupActivity.OnDestroyTrue 30 05.04.2026 18:24:21:881 -- GroupActivity.OnPause 29 05.04.2026 18:24:21:881 -- Timeout start 05.04.2026 18:24:21:891 -- GroupActivity.OnStart 28 05.04.2026 18:24:21:892 -- LockingActivity: OnActivityResult 05.04.2026 18:24:21:892 -- AppTask keepass2android.NullTask in OnActivityResult 05.04.2026 18:24:21:892 -- Task in activity GroupActivity 28 changed to NullTask 05.04.2026 18:24:21:893 -- GroupActivity.OnResume 28 05.04.2026 18:24:21:893 -- DatabaseIsUnlocked=True 28 05.04.2026 18:24:21:893 -- Timeout cancel 05.04.2026 18:24:22:417 -- GroupActivity.OnStop 29 05.04.2026 18:24:22:419 -- GroupActivity.OnDestroyTrue 29 05.04.2026 18:24:26:231 -- GroupActivity.OnPause 28 05.04.2026 18:24:26:232 -- Timeout start 05.04.2026 18:24:26:250 -- SelectCurrentDbActivity.OnStart 27 05.04.2026 18:24:26:256 -- SelectCurrentDbActivity 27: OnActivityResult 11/0 05.04.2026 18:24:26:258 -- AppTask keepass2android.NullTask in OnActivityResult 05.04.2026 18:24:26:258 -- Task in activity SelectCurrentDbActivity 27 changed to NullTask 05.04.2026 18:24:26:270 -- SelectCurrentDbActivity.OnResume 27 05.04.2026 18:24:26:270 -- DatabaseIsUnlocked=True 27 05.04.2026 18:24:26:270 -- SelectCurrentDbActivity.OnResume 27 05.04.2026 18:24:26:270 -- DatabaseIsUnlocked=True 27 05.04.2026 18:24:26:285 -- SelectCurrentDbActivity.OnPause 27 05.04.2026 18:24:26:294 -- FileSelect.OnCreate 05.04.2026 18:24:26:309 -- FileSelect.OnStart 05.04.2026 18:24:26:309 -- FileSelect.OnResume 05.04.2026 18:24:26:821 -- GroupActivity.OnStop 28 05.04.2026 18:24:26:822 -- GroupActivity.OnDestroyTrue 28 05.04.2026 18:24:26:867 -- SelectCurrentDbActivity.OnStop 27 05.04.2026 18:24:27:677 -- FileSelect.OnPause 05.04.2026 18:24:27:681 -- SelectStorageLocationActivity.OnCreate 05.04.2026 18:24:28:221 -- FileSelect.OnStop 05.04.2026 18:24:31:296 -- onAR 05.04.2026 18:24:31:297 -- base.onAR 05.04.2026 18:24:40:986 -- parsing autofillStructure... 05.04.2026 18:24:40:988 -- Parsing done 05.04.2026 18:24:40:988 -- cannot autofill 05.04.2026 18:25:25:71 -- System.IO.FileNotFoundException: Exception_WasThrown, Java.IO.FileNotFoundException ---> Java.IO.FileNotFoundException: Exception_WasThrown, Java.IO.FileNotFoundException at Java.Interop.JniEnvironment.InstanceMethods.CallObjectMethod(JniObjectReference , JniMethodInfo , JniArgumentValue* ) at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualObjectMethod(String , IJavaPeerable , JniArgumentValue* ) at Keepass2android.Javafilestorage.WebDavStorage.GetFileEntry(String filename) at keepass2android.Io.JavaFileStorage.GetFileDescription(IOConnectionInfo ioc) --- End of managed Java.IO.FileNotFoundException stack trace --- java.io.FileNotFoundException at keepass2android.javafilestorage.WebDavStorage.checkStatus(WebDavStorage.java:486) at keepass2android.javafilestorage.WebDavStorage.listFiles(WebDavStorage.java:383) at keepass2android.javafilestorage.WebDavStorage.getFileEntry(WebDavStorage.java:500) at crc64c98c008c0cd742cb.FileChooserFileProvider.n_getFileEntry(Native Method) at crc64c98c008c0cd742cb.FileChooserFileProvider.getFileEntry(FileChooserFileProvider.java:53) at keepass2android.kp2afilechooser.Kp2aFileProvider.getFileEntryCached(Kp2aFileProvider.java:600) at keepass2android.kp2afilechooser.Kp2aFileProvider.doAnswerApiCommand(Kp2aFileProvider.java:314) at keepass2android.kp2afilechooser.Kp2aFileProvider.query(Kp2aFileProvider.java:203) at android.content.ContentProvider.query(ContentProvider.java:1670) at android.content.ContentProvider.query(ContentProvider.java:1766) at android.content.ContentProvider$Transport.query(ContentProvider.java:304) at android.content.ContentResolver.query(ContentResolver.java:1269) at android.content.ContentResolver.query(ContentResolver.java:1200) at android.content.ContentResolver.query(ContentResolver.java:1155) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:2021) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:1986) at android.os.AsyncTask$3.call(AsyncTask.java:396) at java.util.concurrent.FutureTask.run(FutureTask.java:317) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652) at java.lang.Thread.run(Thread.java:1564)

--- End of managed Java.IO.FileNotFoundException stack trace --- java.io.FileNotFoundException at keepass2android.javafilestorage.WebDavStorage.checkStatus(WebDavStorage.java:486) at keepass2android.javafilestorage.WebDavStorage.listFiles(WebDavStorage.java:383) at keepass2android.javafilestorage.WebDavStorage.getFileEntry(WebDavStorage.java:500) at crc64c98c008c0cd742cb.FileChooserFileProvider.n_getFileEntry(Native Method) at crc64c98c008c0cd742cb.FileChooserFileProvider.getFileEntry(FileChooserFileProvider.java:53) at keepass2android.kp2afilechooser.Kp2aFileProvider.getFileEntryCached(Kp2aFileProvider.java:600) at keepass2android.kp2afilechooser.Kp2aFileProvider.doAnswerApiCommand(Kp2aFileProvider.java:314) at keepass2android.kp2afilechooser.Kp2aFileProvider.query(Kp2aFileProvider.java:203) at android.content.ContentProvider.query(ContentProvider.java:1670) at android.content.ContentProvider.query(ContentProvider.java:1766) at android.content.ContentProvider$Transport.query(ContentProvider.java:304) at android.content.ContentResolver.query(ContentResolver.java:1269) at android.content.ContentResolver.query(ContentResolver.java:1200) at android.content.ContentResolver.query(ContentResolver.java:1155) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:2021) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:1986) at android.os.AsyncTask$3.call(AsyncTask.java:396) at java.util.concurrent.FutureTask.run(FutureTask.java:317) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652) at java.lang.Thread.run(Thread.java:1564)

at keepass2android.Io.JavaFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.Io.OfflineSwitchableFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.Io.CachingFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.FileChooserFileProvider.GetFileEntry(String filename, StringBuilder errorMessageBuilder) 05.04.2026 18:25:39:926 -- System.IO.FileNotFoundException: Exception_WasThrown, Java.IO.FileNotFoundException ---> Java.IO.FileNotFoundException: Exception_WasThrown, Java.IO.FileNotFoundException at Java.Interop.JniEnvironment.InstanceMethods.CallObjectMethod(JniObjectReference , JniMethodInfo , JniArgumentValue* ) at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualObjectMethod(String , IJavaPeerable , JniArgumentValue* ) at Keepass2android.Javafilestorage.WebDavStorage.GetFileEntry(String filename) at keepass2android.Io.JavaFileStorage.GetFileDescription(IOConnectionInfo ioc) --- End of managed Java.IO.FileNotFoundException stack trace --- java.io.FileNotFoundException at keepass2android.javafilestorage.WebDavStorage.checkStatus(WebDavStorage.java:486) at keepass2android.javafilestorage.WebDavStorage.listFiles(WebDavStorage.java:383) at keepass2android.javafilestorage.WebDavStorage.getFileEntry(WebDavStorage.java:500) at crc64c98c008c0cd742cb.FileChooserFileProvider.n_getFileEntry(Native Method) at crc64c98c008c0cd742cb.FileChooserFileProvider.getFileEntry(FileChooserFileProvider.java:53) at keepass2android.kp2afilechooser.Kp2aFileProvider.getFileEntryCached(Kp2aFileProvider.java:600) at keepass2android.kp2afilechooser.Kp2aFileProvider.doAnswerApiCommand(Kp2aFileProvider.java:314) at keepass2android.kp2afilechooser.Kp2aFileProvider.query(Kp2aFileProvider.java:203) at android.content.ContentProvider.query(ContentProvider.java:1670) at android.content.ContentProvider.query(ContentProvider.java:1766) at android.content.ContentProvider$Transport.query(ContentProvider.java:304) at android.content.ContentResolver.query(ContentResolver.java:1269) at android.content.ContentResolver.query(ContentResolver.java:1200) at android.content.ContentResolver.query(ContentResolver.java:1155) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:2021) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:1986) at android.os.AsyncTask$3.call(AsyncTask.java:396) at java.util.concurrent.FutureTask.run(FutureTask.java:317) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652) at java.lang.Thread.run(Thread.java:1564)

--- End of managed Java.IO.FileNotFoundException stack trace --- java.io.FileNotFoundException at keepass2android.javafilestorage.WebDavStorage.checkStatus(WebDavStorage.java:486) at keepass2android.javafilestorage.WebDavStorage.listFiles(WebDavStorage.java:383) at keepass2android.javafilestorage.WebDavStorage.getFileEntry(WebDavStorage.java:500) at crc64c98c008c0cd742cb.FileChooserFileProvider.n_getFileEntry(Native Method) at crc64c98c008c0cd742cb.FileChooserFileProvider.getFileEntry(FileChooserFileProvider.java:53) at keepass2android.kp2afilechooser.Kp2aFileProvider.getFileEntryCached(Kp2aFileProvider.java:600) at keepass2android.kp2afilechooser.Kp2aFileProvider.doAnswerApiCommand(Kp2aFileProvider.java:314) at keepass2android.kp2afilechooser.Kp2aFileProvider.query(Kp2aFileProvider.java:203) at android.content.ContentProvider.query(ContentProvider.java:1670) at android.content.ContentProvider.query(ContentProvider.java:1766) at android.content.ContentProvider$Transport.query(ContentProvider.java:304) at android.content.ContentResolver.query(ContentResolver.java:1269) at android.content.ContentResolver.query(ContentResolver.java:1200) at android.content.ContentResolver.query(ContentResolver.java:1155) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:2021) at group.pals.android.lib.ui.filechooser.FragmentFiles$21.doInBackground(FragmentFiles.java:1986) at android.os.AsyncTask$3.call(AsyncTask.java:396) at java.util.concurrent.FutureTask.run(FutureTask.java:317) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652) at java.lang.Thread.run(Thread.java:1564)

at keepass2android.Io.JavaFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.Io.OfflineSwitchableFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.Io.CachingFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.FileChooserFileProvider.GetFileEntry(String filename, StringBuilder errorMessageBuilder) 05.04.2026 18:25:50:772 -- System.IO.FileNotFoundException: Exception_WasThrown, Java.IO.FileNotFoundException ---> Java.IO.FileNotFoundException: Exception_WasThrown, Java.IO.FileNotFoundException at Java.Interop.JniEnvironment.InstanceMethods.CallObjectMethod(JniObjectReference , JniMethodInfo , JniArgumentValue* ) at Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualObjectMethod(String , IJavaPeerable , JniArgumentValue* ) at Keepass2android.Javafilestorage.WebDavStorage.GetFileEntry(String filename) at keepass2android.Io.JavaFileStorage.GetFileDescription(IOConnectionInfo ioc) --- End of managed Java.IO.FileNotFoundException stack trace --- java.io.FileNotFoundException at keepass2android.javafilestorage.WebDavStorage.checkStatus(WebDavStorage.java:486) at keepass2android.javafilestorage.WebDavStorage.listFiles(WebDavStorage.java:383) at keepass2android.javafilestorage.WebDavStorage.getFileEntry(WebDavStorage.java:500) at crc64c98c008c0cd742cb.FileChooserFileProvider.n_getFileEntry(Native Method) at crc64c98c008c0cd742cb.FileChooserFileProvider.getFileEntry(FileChooserFileProvider.java:53) at keepass2android.kp2afilechooser.Kp2aFileProvider.getFileEntryCached(Kp2aFileProvider.java:600) at keepass2android.kp2afilechooser.Kp2aFileProvider.doAnswerApiCommand(Kp2aFileProvider.java:314) at keepass2android.kp2afilechooser.Kp2aFileProvider.query(Kp2aFileProvider.java:203) at android.content.ContentProvider.query(ContentProvider.java:1670) at android.content.ContentProvider.query(ContentProvider.java:1766) at android.content.ContentProvider$Transport.query(ContentProvider.java:304) at android.content.ContentResolver.query(ContentResolver.java:1269) at android.content.ContentResolver.query(ContentResolver.java:1200) at android.content.ContentResolver.query(ContentResolver.java:1155) at group.pals.android.lib.ui.filechooser.providers.BaseFileProviderUtils.getParentFile(BaseFileProviderUtils.java:592) at group.pals.android.lib.ui.filechooser.FragmentFiles$31.doInBackground(FragmentFiles.java:2391) at group.pals.android.lib.ui.filechooser.FragmentFiles$31.doInBackground(FragmentFiles.java:2363) at android.os.AsyncTask$3.call(AsyncTask.java:396) at java.util.concurrent.FutureTask.run(FutureTask.java:317) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652) at java.lang.Thread.run(Thread.java:1564)

--- End of managed Java.IO.FileNotFoundException stack trace --- java.io.FileNotFoundException at keepass2android.javafilestorage.WebDavStorage.checkStatus(WebDavStorage.java:486) at keepass2android.javafilestorage.WebDavStorage.listFiles(WebDavStorage.java:383) at keepass2android.javafilestorage.WebDavStorage.getFileEntry(WebDavStorage.java:500) at crc64c98c008c0cd742cb.FileChooserFileProvider.n_getFileEntry(Native Method) at crc64c98c008c0cd742cb.FileChooserFileProvider.getFileEntry(FileChooserFileProvider.java:53) at keepass2android.kp2afilechooser.Kp2aFileProvider.getFileEntryCached(Kp2aFileProvider.java:600) at keepass2android.kp2afilechooser.Kp2aFileProvider.doAnswerApiCommand(Kp2aFileProvider.java:314) at keepass2android.kp2afilechooser.Kp2aFileProvider.query(Kp2aFileProvider.java:203) at android.content.ContentProvider.query(ContentProvider.java:1670) at android.content.ContentProvider.query(ContentProvider.java:1766) at android.content.ContentProvider$Transport.query(ContentProvider.java:304) at android.content.ContentResolver.query(ContentResolver.java:1269) at android.content.ContentResolver.query(ContentResolver.java:1200) at android.content.ContentResolver.query(ContentResolver.java:1155) at group.pals.android.lib.ui.filechooser.providers.BaseFileProviderUtils.getParentFile(BaseFileProviderUtils.java:592) at group.pals.android.lib.ui.filechooser.FragmentFiles$31.doInBackground(FragmentFiles.java:2391) at group.pals.android.lib.ui.filechooser.FragmentFiles$31.doInBackground(FragmentFiles.java:2363) at android.os.AsyncTask$3.call(AsyncTask.java:396) at java.util.concurrent.FutureTask.run(FutureTask.java:317) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652) at java.lang.Thread.run(Thread.java:1564)

at keepass2android.Io.JavaFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.Io.OfflineSwitchableFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.Io.CachingFileStorage.GetFileDescription(IOConnectionInfo ioc) at keepass2android.FileChooserFileProvider.GetFileEntry(String filename, StringBuilder errorMessageBuilder) 05.04.2026 18:25:56:965 -- onAR 05.04.2026 18:25:56:965 -- base.onAR 05.04.2026 18:25:56:988 -- FileSelect.OnStart 05.04.2026 18:25:57:18 -- PasswordActivity.OnCreate 33 05.04.2026 18:25:57:18 -- PasswordActivity:apptask= 33 05.04.2026 18:25:57:18 -- Setting FLAG_SECURE. 05.04.2026 18:25:57:42 -- GetIocFromLaunchIntent() 05.04.2026 18:25:57:42 -- no keyprovider specified 05.04.2026 18:25:57:42 -- Reset keyfile 05.04.2026 18:25:57:44 -- PasswordActivity.OnStart 33 05.04.2026 18:25:57:44 -- PasswordActivity.OnResume 33 05.04.2026 18:25:57:45 -- DatabaseIsUnlocked=True 33 05.04.2026 18:25:57:45 -- Timeout cancel 05.04.2026 18:25:57:45 -- starting: True, Finishing: False, _performingLoad: False 05.04.2026 18:25:57:45 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx isCached = False 05.04.2026 18:25:57:46 -- Pre-loading database file starting 05.04.2026 18:25:57:47 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx isCached = False 05.04.2026 18:25:57:47 -- CFS: OpenWhenNoLocalChanges 05.04.2026 18:25:57:63 -- PasswordModeSpinner item selected: 0 05.04.2026 18:25:57:197 -- parsing autofillStructure... 05.04.2026 18:25:57:197 -- Parsing done 05.04.2026 18:25:57:197 -- cannot autofill 05.04.2026 18:25:57:570 -- FileSelect.OnStop 05.04.2026 18:25:57:613 -- FileSelect.OnDestroyTrue 05.04.2026 18:26:01:528 -- PasswordModeSpinner item selected: 1 05.04.2026 18:26:01:529 -- key file length before: 05.04.2026 18:26:01:529 -- key file length after: 0 05.04.2026 18:26:08:275 -- CFS: Updated Cache 05.04.2026 18:26:08:291 -- Pre-loading database file completed 05.04.2026 18:26:20:264 -- PasswordActivity.OnPause 33 05.04.2026 18:26:20:264 -- Timeout start 05.04.2026 18:26:20:268 -- SelectStorageLocationActivity.OnCreate 05.04.2026 18:26:20:792 -- PasswordActivity.OnStop 33 05.04.2026 18:26:22:638 -- onAR 05.04.2026 18:26:22:638 -- base.onAR 05.04.2026 18:26:22:649 -- com.google.android.documentsui 05.04.2026 18:26:22:649 -- com.cxinventor.file.explorer 05.04.2026 18:26:29:550 -- onAR 05.04.2026 18:26:29:551 -- base.onAR 05.04.2026 18:26:29:563 -- TakePersistableUriPermission 05.04.2026 18:26:29:587 -- PasswordActivity.OnStart 33 05.04.2026 18:26:29:588 -- LockingActivity: OnActivityResult 05.04.2026 18:26:29:589 -- PasswordActivity.OnActivityResult Ok/1003 05.04.2026 18:26:29:589 -- Set keyfile after returning from RequestCodeSelectKeyfile 05.04.2026 18:26:29:603 -- PasswordActivity.OnResume 33 05.04.2026 18:26:29:604 -- DatabaseIsUnlocked=True 33 05.04.2026 18:26:29:604 -- Timeout cancel 05.04.2026 18:26:29:605 -- starting: True, Finishing: False, _performingLoad: False 05.04.2026 18:26:29:606 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx isCached = True 05.04.2026 18:26:36:285 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx isCached = True 05.04.2026 18:26:36:285 -- LockingActivity: OnActivityResult 05.04.2026 18:26:36:285 -- PasswordActivity.OnActivityResult 874348/1000 05.04.2026 18:26:36:294 -- content://170110_085455_img_20170110_085454.jpg isCached = False 05.04.2026 18:26:36:295 -- LockingActivity: OnActivityResult 05.04.2026 18:26:36:296 -- PasswordActivity.OnActivityResult 874348/1004 05.04.2026 18:26:36:309 -- content://170110_085455_img_20170110_085454.jpg isCached = False 05.04.2026 18:26:36:309 -- CFS: OpenWhenNoLocalChanges 05.04.2026 18:26:36:412 -- CFS: Updated Cache 05.04.2026 18:26:36:599 -- status message: Initializing... 05.04.2026 18:26:36:600 -- status submessage: 05.04.2026 18:26:36:629 -- status message: Lade Datenbank… 05.04.2026 18:26:36:630 -- LoadDb: Copying database in memory 05.04.2026 18:26:36:634 -- LoadDb: Ready to start loading 05.04.2026 18:26:36:635 -- LoadDb: Copying database for backup 05.04.2026 18:26:36:639 -- LoadDb: Checking open databases 05.04.2026 18:26:36:641 -- LoadData: Retrieving stream 05.04.2026 18:26:36:641 -- LoadData: GetCurrentFileVersion 05.04.2026 18:26:36:641 -- LoadData: PopulateDatabaseFromStream 05.04.2026 18:26:36:642 -- Starting to load KDBX file... 05.04.2026 18:26:36:646 -- status submessage: Schlüsseltransformationen werden durchgeführt … 05.04.2026 18:26:53:207 -- PasswordActivity.OnPause 33 05.04.2026 18:26:53:208 -- Timeout start 05.04.2026 18:26:53:627 -- PasswordActivity.OnStop 33 05.04.2026 18:27:21:692 -- PasswordActivity.OnStart 33 05.04.2026 18:27:21:694 -- PasswordActivity.OnResume 33 05.04.2026 18:27:21:694 -- DatabaseIsUnlocked=True 33 05.04.2026 18:27:21:694 -- Timeout cancel 05.04.2026 18:27:21:696 -- starting: True, Finishing: False, _performingLoad: False 05.04.2026 18:27:21:697 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx isCached = True 05.04.2026 18:27:21:698 -- Pre-loading database file starting 05.04.2026 18:27:21:699 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx isCached = True 05.04.2026 18:27:21:703 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx localVersionHash = 72CBF34FAE88ECF4BAD8D1101C0F7D130C4557865052933E0DC79C2B799E0402 05.04.2026 18:27:21:705 -- https://www.domain-edited.com/myuser-edited/files/my-database.kdbx baseVersionHash = 72CBF34FAE88ECF4BAD8D1101C0F7D130C4557865052933E0DC79C2B799E0402 05.04.2026 18:27:21:705 -- CFS: OpenWhenNoLocalChanges 05.04.2026 18:27:21:705 -- CFS: hashing cached version 05.04.2026 18:27:27:490 -- PasswordActivity.OnPause 33 05.04.2026 18:27:27:490 -- Timeout start 05.04.2026 18:27:27:516 -- AppSettingsActivity.OnCreate 34 05.04.2026 18:27:27:516 -- AppSettingsActivity:apptask= 34 05.04.2026 18:27:27:519 -- AppSettingsActivity.OnStart 34 05.04.2026 18:27:27:519 -- AppSettingsActivity.OnResume 34 05.04.2026 18:27:27:519 -- DatabaseIsUnlocked=True 34 05.04.2026 18:27:27:519 -- Timeout cancel 05.04.2026 18:27:28:46 -- PasswordActivity.OnStop 33

Am 5. April 2026 16:07:49 MESZ schrieb VinVel @.***>:

VinVel left a comment (PhilippC/keepass2android#3211) https://github.com/PhilippC/keepass2android/issues/3211#issuecomment-4188944107

What type of keyfile are you using?

Also, sending a log would help. Enable logging under settings -> app -> logging file (for debugging). Try unlocking the database with your password and keyfile again. If it fails again, now you have a log that you can send in here.

— Reply to this email directly, view it on GitHub https://github.com/PhilippC/keepass2android/issues/3211#issuecomment-4188944107, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVL6L2UAVLD4NP36S2SYVD4UJSDLAVCNFSM6AAAAACXNIVK76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCOBYHE2DIMJQG4. You are receiving this because you authored the thread.Message ID: @.***>

schweigerson avatar Apr 05 '26 16:04 schweigerson

I remember there was a similar issue affecting pixel users. On pixel devices for whatever reason .jpg pictures get altered resulting in the inability to decrypt the .kdbx file.

From what I understand this can't be fixed because it is at fault of pixel devices modifying .jpg files.

As a workaround, change the extension ending from .jpg (original one) to anything else and it should work.

(see #1824 for more information)

VinVel avatar Apr 05 '26 16:04 VinVel

Hi VinVel,

you are RIGHT!

I've renamed the keyfile from *.jpg to *.jpg.key and transferred it from the PC to the Pixel phone. I've re-read the database from nextcloud and entered the passphrase. And - keepass2android could decrypt the database!!! I'm using the Pixel phone since 4 months, now it affects the jpg. BTW, on the PC I'm using KeePassXC, and if I would like to select a keyfile, it expects a file with the extension *.key. Now I know why... - *.jpg is not a good choice...

Thank you very much for this hint and for caring on Sunday! Happy Easter!

Regards, Manfred

VinVel @.***> hat am 05.04.2026 18:56 CEST geschrieben:

VinVel left a comment (PhilippC/keepass2android#3211) https://github.com/PhilippC/keepass2android/issues/3211#issuecomment-4189187316

I remember there was a similar issue affecting pixel users. On pixel devices for whatever reason .jpg pictures get altered resulting in the inability to decrypt the .kdbx file.

From what I understand this can't be fixed because it is at fault of pixel devices modifying .jpg files.

As a workaround, change the extension ending from .jpg (original one) to anything else and it should work.

(see #1824 https://github.com/PhilippC/keepass2android/issues/1824 for more information)

— Reply to this email directly, view it on GitHub https://github.com/PhilippC/keepass2android/issues/3211#issuecomment-4189187316, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVL6L2SJNQVTXZ6GFERDAL4UKF2DAVCNFSM6AAAAACXNIVK76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCOBZGE4DOMZRGY. You are receiving this because you authored the thread.Message ID: @.***>

schweigerson avatar Apr 05 '26 17:04 schweigerson

You're welcome. Happy easter :)

VinVel avatar Apr 05 '26 17:04 VinVel

Suggest adding "wontfix" (or "invalid") and closing this issue.

jeffmcneill avatar Apr 06 '26 00:04 jeffmcneill

@VinVel: The strange thing imho is that the key file on my Pixel phone and the key file on my PC are binary identical.

@schweigerson: I’m a bit unhappy about changing the file extension of a key file to *.key. After all, one of the advantages of using a common file extension is that it helps to disguise the fact that the file is a key file.

But yes - renaming holiday.jpg to holiday.key oder holiday.photo helps.

carpac avatar Apr 17 '26 11:04 carpac

Might be because Android removes the location from the EXIF data if the App does not have the ACCESS_MEDIA_LOCATION permission (see https://developer.android.com/training/data-storage/shared/media#media-location-permission).

sandrobraendli avatar Apr 20 '26 14:04 sandrobraendli

Same is happening to me on Samsung S23+. Also unlocking with picture as a keyfile stopped working all of a sudden on latest Android 16 and version 1.14-r4.

marcelser avatar Apr 30 '26 06:04 marcelser