From 78a0d84124829bee700146a45e7ef5504b18d810 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Tue, 28 Apr 2020 15:31:12 -0700 Subject: Add PackageDexUse file to dumpstate It will allows us to investigate issues related to apks class loader context (cherry-pick from commit: f84d369ea42a77fb75641885ec264952cbd35ae3) Test: atest DumpstateTest Bug: 154789494 Merged-In: If5d2bfa005350d36006c07cdd38bf2c01417fd18 Change-Id: If5d2bfa005350d36006c07cdd38bf2c01417fd18 --- cmds/dumpstate/dumpstate.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmds/dumpstate/dumpstate.cpp') diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index f535605dea..f64ddc3b0f 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -163,6 +163,7 @@ void add_mountinfo(); #define OTA_METADATA_DIR "/metadata/ota" #define SNAPSHOTCTL_LOG_DIR "/data/misc/snapshotctl_log" #define LINKERCONFIG_DIR "/linkerconfig" +#define PACKAGE_DEX_USE_LIST "/data/system/package-dex-usage.list" // TODO(narayan): Since this information has to be kept in sync // with tombstoned, we should just put it in a common header. @@ -1574,6 +1575,7 @@ static Dumpstate::RunStatus DumpstateDefault() { if (!PropertiesHelper::IsUserBuild()) { ds.AddDir(PROFILE_DATA_DIR_CUR, true); ds.AddDir(PROFILE_DATA_DIR_REF, true); + ds.AddZipEntry(ZIP_ROOT_DIR + PACKAGE_DEX_USE_LIST, PACKAGE_DEX_USE_LIST); } ds.AddDir(PREREBOOT_DATA_DIR, false); add_mountinfo(); -- cgit v1.2.3-59-g8ed1b