summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Cheng Shi <shicheng@xiaomi.corp-partner.google.com> 2022-09-08 06:43:11 +0000
committer Cheng Shi <shicheng@xiaomi.corp-partner.google.com> 2022-09-08 07:26:59 +0000
commit8624560d00c06cf37e1a138d9997479425d4d2b4 (patch)
tree2ed14fee41771d3ae6078514c574aa918925445d /libs/androidfw/Util.cpp
parent3312d073cb2dcff4db43d843d589d666495ef9cb (diff)
Fix the problem that system apps cannot drag
If an app with a uid of Process.SYSTEM_UID calls view.startDragAndDrop, IllegalStateException will be thrown in Session.performDrag, which makes the drag-and-drop feature unavailable in this app. And we don't need this check either, because validateAndResolveDragMimeTypeExtras and validateDragFlags are indeed called before Binder.clearCallingIdentity. Bug: 245626682 Change-Id: I1c27287e51a956284dae0f61bfa0cac14dd28a27
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions