PhilippC / keepass2android

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

keepass2android attempts to open autohotkey script #2219

Open amosbaker opened 1 year ago

amosbaker commented 1 year ago

I use autohotkey to remap a handful of keys on my computer, I store the related script in google drive (autohotkey.ahk) For reasons I cannot discern when I attempt to inspect this file from my phone keepass2android seems to think it should intervene and asks me for the password to unlock the imagined database.

Normally I would attach a screenshot but I discovered the app actually prevents it.

Steps to reproduce:

hyproman commented 1 year ago

I've taken a look through the codebase and cannot find any indication that .ahk file would be automatically associated with Keepass2Android.

When I try to reproduce this, I get an "Open with" prompt with a few app options. Interestingly, K2P is in the list (not sure how the system picks these suggestions). The only thing I can think of is that maybe at some point you've accidentally selected K2P from that list and also selected to Always open this type of file with K2P.

Can you try going to Android Settings -> Apps -> tap Keepass2Android (you may need to first tap "See all nnn Apps") -> Open By Default. Hopefully under "Other default preferences" there is a "Clear default preferences" button. If so, try tapping that and see if the problem still occurs.

amosbaker commented 1 year ago

Odd, I neglected to mention I had already verified this. I have also cleared all app data and reinstalled the app but still see the same behavior. Screenshot (Feb 13, 2023 11 47 16)