Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3d29ad44 authored by Hunter Knepshield's avatar Hunter Knepshield Committed by Rambo Wang
Browse files

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)
parent 97ee3184
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment