diff options
author | Felipe Leme <felipeal@google.com> | 2021-09-30 16:20:30 -0700 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2021-09-30 23:30:23 +0000 |
commit | ab0a45f0491d1b2266b041cf2676b47051d35ff6 (patch) | |
tree | 3d7f23e67f4836dc728f828f9f4dcce733d9708f /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a491ff684eb4974e18549630efe91d8725564780 (diff) |
Proper fix for setDeviceOwner() permission check.
Previous fix was clearing the binding identity for the whole
manageUserUnchecked() call, which would break setting it using adb -
this change limits the scope just to the package manager calls.
Test: atest com.android.bedstead.nene.devicepolicy.DevicePolicyTest#setDeviceOwner_deviceOwnerIsAlreadySet_throwsException
Test: adb shell dpm set-device-owner --user 0 com.afwsamples.testdpc/.DeviceAdminReceiver
Fixes: 200810234
BYPASS_INCLUSIVE_LANGUAGE_REASON=existing API
Change-Id: I82e4ea2bef710420306ab17f58255ef7bc9cbb06
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions