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

Commit fa61d140 authored by Mårten Kongstad's avatar Mårten Kongstad
Browse files

Overlay config: include config file data in dumpsys

Overlay packages are configured via one of two mutually exclusive
approaches: either via the overlays' manifests or via XML config files.
The overlay manager dumpsys already includes data for the manifests;
update the output to also include config file data.

The new output includes the raw XML, but to save memory, this is omitted
on user builds.

Example output; note the parsedConfigFile field, and that the parsedInfo
field is null.

  0, ParsedConfiguration{packageName=com.android.overlaytest.framework, enabled=true, mutable=true, policy=vendor, parsedInfo=null, parsedConfigFile=ParsedConfigFile{path=/vendor/overlay/config/config.xml, line=2, xml=<overlay package="com.android.overlaytest.framework" enabled="true" />}}

Bug: 224945112
Test: atest OverlayConfigTest
Test: adb exec-out cmd overlay dump
Change-Id: I1d880d2cc6cff763865b9b445fd2caa7d35c431f
parent 3bfe1f39
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