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

Skip to content
Commit 1c5e38ca authored by Mark Punzalan's avatar Mark Punzalan
Browse files

Include feature flag state in cached package

We write the values of all feature flags encountered in the manifest in
the cached package. We then read these values in PackageCacher and
compare them to the current feature flag values. A cached package is
invalid if any of the flag values changed, and therefore the package
needs to be re-parsed.

Flag: android.content.pm.include_feature_flags_in_package_cacher
Bug: 364771256
Test: atest PackageManagerServiceUnitTests PackageManagerServiceServerTests
Test: Manually with include_feature_flags_in_package_cacher enabled.
Flipped the value of `android.content.pm.quarantined_enabled` back and
forth and verified the permission `android.permission.QUARANTINE_APPS`
is present (or absent) after a reboot. Inspected the logs to confirm
that PackageCacher invalidated the entry when the flag is flipped.

Change-Id: I6d78b1086374b80e66f921a53651b77867203eca
parent 3b544b85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment