As a mobile application security engineer, you are reviewing how this app's permission model behaves in practice.
What is Android's one-time permission and how does it behave differently from "While using the app" permission?
- A.One-time permissions cover location alone (the camera and the microphone offer no such option), and an app needing occasional access to either falls back on the while-using grant; the platform records every one-time decision in the same table it uses for the others. Google added the option for location because a single fix is the common case, and no other permission has an equivalent short-lived form on any current release of the platform.
- B.One-time permission is the same grant as while-using under different wording (the dialog text changed at Android 11 while the behaviour stayed put), and every app sees an identical authorization state from either. The platform keeps both labels for familiarity.
- C.A one-time permission grants access only for the current session: when the app is closed (process killed, not just backgrounded to the recent apps list) the permission is automatically revoked and must be re-requested next launch. "While using the app" persists until the user explicitly revokes it. One-time is more privacy-preserving for apps that only need occasional access without a standing grant.