Skip to content
Commit 302a7d90 authored by mattgilbride's avatar mattgilbride
Browse files

SimpleManualPermissionEnforcementDetector: conditional ERROR level incident

Use the new information available in @PermissionMethod to raise an
ERROR level incident if we are confident that migrating to
@EnforcePermission is not behavior changing:
 - the called PermissionMethod returns void, indicating it *enforces*
   that PackageManager.PERMISSION_GRANTED is true
 - the called PermissionMethod is annotated orSelf = true, meaning it
   passes of the calling process OR the current process has the
   permission

Bug: 232058525
Test: SimpleManualPermissionEnforcementDetectorTest
Change-Id: Ic4be3d06d6b6446ee81560a6eda7bf9249db1f4c
parent bd3b879b
Loading
Loading
Loading
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