Add callingPackage in PhoneGlobals#getCarrierConfig
Since CarrierConfigLoader#getConfigForSubId now requires a
callingPackage for AppOps permission check, we require callers of
PhoneGlobals#getCarrierConfig to pass in callingPackage. Or if caller
believes it's for phone internal uage and should use com.android.phone's
identity, additional methods getCarrierConfigInternal and
getCarrierConfigForSubIdInternal are added which will clear / restore
callingIdentity before / after CarrierConfigLoader#getConfigForSubId.
Bug: 73136824
Test: cts test
Change-Id: Id468b6ce538a94fd79fac87ae97dfadae31ea598
Merged-In: Id468b6ce538a94fd79fac87ae97dfadae31ea598
2 files changed