The Android Permission Model
Understand install-time and runtime permissions.
The Permission Model
Android protects sensitive data and capabilities behind permissions. Your app must declare what it needs and, for sensitive items, ask the user at runtime.
Understanding the two categories is the foundation of getting this right.
Declaring in the Manifest
Every permission your app uses must be declared in AndroidManifest.xml with a <uses-permission> tag. This is true for both categories.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />All lessons in this course
- The Android Permission Model
- Requesting Permissions in Compose
- Handling Denials and Rationale
- Best Practices for Privacy