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

Commit ca5690d8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add checkPermission to IPackageManagerNative." into main

parents 5b4671a0 c417ab82
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -81,19 +81,27 @@ interface IPackageManagerNative {
     */
     int getPackageUid(in @utf8InCpp String packageName, in long flags, in int userId);

    /**
     * Checks whether the specified package has the specified permission.
     *
     * @param permName The name of the permission you are checking for.
     * @param packageName The name of the package you are checking against.
     * @return If the package has the permission, PERMISSION_GRANTED (0) is returned.  If it
     *         does not have the permission, PERMISSION_DENIED (1) is returned.
     */
    int checkPermission(in String permName, in String packageName, in int userId);

    /**
     * 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.
     */

    long getVersionCodeForPackage(in String packageName);

    /**