TOPIC 33/6214 MINNOT STARTED

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.

  1. Permission
  2. Mock the place
  3. Cancel and fail
  4. Real phone
Desk, then street

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A clue that shows in the right spotA shop reminder under its chosen geofence-event policy
Telling the phone it is somewhere elseLocation mocking
A guard who checks your fingerprintThe biometric prompt
An approved alternate entrance when the guard cannot checkA 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?

What each part of the trick stands for
In the trickWhat it stands for
accessFeature-specific permission or authentication policy
failureA failure case
privacyA 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
  1. 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.

    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. · Checked 2026-11-08

    Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.

  2. 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.

    Android biometric guide: allowed authenticators, canAuthenticate, callbacks, authentication type and cryptographic key policy. Relevant sections read 8 November 2026; not a live device test. · Checked 2026-11-08

    Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.

  3. 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.

    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. · Checked 2026-11-08

    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.

  4. 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.

    Per the search excerpt, from Android 6.0 an app asks for sensitive permissions while running, should ask in context, and should carry on with fewer features if the user says no. · Checked 2026-11-08

    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
  1. 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)

    Per the search excerpt, the emulator can set a fake location, replay a route file, set battery level and charging state, and slow the cellular speed. · Checked 2026-11-08

    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.

  2. 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)

    Shows how to set a place or a route of waypoints in the iOS Simulator and with a GPS Exchange Format (GPX) file. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  3. 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)

    Shows the system biometric dialog with fallback and negative-button options. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  4. 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)

    Vendor page: on a cloud device the tester clicks Pass or Fail on the biometric prompt to test success and failure paths. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  5. 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)

    Announces a privacy category with controls on limiting access to sensitive data and resources, and names location data among the data apps commonly access. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  6. 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. · Checked 2026-11-08

    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.

  7. 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).

    Per the search excerpt, from Android 6.0 an app asks for sensitive permissions while running, should ask in context, and should carry on with fewer features if the user says no. · Checked 2026-11-08

    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.

  8. 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.

    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. · Checked 2026-11-08

    Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.

  9. 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.

    Android biometric guide: allowed authenticators, canAuthenticate, callbacks, authentication type and cryptographic key policy. Relevant sections read 8 November 2026; not a live device test. · Checked 2026-11-08

    Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.

  10. 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.

    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. · Checked 2026-11-08

    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.

  11. 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.

    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. · Checked 2026-11-08

    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.

  12. 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.

    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. · Checked 2026-11-08

    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.

  13. 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.

    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. · Checked 2026-11-08

    Bounded relevant-section review. Paraphrased teaching; not a full SDK, device, product or legal audit.

  14. 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.

    Per the search excerpt, the emulator can set a fake location, replay a route file, set battery level and charging state, and slow the cellular speed. · Checked 2026-11-08

    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.

  15. 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.

    Per the search excerpt, from Android 6.0 an app asks for sensitive permissions while running, should ask in context, and should carry on with fewer features if the user says no. · Checked 2026-11-08

    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.

  16. 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. · Checked 2026-11-08

    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.

  17. 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.

    Vendor page: on a cloud device the tester clicks Pass or Fail on the biometric prompt to test success and failure paths. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  18. 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.

    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. · Checked 2026-11-08

    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.