Merge "Add Incremental extras to ACTION_PACKAGE_NEEDS_VERIFICATION."

This commit is contained in:
Alex Buynytskyy
2021-11-03 01:29:49 +00:00
committed by Android (Google) Code Review

View File

@@ -387,6 +387,18 @@ final class VerificationParams extends HandlerParams {
PackageManager.EXTRA_VERIFICATION_LONG_VERSION_CODE,
pkgLite.getLongVersionCode());
final String baseCodePath = mPackageLite.getBaseApkPath();
final String[] splitCodePaths = mPackageLite.getSplitApkPaths();
final String rootHashString =
PackageManagerServiceUtils.buildVerificationRootHashString(baseCodePath,
splitCodePaths);
if (rootHashString != null) {
verification.putExtra(PackageManager.EXTRA_VERIFICATION_ROOT_HASH, rootHashString);
}
verification.putExtra(PackageInstaller.EXTRA_DATA_LOADER_TYPE, mDataLoaderType);
populateInstallerExtras(verification);
final List<ComponentName> sufficientVerifiers = matchVerifiers(pkgLite,