summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Oli Lan <olilan@google.com> 2022-02-04 12:45:34 +0000
committer Oli Lan <olilan@google.com> 2022-02-04 12:45:34 +0000
commit2eb67594164a6d29b8abd0628529257782aa10fa (patch)
treefa0c63031b186a224aa27de68b84b83289b5ccdb /libs/androidfw/StringPool.cpp
parenta28bba3ebeba07f8dd3e0d777e17fd229028d423 (diff)
Catch SecurityException when sending clip change broadcast.
This fixes an issue where the system server can crash if a SecurityException occurs while a clip change broadcast is being sent. If an app is not permitted to access clipboard, then the clipboardAccessAllowed check throws a SecurityException. This is ok when the exception can propogate back to a caller, such as when setClipData has been called, but when this happens while a change broadcast is being triggered it will instead crash the system. Bug: 207333180 Test: atest ClipboardManagerTest Test: atest ClipDescriptionTest Change-Id: If18ce497a89335ed26c8996571448c2c083887e6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions