commit | f4710f6f95f748789b37f932204012be5738ecb7 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Mon Apr 26 15:34:59 2021 -0700 |
committer | Felipe Leme <felipeal@google.com> | Mon Apr 26 17:35:11 2021 -0700 |
tree | b62486d52d25079b39f0ab5f66962f7f2803ea88 | |
parent | 8479536f6e8e63af40011ac209e53d2793148cf9 [diff] |
Fixed DPMS.listForegroundAffiliatedUsers(). It was not properly clearing the caller's identity, so it would fail "in real life" when the DPC doesn't have INTERACT_ACROSS_USERS (but it was passing on CTS because the test app had it). Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner # on automotive Fixes: 186455856 Change-Id: I2924f5cdf90e767c4f2ae534788baa5c448126c5