This repository was archived by the owner on Aug 25, 2025. It is now read-only.
forked from connectbot/connectbot
-
Notifications
You must be signed in to change notification settings - Fork 9
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
[Sony Xperia XZ2] App crash when adding public key from Security Key via NFC #35
Copy link
Copy link
Open
Labels
Description
Bug description
App crash when adding public key from Security Key via NFC
Steps to reproduce
- Go to 'Manage Pubkeys'
- Click on 'Add OpenPGP hardware security key'
- Scan the key with NFC
- Observe the app
Expected behavior
It scans just fine.
Actual behavior
It goes back to previous intent, indicating intent crash. Doing it again will show the crash window.
The error doesn't show when adding key from USB.
Android device
- Device: [Sony Xperia XZ2 (702SO)]
- OS: [Android 9]
- TermBot Version: [1.9.6-42-884c662-termbot]
Server information
- OS: [N/A]
- SSH Software and Version: [N/A]
- Pubkeys used (if applicable): [RSA 4096]
Stack trace
09-10 15:24:06.850 14065 14065 E AndroidRuntime: FATAL EXCEPTION: main
09-10 15:24:06.850 14065 14065 E AndroidRuntime: Process: org.sufficientlysecure.termbot, PID: 14065
09-10 15:24:06.850 14065 14065 E AndroidRuntime: java.lang.IllegalArgumentException: Response code must fit in two bytes!
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.openpgp.internal.OpenPgpAppletConnection.communicateOrThrow(OpenPgpAppletConnection.java:317)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.openpgp.internal.OpenPgpAppletConnection.retrievePublicKey(OpenPgpAppletConnection.java:544)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.openpgp.OpenPgpSecurityKey.retrievePublicKey(OpenPgpSecurityKey.java:83)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.openpgp.OpenPgpSecurityKey.retrieveAuthenticationPublicKey(OpenPgpSecurityKey.java:332)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at org.connectbot.PubkeyListActivity.onSecurityKeyDialogDiscovered(PubkeyListActivity.java:314)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at org.connectbot.PubkeyListActivity.onSecurityKeyDialogDiscovered(PubkeyListActivity.java:100)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.ui.SecurityKeyDialogFragment.onSecurityKeyDiscovered(SecurityKeyDialogFragment.java:676)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.SecurityKeyManager$RegisteredConnectionMode.lambda$deliverDiscover$3$SecurityKeyManager$RegisteredConnectionMode(SecurityKeyManager.java:585)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at de.cotech.hw.-$$Lambda$SecurityKeyManager$RegisteredConnectionMode$hikdClXNb8ShpN4BBv8fUhWdSz0.run(Unknown Source:4)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at android.os.Looper.loop(Looper.java:280)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6710)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
09-10 15:24:06.850 14065 14065 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)