PhilippC / keepass2android

Password manager app for Android
https://play.google.com/store/apps/details?id=keepass2android.keepass2android
GNU General Public License v3.0
4.62k stars 379 forks source link

Error opening database with "The file is corrupted. Less data than..." #2253

Open Tokolino opened 1 year ago

Tokolino commented 1 year ago

I am using Keepass2 Windows and keepass2android on a few devices, the passoword file comes from Google Drive and I use a keyfile which is stored locally. This works fine on any device, except for my girlfriends new S21 5G. When I try to open the database it says "The file is corrupted. Less data than..." and it won't open. I did several checks: As I shared the passwords database from my google account to hers, I checked the md5 checksum and it is the same. I also checked the checksum of the used keyfiles, and they are the same, too. So the files seem to be ok. Accessing the file from Google Drive seems to be no problem, too, as it confirms that the source file and the intermediate file (Zwischenspeicher in german) are the same.

Any idea what could be the problem?

Regards from Cologne, Thorsten

PhilippC commented 6 months ago

on the S21 which does not work, how exactly did you try to open the database? Through "Open database" => "Google Drive" or through "Open database" => "Android file browser"? You can also try to enable debug logging and check the checksums reported in the log?

Tokolino commented 6 months ago

It is opened via "Google Drive". The checksums seem to be the same. As I already stated, I checked the checksums of the password file and the keyfile, and they are all the same on all devices. KeepassAndroidDebug.log

And thank you for finally tackling this issue. It's a pity that the best app for KeePass I found so far does not work on this device...

Tokolino commented 4 months ago

@PhilippC Is there any work on this issue? I am willing to provide any assistance if needed.