Keepass2android: Entries with otp field aren't accessible via notification or keyboard

Created on 6 Dec 2018  路  7Comments  路  Source: PhilippC/keepass2android

Version 1.07-pre2 on Android 8.0

When opening an entry with an otp field from within KP2A, neither the KP2A keyboard notification nor the keyboard is shown. Well, as far as I can tell, both the notification and keyboard appear for a split second but disappear again.

When trying to access an entry "manually" via the KP2A keyboard (KP2A icon -> select (another) entry),

  • with keyboard switching enabled, it immediately switches back to the default input method
    or
  • with all keyboard switching options disabled, after selecting the entry, the KP2A keyboard doesn't acknowledge that in any way. No user/password buttons, nothing in the icon menu except select entry and search for entry.

So, the only way to access the user/pass/totp values of an entry with a otp string set is to manually copy each one to the clipboard.

I'll dig deeper if you can't reproduce this issue, just thought I'd try my luck with a superficial bug report first.

Edit: nothing relevant in logcat, unfortunately.

Most helpful comment

I also get that now. And when I switch to another app after selecting an entry with totp and the kp2a keyboard enabled, I get this when I click on the lock icon: menu

I've failed to generate any useful log output so far. Logcat doesn't have anything relevant and when I click on send log in kp2a, I get an empty file.

Android 8.0.0, HTC Sense, kp2a 1.07-pre3

Edit, managed to get a log file:

14/12/2018 10:37:30:750 -- Received intent to provide access to entry 14/12/2018 10:37:30:753 -- System.Exception: Invalid full id B96AE64556A1324A8E0CE27C89DB1278 at keepass2android.ElementAndDatabaseId..ctor (System.String fullId) [0x00029] in <31475b21916d405abfa3d0eebef15332>:0 at keepass2android.CopyToClipboardService.OnStartCommand (Android.Content.Intent intent, Android.App.StartCommandFlags flags, System.Int32 startId) [0x00094] in <be244601260241998172c7814435a9e6>:0 14/12/2018 10:37:30:763 -- CopyToClipboardService.OnDestroy 14/12/2018 10:37:30:766 -- Destroyed Show-Notification-Receiver. 14/12/2018 10:37:30:769 -- Received intent to provide access to entry 14/12/2018 10:37:34:394 -- EntryActivity.OnStart 14/12/2018 10:37:34:395 -- EntryActivity.OnResume 14/12/2018 10:37:34:396 -- DatabaseIsUnlocked=True 14/12/2018 10:37:34:397 -- Timeout cancel 14/12/2018 10:37:37:793 -- EntryActivity.OnPause 14/12/2018 10:37:37:794 -- Timeout start 14/12/2018 10:37:37:813 -- LockingActivity: OnActivityResult 14/12/2018 10:37:37:814 -- TryGetFromActivityResult: no data 14/12/2018 10:37:37:819 -- GroupActivity.OnStart 14/12/2018 10:37:37:821 -- GroupActivity.OnResume 14/12/2018 10:37:37:821 -- DatabaseIsUnlocked=True 14/12/2018 10:37:37:822 -- Timeout cancel 14/12/2018 10:37:38:173 -- EntryActivity.OnStop 14/12/2018 10:37:38:183 -- EntryActivity.OnDestroyTrue 14/12/2018 10:37:41:103 -- GroupActivity.OnPause 14/12/2018 10:37:41:105 -- Timeout start 14/12/2018 10:37:41:140 -- EntryActivity.OnCreate 14/12/2018 10:37:41:140 -- EntryActivity:apptask= 14/12/2018 10:37:41:169 -- Loaded task keepass2android.NullTask 14/12/2018 10:37:41:186 -- EntryActivity.OnStart 14/12/2018 10:37:41:189 -- EntryActivity.OnResume 14/12/2018 10:37:41:189 -- DatabaseIsUnlocked=True 14/12/2018 10:37:41:190 -- Timeout cancel 14/12/2018 10:37:41:203 -- Received intent to provide access to entry 14/12/2018 10:37:41:236 -- Received intent to provide access to entry 14/12/2018 10:37:41:238 -- System.Exception: Invalid full id B96AE64556A1324A8E0CE27C89DB1278 at keepass2android.ElementAndDatabaseId..ctor (System.String fullId) [0x00029] in <31475b21916d405abfa3d0eebef15332>:0 at keepass2android.CopyToClipboardService.OnStartCommand (Android.Content.Intent intent, Android.App.StartCommandFlags flags, System.Int32 startId) [0x00094] in <be244601260241998172c7814435a9e6>:0 14/12/2018 10:37:41:314 -- Did not find field with key STRING_Title 14/12/2018 10:37:41:319 -- CopyToClipboardService.OnDestroy 14/12/2018 10:37:41:322 -- Destroyed Show-Notification-Receiver. 14/12/2018 10:37:41:324 -- Received intent to provide access to entry

All 7 comments

I got exactly the same issue on v1.0.7-pre3. And for me, the keyboard buttons for entries without otp aren't displayed properly

screenshot_firefox_beta_20181213-224020

I also get that now. And when I switch to another app after selecting an entry with totp and the kp2a keyboard enabled, I get this when I click on the lock icon: menu

I've failed to generate any useful log output so far. Logcat doesn't have anything relevant and when I click on send log in kp2a, I get an empty file.

Android 8.0.0, HTC Sense, kp2a 1.07-pre3

Edit, managed to get a log file:

14/12/2018 10:37:30:750 -- Received intent to provide access to entry 14/12/2018 10:37:30:753 -- System.Exception: Invalid full id B96AE64556A1324A8E0CE27C89DB1278 at keepass2android.ElementAndDatabaseId..ctor (System.String fullId) [0x00029] in <31475b21916d405abfa3d0eebef15332>:0 at keepass2android.CopyToClipboardService.OnStartCommand (Android.Content.Intent intent, Android.App.StartCommandFlags flags, System.Int32 startId) [0x00094] in <be244601260241998172c7814435a9e6>:0 14/12/2018 10:37:30:763 -- CopyToClipboardService.OnDestroy 14/12/2018 10:37:30:766 -- Destroyed Show-Notification-Receiver. 14/12/2018 10:37:30:769 -- Received intent to provide access to entry 14/12/2018 10:37:34:394 -- EntryActivity.OnStart 14/12/2018 10:37:34:395 -- EntryActivity.OnResume 14/12/2018 10:37:34:396 -- DatabaseIsUnlocked=True 14/12/2018 10:37:34:397 -- Timeout cancel 14/12/2018 10:37:37:793 -- EntryActivity.OnPause 14/12/2018 10:37:37:794 -- Timeout start 14/12/2018 10:37:37:813 -- LockingActivity: OnActivityResult 14/12/2018 10:37:37:814 -- TryGetFromActivityResult: no data 14/12/2018 10:37:37:819 -- GroupActivity.OnStart 14/12/2018 10:37:37:821 -- GroupActivity.OnResume 14/12/2018 10:37:37:821 -- DatabaseIsUnlocked=True 14/12/2018 10:37:37:822 -- Timeout cancel 14/12/2018 10:37:38:173 -- EntryActivity.OnStop 14/12/2018 10:37:38:183 -- EntryActivity.OnDestroyTrue 14/12/2018 10:37:41:103 -- GroupActivity.OnPause 14/12/2018 10:37:41:105 -- Timeout start 14/12/2018 10:37:41:140 -- EntryActivity.OnCreate 14/12/2018 10:37:41:140 -- EntryActivity:apptask= 14/12/2018 10:37:41:169 -- Loaded task keepass2android.NullTask 14/12/2018 10:37:41:186 -- EntryActivity.OnStart 14/12/2018 10:37:41:189 -- EntryActivity.OnResume 14/12/2018 10:37:41:189 -- DatabaseIsUnlocked=True 14/12/2018 10:37:41:190 -- Timeout cancel 14/12/2018 10:37:41:203 -- Received intent to provide access to entry 14/12/2018 10:37:41:236 -- Received intent to provide access to entry 14/12/2018 10:37:41:238 -- System.Exception: Invalid full id B96AE64556A1324A8E0CE27C89DB1278 at keepass2android.ElementAndDatabaseId..ctor (System.String fullId) [0x00029] in <31475b21916d405abfa3d0eebef15332>:0 at keepass2android.CopyToClipboardService.OnStartCommand (Android.Content.Intent intent, Android.App.StartCommandFlags flags, System.Int32 startId) [0x00094] in <be244601260241998172c7814435a9e6>:0 14/12/2018 10:37:41:314 -- Did not find field with key STRING_Title 14/12/2018 10:37:41:319 -- CopyToClipboardService.OnDestroy 14/12/2018 10:37:41:322 -- Destroyed Show-Notification-Receiver. 14/12/2018 10:37:41:324 -- Received intent to provide access to entry

I also have this exact issue.

v1.07-pre3
Pixel XL on Android 8

I have same issue when I open an entry with an otp. But it does work if I open the entry from the keyboard(open the keyboard touch any text field). the entry stays until totp is refreshed.

Have same issue with KP2A v1.07-r1 on S8 Plus Global running Android 7.0.
keepass2android.log

I'm getting the same issue. No notification and keyboard not selecting entries with otp. Any news on that yet ?

please follow https://github.com/PhilippC/keepass2android/issues/799 for updates on this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LevYas picture LevYas  路  5Comments

tgp1994 picture tgp1994  路  4Comments

spocko picture spocko  路  4Comments

4-FLOSS-Free-Libre-Open-Source-Software picture 4-FLOSS-Free-Libre-Open-Source-Software  路  5Comments

vlig picture vlig  路  5Comments