Skip to content
Snippets Groups Projects
Commit df4cd065 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen
Browse files

Add reporting tool for migration to @EnforcePermission

Add a tool "enforce_permission_counter" which leverages lint_fix and the
AndroidUtilsLintChecker linter to report on the number of AIDL methods
that have been migrated to use the @EnforcePermission annotation (or
@RequiresNoPermission).

Test: enforce_permission_counter
Test: lint_fix --print --no-fix --check AnnotatedAidlCounter \
               --lint-module AndroidUtilsLintChecker services.autofill
Bug: 298285238
Change-Id: I521ab5358476f63387674e17c601da3b63cbc1d8
parent 2cdda47d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment