pp3345 / ykDroid

YubiKey challenge-response USB and NFC driver for Android
GNU General Public License v3.0
97 stars 14 forks source link

I have to pass the key twice each time. #28

Open sigalou opened 1 year ago

sigalou commented 1 year ago

Hello, first of all congratulations for this program, thanks to you, I was able to unlock my KeepassXC database very quickly on my Android phone.

I have come to bring you here a non-blocking but annoying use problem.

When the screen displays "Please attach or swipe your YubiKeynow", I pass my key through NFC, it is recognized but this screen systematically returns a second time. I put the key back behind the smartphone and it's good, the base opens.

I have to pass the key twice each time.

Do you know why ?

Here are the logs, to get your bearings, I add a line of dashes --- to space out the two key detection tests.

Note that I don't get any error message, I just have to pass the key twice.

THANKS

26/11/2023 07:43:35:886 -- TryGetFromActivityResult: no data 26/11/2023 07:43:35:886 -- SelectCurrentDbActivity.OnStart 17 26/11/2023 07:43:35:890 -- SelectCurrentDbActivity.OnResume 17 26/11/2023 07:43:35:890 -- DB null 17 26/11/2023 07:43:35:912 -- SelectCurrentDbActivity.OnPause 17 26/11/2023 07:43:35:927 -- FileSelect.OnCreate 26/11/2023 07:43:35:940 -- FileSelect.OnStart 26/11/2023 07:43:35:947 -- SelectCurrentDbActivity.OnStop 17 26/11/2023 07:43:35:963 -- PasswordActivity.OnCreate 33 26/11/2023 07:43:35:963 -- PasswordActivity:apptask= 33 26/11/2023 07:43:35:983 -- GetIocFromLaunchIntent() 26/11/2023 07:43:35:983 -- no keyprovider specified 26/11/2023 07:43:35:984 -- PasswordActivity: key file type ChallengeXC 26/11/2023 07:43:35:990 -- PasswordActivity.OnStart 33 26/11/2023 07:43:35:991 -- PasswordActivity.OnResume 33 26/11/2023 07:43:35:992 -- DB null 33 26/11/2023 07:43:35:992 -- starting: True, Finishing: False, _performingLoad: False 26/11/2023 07:43:35:994 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 isCached = True 26/11/2023 07:43:35:995 -- Pre-loading database file starting 26/11/2023 07:43:35:996 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 isCached = True 26/11/2023 07:43:35:996 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 localVersionHash = XX 26/11/2023 07:43:35:997 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 baseVersionHash = XX 26/11/2023 07:43:35:997 -- CFS: OpenWhenNoLocalChanges 26/11/2023 07:43:35:997 -- CFS: hashing cached version 26/11/2023 07:43:36:19 -- CFS: Files in Sync 26/11/2023 07:43:36:20 -- Pre-loading database file completed 26/11/2023 07:43:36:33 -- Received intent to provide access to entry 26/11/2023 07:43:36:43 -- PasswordModeSpinner item selected: 6 26/11/2023 07:43:36:158 -- parsing autofillStructure... 26/11/2023 07:43:36:158 -- Parsing done 26/11/2023 07:43:36:159 -- cannot autofill 26/11/2023 07:43:36:186 -- Ignoring onFillRequest as there is another request going on. 26/11/2023 07:43:36:193 -- FileSelect.OnStop 26/11/2023 07:43:36:227 -- FileSelect.OnDestroyTrue 26/11/2023 07:43:36:505 -- GroupActivity.OnStop 31 26/11/2023 07:43:36:508 -- GroupActivity.OnDestroyTrue 31 26/11/2023 07:43:42:911 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 isCached = True 26/11/2023 07:43:42:912 -- LockingActivity: OnActivityResult 26/11/2023 07:43:42:912 -- PasswordActivity.OnActivityResult 874348/1000 26/11/2023 07:43:42:921 -- status message: Initializing... 26/11/2023 07:43:42:922 -- status submessage: 26/11/2023 07:43:42:950 -- status message: Chargement de la base de données… 26/11/2023 07:43:42:952 -- status submessage: Changement de la clé principale… 26/11/2023 07:43:43:13 -- PasswordActivity.OnPause 33 26/11/2023 07:43:47:425 -- LockingActivity: OnActivityResult yubichall 26/11/2023 07:43:47:426 -- PasswordActivity.OnActivityResult Ok/793 26/11/2023 07:43:47:438 -- PasswordActivity.OnResume 33 26/11/2023 07:43:47:438 -- DB null 33 26/11/2023 07:43:47:439 -- starting: False, Finishing: False, _performingLoad: True 26/11/2023 07:43:47:439 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 isCached = True 26/11/2023 07:43:47:482 -- parsing autofillStructure... 26/11/2023 07:43:47:482 -- Parsing done 26/11/2023 07:43:47:482 -- cannot autofill 26/11/2023 07:43:48:158 -- status submessage: Changement de la clé principale… 26/11/2023 07:43:48:167 -- PasswordActivity.OnPause 33

26/11/2023 07:44:03:269 -- LockingActivity: OnActivityResult yubichall 26/11/2023 07:44:03:269 -- PasswordActivity.OnActivityResult Ok/793 26/11/2023 07:44:03:270 -- PasswordActivity.OnResume 33 26/11/2023 07:44:03:270 -- DB null 33 26/11/2023 07:44:03:270 -- starting: False, Finishing: False, _performingLoad: True

26/11/2023 07:44:03:271 -- content://com.infomaniak.drive.documents/document/1000000%2FJean%20Truc%40919307%2F17 isCached = True 26/11/2023 07:44:04:7 -- status submessage: Analyse de la base de données… 26/11/2023 07:44:04:76 -- ReadXmlStreamed: 68ms 26/11/2023 07:44:04:81 -- status submessage: 26/11/2023 07:44:04:83 -- status message: Mise à jour de la sauvegarde locale... 26/11/2023 07:44:04:91 -- Timeout cancel 26/11/2023 07:44:04:93 -- LoadDB OK 26/11/2023 07:44:04:96 -- Starting/Updating OngoingNotificationsService. Database Unlocked

26/11/2023 07:44:04:158 -- PasswordActivity.OnPause 33 26/11/2023 07:44:04:159 -- Timeout start 26/11/2023 07:44:04:182 -- SelectCurrentDbActivity 17: OnActivityResult Ok/1 26/11/2023 07:44:04:183 -- No AppTask in OnActivityResult 26/11/2023 07:44:04:187 -- SelectCurrentDbActivity.OnStart 17 26/11/2023 07:44:04:188 -- SelectCurrentDbActivity.OnResume 17 26/11/2023 07:44:04:188 -- DatabaseIsUnlocked=True 17 26/11/2023 07:44:04:188 -- SelectCurrentDbActivity.OnResume 17 26/11/2023 07:44:04:189 -- DatabaseIsUnlocked=True 17 26/11/2023 07:44:04:214 -- SelectCurrentDbActivity.OnPause 17 26/11/2023 07:44:04:224 -- GroupActivity.OnCreate 34 26/11/2023 07:44:04:224 -- GroupActivity:apptask= 34 26/11/2023 07:44:04:226 -- Loaded task keepass2android.NullTask 26/11/2023 07:44:04:226 -- Task in activity GroupActivity 34 changed to NullTask 26/11/2023 07:44:04:241 -- GroupActivity.OnStart 34 26/11/2023 07:44:04:241 -- GroupActivity.OnResume 34 26/11/2023 07:44:04:241 -- DatabaseIsUnlocked=True 34 26/11/2023 07:44:04:241 -- Timeout cancel 26/11/2023 07:44:04:249 -- SelectCurrentDbActivity.OnStop 17

sigalou commented 1 year ago

I add this log, I just needed to pass the key 4 times

26/11/2023 08:16:40:217 -- PasswordActivity.OnStop 48 26/11/2023 08:16:40:218 -- PasswordActivity.OnDestroyTrue 48 26/11/2023 08:16:48:974 -- GroupActivity.OnPause 49 26/11/2023 08:16:48:975 -- Timeout start 26/11/2023 08:16:48:990 -- DatabaseSettingsActivity.OnCreate 50 26/11/2023 08:16:48:990 -- DatabaseSettingsActivity:apptask= 50 26/11/2023 08:16:49:14 -- DatabaseSettingsActivity.OnStart 50 26/11/2023 08:16:49:15 -- DatabaseSettingsActivity.OnResume 50 26/11/2023 08:16:49:15 -- DatabaseIsUnlocked=True 50 26/11/2023 08:16:49:15 -- Timeout cancel 26/11/2023 08:16:49:495 -- GroupActivity.OnStop 49 26/11/2023 08:16:52:84 -- DatabaseSettingsActivity.OnPause 50 26/11/2023 08:16:52:85 -- Timeout start 26/11/2023 08:16:52:579 -- DatabaseSettingsActivity.OnStop 50 26/11/2023 08:18:38:908 -- DatabaseSettingsActivity.OnStart 50 26/11/2023 08:18:38:911 -- DatabaseSettingsActivity.OnResume 50 26/11/2023 08:18:38:911 -- DatabaseIsUnlocked=True 50 26/11/2023 08:18:38:911 -- Timeout cancel 26/11/2023 08:18:40:391 -- DatabaseSettingsActivity.OnPause 50 26/11/2023 08:18:40:392 -- Timeout start 26/11/2023 08:18:40:954 -- DatabaseSettingsActivity.OnStop 50 26/11/2023 08:21:13:166 -- DatabaseSettingsActivity.OnStart 50 26/11/2023 08:21:13:169 -- DatabaseSettingsActivity.OnResume 50 26/11/2023 08:21:13:169 -- DatabaseIsUnlocked=True 50 26/11/2023 08:21:13:169 -- Timeout cancel 26/11/2023 08:21:15:388 -- DatabaseSettingsActivity.OnPause 50 26/11/2023 08:21:15:388 -- Timeout start 26/11/2023 08:21:15:412 -- DatabaseSettingsActivity.OnStop 50 26/11/2023 08:21:15:937 -- SelectCurrentDbActivity.OnDestroyTrue 42 26/11/2023 08:21:15:945 -- GroupActivity.OnDestroyTrue 49 26/11/2023 08:21:16:30 -- DatabaseSettingsActivity.OnDestroyTrue 50 26/11/2023 08:21:16:71 -- OngoingNotificationsService.OnTaskRemoved: android.intent.action.MAIN 26/11/2023 08:21:16:71 -- Locking database 26/11/2023 08:21:16:119 -- OngoingNotificationsService.OnDestroy 26/11/2023 08:21:16:133 -- Stopping clipboard service due to database lock 26/11/2023 08:21:16:152 -- CopyToClipboardService.OnDestroy 26/11/2023 08:21:16:153 -- Destroyed Show-Notification-Receiver. 26/11/2023 08:22:49:800 -- parsing autofillStructure... 26/11/2023 08:22:49:801 -- Parsing done 26/11/2023 08:22:49:801 -- cannot autofill 26/11/2023 08:24:07:671 -- KeePass.OnCreate 51 26/11/2023 08:24:07:671 -- KeePass:apptask= 51 26/11/2023 08:24:07:671 -- Loaded task keepass2android.NullTask 26/11/2023 08:24:07:672 -- Task in activity KeePass 51 changed to NullTask 26/11/2023 08:24:07:672 -- KeePass.OnCreate 26/11/2023 08:24:07:674 -- KeePass.OnStart 51 26/11/2023 08:24:07:674 -- KeePass.OnStart 26/11/2023 08:24:07:698 -- SelectCurrentDbActivity.OnCreate 52 26/11/2023 08:24:07:698 -- SelectCurrentDbActivity:apptask= 52 26/11/2023 08:24:07:704 -- Loaded task keepass2android.NullTask 26/11/2023 08:24:07:704 -- Task in activity SelectCurrentDbActivity 52 changed to NullTask 26/11/2023 08:24:07:705 -- SelectCurrentDbActivity.OnStart 52 26/11/2023 08:24:07:706 -- SelectCurrentDbActivity.OnResume 52 26/11/2023 08:24:07:706 -- DB null 52 26/11/2023 08:24:07:710 -- SelectCurrentDbActivity.OnPause 52 26/11/2023 08:24:07:716 -- FileSelect.OnCreate 26/11/2023 08:24:07:730 -- FileSelect.OnStart 26/11/2023 08:24:07:741 -- PasswordActivity.OnCreate 53 26/11/2023 08:24:07:741 -- PasswordActivity:apptask= 53 26/11/2023 08:24:07:761 -- GetIocFromLaunchIntent() 26/11/2023 08:24:07:762 -- no keyprovider specified 26/11/2023 08:24:07:762 -- PasswordActivity: key file type ChallengeXC 26/11/2023 08:24:07:772 -- PasswordActivity.OnStart 53 26/11/2023 08:24:07:774 -- PasswordActivity.OnResume 53 26/11/2023 08:24:07:774 -- DB null 53 26/11/2023 08:24:07:774 -- starting: True, Finishing: False, _performingLoad: False 26/11/2023 08:24:07:779 -- Received intent to provide access to entry 26/11/2023 08:24:07:807 -- PasswordModeSpinner item selected: 6 26/11/2023 08:24:07:881 -- parsing autofillStructure... 26/11/2023 08:24:07:881 -- Parsing done 26/11/2023 08:24:07:881 -- cannot autofill 26/11/2023 08:24:08:73 -- FileSelect.OnStop 26/11/2023 08:24:08:101 -- FileSelect.OnDestroyTrue 26/11/2023 08:24:08:101 -- SelectCurrentDbActivity.OnStop 52 26/11/2023 08:24:08:102 -- KeePass.OnStop 51 26/11/2023 08:24:08:102 -- KeePass.OnDestroyTrue 26/11/2023 08:24:08:102 -- KeePass.OnDestroyTrue 51 26/11/2023 08:24:09:791 -- LockingActivity: OnActivityResult 26/11/2023 08:24:09:792 -- PasswordActivity.OnActivityResult 874348/1000 26/11/2023 08:24:09:799 -- status message: Initializing... 26/11/2023 08:24:09:800 -- status submessage: 26/11/2023 08:24:09:826 -- status message: Chargement de la base de données… 26/11/2023 08:24:10:740 -- status submessage: Changement de la clé principale… 26/11/2023 08:24:10:760 -- PasswordActivity.OnPause 53 26/11/2023 08:24:21:350 -- LockingActivity: OnActivityResult yubichall 26/11/2023 08:24:21:350 -- PasswordActivity.OnActivityResult Ok/793 26/11/2023 08:24:21:351 -- PasswordActivity.OnResume 53 26/11/2023 08:24:21:351 -- DB null 53 26/11/2023 08:24:21:352 -- starting: False, Finishing: False, _performingLoad: True 26/11/2023 08:24:22:67 -- status submessage: Changement de la clé principale… 26/11/2023 08:24:22:76 -- PasswordActivity.OnPause 53 26/11/2023 08:24:28:718 -- LockingActivity: OnActivityResult yubichall 26/11/2023 08:24:28:720 -- PasswordActivity.OnActivityResult Ok/793 26/11/2023 08:24:28:730 -- PasswordActivity.OnResume 53 26/11/2023 08:24:28:731 -- DB null 53 26/11/2023 08:24:28:731 -- starting: False, Finishing: False, _performingLoad: True 26/11/2023 08:24:29:469 -- status submessage: Analyse de la base de données… 26/11/2023 08:24:29:537 -- ReadXmlStreamed: 67ms 26/11/2023 08:24:29:543 -- status submessage: 26/11/2023 08:24:29:544 -- status message: Mise à jour de la sauvegarde locale... 26/11/2023 08:24:29:554 -- Timeout cancel 26/11/2023 08:24:29:556 -- LoadDB OK 26/11/2023 08:24:29:599 -- Starting/Updating OngoingNotificationsService. Database Unlocked 26/11/2023 08:24:29:605 -- PasswordActivity.OnPause 53 26/11/2023 08:24:29:606 -- Timeout start 26/11/2023 08:24:29:630 -- SelectCurrentDbActivity 52: OnActivityResult Ok/1 26/11/2023 08:24:29:631 -- No AppTask in OnActivityResult 26/11/2023 08:24:29:635 -- SelectCurrentDbActivity.OnStart 52 26/11/2023 08:24:29:636 -- SelectCurrentDbActivity.OnResume 52 26/11/2023 08:24:29:636 -- DatabaseIsUnlocked=True 52 26/11/2023 08:24:29:636 -- SelectCurrentDbActivity.OnResume 52 26/11/2023 08:24:29:636 -- DatabaseIsUnlocked=True 52 26/11/2023 08:24:29:670 -- SelectCurrentDbActivity.OnPause 52 26/11/2023 08:24:29:684 -- GroupActivity.OnCreate 54 26/11/2023 08:24:29:684 -- GroupActivity:apptask= 54 26/11/2023 08:24:29:686 -- Loaded task keepass2android.NullTask 26/11/2023 08:24:29:686 -- Task in activity GroupActivity 54 changed to NullTask 26/11/2023 08:24:29:706 -- GroupActivity.OnStart 54 26/11/2023 08:24:29:707 -- GroupActivity.OnResume 54 26/11/2023 08:24:29:707 -- DatabaseIsUnlocked=True 54 26/11/2023 08:24:29:707 -- Timeout cancel 26/11/2023 08:24:29:714 -- SelectCurrentDbActivity.OnStop 52 26/11/2023 08:24:29:740 -- Populating group view False avec yubikey 26/11/2023 08:24:29:745 -- Populating group view False Comptes Windows 10