mirror of
https://github.com/bitwarden/android.git
synced 2026-03-12 21:24:24 -05:00
S20FE scanning TOTP QR is using wide camera / camera is stretch up on height #1127
Closed
opened 2025-11-26 22:39:45 -06:00 by GiteaMirror
·
40 comments
No Branch/Tag Specified
main
premium-upgrade/PM-33507-banner-dismissal-persistence
premium-upgrade/PM-33506-premium-status-changed-push
premium-upgrade/PM-33505-mobile-premium-upgrade-flag
error-state-update
fix/PM-33394-cipher-error-handlers
fix/PM-33394-folder-error-handlers
fix/PM-33394-send-error-handlers
llm/add-resolving-sdk-updates-skill
llm/add-cherry-pick-skill
PM-29871-external-link-buttons
QA-1523/sanity-test-saucelabs
claude/android-implementer-agent
release/2026.3-rc48
sdlc/sdk-update
PM-24380/flight-recorder-redact-hostname
PM-26577-app-links-support
PM-26896-autofill-fix
renovate/lock-file-maintenance
release/2026.2-rc47
PM-32714/fallback-to-web-vault-host
pr-6572
PM-28834/setting-app-layout-horizonos
vvolkgang/process-release-notes-v2
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
context-rules
devclarity/update-code-review-command
PM-20026/force-ltr-passwords-and-codes
release/2025.12-rc41
cmcg/testCoverage
claude-skill/creating-feature-flags
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
optimize-test-workflows
tier2-test-sharding
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
ps/implement-sdk-repository-example
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
cs-workaround-linked-0-copy
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
km/15084-testing
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.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#1127
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 @sionzee on GitHub (Oct 24, 2020).
Describe the Bug
The Samsung S20FE supports ultra-wide camera. Unfortunately when I open the TOTP scanner then it uses this camera and the QR looks stretch to height. So I'm not able to scan the QR (sometimes it works but in most cases not).
Steps To Reproduce
Expected Result
It should use the proper camera what is not using ultra-wide lens and perfectly read the QR.
Actual Result
QR is not readable. The Bitwarden don't see it and is not scanning it.
Screenshots or Videos
I'm not able to record/take a picture because the application is blocking it.
Anyway on this step I noticed something interesting. When I open it through Bitwarden TOTP scanner then it is stretched up to height. But if I use a default camera in the phone and use any mode of the camera then it doesn't looks stretched up.
Environment
Additional Context
As I mentioned in the "Screenshots or Videos" section maybe it is not related to Ultra-wide camera.
Anyway seems I'm able to "scan" everything now even when the camera looks really stretched up.
Maybe it can be related to QR density? Where it is able to read it on small QR but have problem with high density one's.
I also cannot remember what page was not working at all. So I want to at least report the stretch up issue.
@sionzee commented on GitHub (Oct 24, 2020):
Sorry for commenting it immediately after posting it.
Maybe would be great to have an option what camera should be used in the app settings?
The future is bringing here multiple cameras/lens and the camera which is opened in Bitwarden have no any settings.
@dberthia commented on GitHub (Dec 23, 2020):
Also seeing this issue on my OnePlus 8 Pro- unable to scan a QR code and the scan window is distorted when the camera is active. Worked fine a month or so ago. Somebody on Reddit is seeing this as well:
https://old.reddit.com/r/Bitwarden/comments/jkv7ho/bug_cannot_scan_qr_codes_to_configure_totp/
@cbrherms commented on GitHub (Jan 6, 2021):
Same issue here on pixel 5
@gittyhubbyfrankybobby commented on GitHub (Mar 2, 2021):
Same issue pixel 4xl
@CDNHammer012 commented on GitHub (Mar 7, 2021):
Same issue here: OnePlus 6 - but found a workaround. Placing the phone in landscape allowed the camera to properly register the QR code.
@ThorpeJosh commented on GitHub (Mar 17, 2021):
Same issue with Oppo F7 and R15, landscape and portrait both stretched the standard 4:3 camera to entire screen making it unable to read QR
@julienferga commented on GitHub (Apr 17, 2021):
Same issue on Xiaomi Mi 10T Pro
@Hyrules commented on GitHub (May 18, 2021):
Same issue on One plus 6T image seems stretched and scanning does not work.
@AdamHess commented on GitHub (Jun 30, 2021):
This is still an issue: OnePlus 5T
@MaximilianEmel commented on GitHub (Jul 13, 2021):
Also an issue still with the Pixel 4a.
@ihor-chaban commented on GitHub (Aug 27, 2021):
Same on Redmi Note 4X
@hmmcclish commented on GitHub (Sep 4, 2021):
Same on F(x)tec Pro1, in both portrait and landscape mode. Workaround was to paste QR code into MS Paint, shrink height to 75%, and retry. Scanned perfectly.
@christ-off commented on GitHub (Nov 24, 2021):
Same issue on Samsung A52S 5G
As cameras are the same (yes it includes a wide angle) this should occur also on non 5G A52
@renaudallard commented on GitHub (Feb 10, 2022):
About the same issue with a Motorola Edge 20 pro. Picture is not really stretched, but completely blurry, I had to increase the size of the QR TOTP code to about 20cm to be able to scan it on my screen. QR code scanner pro and the camera app are able to scan the same QR code without issue. App version is 2.15.0
@donutboyy commented on GitHub (May 27, 2022):
Same issue on Samsung Galaxy S22 except I am able to scan the QR code, just looks warped in the viewfinder. Occasionally crashes
@jsabater commented on GitHub (Jun 9, 2022):
Same issue on a Samsung Galaxy A50 with Android version 11. I have tried different settings in the camera but I think that the Bitwarden app does not use such settings.
Any information on when or how this issue may be resolved? I just subscribed to the Premium Bitwarden.com service in order to be able to use the OTP feature and now I cannot 🤷
Thanks in advance.
@ksolheim commented on GitHub (Jul 19, 2022):
Samsung S21+ - Looks like it's using the ultra wide camera.
Unable to scan any QR codes for with Bitwarden.
@christopher-ursich commented on GitHub (Oct 13, 2022):
Same issue on Pixel 5a on Android 13.
@JuliaSzulc commented on GitHub (Dec 17, 2022):
Same issue on Samsung Galaxy A5 with Android 13
Blurry and stretched picture, can't scan anything. It's been over two years since opening this issue. Are you planning to fix it?
@Greenderella commented on GitHub (Feb 14, 2023):
Hi there,
I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.
Thanks!
@sinap-se commented on GitHub (Mar 16, 2023):
This issue is present on a Pixel 7. Of note, on this device, the 'lowest' zoom level is a wide-angle fish eye kind of camera. It is a zoom value of 0.7 in the official camera app. 1.0 does not use this fish eye.
This could be resolved by allowing pinch to zoom or gestures, or defaulting to 1.0 zoom.
@FaviFake commented on GitHub (Apr 29, 2023):
I have the same issue on my Samsung Galaxy A72. For more information about my phone, see issue #2448
Here's a video showing the bug:
https://user-images.githubusercontent.com/86537048/227742136-2c5ff612-4070-48c8-b8c4-411b850f0708.mp4
@renaudallard commented on GitHub (Apr 30, 2023):
Your video doesn't show trying to scan a QR code.
The strangest thing is that bitwarden is the one and only app I have seen with that issue.
@capatina commented on GitHub (Oct 19, 2023):
HELLO PLEASE FIX THIS ASAP (GALAXY z FOLD 5)
@FaviFake commented on GitHub (Oct 19, 2023):
@renaudallard Yes, but it shows how distorted the camera is.
@FaviFake commented on GitHub (Oct 19, 2023):
@capatina You can easily fix this by clicking this button:

@capatina commented on GitHub (Oct 19, 2023):
@FaviFake that is not a fix. That's just adding the code manually - something which not all providers make easy to do
@FaviFake commented on GitHub (Oct 19, 2023):
@capatina Sorry, I meant to say that the QR code is not the only way to add a TOTP. I don't understand why some providers would make it hard to find the key, for me it has always been not more than a tap away or sometimes it's even displayed without user input.
That said, bitwarden should definitely fix this asap.
@capatina commented on GitHub (Oct 19, 2023):
@FaviFake here is coinbase.com, for example:

I had to scan the QR code with my phone camera, copy the link to a notepad app, copy the secret key, and then paste that into Bitwarden because the bitwarden scanner doesn't work
@rvt0001 commented on GitHub (Dec 24, 2023):
I resolved this issue on my Samsung android tablet by changing the auto-rotate setting to portrait.
@stefandier commented on GitHub (Jan 19, 2024):
Same on Pixel 7 with Android 14 (January 2024).
That's what's making me refrain switching from free to paid...
@FaviFake commented on GitHub (Jan 19, 2024):
You're saying this bug alone is enough to make you refrain upgrading your account? You can easily go around it by entering the code manually.
@cbrherms commented on GitHub (Jan 19, 2024):
This bug, plus so far it being 3 years without a fix, is why I haven't returned to BW.
@FaviFake commented on GitHub (Jan 19, 2024):
... There is a fix: https://github.com/bitwarden/mobile/issues/1130#issuecomment-1868421257
@renaudallard commented on GitHub (Jan 21, 2024):
What I don't understand is that all apps that I have installed and that can scan QR codes work just fine. Only bitwarden is having the issue.
@BlueBlock commented on GitHub (Feb 25, 2024):
On a Pixel 6, I was able to resolve this by going to the camera app and disabling the Camera setting "Camera scan suggestions".
@AndrewHutcheson commented on GitHub (Feb 29, 2024):
I am also having this issue. Oneplus 6t. It doesn't matter if it is landscape or portrait mode.
@tehniemer commented on GitHub (Mar 12, 2024):
This didn't work for me on a Pixel 6a
@Cris-- commented on GitHub (May 20, 2024):
+1
@vvolkgang commented on GitHub (Jun 20, 2024):
Issue migrated to https://github.com/bitwarden/mobile/issues/1130