What is "android-permission"

By default an application Android basic has no associated permissions, which means it cannot do something that could negatively affect the user experience or the data on the device.

To make use of protected features, it is necessary to declare its permission, through the label <uses-permission>, in the archive Androidmanifest.xml

If the stated permission is of type "normal" it will be granted automatically by the system, if it is of type "dangerous" the system will ask the user to explicitly grant the permission.

When the request is made depends on the version Android device and target version of the application(targetSdkVersion):

  • Applications whose targetSdkVersion is API23 or higher running on Android 6.0 devices (API23) or higher, permissions are requested at runtime.

  • Applications whose targetSdkVersion is API22 or lower running on Android devices 5.1 (API22) or lower, permissions are requested during installation/update.

Android Documentation: