summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorOli Lan <olilan@google.com>2021-03-10 11:19:55 +0000
committerOli Lan <olilan@google.com>2021-03-11 12:39:57 +0000
commitfddbb49c013f00b3f2d368179b7144ac7b06d10c (patch)
tree1abbb7430fa2866320435ffb20736f4513e44e34 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbc80405a5e8c4d8e1d7d4873889c4fe2b216ef7d (diff)
Clear calling identity before retrieving app label for clipboard toast.
This fixes an issue where the source app in the clipboard access toast was not displayed for apps targeting API 30+. This is because the calling identity of the copying app was being used, resulting in package visibility limitations being applied. Bug: 182349975 Test: Manual, install app targeting API 30 and paste from another app. Test: atest ClipboardManagerTest Test: atest ManagedProfileCrossProfileTest#testCrossProfileCopyPaste Change-Id: Icdd2d07a3e2855dba749dbbb3427fd3a8b217671
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions