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

Commit db95baee authored by Hai Zhang's avatar Hai Zhang
Browse files

Clarify PackageManager.checkPermission() and Context.checkPermission().

Fixes: 312936486
Test: presubmit
Change-Id: I970ddf29b7ccac8e6f2bf569b444e48b5599ac80
parent 7c182fd4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6302,6 +6302,11 @@ public abstract class PackageManager {
    /**
     * Check whether a particular package has been granted a particular
     * permission.
     * <p>
     * <strong>Note: </strong>This API returns the underlying permission state
     * as-is and is mostly intended for permission managing system apps. To
     * perform an access check for a certain app, please use the
     * {@link Context#checkPermission} APIs instead.
     *
     * @param permName The name of the permission you are checking for.
     * @param packageName The name of the package you are checking against.