getUicc{Card, Slot}sInfo should work with carrier privileges

Both the interfaces ask either READ_PRIVILEGED_PHONE_STATE
or carrier privileges. ag/16665093 introduced the bug that
READ_PRIVILEGED_PHONE_STATE was enforced for the interfaces.

Method checkCarrierPrivilegesForPackageAnyPhoneWithPermission
is introduced to allow the above interfaces to query Uicc info
with carrier privileges only.

Bug: 220355025
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: Ia774121e020e44028ee65545eab9c1181ed8a4c9
Merged-In: Ia774121e020e44028ee65545eab9c1181ed8a4c9
(cherry picked from commit e7209ce515f8f26744d9b536265d0c92ce86c3f4)
1 file changed