diff options
| author | 2022-09-29 11:24:55 +0000 | |
|---|---|---|
| committer | 2022-10-03 14:59:38 +0000 | |
| commit | af19a09a4f289a088d8bf3e9433988a4b5c0fd88 (patch) | |
| tree | e23f23e9d2c9f83dcafc776f89b25a63cfc1490a /libs/androidfw/StringPool.cpp | |
| parent | 4b3b29f03b89550d46f6e410b4ae6cdd2a3af901 (diff) | |
Add @PermissionName annotation to complement @PermissionMethod
For use by static analysis, @PermissionMethod documents
the methods in the platform that perform permission "checks" (e.g.
context.enforceCallingOrSelfPermission).
@PermissionName denotes that the annoated String is a permission name.
It is typically used to annotate the argument to a @PermissionMethod
that is the permission value. This is consumed by static analysis, for
example when helper methods wrap @PermissionMethod calls to pass a hard
coded permission value e.g. "enforceAudioSettingsPermission".
See: go/enforcepermission-migration-design
Bug: 247537842
Test: Tested manually, ultimately will be tested in presubmit (atest
AndroidFrameworkLintCheckerTest, see b/240445172)
Change-Id: I811ae923de62046e782ec7b109a0f99483dab4b2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions