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

Skip to content
Commit b5424c06 authored by mattgilbride's avatar mattgilbride Committed by Matt Gilbride
Browse files

SimpleManualPermissionEnforcementDetector: Handle simple if expressions

The previous implementation was naive and did not actually handle if
expressions.

Update the detector to look for calls to permission checks that
explicitly check against PackageManager.PERMISSION_GRANTED/DENIED and
do nothing other than throw SecurityException if the check fails.

Bug: 247537842
Test: SimpleManualPermissionEnforcementDetectorTest
Change-Id: I8cf0bd9355ee5ae91d44117a7f62a3cca0588fb9
parent 19cc7d02
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