kryptco / krypton-android

DEPRECATED Krypton turns your Android device into a U2F Authenticator: strong, unphishable 2FA.
https://krypt.co
Other
203 stars 50 forks source link

Cannot scan QR code #50

Closed baklim closed 7 years ago

baklim commented 7 years ago

Device: Xiaomi Redmi Note 3 ROM: LineageOS 13 (Android MM) logcat:

LAUNCHER] flg=0x10200000 cmp=co.krypt.kryptonite/.MainActivity} from uid 10203 on display 0
05-05 12:45:09.144  2318  3679 I ActivityManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:co.krypt.kryptonite cmp=com.android.settings/.applications.InstalledAppDetails} from uid 10025 on display 0
05-05 12:47:16.176   481 26314 I CameraService: CameraService::connect call (PID 25652 "co.krypt.kryptonite", camera ID 0) for HAL version default and Camera API version 1
05-05 12:47:16.176   481 26314 I Camera2ClientBase: Camera 0: Opened. Client: co.krypt.kryptonite (PID 25652, UID 10119)
05-05 12:47:16.639 25652 25652 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairScanner.<init>(PairScanner.java:50)
05-05 12:47:16.639 25652 25652 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment$5$1.run(PairFragment.java:303)
05-05 12:47:16.644 25652 25652 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairScanner.<init>(PairScanner.java:51)
05-05 12:47:16.644 25652 25652 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment$5$1.run(PairFragment.java:303)
05-05 12:47:27.685   481  3074 I Camera2ClientBase: Closed Camera 0. Client was: co.krypt.kryptonite (PID 25652, UID 10119)
baklim commented 7 years ago

Upgraded to LOS 14.4:

05-20 12:20:23.756  5357  8840 I ActivityManager: START u0 {cmp=co.krypt.kryptonite/.MainActivity} from uid 10207 on display 0
05-20 12:20:26.150  4485 19388 I CameraService: CameraService::connect call (PID -1 "co.krypt.kryptonite", camera ID 0) for HAL version default and Camera API version 1
05-20 12:20:26.152  4485 19388 I Camera2ClientBase: Camera 0: Opened. Client: co.krypt.kryptonite (PID 936, UID 10207)
05-20 12:20:26.286   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairScanner.<init>(PairScanner.java:51)
05-20 12:20:26.286   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment.startCamera(PairFragment.java:283)
05-20 12:20:26.286   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment.updateCamera(PairFragment.java:316)
05-20 12:20:26.286   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment.access$400(PairFragment.java:48)
05-20 12:20:26.286   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment$5.run(PairFragment.java:331)
05-20 12:20:26.302   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairScanner.<init>(PairScanner.java:53)
05-20 12:20:26.302   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment.startCamera(PairFragment.java:283)
05-20 12:20:26.302   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment.updateCamera(PairFragment.java:316)
05-20 12:20:26.302   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment.access$400(PairFragment.java:48)
05-20 12:20:26.302   936  7179 E BarcodeNativeHandle:   at co.krypt.kryptonite.pairing.PairFragment$5.run(PairFragment.java:331)
kcking commented 7 years ago

Thank you for the report. PairScanner.java:51 is the initialization of the BarcodeDetector we use to parse the QR code. Unfortunately I don't have a phone running LOS at the moment. A potential solution might be to integrate an alternate barcode scanner library.

baklim commented 7 years ago

Add ability to use external app is another solution. Barcode Scanner works as expected.

kcking commented 7 years ago

This should now be working (pending release of 2.3.0) as we use zxing as a QR scanner now.