Pass the right loading package when registering dex modules

We computed the right value, but did not update the registration
arguments.

Test: manual, DexManagerTests
Bug: 148774920
Change-Id: I98cef1d0a9b5431c181db3a9181a5a0958fe9b6a
This commit is contained in:
Calin Juravle
2020-04-14 18:18:51 -07:00
parent 1ef2b2b6eb
commit 08225a93fc

View File

@@ -711,7 +711,7 @@ public class DexManager {
for (String isa : getAppDexInstructionSets(info.primaryCpuAbi, info.secondaryCpuAbi)) {
boolean newUpdate = mPackageDexUsage.record(searchResult.mOwningPackageName,
dexPath, userId, isa, /*primaryOrSplit*/ false,
searchResult.mOwningPackageName,
loadingPackage,
PackageDexUsage.VARIABLE_CLASS_LOADER_CONTEXT);
update |= newUpdate;
}