Move carrier privilege status checks to CarrierPrivilegesTracker.
All query methods to get the status of a package or UID (including the aggregate "get all privileged packages" methods) now use CarrierPrivilegesTracker as the source of truth. The remaining Uicc{Port,Profile,CarrierPrivilegeRules} redundancies will be cleaned up in a follow-up CL. This implicitly adds a caching layer that should result in noticeable performance increases, since PackageManager is only queried ~once (typically at boot) rather than every time one of these methods is called. This CL also move the support of enabling hidden carrier apps on carrier privilege granting from UiccCarrierPrivilegeRules/UiccProfile to CarrierPrivilegesTracker. Bug: 211796398 Test: atest com.android.internal.telephony.CarrierPrivilegesTrackerTest Test: atest android.telephony.cts.TelephonyManagerTest Test: atest com.google.android.telephony.tests.carrierapp.CarrierAppDeviceTest Change-Id: I5470538bc8d318147904bc5dd0efa135986ebb02 Merged-In: I5470538bc8d318147904bc5dd0efa135986ebb02 (cherry picked from commit 9c6e2ac2)
Loading
Please register or sign in to comment