Can Android apps request additinal permissions at runtime?

后端 未结 2 731
时光说笑
时光说笑 2021-02-12 15:15

I\'m working on an app which contains some scripting support. The scripts executed by this app might require all sorts of permissions in the future, but it\'s difficult to predi

2条回答
  •  臣服心动
    2021-02-12 15:43

    The Android M introduces a new app permissions model which streamlines the process for users to install and upgrade apps. If an app running on the M supports the new permissions model, the user does not have to grant any permissions when they install or upgrade the app. Instead, the app requests permissions as it needs them, and the system shows a dialog to the user asking for the permission.

    User Grants Permissions at Run-Time: When the app requests a permission, the system shows a dialog to the user, then calls the app's callback function to notify it whether the permission was granted. If a user grants a permission, the app is given all permissions in that permission's functional area that were declared in the app manifest.

    For more information check this link.

提交回复
热议问题