summaryrefslogtreecommitdiff
path: root/tools/codegen/src
diff options
context:
space:
mode:
author Nan Wu <wnan@google.com> 2025-01-09 21:33:04 +0000
committer Nan Wu <wnan@google.com> 2025-01-09 21:33:04 +0000
commit965db179f4310d01b1d3fed52610f4e3a6df869b (patch)
tree835f85a2fc12c874a0ad7e6ffbb5ca778891571d /tools/codegen/src
parenta270408acd19a692f2e228a033d1fd8abb69d19e (diff)
Do not block intetn in a top level ClipData from being launched
If an app that supports drag-and-drop and its drop target performs launching the intent passed through the ClipData, the intent is blocked due to missing creator token error. The root cause is the ClipData.Item.getIntent() method calls maybeMarkAsMissingCreatorToken even if the ClipData is a top level object passed to the application. In such case, the ClipData won't go through the collect keys and add creator token to the intent. But it will be marked as missing creator token when being launched. To fix it, follow the example of how we handle intent's extra bundle. Only clipData inside an intent would be marked as need token verification. And if it is not marked, do not call maybeMarkAsMissingCreatorToken in Item.getIntent() Bug: 388879274 Test: ActivityManagerServiceTest#testCanLaunchClipDataIntent Flag: EXEMPT bug fix Change-Id: I88a904c96e0cf646dd25070bc12fbc344967feb3
Diffstat (limited to 'tools/codegen/src')
0 files changed, 0 insertions, 0 deletions