Language

PackageInstallerPermissionState Enum

Definition

public enum PackageInstallerPermissionState
type PackageInstallerPermissionState = 
Inheritance
PackageInstallerPermissionState

Fields

Name Value Description
Default 0

Value is passed by the installer to setPermissionState(String,int) to set the state of a permission. This indicates no preference by the installer, relying on the device's default policy to set the grant state of the permission.

Android reference for android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_DEFAULT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Granted 1

Value is passed by the installer to setPermissionState(String,int) to set the state of a permission. This indicates the installers wants to automatically grant the permission to the package being installed. The user and other actors in the system may still be able to deny the permission after installation.

Android reference for android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_GRANTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Denied 2

Value is passed by the installer to setPermissionState(String,int) to set the state of a permission. This indicates the installers wants to deny the permission by default to the package being installed. The user and other actors in the system may still be able to grant the permission after installation.

Android reference for android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_DENIED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to