Skip to content
Commit 2eb67594 authored by Oli Lan's avatar Oli Lan
Browse files

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
parent a28bba3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment