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

Skip to content
Commit 8dda8313 authored by JW Wang's avatar JW Wang
Browse files

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
parent 6dc8a089
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