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

Skip to content
Commit f0ccb480 authored by Rambo Wang's avatar Rambo Wang
Browse files

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)
parent 34666400
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