keepass2android icon indicating copy to clipboard operation
keepass2android copied to clipboard

[BUG] App only opens every other attempt

Open tobiasneuschaefer opened this issue 1 month ago • 2 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:

When the app is on the Unlock database screen it only opens every 2nd time I try to press the button to open it from the home screen or the app drawer. Every other time an animation plays, but the app does not open.

When I'm in the settings screen inside the app or have unlocked my database I can open the app from the home screen just fine every time. Switching to it via the recent apps menu also works every time, no matter what state the app is in.

I have enabled "Always show crash dialogue" in the developer options, but there's no crash dialogue when the app doesn't open.

This is a new phone, running HyperOS 3.0.4.0 on Android 16. My previous phone running Android 11 with the same app version does not experience this issue. I also disabled battery restrictions for this app, no change in behaviour.

https://github.com/user-attachments/assets/6451eaad-3863-469d-9ac1-6865e23b6b5d

Describe what you expected to happen:

No response

What version of Keepass2Android are you using?

1.14-r4

Which version of Android are you on?

16

tobiasneuschaefer avatar Dec 03 '25 14:12 tobiasneuschaefer

I have never seen this. Can you enable debug logging and see if the log has any hints? Logcat might be even more informative.

PhilippC avatar Dec 08 '25 08:12 PhilippC

Annotated debug log file below.

There's clearly tasks that are not being executed on the unsuccessful opening attempts, specifically this sequence is missing at the beginning of unsuccesful attempts:

KeePass.OnCreate
KeePass:apptask=
Loaded task keepass2android.NullTask
Task in activity KeePass 0 changed to NullTask
KeePass.OnCreate
KeePass.OnStart
KeePass.OnStart

The logcat output filtered by the pid of the keepass2android process doesn't show anything else on unsuccesful opening attemps.

I've found a workaround using the app Activity Launcher to create a shortcut for the default Keepass2Android activity and clicking that to open the app from the home screen works every time without fail.

Keepass2Android.txt

tobiasneuschaefer avatar Dec 08 '25 13:12 tobiasneuschaefer