diff options
author | Alex Johnston <acjohnston@google.com> | 2021-04-15 14:06:50 +0100 |
---|---|---|
committer | Alex Johnston <acjohnston@google.com> | 2021-04-15 14:06:50 +0100 |
commit | 53fdbbcc97f45c6d3de489b81885a7ee55633a99 (patch) | |
tree | bc7f628b59a6d96b61312c987e50a84bceabcb8c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 60f71b5b01f435011bb464624826ec339d493ee1 (diff) |
DPMS setProfileOwner access control
* Check whether the caller is system or has
permission to set the profile owner before
checking whether the package exists on
device.
Manual testing
* Call DPMS setProfileOwner with an installed
package but not as the system caller
* Call DPMS setProfileOwner with an uninstalled
package and not as the system caller
* Both calls should give the same error message
and logs.
Bug: 184525740
Test: manual testing
atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.ProfileOwnerTest
Change-Id: I24e4d33442b0cf9baae290c0dbde45d725843055
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions