Merge "Simplify ApexInfo classpath info" am: 3281d1b876 am: 045526da15 am: 1f0e7adc23

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931078

Change-Id: I6ffb22bc4b9a7a29c544b9c683881ddfe0d092e2
This commit is contained in:
Alan Stokes
2022-01-05 19:11:09 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 5 deletions

View File

@@ -1255,9 +1255,7 @@ public class StagingManager {
info.diskImagePath = ai.modulePath;
info.versionCode = ai.versionCode;
info.versionName = ai.versionName;
info.hasBootClassPathJars = ai.hasBootClassPathJars;
info.hasDex2OatBootClassPathJars = ai.hasDex2OatBootClassPathJars;
info.hasSystemServerClassPathJars = ai.hasSystemServerClassPathJars;
info.hasClassPathJars = ai.hasClassPathJars;
return info;
}
}

View File

@@ -449,8 +449,7 @@ public class StagedInstallInternalTest {
// Query proper module name
result = getPackageManagerNative().getStagedApexInfo(TEST_APEX_PACKAGE_NAME);
assertThat(result.moduleName).isEqualTo(TEST_APEX_PACKAGE_NAME);
assertThat(result.hasBootClassPathJars).isTrue();
assertThat(result.hasSystemServerClassPathJars).isTrue();
assertThat(result.hasClassPathJars).isTrue();
InstallUtils.openPackageInstallerSession(sessionId).abandon();
}