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

Commit e6f1afe1 authored by Michael Groover's avatar Michael Groover
Browse files

Update getSigningCertHistory docs to reflect signers returned in order

SigningInfo#getSigningCertificateHistory should return the signer's
in an APK's signing lineage in order of rotation. This commit updates
the API's documentation to explicitly state this requirement.

Bug: 193834256
Test: Build
Change-Id: I5c1f028cd12039cbbac9f6f6c77122639f8e1d9c
parent 27e35ec6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -72,8 +72,10 @@ public final class SigningInfo implements Parcelable {
    /**
     * Returns the signing certificates this package has proven it is authorized to use. This
     * includes both the signing certificate associated with the signer of the package and the past
     * signing certificates it included as its proof of signing certificate rotation.  This method
     * is the preferred replacement for the {@code GET_SIGNATURES} flag used with {@link
     * signing certificates it included as its proof of signing certificate rotation.  Signing
     * certificates are returned in the order of rotation with the original signing certificate at
     * index 0, and the current signing certificate at the last index. This method is the preferred
     * replacement for the {@code GET_SIGNATURES} flag used with {@link
     * PackageManager#getPackageInfo(String, int)}. When determining if a package is signed by a
     * desired certificate, the returned array should be checked to determine if it is one of the
     * entries.