diff options
| author | 2022-12-01 20:29:42 +0000 | |
|---|---|---|
| committer | 2022-12-26 18:01:53 +0000 | |
| commit | b5424c06779f114d89e64f464edd14a6970a7075 (patch) | |
| tree | fdbd40eab09409a440c2ed398fac5f7a08d42c3a /libs/androidfw/AssetsProvider.cpp | |
| parent | 19cc7d02043ef270ccea441e794042dcd66f0cc5 (diff) | |
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
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions