Merge check Device ID logic in DPMS
checkDeviceIdentifierAccess() and enforceCallerCanRequestDeviceIdAttestation() overlap in terms of checking if the caller has acces to the device ID. However they each use different logic for this check. To ensure these two checks are always in sync, they should call the same underlying code wherever logic can overlap. Fixes: 220721469 Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testKeyManagement Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegatedCertInstallerDirectly Test:atest android.admin.cts.DevicePolicyManagerTest Change-Id: Ibe196123640c1d2d29fd62c7c77453c0874fc7a3
Loading
Please register or sign in to comment