The Android Scanning Stack: Google Lens, ML Kit Barcode Detection, and the Camera2 Capture Pipeline
How to scan QR codes on Android with the built-in camera, Google Lens, from existing photos — with Samsung and Pixel specifics and a troubleshooting table.
Updated September 2026
Most modern Android phones scan QR codes straight from the camera app. The exact wording varies between Samsung, Google Pixel, and other manufacturers, but the steps are similar.
Method 1 — the Camera app
- 1Open the Camera app.
- 2Point it at the QR code.
- 3A link or "Scan QR code" pop-up appears at the bottom of the viewfinder.
- 4Tap it to open the link.
- 5If nothing appears, open Camera settings and enable "Scan QR codes" or "Google Lens suggestions".
On Samsung Galaxy phones, the pop-up usually reads "Scan QR code" and appears as a tappable card in the viewfinder. On Google Pixels, Lens detection is on by default and the link chip appears near the bottom of the frame. Both show the destination domain before opening — read it before you tap.
Method 2 — Google Lens
On Pixel phones and many others, Google Lens is built into the camera (a small icon in or below the viewfinder). Tap the Lens icon, point at the code, and tap the link Lens finds. You can also open the Google app and tap the Lens icon in the search bar — useful when the code is on a computer screen or in a document rather than in the room with you.
Method 3 — scan from a saved photo
- 1Open the photo in Google Photos.
- 2Tap the Lens icon at the bottom.
- 3Lens detects the QR code and offers to open the link.
Method 4 — from inside Chrome
Chrome on Android can scan a QR code directly: touch and hold the home page's address bar area, or open the camera icon in the address bar on some versions, and choose "Scan QR code". This is convenient when the code is printed on packaging you are holding while browsing.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| No pop-up in Camera | Lens suggestions disabled | Camera settings → enable "Scan QR codes" / "Google Lens suggestions" |
| Pop-up appears then vanishes | Camera refocused away from the code | Hold steadier; tap the screen to lock focus on the code |
| Code on a screen will not scan | Screen refresh interfering with capture | Use the Google app Lens instead, or take a photo and scan that |
| Link opens the wrong app | Code encodes an app: or market: link | Check the preview text before tapping |
| Old phone has no built-in scanner | Android version predates built-in scanning | Use the browser-based scanner on this site — no install needed |
When the built-in scanner is missing
Android fragmentation means scanning support varies more than on iPhone. A phone bought in the last four years almost certainly scans from the camera, but budget handsets, custom ROMs, and older Android versions (before Android 9) often do not. Rather than installing a random scanner app — many of which are ad-supported and some of which have been caught quietly logging scanned URLs — use the browser-based scanner on this site. It opens your camera, reads the code, and shows you the destination without any install or account.
Reading the destination safely
Whatever scanner you use, the rule is the same: read the preview before you tap. Android's camera pop-up and Google Lens both show the decoded link. Check the domain right to left — the real site is the part just before the .com or .co.uk, not the subdomain bolted on the front. secure-login.yourbank.example.com is not your bank. If the link is a shortener (bit.ly and similar) that hides where it goes, treat it as unknown until you can see the destination.
The same urgency rule applies on Android as on iPhone. Parking notices, parcel redelivery, and account-verify prompts delivered through a printed code are the most common quishing lures. A real parking operator takes payment through its app or a meter; a real courier leaves a card or a tracked link in your account, not a sticker on a wall.
| Android scanner | Where it lives | Best for |
|---|---|---|
| Camera app | Built-in | Everyday scanning — fastest path |
| Google Lens | Camera or Google app | Codes on screens, in photos, or in documents |
| Chrome address bar | Browser | Scanning while already browsing |
| This site's scanner | Browser, no install | Phones with no built-in scanner |
Permissions, battery, and privacy
The camera-based scanner needs camera permission, which iOS and Android both grant per app and which you can revoke at any time in Settings. Scanning itself uses the camera briefly and barely touches the battery. The privacy question is not the camera but the destination: a code can send you anywhere, so the preview is where the real decision happens. Unlike a dedicated scanner app, the built-in camera scanner does not keep a history of what you scanned unless you explicitly use the Control Centre scanner on iOS, which retains its own list — handy for retracing a code you scanned earlier, worth knowing about if you would rather it not.
Under the hood: ML Kit and the Lens pipeline
When a modern Android camera detects a QR code, the frame is processed by Google ML Kit's Barcode Scanning API — the same on-device model that powers Google Lens. ML Kit runs entirely on the device using a bundled TensorFlow Lite model, so detection adds no network latency and works offline. The API returns the raw payload, the barcode format, and structured parsed data for known types (URL, Wi-Fi credentials, contact, calendar event, geo point), which the system uses to decide which action to surface in the viewfinder chip.
The fragmentation that makes Android scanning inconsistent across manufacturers is not the ML Kit model itself — that is uniform — but which app owns the camera and whether it has wired up the barcode detector. Samsung's camera app, Google's Pixel camera, and third-party launchers all sit on top of the same Camera2 capture pipeline, but each decides independently whether to invoke the barcode scanner and how to present the result. This is why the same code scans instantly on a Pixel and silently on a budget handset: the model is there, the integration is not.
Camera2, CameraX, and why focus matters
The Android camera stack exposes frames through Camera2 (the low-level hardware abstraction layer) or the CameraX wrapper most apps use. The barcode scanner subscribes to the image-analysis use case, which receives YUV frames at a resolution and frame rate the app negotiates with the hardware. Two hardware realities govern whether a code scans: focus distance and exposure. A macro-focused code at 15 cm scans in a single frame; a defocused code at the same distance may never produce a frame sharp enough for ML Kit to lock onto, which is why tapping to focus often makes a stubborn code scan instantly.
Low light compounds the problem the same way it does on iOS: the camera raises ISO and lengthens exposure, softening module edges until they fall below ML Kit's detection threshold. The fix is environmental — more light, a steadier hand, or moving closer so the code fills more of the frame and the autofocus locks more reliably — not a setting on the phone.
Why the preview is the security boundary
As on iOS, the decoded URL appears in the viewfinder chip before the phone opens it, and that chip is the only human-in-the-loop checkpoint in an otherwise automatic pipeline. ML Kit has already decoded the payload and classified it; your tap is what commits the phone to acting. A quishing sticker defeats a user who taps without reading, because nothing downstream re-verifies the destination. The domain check — reading right-to-left past any subdomain — is the same on Android as on iPhone, and it is the single habit that defeats the overwhelming majority of real attacks regardless of which scanner app or manufacturer skin is in use.
Older Android versions without built-in scanning need a third-party scanner app. The scanner on this site works in your browser with no install.