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

Commit 9937f67a authored by Shawn Willden's avatar Shawn Willden
Browse files

Correct IPackageManagerNative#checkPermission doc

The documentation says that PackageManager#PERMISSION_DENIED has the
value 1, but it's -1.

Bug: 380331467
Test: DOCS_ONLY
Flag: DOCS_ONLY
Change-Id: I8bbc3b0aa789b96d278794292c74f617f48060a0
parent 62df6333
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -86,8 +86,8 @@ interface IPackageManagerNative {
     *
     * @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.
     * @return PackageManager#PERMISSION_GRANTED (0) is returned if the specified package has the
     *         specified permission, or PackageManager#PERMISSION_DENIED (-1) if it does not.
     */
    int checkPermission(in String permName, in String packageName, in int userId);