summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Mark Punzalan <markpun@google.com> 2024-10-25 00:22:17 -0700
committer Mark Punzalan <markpun@google.com> 2024-10-30 21:09:44 +0000
commit1c5e38ca1d05813c16953470ab3ee2f4ce2658ed (patch)
tree04d47d2abdb6f8d8a8f7a52d2e91339687aa3738 /libs/androidfw/ObbFile.cpp
parent3b544b8583bd4303bd9de6094cc2c4196e53ba92 (diff)
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
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions