summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.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-01 11:36:07 -0400
commit11ecc6c7a5a0614622cda0b4d6a3290f71c83372 (patch)
tree4b5bd05b34c1daaf1c559e8752dea5a3249b3f48 /libs/androidfw/ZipFileRO.cpp
parent7c0f7188a9b9d63a9e25f7e9d628c03af1a47764 (diff)
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) Change-Id: Icad3d5f939fcfb894e2038948954bc2735dbe326
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions