mirror of
https://github.com/bitwarden/android.git
synced 2026-05-06 07:48:22 -05:00
[GH-ISSUE #350] Login resets to beginning or crashes on Yubikey/keyboard plug in/out at 2FA screen #48711
Closed
opened 2026-05-01 06:14:28 -05:00 by GiteaMirror
·
26 comments
No Branch/Tag Specified
main
sdlc/sdk-update
new-item-types/PM-32810_bank-account-view
new-item-types/PM-32810_bank-account
beta-for-qa
BWA-253/not-displaying-totp-coded-with-empty-key
target-sdk-37
vvolkgang/renovate-remove-group
pm-34038/card-scanner-qa-fixes
PM-33982/build-device-screen
PM-30625/filter-out-empty-totp-vault-count
vvolkgang/update-jira-release-notes
new-item-types/PM-34123_new-item-menu
new-item-types/PM-32806_passport
new-item-types/PM-32808_drivers-license
BWA-99/show-next-totp
BWA-99/add-preview-next-totp-code-setting
renovate/glidecompose
chore/improve-android-ui-verification-skill
sync-min-sdk
release/2026.4-rc51
fix/security-sast-22741894-bvwj
related-origin-passkey-creation
release/2026.4-rc50
platform/android-breaking-change-detection
innovation-sprint-2026-send-folder
release/2026.3-rc49
PM-34193-vault-lockout
android-collections
llm/add-resolving-sdk-updates-skill
QA-1523/sanity-test-saucelabs
release/2026.3-rc48
PM-26577-app-links-support
PM-26896-autofill-fix
release/2026.2-rc47
pr-6572
release/2026.2-rc46
release/2026.1-rc45
PM-30644/added-logs-for-debug
PM-30644/quicktile-nav-not-showing-migration
minor-gradle-updates
release/2026.1-rc42
release/2026.1-rc44
release/2026.1-rc43
PM-28834/set-landscape-on-horizonos-devices
PM-28468/validate-and-navigate-to-vault-migration
PM-20026/force-ltr-passwords-and-codes
release/2025.12-rc41
cmcg/testCoverage
PM-29014/talkback-support-for-passwords
release/2025.12-rc40
BRE-1305/publish_test
accept-user-certs
autofill-permissions
release/2025.11-rc39
PM-22479/check-all-certificates-validate-asset-links
release/2025.10-rc38
agalles/android-latest
retro-agent
PM-27001/skip-account-selection-only-one-exists-cxp
release/2025.10-rc37
agalles/test-1118
release/2025.10-rc36
PM-20593-token-refresh
QA-1126b/adding-native-sanity-test
release/2025.9-rc35
pm-25933/sdk-update-password
release/2025.9-rc34
release/2025.8-rc33
agalles/20250821-release
debug-release-issues
pm-24249-allow-automated-prs-for-sdk-updates
release/2025.8-rc32
release/WORKFLOW-TEST-2025.8-rc28
agalles/20250807release
release/2025.07-rc25
release/hotfix-v2025.7.0-bwa
pm-23311/export-vault-policy-bypass
release/2025.07-rc24
authenticator-pm-sync-flags-issue
release/hotfix-v2025.6.0-bwpm
release/2025.06-rc21
agalles/automate-android-fastlane-patch
release/2025.05-rc20
release/2025.04-rc19
languages/basque
release/2025.03-rc19
update-readme
qrcode/feature
innovation/archive/pm-19153-archive-items
qrcode/2-ui-fields
qrcode/1-page
hold-on-biometric-prompt-alternative
release-notes-process
release/2025.02-rc16
bwa-monorepo
PM-8223/new-device-verification-ux-improvements
pm-18451/exempt-from-policies
test-bwa
release/2025.01-rc15
release/2025.01-rc14
release/2024.12-rc13
pm-16670/sync-leave-notice
821
PM-16695/backport-lean-more-new-device-verification
release/hotfix-v2024.11.7
release/2024.11-rc1
pm-11304/collection-add-item-button
PM-14241/disabling-logs-app-crash
poc/offline-editing
new-version-calc
pm-11649/expired-link-services
pm-6702/add-feature-flag
pm-6702/email-verification-feature
pm-9933/marketing-copy-update
pm-6702/registration-flows
update-templates
pm-6701/email-verification-selfhost-registration
v2026.4.0-bwa
v2026.4.0-bwpm
v2026.3.1-bwa
v2026.3.1-bwpm
v2026.3.0-bwpm
v2026.3.0-bwa
v2026.2.1-bwpm
v2026.2.1-bwa
v2026.2.0-bwpm
v2026.2.0-bwa
v2026.1.1-bwa
v2026.1.1-bwpm
temp-test
v2026.1.0-bwpm
v2026.1.0-bwa
v2025.12.1-bwa
v2025.12.1-bwpm
v2025.12.0-bwa
v2025.12.0-bwpm
v2025.11.1-bwpm
v2025.11.1-bwa
v2025.11.0-bwpm
v2025.11.0-bwa
v2025.10.1-bwa
v2025.10.1-bwpm
v2025.10.0-bwa
v2025.10.0-bwpm
v2025.9.1-bwa
v2025.9.1-bwpm
v2025.9.0-bwa
v2025.9.0-bwpm
v2025.8.1-bwa
v2025.8.1-bwpm
v2025.8.0-bwa
v2025.8.0-bwpm
v2025.7.2-bwa
v2025.7.2-bwpm
v2025.7.1-bwa
v2025.7.1-bwpm
v2025.7.0-bwa
v2025.7.0-bwpm
v2025.6.1-bwpm
v2025.6.0-bwa
v2025.6.0-bwpm
v2025.1.0-bwa
v2025.5.0-bwa
v2025.5.0-bwpm
v2025.5.999
2025.4.0
v2025.4.0
untagged-4731eaadac73f3dfbbb8
v2025.3.0
v2025.2.0
untagged-815a165c5d70ffe75bc7
v2025.1.2
v2025.1.1
v2025.1.0
v2024.12.0
untagged-5a76b6392a4c8998c63a
v2024.11.7
v2024.11.6
v2024.11.5
v2024.11.4
v2024.11.3
v2024.11.2
v2024.11.1
v2024.11.0
v2024.10.2
v2024.10.1
v2024.10.0
v2024.9.0
v2024.8.1
v2024.8.0
v2024.7.3
v2024.7.2
v2024.7.1
v2024.7.0
v2024.6.1
v2024.6.0
v2024.5.1
v2024.4.1
v2024.4.2
v2024.4.0
v2024.3.3
v2024.3.1
v2024.3.0
v2024.2.1
v2024.2.0
v2024.1.1
v2024.1.0
v2023.12.0
v2023.10.0
v2023.9.2
maui-single-project-android
v2023.9.1
v2023.9.0
v2023.8.0
v2023.7.0
v2023.5.0
v2023.4.0
v2023.3.2
v2023.3.1
v2023.3.0
v2023.2.0
v2023.1.0
v2022.11.0
v2022.10.0
v2022.9.1
v2022.9.0
v2022.8.0
v2022.6.2
v2022.6.1
v2022.6.0
v2022.05.0
v2.18.0
v2.17.0
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.15.0
v2.14.2
v2.14.1
v2.14.0
v2.13.0
v2.12.0
v2.11.3
v2.11.2
v2.11.1
v2.11.0
v2.10.0
v2.9.1
v2.9.0
v2.8.2
v2.8.1
v2.8.0
v2.7.2
v2.7.0
v2.6.1
v2.6.0
v2.5.6
v.2.5.5
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.8
v2.2.7
v2.2.6
v2.2.2
v2.2.1
v2.2.0
v2.1.2
v2.1.0
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.22.1
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.0
v1.16.0
v1.15.2
v1.15.1
v1.15.0
v1.14.4
v1.14.1
v1.14.0
v1.13.0
v1.12.2
v1.12.1
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.5
v1.6.1
v1.6.0
v1.5.1
v1.5.0
v1.4.4
v1.4.3
v1.4.0
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.0
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/android#48711
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bradfa on GitHub (Jul 31, 2018).
Original GitHub issue: https://github.com/bitwarden/android/issues/350
Originally assigned to: @eliykat on GitHub.
When trying to log in on Android, when plugging in a Yubikey or a standard keyboard via USB as a 2FA device at the 2FA screen, the app will return to the beginning of the login process or crash entirely. This makes using a Yubikey via USB impossible unless you insert it prior to opening the Bitwarden app to start the login process.
The app appears to crash if I wipe all the app's data from the device and then try to log in, plugging my Yubikey in at the 2FA screen. The app appears to go back to the start page of the login process when plugging my Yubikey in at the 2FA screen if I've already once successfully logged in. I'm unsure why there's a difference here, cached or saved data locally matters?
My testing has been on an LG G5 model RS988 running Android 7.0, a Yubikey NEO via USB, and Bitwarden version 1.17.1 from the Play store.
@kspearrin commented on GitHub (Jul 31, 2018):
Unfortunately I don't have an Android device with a USB port on it at this time, so I can't reproduce the issue. I'll see if there is anything in the crash logs.
@kspearrin commented on GitHub (Jul 31, 2018):
Could you give me an approx timestamp on a crash (make sure you open the app again after the crash so that the report can be uploaded)?
@bradfa commented on GitHub (Jul 31, 2018):
@kspearrin I reproduced it while writing up this issue, so some time just prior to 12:54pm EDT today was when I experienced the "crashes" (in quotes because the app exited but I'm not entirely sure why, it seemed like a crash to me).
In testing right now, I'm now unable to reproduce the crash but I still can reproduce the "return to the beginning of the login process" failure mode.
@bradfa commented on GitHub (Jul 31, 2018):
@kspearrin just had it crash again just now, 3pm EDT.
@kspearrin commented on GitHub (Jul 31, 2018):
Ok, thanks. I found the crash log:
@kspearrin commented on GitHub (Jul 31, 2018):
Does this device have NFC enabled?
@bradfa commented on GitHub (Jul 31, 2018):
In the 3pm crash yes. In the earlier crashes I'm not sure if I had NFC on
or not.
@kspearrin commented on GitHub (Jul 31, 2018):
Can you try disabling NFC on the device completely and see if you can reproduce the crash when that off?
@bradfa commented on GitHub (Jul 31, 2018):
If I disable NFC I can't get the crash to happen. With NFC disabled when I insert a USB keyboard or Yubikey during the 2FA entry page it just takes me back to the login start page.
With NFC enabled, I created the crash by inserting a USB Yubikey at 3:31 pm EDT. I then reopened the app and logged in, so hopefully you can find the crash report. It seems that NFC being enabled is required to make the crash happen.
@kspearrin commented on GitHub (Jul 31, 2018):
Ok, I think the keyboard keys that the yubikey is simulating is causing the "back button" event to happen. This is why you get taken back to the login page. This is also causing it to crash when NFC is enabled because the NFC adapter/listener is not properly disconnected on back button events.
@bradfa commented on GitHub (Jul 31, 2018):
@kspearrin the "back button event" happens with a Dell USB keyboard, too, it's not just my Yubikey that does it.
Thanks for being so responsive 👍
@kspearrin commented on GitHub (Jul 31, 2018):
Its probably something to do with whatever event occurs whenever you plug in a USB device. I am not sure what that is
@bradfa commented on GitHub (Jul 31, 2018):
@kspearrin the work around is to plug in the USB keyboard or Yubikey before starting to try and login to Bitwarden, then everything works fine with NFC on or off. So it's not urgent to fix this I don't think. Sorry I'm not that familiar with Xamarin (or even Java in general) so I'm not sure how much help I can be in debugging, sorry :(
@kspearrin commented on GitHub (Jul 31, 2018):
On the home, click "Create Account". Then plug in the device. Does it take you back to home screen there too?
@bradfa commented on GitHub (Jul 31, 2018):
Yes. In "Create Account" if I plug in the Yubikey with NFC disabled it goes back to the home screen.
@kspearrin commented on GitHub (Jul 31, 2018):
Ok, that proves my theory then. Connecting a USB device is triggering the back event for some reason.
@kspearrin commented on GitHub (Aug 1, 2018):
Can you try updating to the beta to see if the same issue still occurs with the back button? https://play.google.com/apps/testing/com.x8bit.bitwarden
@bradfa commented on GitHub (Aug 1, 2018):
On 1.17.2 (1480) "beta" release from the Play store, I still get the crash when inserting Yubikey via USB when NFC is enabled. Crash at approximately 7:39am EDT.
@bradfa commented on GitHub (Aug 1, 2018):
On 1.17.2 (1480) "beta" release from the Play store, the back button action still seems to occur when inserting Yubikey via USB when NFC is disabled.
@kspearrin commented on GitHub (Aug 1, 2018):
I pushed build 1490 to the beta track on google play. This build prevents the back button action on the yubikey page. Can you give it a try and see if it works with 1490?
@bradfa commented on GitHub (Aug 2, 2018):
With build 1490, inserting my Yubikey via USB at the 2FA screen still results in the back operation happening with NFC off. Also, with NFC on and trying to use my Yubikey NEO via NFC for 2FA, after verifying the Yubikey the app crashes although the login seems to succeed as opening the app again requests only my master password to unlock my vault. Crash for this was at approximately 10:34am EDT today.
@kspearrin commented on GitHub (Aug 5, 2018):
Can you try again on 1491? Sorry, I don't have any other way to test this since my device doesn't have a USB port for a YubiKey
@bradfa commented on GitHub (Aug 7, 2018):
With 1491 the "back" action still seems to happen when inserting a Yubikey via USB at the 2FA screen when NFC is disabled.
With 1491 the crash still happens when inserting a Yubikey via USB at the 2FA screen when NFC is enabled. Crash at 11:51am EDT.
@bradfa commented on GitHub (Aug 17, 2018):
Just to give a quick update, on build 1495 the crash still happens the same way. Crash at approximately 7:50 am EDT today if you need the logs.
@kspearrin commented on GitHub (Aug 17, 2018):
Thanks. Unfortunately I don't have a good solution for this at this time.
@eliykat commented on GitHub (Feb 3, 2021):
Fixed by #1246