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
Loading
Please register or sign in to comment