commit | 1b7f98457f6903a52c394f830d457781eec05b13 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Fri Sep 24 11:33:45 2021 -0700 |
committer | Felipe Leme <felipeal@google.com> | Fri Sep 24 11:58:20 2021 -0700 |
tree | 51237c0d5fb4d7a1aeba00c018749d1b1157f3af | |
parent | 292c4941c6aca735a9af43b2e74ef1ccfff9a17b [diff] |
Fixed DPMS.setDeviceOwner() permission check. It was not clearing the caller's identity before calling manageUserUnchecked(). Test: atest com.android.bedstead.nene.devicepolicy.DevicePolicyTest#setDeviceOwner_deviceOwnerIsAlreadySet_throwsException Fixes: 200810234 Change-Id: I3f96e1bf477f310d0c8eee935839cf401df44e02