diff options
author | Nikita Ioffe <ioffe@google.com> | 2021-06-04 13:02:54 +0100 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2021-06-22 13:39:41 +0100 |
commit | 637be99afdff8b1feaa17ab56ee3bab405999ede (patch) | |
tree | 7fb57212acc1edda2e20d16da60c8f6bd3e8a0aa /tools/aapt2/diff/Diff.cpp | |
parent | a1b3ce52506d443bca8fa10bbc0a2b16550c2641 (diff) |
Add sys config to handle apexes that are allowed to be updated
Unlike staged installer check, we can't check if given APEX package is
allowed to be updated at session creation time, since we don't have
knowledge of the package being installed yet. Instead, the check is
implemented in PackageInstallerSession#handleInstall.
Like staged install check, allowed apex update check has similar
exemptions (adb is allowed to update any APEX,
`adb shell pm --bypass-allowed-apex-update-check` makes next install
session bypass the check).
In order to implement these exemptions, a new
INSTALL_DISABLE_ALLOWED_APEX_UPDATE_CHECK flag that can only be set by
system is added. PackageInstallerSession will skip the APEX update
checks if INSTALL_DISABLE_ALLOWED_APEX_UPDATE_CHECK is set.
Bug: 189274479
Test: atest CtsStagedInstallHostTestCases
Test: atest GtsStagedInstallHostTestCases
Test: atest FrameworksServicesTests:SystemConfigTest
Change-Id: I22921a3ac4d43011b565733d7a7183e5cdb4fe80
Merged-In: I22921a3ac4d43011b565733d7a7183e5cdb4fe80
(cherry picked from commit aafaaec0d529fcc143521706ad19d642c69b5414)
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions