summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBernardo Rufino <brufino@google.com>2021-01-05 12:48:57 +0000
committerBernardo Rufino <brufino@google.com>2021-01-07 14:59:02 +0000
commit4347ccb772acf723c49fba001d2d61b2b1ca8266 (patch)
tree449d4b7e416201ce15f72f8cfdcfd44d50a96bb7 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta5680abacd50ba606cf7ba889b1be34ff5cbd4a5 (diff)
Restrict {AM,WM}.closeSystemDialogs()
As part of locking down Intent.ACTION_CLOSE_SYSTEM_DIALOGS, we need to protect AM.closeSystemDialogs() too (which ends up calling the broadcast under the system UID). We should also protect WM.closeSystemDialogs(), which is slightly different in that it asks windows/views to close themselves, for the same reasons that we protected the intent and for consistency too. Check go/close-system-dialogs for details on the general effort. To achieve this we move the logic from AM to WM, since we can't call out from WM to AM. Part of the logic was already in WM (the trampoline case), so I mostly moved code from AMS to wm.ATMS. The part I had to wire from AM was the sourceUid of the instrumentation, but that fit nicely since we had to pipe similar information before for BAL too. Bug: 159105552 Test: atest CtsAppTestCases:android.app.cts.CloseSystemDialogsTest Change-Id: Ib720fdb2a0a044bf4d05471b32a9b99d3684ae2d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions