summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2019-11-30 21:32:46 +0000
committerEran Messeri <eranm@google.com>2019-12-04 16:10:28 +0000
commit4a960316170e0941ac1ca5d973a0b18884f9298e (patch)
tree21c22d7f8772ff5bea06c712dca2a82ff871f02b /tools/aapt2/java/JavaClassGenerator.cpp
parentee7d195f0324b8311babd849aa211b8ae6f4ac7e (diff)
Device Identifiers access: only on organization-owned devices
Deprecate access to device identifiers on non organization-owned devices. This is in line with changes to device identifiers access made in Android Q. Profile owner access to device identifiers on personal devices was deprecated in Q and is now removed. However, on an organization-owned device, for asset management purposes, the profile owner maintains access to device identifiers as well as the ability to perform device ID attestation. This is done by adjusting the checkDeviceIdentifierAccess method in the DevicePolicyManagerService to take into account whether the profile owner is on organization-owned device. Bug: 145336515 Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerCanGetDeviceIdentifiers Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testProfileOwnerCanGetDeviceIdentifiers Change-Id: I13486509b5af7acb4713adf8cb17fa301e647268
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions