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.78k stars 276 forks source link

I can't open my database on version 4.0.7 #1848

Closed vivadavid closed 5 months ago

vivadavid commented 5 months ago

Describe the bug

I can't open my database.

To Reproduce

  1. I use my fingerprint or my password to open my database.
  2. After some short processing, nothing happens.

KeePass Database

KeePassDX:

Android:

Additional context

After uninstalling 4.0.7 and installing again 4.0.6, I can open my database.

Denio-7 commented 5 months ago

I second this. All is the same, build - free. Android 9, MIUI Chinese stock, Redmi Note 7 Pro

jjo21631 commented 5 months ago

Same here. Had to load old version. Play Store version fails, Free fails and Libre fails.

J-Jamet commented 5 months ago

@jjo21631 What is your device?

I'll have to find out what the problem is, as I'd tested several versions of Android with no problems.

SanskritFritz commented 5 months ago

LineageOS 18.1 (Android 11) here on Galaxy S7. Same problem. I see a pattern here, we use a very old version of Android. UPDATE: attached logs, hope that helps. logs-2024-06-18-08-41-35.zip

jjo21631 commented 5 months ago

@jjo21631 What is your device?

OnePlus N10 5G running Android 11

dasima4396 commented 5 months ago

Same here!Android 10 huawei.Have to go back to 4.0.6 for it to work And when I put the same database and same version app on my other phone which is android13,everything's normal again. It does have something to do with the Android version

nichousha123 commented 5 months ago

Same here!Android 10 huawei.Have to go back to 4.0.6 for it to work And when I put the same database and same version app on my other phone which is android13,everything's normal again. It does have something to do with the Android version

The same 4.0.7 version installation package was installed on two mobile phones. The first one is currently in use: vivo x60, Android 11, and the database cannot be opened The second old phone: Huawei nova2, Android 8, everything is normal

J-Jamet commented 5 months ago

Thanks @SanskritFritz , it's very useful.

06-18 08:40:17.631 E/AndroidRuntime(439): Process: com.kunzisoft.keepass.libre, PID: 439
06-18 08:40:17.631 E/AndroidRuntime(439): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kunzisoft.keepass.libre/com.kunzisoft.keepass.activities.GroupActivity}: java.lang.ClassCastException: android.content.res.TypedArray cannot be cast to java.lang.AutoCloseable
06-18 08:40:17.631 E/AndroidRuntime(439):   at com.kunzisoft.keepass.view.ViewUtilKt.setTransparentNavigationBar(ViewUtil.kt:311)
06-18 08:40:17.631 E/AndroidRuntime(439):   at com.kunzisoft.keepass.activities.GroupActivity.onCreate(GroupActivity.kt:295)
06-18 08:40:17.635 W/ActivityTaskManager(3768):   Force finishing activity com.kunzisoft.keepass.libre/com.kunzisoft.keepass.activities.GroupActivity

There seems to be a graphical bug on some versions of android (a weird cast), especially on version 11 apparently. I'm trying to reproduce the problem on my end by downloading a version of API 30 on my emulator.

J-Jamet commented 5 months ago

I've just found it's this code that doesn't work on some versions:

this.window.statusBarColor = obtainStyledAttributes(intArrayOf(R.attr.colorSurface)).use {
                it.getColor(0, Color.GRAY)
            }

I'm trying a patch and a redeployment

vivadavid commented 5 months ago

Fixed for me on 4.0.8! Thanks!

Denio-7 commented 5 months ago

Everything is fine in 4.0.8, thanks for the quick fix!

SanskritFritz commented 5 months ago

Man that was fixed quickly, thank you!