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

Commit 6ccd4126 authored by Kenny Root's avatar Kenny Root
Browse files

Add support for signature in getPackageArchiveInfo

GET_SIGNATURES was indicated as supported, but it never actually did
anything.

This is needed for the package verifier development sample.

Change-Id: I09ca6790cd8bf9435aa208c0711359b4d76fb278
parent fd8f6f2f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2124,6 +2124,9 @@ public abstract class PackageManager {
        if (pkg == null) {
            return null;
        }
        if ((flags & GET_SIGNATURES) != 0) {
            packageParser.collectCertificates(pkg, 0);
        }
        return PackageParser.generatePackageInfo(pkg, null, flags, 0, 0);
    }