Added hasSha256SigningCertificate to the PacakgeManagerService implementation.

The hasSha256SigningCertificate function was added to the PM aidl interface.
This change implements it by connecting it to the existing
PackageManager function.

Bug: 174605881
Test: verified the PM service to work properly on a local device.
Change-Id: Ia7eb1a371778c78aa201199e43b7c5719722113f
This commit is contained in:
Yu-Chi Cheng
2021-02-08 10:08:02 -08:00
parent 58b9a4e48e
commit f79a1aec61

View File

@@ -26622,6 +26622,13 @@ public class PackageManagerService extends IPackageManager.Stub
public String getModuleMetadataPackageName() throws RemoteException {
return PackageManagerService.this.mModuleInfoProvider.getPackageName();
}
@Override
public boolean hasSha256SigningCertificate(String packageName, byte[] certificate)
throws RemoteException {
return PackageManagerService.this.hasSigningCertificate(
packageName, certificate, CERT_INPUT_SHA256);
}
}
private AndroidPackage getPackage(String packageName) {