Testing phone sensors: location, biometrics and camera
A phone estimates a place and checks local access. Learn to test chosen locations, biometric prompts and camera paths without mistaking a mock for real life.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a treasure hunt. In a treasure hunt, you must stand in the right spot for a clue to appear. Now imagine you must test the hunt, but you cannot walk to all the spots. You need a way to tell the phone that it is in three different places, one after the other.
Daily List is a to-do list app. Nina, the product owner, adds a reminder for arriving at the shop. She also adds fingerprint access and a camera button that attaches a photo to a task.
Tom, the tester, cannot walk to every shop. He sets a made-up place on an emulator, a phone copy that runs on a computer. He then plays a route toward the shop and watches for the reminder.
The phone estimates location; it does not know the exact spot. A fingerprint prompt checks local access, not the holder's name or remote account by itself. Location, biometrics and camera features have different access rules. Tom checks what each feature needs, how it fails and what private data it uses.
The picture has a limit. A treasure hunt uses real walking. A made-up place is cleaner than real life, which has weak signal, drift, indoor walls and low battery.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 2 in this section
- emulator
- a program that acts like another device
- biometrics
- body signs, such as a fingerprint, used as proof
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Treating phone sensors like a treasure hunt that a tester can play from a desk, with a few real walks to keep it honest.
- Permission
- Mock the place
- Cancel and fail
- Real phone
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A clue that shows in the right spot | A shop reminder under its chosen geofence-event policy |
| Telling the phone it is somewhere else | Location mocking |
| A guard who checks your fingerprint | The biometric prompt |
| An approved alternate entrance when the guard cannot check | A recovery route allowed by the feature policy |
WHERE THIS PICTURE STOPS
- A real treasure hunt uses real walking, but a mocked place is clean.
- A guard is a person, but a prompt is drawn by the phone system.
- A hunt is played once, but a phone checks its place again and again.
- A local biometric approval is not a civil-identity check or proof of remote account authentication.
HOOK
Fake it, then walk it.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Give each feature three questions: what access does it need, what happens on failure or cancel, and what private data does it use?
| In the trick | What it stands for |
|---|---|
| access | Feature-specific permission or authentication policy |
| failure | A failure case |
| privacy | A privacy side |
TELL A FRIEND
A treasure hunt played from a desk, with a few real walks to keep it honest.
OFTEN MIXED UP WITH Interruptions, networks and permissions on mobile. Mobile interruptions and permissions covers what happens when a call or a permission choice arrives. This lesson covers the sensors themselves.
Sources & standards — 4 sources
- Implementation-specific
Create and monitor geofences ↗ — Google · Create and monitor geofences: circular region; chosen ENTER/EXIT/DWELL and initial triggers; permissions, radius and delayed delivery. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.
- Implementation-specific
Show a biometric authentication dialog ↗ — Google · Android biometric guide: allowed authenticators, canAuthenticate, callbacks, authentication type and cryptographic key policy. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.
- Implementation-specific
Local Authentication ↗ — Apple · LocalAuthentication overview: local policy evaluation and isolation of underlying biometric data; official Markdown representation read. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit. Official Apple Markdown representation retrieved and read; platform availability is policy-specific.
- Implementation-specific
Request runtime permissions (Android Developers) ↗ — Google · Runtime permissions: feature-specific access, refusal/revocation, checking each protected operation and Android 11 one-time permissions. Relevant sections read 8 November 2026; not a live device test.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: Actual runtime-permission page opened: one-time revocation terminates process; unused permission reset and Android13 revokeSelfPermissionOnKill; scope depends on OS/version.
Verification supplement, 8 November 2026: Runtime permissions: feature-specific access, refusal/revocation, checking each protected operation and Android 11 one-time permissions. Relevant sections read 8 November 2026; not a live device test.
PRACTISE AND KEEP
Sources for this topic — 18 sources
- Market practice
Extended controls, settings, and help (Android Emulator, Android Developers) ↗ — Google · The Android Emulator extended controls can set a location, play a saved route and load a GPX or KML file at a chosen speed (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 8 November 2026: Extended controls: Location single points/routes, GPX/KML import and Fingerprint controls with platform limits. Relevant sections read 8 November 2026; not a live device test.
- Market practice
How to simulate location in Xcode and Simulator (Sarunw blog) ↗ — Sarunw · The iOS Simulator can use a chosen place or a GPX file of waypoints to simulate a moving location (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
BiometricPrompt.Builder (Android Developers reference) ↗ — Android Developers · Android shows a system biometric dialog and lets the app offer a fallback option such as the device credential (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Biometric authentication (BrowserStack App Live documentation) ↗ — BrowserStack · Vendor page: on a cloud device, the tester clicks Pass or Fail on the biometric prompt to test success and failure paths (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 8 November 2026: App Live manual biometric Pass/Fail/Cancel controls, supported apps/devices and documented differences from real-device lockout. Not automation API documentation. Relevant sections read 8 November 2026; not a live device test.
- Market practice
MASVS-PRIVACY: a new category in the Mobile Application Security Verification Standard (OWASP Mobile Application Security project) ↗ — Open Worldwide Application Security Project · MASVS-PRIVACY covers limiting access to sensitive data and resources, and names location data among the data apps commonly access (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
GeofencingClient — addGeofences API reference ↗ — Google Play services · GeofencingClient.addGeofences, updated31October2024: app reset/upgrade/removal/force-quit or canceled pending intent removes registrations (actual relevant primary passages opened 6 November 2026).
Reference updated 31 October 2024; addGeofences describes removal on app reset, upgrade/removal, force-quit or canceled PendingIntent. Actual passage opened 6 November 2026.
Verification supplement, 8 November 2026: GeofencingClient.addGeofences reference, updated 31 October 2024: request-ID replacement, transition pending intent and removal on app reset/upgrade/removal/force-quit or canceled intent. Relevant sections read 8 November 2026; not a live device test.
- Market practice
Request runtime permissions (Android Developers) ↗ — Google · Android runtime permissions: one-time revocation/process termination, unused reset and supported permission choices vary by OS and feature (actual relevant primary passages opened 6 November 2026).
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: Actual runtime-permission page opened: one-time revocation terminates process; unused permission reset and Android13 revokeSelfPermissionOnKill; scope depends on OS/version.
Verification supplement, 8 November 2026: Runtime permissions: feature-specific access, refusal/revocation, checking each protected operation and Android 11 one-time permissions. Relevant sections read 8 November 2026; not a live device test.
- Implementation-specific
Create and monitor geofences ↗ — Google · Create and monitor geofences: circular region; chosen ENTER/EXIT/DWELL and initial triggers; permissions, radius and delayed delivery. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.
- Implementation-specific
Show a biometric authentication dialog ↗ — Google · Android biometric guide: allowed authenticators, canAuthenticate, callbacks, authentication type and cryptographic key policy. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.
- Implementation-specific
Local Authentication ↗ — Apple · LocalAuthentication overview: local policy evaluation and isolation of underlying biometric data; official Markdown representation read. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit. Official Apple Markdown representation retrieved and read; platform availability is policy-specific.
- Implementation-specific
LAPolicy.deviceOwnerAuthentication ↗ — Apple · LAPolicy.deviceOwnerAuthentication: iOS biometric or device-passcode policy, cancellation and unavailable passcode; official Markdown read. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit. Official Apple Markdown representation retrieved and read; platform availability is policy-specific.
- Implementation-specific
LAPolicy.deviceOwnerAuthenticationWithBiometrics ↗ — Apple · LAPolicy.deviceOwnerAuthenticationWithBiometrics: biometric-only policy, userFallback handled by the app, and lockout; official Markdown read. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit. Official Apple Markdown representation retrieved and read; platform availability is policy-specific.
- Implementation-specific
Simulate a location in the debugger ↗ — Apple · Simulate a location in the debugger: Core Location consumer; GPX wpt waypoints supported, rte/trk not supported in this documented workflow. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.
- Implementation-specific
Extended controls, settings, and help (Android Emulator, Android Developers) ↗ — Google · Extended controls: Location single points/routes, GPX/KML import and Fingerprint controls with platform limits. Relevant sections read 8 November 2026; not a live device test.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 8 November 2026: Extended controls: Location single points/routes, GPX/KML import and Fingerprint controls with platform limits. Relevant sections read 8 November 2026; not a live device test.
- Implementation-specific
Request runtime permissions (Android Developers) ↗ — Google · Runtime permissions: feature-specific access, refusal/revocation, checking each protected operation and Android 11 one-time permissions. Relevant sections read 8 November 2026; not a live device test.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: Actual runtime-permission page opened: one-time revocation terminates process; unused permission reset and Android13 revokeSelfPermissionOnKill; scope depends on OS/version.
Verification supplement, 8 November 2026: Runtime permissions: feature-specific access, refusal/revocation, checking each protected operation and Android 11 one-time permissions. Relevant sections read 8 November 2026; not a live device test.
- Implementation-specific
GeofencingClient — addGeofences API reference ↗ — Google Play services · GeofencingClient.addGeofences reference, updated 31 October 2024: request-ID replacement, transition pending intent and removal on app reset/upgrade/removal/force-quit or canceled intent. Relevant sections read 8 November 2026; not a live device test.
Reference updated 31 October 2024; addGeofences describes removal on app reset, upgrade/removal, force-quit or canceled PendingIntent. Actual passage opened 6 November 2026.
Verification supplement, 8 November 2026: GeofencingClient.addGeofences reference, updated 31 October 2024: request-ID replacement, transition pending intent and removal on app reset/upgrade/removal/force-quit or canceled intent. Relevant sections read 8 November 2026; not a live device test.
- Implementation-specific
Biometric authentication (BrowserStack App Live documentation) ↗ — BrowserStack · App Live manual biometric Pass/Fail/Cancel controls, supported apps/devices and documented differences from real-device lockout. Not automation API documentation. Relevant sections read 8 November 2026; not a live device test.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 8 November 2026: App Live manual biometric Pass/Fail/Cancel controls, supported apps/devices and documented differences from real-device lockout. Not automation API documentation. Relevant sections read 8 November 2026; not a live device test.
- Official requirement
MASVS-PRIVACY-1 ↗ — OWASP · MASVS-PRIVACY-1: minimize access and sharing, including third-party SDK consent and data collection. A control, not legal certification. Relevant sections read 8 November 2026; not a live device test.
Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.