diff options
| author | 2022-09-20 16:33:32 +0000 | |
|---|---|---|
| committer | 2022-09-25 23:56:26 +0000 | |
| commit | 75c72cec7fd1010cd80bdfddcc2422da52dc859b (patch) | |
| tree | 0ecb5586cdcc1aecdeed9181bd295ee170c35d03 /libs/androidfw/ResourceTimer.cpp | |
| parent | 826721d11b5f5e7c6aaa797752321dfba25e7b0d (diff) | |
Add @PermissionMethod annotation
For use by static analysis, @PermissionMethod documents
the methods in the platform that perform permission "checks" (e.g.
context.enforceCallingOrSelfPermission).
Said methods either return in int of type @PermissionResult, or return
void and potentially throw a SecurityException.
There are currently two platform lints that care about this information.
ManualPermissionCheckDetector and PackageVisibilityDetector.
See: go/enforcepermission-migration-design
Bug: 247537842
Test: Tested manually, ultimately will be tested in presubmit (atest
AndroidFrameworkLintCheckerTest, see b/240445172)
Change-Id: Ia21ba748eab37b532b591edb2599bb78ea0c8c9d
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions