Update device identifier tests to support getIccId

Android 10 restricted access to device identifiers to apps with the
READ_PRIVILEGED_PHONE_STATE permission, device / profile owner apps
with the READ_PHONE_STATE permission, and apps granted the
READ_DEVICE_IDENTIFIERS appop. In Android 11 SubscriptionInfo#getIccId
will also be protected by these same restrictions, but since
SubscriptionInfo is a Parcelable returned by the SubscriptionController
the ICC ID will be cleared instead of a SecurityException being thrown
when this data member is queried. This commit updates the device
identifier tests to also verify that the ICC ID is only available
when the new access restrictions are met.

Bug: 131909991
Bug: 173421434
Test: atest DeviceIdentifierTest
Test: atest CtsTelephony3TestCases
Test: atest DeviceOwnerTest#testDeviceOwnerCanGetDeviceIdentifiers
Change-Id: Iee1a5f1b709bccc75a55eea6331e35a17f2e2fd3
Merged-In: Iee1a5f1b709bccc75a55eea6331e35a17f2e2fd3
5 files changed