Add Incremental extras to ACTION_PACKAGE_NEEDS_VERIFICATION.
Not yet enabling verification for Incremental. Needs some work in Play first (see blocking bug). Bug: 204810986 Test: manual, enabled verification for Incremental installs and logged the extras. Change-Id: Ic601d4c49969c920c1dabb07f8311932c560b2d8
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user