Skip to content
Commit 6add2584 authored by Winson's avatar Winson Committed by Winson Chiu
Browse files

Add PackageState#getApexModuleName

Tracks the name of the APEX module for both APEX and APK-in-APEX
PackageStates.

This involves inferring the module name from the ActiveApexInfo
associated with each APEX scan partition. This is set on each
APK found in that parition and also set on disabled settings
for a package where the APK-in-APEX has been updated to a /data
variant.

The test also validates that clearing the APEX from the system
image will also un-associate the apexModuleName, since it
downgrades the package to a regular non-system, non-APK-in-APEX
/data package.

Also adds a package dump --include-apex option to print APEX
PackageStates like any other regular APK.

Bug: 261913353

Test: atest ApexUpdateTest

Change-Id: Ic2806a4df8eac4843d9d3358a349b3d335a7455b
parent b3fb718c
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