summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorNikita Dubrovsky <dubrovsky@google.com>2022-03-09 13:20:29 -0800
committerNikita Dubrovsky <dubrovsky@google.com>2022-03-14 16:23:29 -0700
commit370fae65d8101fcf27b516d06d8aa403f73125c1 (patch)
treeca4328fe33811a3f19d5d569d6cc365a614a1b4d /core/java/android/widget/TextView.java
parent836db75e0f49b39a648eaa3d21e22c4c4333b0a3 (diff)
Update READ_CLIPBOARD_IN_BACKGROUND to be grantable via roles
ClipboardService currently has a special case to allow Android System Intelligence to read the clipboard in the background. The special case is implemented by checking if the calling package is the provider of ContentCaptureService. Rather than having to maintain this special case, we want to reuse the existing READ_CLIPBOARD_IN_BACKGROUND permission by allowing it to be associated with roles. This way the permission will be associated with the appropriate role held by Android System Intelligence and the special case can be removed from ClipboardService. This also decouples which PCC package provides ContentCaptureService vs which PCC package should be allowed to access the clipboard. The change to remove the special case logic from ClipboardService will be done as a separate CL. Bug: 216314180 Test: atest PermissionPolicyTest Change-Id: I68abf8c200f6827fc350ab2f990eb78d9d850c8b
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions