summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2018-01-19 15:57:41 +0100
committerJorim Jaggi <jjaggi@google.com>2018-01-23 14:40:12 +0100
commit4d8d32cb6af4b9ea2f8d320f4a52561413d146bd (patch)
tree7387d6f8e8c22f0847e0085f3da5c0631ec4cc21 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8f0d71e3ee99cb3cee8409ec7b5448282aaadce7 (diff)
Fix issue with permission check for shortcuts and pendingIntent
When launching a PendingIntent, we have two sets of activity options: One supplied from the caller that obtained the pending intent, and those supplied from the caller that is sending it. We need to perform the permission check depending on which caller the options are coming from. For that, we introduce SafeActivityOptions that records the callingPid/callingUid when obtaining it and checks for the permissions with the correct callingPid/callingUid, and also supports merging both activity options. In addition to that, fix shortcuts by not clearing caller identity in LauncherAppsService. Test: go/wm-smoke Test: Install custom launcher APK with animation for shortcuts enabled, make sure launch works properly. Bug: 64674361 Change-Id: I9a854d43c65c8fa69bf16ccfbed86e8e681a095b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions