diff options
| author | 2022-12-06 19:21:06 +0000 | |
|---|---|---|
| committer | 2022-12-09 14:14:03 +0000 | |
| commit | 3fc484ce20295cb1650e365f23122715dea1f8fe (patch) | |
| tree | a83cc5fa2a298bc877f470fdae209cb10c4e855e /libs/androidfw/StringPool.cpp | |
| parent | eae344945d40d614f29d390f1ad33cda078188ca (diff) | |
Fix EnforcePermission lint false positive on generated interfaces
EnforcePermissionDetector and EnforcePermissionHelperDetector were
scanning all methods annotated with @EnforcePermission, which
included the method declaration on the (generated) interface itself,
as well as the methods of the (generated) Default and Proxy classes.
Update EnforcePermissionHelperDetector to ignore all abstract methods
(e.g. those defined in the generated interface declaration).
Update EnforcePermissionDetector to specifically target, and ignore,
methods of the generated Default and Proxy classes.
Bug: 236558918
Test: EnforcePermissionHelperDetectorCodegenTest,
EnforcePermissionDetectorCodegenTest
Change-Id: I12cb46cb771e65600a9daf3efce199fd9311a53b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions