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

Commit 26a4d08b authored by Hai Zhang's avatar Hai Zhang Committed by Android (Google) Code Review
Browse files

Merge "Clarify PackageManager.checkPermission() and Context.checkPermission()." into main

parents 9aac8c78 db95baee
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.