Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89db64ac authored by Yu-Chi Cheng's avatar Yu-Chi Cheng
Browse files

Added hasSha256SigningCertificate to the PackageManager aidl Interface.

This change expanded the IPackageManagerNative aidl interface
with the hasSha256SigningCertificate function.

This allows services to verify application signatures via this
aidl interface.

Bug: 174605881
Test: verified the pm binder service runs correctly on local device.
Change-Id: Ibbaae0714be4f105387f2f712b7c6485be16d7e6
parent a73115b7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -101,4 +101,11 @@ interface IPackageManagerNative {
     * This does nothing if this observer was not already registered.
     */
    void unregisterPackageChangeObserver(in IPackageChangeObserver observer);

    /**
     * Returns true if the package has the SHA 256 version of the signing certificate.
     * @see PackageManager#hasSigningCertificate(String, byte[], int), where type
     * has been set to {@link PackageManager#CERT_INPUT_SHA256}.
     */
    boolean hasSha256SigningCertificate(in @utf8InCpp String packageName, in byte[] certificate);
}