On Android 5.1 (API level 22) and the following versions, the system requires the user to authorize all manifest requests when the app is installed, otherwise the app cannot be installed and the permissions will not be revoked after installation.
Http://7jpolu.com1.z0.glb.clouddn.com/pre-marshmallow-permission.jpg
On Android 6.0 (Marshmallow_ Marshmallow) and above, the system authorizes all normal permissions when the app is installed, and dangerous permissions need to be dynamically authorized by the user when the app is running (for example, when the user presses the "Camera Photo" button).
Http://7jpolu.com1.z0.glb.clouddn.com/marshmallow-permission.png
Http://ww1.sinaimg.cn/large/6a195423jw1ezwtttfjp1j20u01hc0vr.jpg
Http://ww2.sinaimg.cn/large/6a195423jw1ezxulzbeu2j20iq0ggt9y.jpg
6.0 The system classifies the permissions, generally the following categories:
① Normal Protection permissions
Normal permissions do not have a significant impact on user privacy or security issues, these permissions are granted after installation, do not need to display reminders, and users cannot cancel these permissions.
Normal permissions are mainly about the network, Bluetooth, time zone, shortcut methods, etc., as long as the manifest.xml specified these permissions, it will be granted by default, and cannot be revoked.
② Hazard (Dangerous) permissions
Dangerous permissions are objects that are primarily handled by run-time permissions, which can cause privacy issues or affect other programs to run.
android6.0+ need to apply in manifest and send intent to let the user tick the settings screen.
If the Targetsdkversion setting is less than 23, then the run-time permission mechanism will not be turned on for this application on the 6.0 system, which is handled as before.
A permission within a group is allowed, and other permissions for that group are allowed. For example, if your app grants permission to read a contact, your app is given permission to write to the contact because both the read contact and the write contact are grouped by contact permissions.
③ Special (particular) permissions
Special permissions are some particularly sensitive permissions, generally do not apply, mainly by two
System_alert_window, set up a floating window to do some black tech
Write_settings modify system settings, such as changing the phone ringtone
④ other permissions (typically rarely used)
Android 6.0 Dynamic Licensing