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

Skip to content
Commit e3976630 authored by JW Wang's avatar JW Wang Committed by Chun-Wei Wang
Browse files

Scan APEX packages

* Add a flag to toggle the feature. This makes it easy to compare the
  performance impact with and without the feature. The feature can
  be disabled if any regression is found.
* Add InstallPackageHelper#scanApexPackages to scan APEX packages
  during boot. APEX now goes through the same scan flow as APK.
  Note APEX is not registered with the system and its PackageInfo is
  still cached in ApexPackageInfo.
* For rebootless APEX, #scanSystemPackageLI is applied to the newly
  installed APEX. This is consistent with how we scan APEX during
  boot.

Duration of scanApexPackagesTraced(), measured on Pixel4a:
feature enabled: 110ms
feature disabled: 50ms

This is expected because we now have more packages to scan. We used to
scan APK only. Now both APK and APEX are scanned during boot.

Bug: 225756739
Test: atest com.android.server.pm.ApexManagerTest \
            GtsStagedInstallHostTestCases \
	    CtsStagedInstallHostTestCases \
	    StagedInstallInternalTest
Change-Id: If762100a08c9c59ae55a058f2ca42a06fcc6b80a
parent 9c443b1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment