diff options
| author | 2022-10-20 23:48:52 +0000 | |
|---|---|---|
| committer | 2022-11-22 19:04:17 +0000 | |
| commit | 8e806dd2b155e67fab40698d80d6c4e4b3e54d5c (patch) | |
| tree | e075297f52eae4d92e571676ee192938a042d3c9 /libs/androidfw/StringPool.cpp | |
| parent | 3ed2898d28e104e8ee7aae058e7308d7ee370b9d (diff) | |
Add parameters to @PermissionMethod
- orSelf: signifies that this method checks if the calling process OR
the current process has the permission
- anyOf: signifies that if this method checks multiple permissions,
the check passes if ANY ONE of the permissions is granted
- value (default parameter): a hard coded list of permissions that this method checks.
This parameter is useful for static analysis, where the implementation
of some @PermissionMethod may not be visible across library
boundaries. A good example of this is
NetworkStack#checkNetworkStackPermission, which is a source in
framework-minus-apex, but is used from services.core.unboosted. Since
it passes straight into a helper which checks the actual permissions,
it's not possible for lint running on services.core.unboosted to see
which permissions are checked.
Bug: 247537842
Test: TH
Change-Id: Ia5d92149763766576602f5d84a86c67f6fb7e96d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions