mobile
mobile copied to clipboard
Autofocus for TOTP QR code on Android is not working
Describe the Bug
Months ago scan a QR code to add 2FA keys was working great. You can see that the camera is trying to focus the QR. Like other apps (Google Authenticator, for example).
But from the last month (I don't know how many) autofocus is not working, I can add in seconds the code to Google Authenticator, but when I open Bitwarden -> (entry) -> scan code I only see a blury screen and it never focus. I need to do some triks like zomm in the screen to have a bigger QR and move my phone far from the screen (where it has focus)
Steps To Reproduce
- Open BitWarden
- Open one entry
- Edit the entry
- Click on the "camera" icon to add a TOTP QR code
- Point with the camera to the screen and the focus will not be modified, so almost all normal Qr codes will not be scaned without some screen zoom that permit move your phone until screen is in focus and QR elements are distingible (thank to the zoom)
Expected Result
In 5. autofocus will try to focus the screen / QR code, like before and like other 2FA apps (Google Authenticator, for example). When the code is in focus BitWarden/QR Lib will decode the image and extract the QR Code
Actual Result
- Autofocus dosn't work, so screen is blurry and BitWarden can't add a normal size QR code. You need to move your phone far from the screen, but at this point QR is too small, so you need to perform a zoom in screen.
Screenshots or Videos
Environment
- Samsung Galaxy A3, Android 7
Additional Context
I can't reproduce this. Autofocus is working at my phone.
Device: OnePlus 8 Operating system: Android 10 (OxygenOS 10.5.9.IN21BA) Build Version: 2.5.0 (3093) Is this a Beta release? No
Can't reproduce either. App is grabbing the code instantly
Device: Xiaomi MI A1 Operating system: Android 9 Build Version: 2.5.0 (3093) Is this a Beta release? Yes
But your autofocus is working? If you move your cellphone it is focusing different things? Maybe your "initial" focus is correct for your screen but if you point to other places you can see that the focus is the same.
I can't take a screnshot, it says something that for security I can't do this at this moment (with the camera on bitwarden), but I see very blurry the screen.
While I was writing this the phone was automatically locked. I unlocked it and autofocus start working! But... I locked it again and unloked and focus was fixed again, I can't restore the autofocus on BitWarden. I saw this very clearly because aI was pointing to my keyboard and I see how is focusing it. I pointed to the screen and focus worked too... until it stopped after lock the screen.
I can activate again autofocus on BitWarden a second time after try to take a screenshot that minimized BitWarden and poped-up a notification "You can't take a screenshot for security policies". After this autofocus on BW was working, I closed BW and opened again and focus is fixed again and I can't reproduce again the autofocus temporal fix.
So there is something that brokes BW autofocus on my phone, but I know that it can wok always because camera app and Google Authenticator doesn't have this problem
Edit: I can recover autofocus a third time moving BW to background and foreground, but I don't know why this happens.
Galaxy S10, Android 10. Also experiencing auto focus issues.
Hi, I'm using Asus Zenfone M2 and I have several issues, including Auto Focus not working and the Camera view is skewed/stretched according to the phone orientation.
For example, if it's Portrait mode, the camera view stretched top and down, making the QR Code tall and probably unreadable for the scanner, in addition with that, the Auto Focus fails and resulting in blurry, stretched image.
Edit: Device: Asus Zenfone M2 Operating System: Android 9 Bild Version: 2.7.0 (3258) Is this a Beta release? Yes
I'm affected by the issue, cant really scan any QR at all:
- Device: Moto G7
- Bitwarden 2.8.0 (3349)
- OS: Android 10
As I was writing this, I thought of something. Perhaps, my phone is somehow unable to connect to Google's image recognition servers in order to read a QR code... That sounds like a stretch, because shouldn't your phone be able to read a QR code on its own and process it? But sure enough, I disconnected from my WiFi (with PiHole) and used mobile data, and Bitwarden immediately recognized the QR code.
If you're running PiHole, or a similar DNS blocking service, please try disconnecting from it and trying again. Although, I wonder, why does my phone need Google? in order to read a simple QR code?
I left the original message below anyways:
I have this same issue with a Samsung Galaxy S8 running Android 9.
Although, what I'm wondering, is if this issue actually has anything to do with Bitwarden. In my case, I've seen this exact same behavior in another app a few months ago. I forgot what it was, but while the view wasn't stretched, it refused to recognize/scan the QR code.
Experiencing the same issue.
Device: OnePlus 3T
OS Version: Android 9
Bitwarden: 2.8.0 (3349)
Same issue. Device: Xiaomi MI A1 OS Version: Android 9 Bitwarden 2.14.2
Same issue. Device: Samsung Galaxy J3 (SM-J320A) OS Version: Android 6.0.1
@ingalfsan Hi! Can you re-test using the latest released version please?
Hi folks, I am facing this issue even now. Phone: Redmi Note 11 App: 2023.1.0 Android: 12 MIUI: 13.0.4
Let me know if any other info is required to help out
I have the same problem on a Motorola Edge 30 PRO with pure Android 13.