summaryrefslogtreecommitdiff
path: root/framework-s/java
diff options
context:
space:
mode:
author Jay Thomas Sullivan <jaysullivan@google.com> 2024-02-15 11:12:53 -0800
committer Jay Thomas Sullivan <jaysullivan@google.com> 2024-02-15 11:12:53 -0800
commit898ba93f5f9a9b2c264c6ef8bff737efe4caa099 (patch)
treea61c0f7b24a5713b3acf2806330fd7a58df494fd /framework-s/java
parentda0379bdf410a99a49bb9fdcb8a714e18285fa31 (diff)
[ECM] Use enforceCallingOrSelfPermission
EnhancedConfirmationService enforces the MANAGE_ENHANCED_CONFIRMATION_STATES permission by calling enforceCallingPermission. But, this service is sometimes called from SystemServer via non-IPC. In practice, this results in a SecurityException. This exception is documented behavior of enforceCallingPermission, which says "if you are not currently processing an IPC, this function will always throw the SecurityException". The solution used here is to instead call enforceCallingOrSelfPermission. Fix: 325485150 Test: Test: atest CtsPermissionUiTestCases:android.permissionui.cts.EnhancedConfirmationManagerTest Change-Id: I45057f00701b746013e9be4213df71b09d24b195
Diffstat (limited to 'framework-s/java')
0 files changed, 0 insertions, 0 deletions