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

Commit 6602beaa authored by Ray Essick's avatar Ray Essick Committed by android-build-merger
Browse files

Merge "packagemanager_native access to package installer, version" into oc-mr1-dev am: f14e953f

am: e708a605

Change-Id: I1fedf0e096bfa979f1c00cae25f4c47578100b59
parents d4b92e6c e708a605
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -38,4 +38,20 @@ interface IPackageManagerNative {
     * strings.
     */
    @utf8InCpp String[] getNamesForUids(in int[] uids);

    /**
     * Returns the name of the installer (a package) which installed the named
     * package. Preloaded packages return the string "preload". Sideloaded packages
     * return an empty string. Unknown or unknowable are returned as empty strings.
     */

    @utf8InCpp String getInstallerForPackage(in String packageName);

    /**
     * Returns the version code of the named package.
     * Unknown or unknowable versions are returned as 0.
     */

    int getVersionCodeForPackage(in String packageName);

}