commit | 2b04a5988cf423eb6e8d03fbbadca39eb2828844 | [log] [tgz] |
---|---|---|
author | Ilyas Sung <ilyassung@google.com> | Wed Mar 20 18:01:20 2024 +0000 |
committer | Ilyas Sung <ilyassung@google.com> | Fri Mar 22 14:47:09 2024 +0000 |
tree | 0488a53d3803c021f80296161a892dd3bb35940f | |
parent | 5afaf4bfc37f7730054829a959f4a9e86ada0a82 [diff] |
Pass the context for the calling user to DevicePolicyManager when checking for the Device Owner. On Headless System User Mode, the Device Owner is not guaranteed to be on the system user, therefore this check fails Bug: 329872452 Test: atest DeviceOwnerTest#testHardwarePropertiesManagerAsDeviceOwner Change-Id: Ia8a3e70c726646b245175c85c920cb948ebcc380