diff options
author | Alex Kershaw <alexkershaw@google.com> | 2020-02-07 14:02:48 +0000 |
---|---|---|
committer | Alex Kershaw <alexkershaw@google.com> | 2020-02-11 14:06:33 +0000 |
commit | 0124a0984455d07a5dc5141fe0a97ec8d0532eff (patch) | |
tree | 73a817b97321157e1eaa568407783b5b41dde569 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 1e77561653feb79994c5b7bf5738d345303efb3b (diff) |
Give new permission to set cross-profile app-op to ManagedProvisioning
This is required for the provisioning cross-profile consent screen which
is used to take some apps off INTERACT_ACROSS_USERS.
Hidden API CrossProfileApps#setInteractAcrossProfilesAppOp is changed
from requiring the broad app-op permissions to requiring
CONFIGURE_INTERACT_ACROSS_PROFILES. It then clears identity before
calling into AppOpsManager. For convenience, we also allow apps (such as
Settings) with the broader app-op permissions to continue to call this
method; in that case, we simply don't clear the identity and let
AppOpsManager check the permissions (so we allow AppOpsManager to set
the requirements if you don't have the new
CONFIGURE_INTERACT_ACROSS_PROFILES).
The CL also adds 'withCleanCallingIdentity' support to
CrossProfileAppsServiceImpl and moves over existing calls.
Bug: 136249261
Bug: 140728653
Test: atest --verbose com.android.managedprovisioning.provisioning.crossprofile.CrossProfileConsentActivityRoboTest
Change-Id: Ibd304563dd1ef5f16784e3502be5ef1ec4675b63
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions