Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a91ea4a1 authored by Ömer Faruk Yılmaz's avatar Ömer Faruk Yılmaz
Browse files

Add PermissionManager enforcement support to RequiresPermissionDetector

The `RequiresPermissionDetector` did not recognize permission enforcement
checks performed using `android.permission.PermissionManager`. This
caused the lint check to incorrectly flag methods as having "too broad" a
`@RequiresPermission` annotation, even when the permission was correctly
enforced at runtime.

Bug: 409768276
Test: atest --host AndroidGlobalLintCheckerTest:com.google.android.lint.aidl.RequiresPermissionDetectorTest
Flag: EXEMPT new lint
Change-Id: I990f0fe7d8edb126aaf75179328298edd9880407
parent f67e48e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment