DPM API review: Remove "ForUser" method
Replace the setProfileOwnerCanAccessDeviceIdsForUser with
setProfileOwnerCanAccessDeviceIds that takes the DPM's user ID.
Per automated API review, new methods that target a specific user (by
taking in a UserHandle) are discouraged.
Instead, the caller should get the user-specific service from the user
context.
Bug: 126700461
Bug: 126699845
Test: Manually, flashed a device and set-up TestDPC on it straight to
work profile, then verified it can do Device ID attestation.
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: I13f20f4a434394f266a3dc2373152cb1b9ea2d2b
3 files changed