Migrate APEX package info from ApexPackageInfo to PMS
APEX is scanned and registered with the system for queries. Now PMS
is the only source of truth for all package info including both APEX
and APK.
* When ApexPackageInfo.ENABLE_FEATURE_SCAN_APEX is true, APEX package
info is stored in PMS. The results are filtered out if MATCH_APEX is
not specified to preserve the original behavior.
* When ApexPackageInfo.ENABLE_FEATURE_SCAN_APEX is false, APEX package
info is stored in ApexPackageInfo.
* Don't generate an app id for APEX which doesn't need it anyway.
* Fix UserHandle#getUid which didn't translate invalid appIds
correctly.
Bug: 225756739
Test: atest com.android.server.pm.ApexManagerTest \
GtsStagedInstallHostTestCases \
CtsStagedInstallHostTestCases \
StagedInstallInternalTest \
android.appsecurity.cts.InstantAppUserTest
Change-Id: I0003ea379d02a2ad3a37bcc57928a940ee83a86a
Loading
Please register or sign in to comment