diff options
author | Matt Casey <mrcasey@google.com> | 2020-06-19 15:35:20 -0400 |
---|---|---|
committer | Matt Casey <mrcasey@google.com> | 2020-06-22 10:17:32 -0400 |
commit | ea12819bda48d60477fe9464fb4c1e874e21d057 (patch) | |
tree | 3b949628d89db69646d56f3b3b223b5afc51009c /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | d0125c373447e92a8ee8cb66eb418dd71d85c470 (diff) |
Make ActionProxyReceiver use PendingIntent.
PendingIntent lets SaveImageInBackgroundTask pass the permission
directly to the target. Flow is:
SaveImageInBackgroundTask (current user) ->
ActionProxyReceiver (system user) ->
Share or edit target (current user)
The pending intent created in the first step allows read/write
permission to be passed to the final destination, as ActionProxyReceiver
itself does not have access to the screenshot.
Bug: 159455848
Test: Share and edit a screenshot with the following variations:
- lockscreen on / off
- primary user / secondary user
Verify that full UI flow apperars, final destination can show the
screenshot
Change-Id: Ie92212f2ffc3f8a11c3e5380908460f5f7fbb439
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions