Middle
What happened to permissions in Android after version 6?
sobes.tech AI
Answer from AI
After Android 6.0 Marshmallow (API 23), a runtime permissions model was introduced.
Key changes:
- Runtime permission requests: Apps must request dangerous permissions (e.g., camera, contacts, location access) directly during operation, when they are actually needed, rather than at installation.
- Request dialogs: The system shows the user a dialog requesting permission for a specific feature, and the user can grant or deny.
- Permission management: Users can revoke granted permissions at any time through the system settings of the app.
- Permission grouping: Permissions were grouped into categories (e.g., phone-related or storage-related). Granting one permission from a group can also grant others in the same group (though this behavior may vary slightly in later Android versions).
This change aims to enhance user security and privacy by giving them greater control over what data apps can access. For developers, this means adapting app logic to check and request permissions at appropriate points in the code.