summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2023-04-28 10:58:46 -0400
committer Miranda Kephart <mkephart@google.com> 2023-06-07 15:41:05 +0000
commit1d3643956eb8a04366e23dd1a51bb78da2445ba2 (patch)
tree01433f43287f6e2b8824c1d21586d723f132155d /libs/androidfw/FileStream.cpp
parentf44f39cc62f30a845b751697b7fc73842af805a4 (diff)
[DO NOT MERGE] Update quickshare intent rather than recreating
Currently, we extract the quickshare intent and re-wrap it as a new PendingIntent once we get the screenshot URI. This is insecure as it leads to executing the original with SysUI's permissions, which the app may not have. This change switches to using Intent.fillin to add the URI, keeping the original PendingIntent and original permission set. Bug: 278720336 Fix: 278720336 Test: manual (to test successful quickshare), atest SaveImageInBackgroundTaskTest (to verify original pending intent unchanged) Merged-In: Icad3d5f939fcfb894e2038948954bc2735dbe326 Change-Id: Icad3d5f939fcfb894e2038948954bc2735dbe326
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions