Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Can't link devices / scan QR

Open bartz1 opened this issue 11 years ago • 66 comments

I am stuck at the step saying "scan the qr code displayed...". I can see the qr code in the camera, but it won't do anything. I'm assuming there should be a moment when the phone goes like "okay I saw that's a qr code", but nothing happens. I think the problem may be that the camera is a bit out of focus. Samsung galaxy s3, signal 3.5

bartz1 avatar Nov 20 '15 20:11 bartz1

I can confirm the problem is that the camera not being in focus. I have the same problem when using the quick direct capture (can't click to focus). I came to this conclusion after taking a screenshot and zooming -- it linked the device

bartz1 avatar Nov 20 '15 20:11 bartz1

You might already be aware of this pr #3767 but marking it here as related.

2-4601 avatar Nov 21 '15 00:11 2-4601

I don't know if the code that the quick camera uses is the same as the one used by the qr scanner (I haven't looked at the code to be honest) but it seems to be the case.

bartz1 avatar Nov 21 '15 09:11 bartz1

As in #4804 autofocus is not working when QR Code scanning. I have the same setup: Signal version: 3.6.1 Android version: 5.1.1 (Cyanogenmod 12.1) snapshot Device: Samsung Galaxy S2 ("i9100")

ndevln avatar Dec 04 '15 16:12 ndevln

Saving the QR-Code png and zoomind doesn't work for me. Even when the QR Code is sharp on the screen, it is not recognized. Also when using Signal 3.7.0, I can scan the Code via an external App and it opens Signal, but in Signal I have to rescan.

ndevln avatar Dec 04 '15 19:12 ndevln

@ndevln does it make a difference if you try rotating the device to portrait or landscape?

moxie0 avatar Dec 04 '15 20:12 moxie0

No difference for me

Signal version: 3.6.1 Android version: 5.1.1 (Cyanogenmod 12.1) Device: Samsung Galaxy S2 ("i9100")

HansHerbert avatar Dec 04 '15 21:12 HansHerbert

No makes no difference. Also moving the QR Code in from all sides makes no difference (in portrait and landscape mode). Also I can't take pictures with my back camera in the messaging view (but i can see the preview). My front camera works in the quick camera mode (autofocus and capturing pictures). I think using the front camera for the qr code scan would work, but it's still only a workaround.

ndevln avatar Dec 05 '15 00:12 ndevln

Same situation here, Signal doesn't focus and the QR code won't get recognized (zoomed screenshot or switching between landscape/portrait doesn't help).

Signal version: 3.6.1 Android: 5.1.1 (Cyanogenmod 12.1) Device: Galaxy S2 (i9100)

lolonaut avatar Dec 05 '15 13:12 lolonaut

+1 to this issue it's the same as described by me in https://github.com/WhisperSystems/Signal-Android/issues/4661.

JStyle21 avatar Dec 05 '15 20:12 JStyle21

Apart from the camera issue, what speaks against manual device linking (e.g. via typing of a code)? Would be a workaround for this case and the only option for people with broken cameras (or even smartphones without a camera)...

lolonaut avatar Dec 05 '15 22:12 lolonaut

lolonaut, couldn't agree more!

JStyle21 avatar Dec 06 '15 01:12 JStyle21

I think it's not quite as simple as that, since this function allows you to get a full take an the devices communication over Signal. For example the verification of the fingerprint of your contacts is done by an external app (f-droid barcode scanner in my case). But for this scan they use an internal approach, which I think is a deliberate choice.

Secure design is hard to get right and I think @moxie0 has put some thought into it.

ndevln avatar Dec 06 '15 16:12 ndevln

I'm not sure if I understand you right...my suggestion would be to show the QR-code data (i.e. the uuid and the ub_key) underneath the QR-code-field in the chrome app and to add a manual linking option into the smartphone app, where one could type the uuid and the ub_key by hand. Would this really be less secure?

lolonaut avatar Dec 06 '15 17:12 lolonaut

I don't see why this should be less secure. The format of the data shouldn't have any impact on the security.

HansHerbert avatar Dec 06 '15 17:12 HansHerbert

There seems to be a very strange bug within the auto focus behavior of the Samsung Galaxy S2 (other devices may be affected too).

The CameraView class checks the supported focusModes (on the S2 both FOCUS_MODE_CONTINUOUS_PICTURE and FOCUS_MODE_CONTINUOUS_VIDEO are reported back as supported by camera.getParameters()) and sets them if available. This alone should trigger continuous auto focus but it doesn't on this device.

So AFAIK the only solution is invoking camera.autoFocus() reasonably often enough between startPreview() and before stopPreview().

Signal version: 3.6.1 Android: 5.1.1 (Cyanogenmod 12.1) Device: Galaxy S2 (i9100)

abcdev avatar Dec 14 '15 22:12 abcdev

I also can confirm this issue on my S2.

What I want to add is that the QR scanner from the (open source) "Barcode scanner" com.google.zxing.client.android does work perfectly, while signal's implementation does not.

Signal version: 3.7.2 Android version: 5.1.1 (Cyanogenmod 12.1) snapshot Device: Samsung Galaxy S2 ("i9100")

nerdoc avatar Dec 22 '15 04:12 nerdoc

This is exactly what happens and the reason i've opened my issue(referenced above). I've also tried several QR scanners and all of them worked as well but since the link process stopped using a URL and switched to an internal scanner it stopped working for me. Please address this problem with some priority as it related to basic functionality (even tho it's still in beta).

JStyle21 avatar Dec 22 '15 19:12 JStyle21

The preview image looks sharp, but it es not recognized :disappointed:
Edit: S2 CM12.1

lukeIam avatar Dec 22 '15 20:12 lukeIam

Same issue here.

raubv0gel avatar Dec 26 '15 13:12 raubv0gel