summaryrefslogtreecommitdiff
path: root/native/android/configuration.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-16 19:10:05 +0000
commit6bf13a85b8c40796b3509d788fb801c7d79026aa (patch)
tree5f08656129b02d4d88da5b31c17fdb5b55446656 /native/android/configuration.cpp
parent31b36202e04ce510c6ded3cbe23df734b9984b35 (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 Test: manual (to test successful quickshare), atest SaveImageInBackgroundTaskTest (to verify original pending intent unchanged) Merged-In: Icad3d5f939fcfb894e2038948954bc2735dbe326 Change-Id: Icad3d5f939fcfb894e2038948954bc2735dbe326
Diffstat (limited to 'native/android/configuration.cpp')
0 files changed, 0 insertions, 0 deletions