OSDN Git Service

Prevent getting data from Clipboard if device is locked
authorSiyamed Sinir <siyamed@google.com>
Thu, 7 Sep 2017 01:02:23 +0000 (18:02 -0700)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 28 Sep 2017 17:13:56 +0000 (17:13 +0000)
commit93685c70c4f12217b7ec8e79eb95573d66e86c5f
tree6b9797825a95c86eba73b43c6e5f0837ed1ce0b3
parent4f062f9328975b8ab61f863400d32b813e99338c
Prevent getting data from Clipboard if device is locked

Clipboard should not return data if the device is locked. This CL checks
for device locked state before returning values from get/has functions.

Bug: 64934810
Change-Id: I856a9079fe64db0af44383fae1a9a418de959420
Merged-In: Icefac226615fe22a7735dff4ba4c3b528fb2ac12
(cherry picked from commit 0b8fa2f5e0d305f083345968a7c39fe7a6f0a158)
services/core/java/com/android/server/clipboard/ClipboardService.java