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:55 +0000
commit573d31ef204bc8bbf24a7341afe17870708c0904 (patch)
tree66e8b607ac7df8f5b9c75635e900d3d54aae98fe /native/android/configuration.cpp
parentb14527779788986247f1503569107236fb2f7a58 (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