CPT: always use same PackageManager flags to query installed packages
CPT applies the flags MATCH_DISABLED_UNTIL_USED_COMPONENTS and MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when query installed packages during initialization. But it doesn't apply the same flags when handling packages change. Without those flags, when carrier app falls into bundled version, CPT may fail to find it and report no carrier apps nor carrier privileges. To fix it, the same flags are always applied, both during initialization and after any package change events. Bug: 231643903 Test: atest CarrierPrivilegesTrackerTest Test: Telephony sanity test (Activation, Calling, SMS, Data, Switching) Merged-In: Id2e66c27ac2c8a4dbe9b23de303b9ea8f01a4606 Change-Id: Id2e66c27ac2c8a4dbe9b23de303b9ea8f01a4606 (cherry picked from commit 9a5ce8ad)
Loading
Please register or sign in to comment