Android 6.0 Dynamic Licensing

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.