commit | 601d3e82abaf310b690ba2829d9a00669eaf4b0d | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Tue Feb 08 15:29:59 2022 -0800 |
committer | Felipe Leme <felipeal@google.com> | Wed Feb 09 20:41:19 2022 +0000 |
tree | 35f43b378676dc46dc06b985c45f9f2b9dd3db1f | |
parent | badac481dc64a47ac338328ca56872f71caff61a [diff] |
Fixes some DPM APIs to use the context user. This APIs are primarily used by CarService, which always runs as system user, so they cannot rely on the calling user id. Test: atest CtsDevicePolicyManagerTestCases com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_newUserDisclaimer # on automotive and phone Test: manual verification Change-Id: I56bb8cd12be766ef9da6c71a524912f7f8680aad