diff options
author | Svet Ganov <svetoslavganov@google.com> | 2015-05-07 10:48:44 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2015-05-11 17:13:57 -0700 |
commit | 8c7f700a59ad26e75c9791335d78f14322cad49a (patch) | |
tree | 151d514ffaf4c6bde3ee650e8f94b7f64eb74fd8 /test-runner/tests | |
parent | 3ce72722ca14ad9e84ca54920bb2829696f68d53 (diff) | |
download | frameworks_base-8c7f700a59ad26e75c9791335d78f14322cad49a.zip frameworks_base-8c7f700a59ad26e75c9791335d78f14322cad49a.tar.gz frameworks_base-8c7f700a59ad26e75c9791335d78f14322cad49a.tar.bz2 |
Add permission meta-state flags to support grant/revoke permission policy.
We now maintain a mata-state with each permission in the form of flags
specyfying the policy for this permission. This enables support of the
following use cases:
1. The user denies a permission with prejudice in which case an app cannot
request the permission at runtime. If an app requests such a permssion
it gets a denial unless the user grants the permission from settings.
2. A legacy app with disabled app-ops being upgraded to support runtime
permissions. The disabled app ops are converted to permission revocations.
The app ops manager is a part of the activity manger which sits on top
of the package manager, hence the latter cannot have a dependency on the
former. To avoid this the package installer which is the global
permission managment authority marks the permission as revoked on
upgrade and the package manager revokes it on upgrade.
3. A device policy fixing a permission in a granted or revoked state. This
additional information is folded in the meta-state flags and neither
apps can request such permissions if revoked not the user can change
the permission state in the UI.
Change-Id: I443e8a7bb94bfcb4ff6003d158e1408c26149811
Diffstat (limited to 'test-runner/tests')
0 files changed, 0 insertions, 0 deletions