diff options
author | Jeff Sharkey <jsharkey@android.com> | 2018-02-25 14:43:27 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2018-02-26 14:43:11 -0700 |
commit | d60e07f04fc85f21fe357930c84c90ec666a7c6e (patch) | |
tree | d485bf645a6a3aecf4d018450e9ad0ecef9412f0 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d0f517b9df46926d803c7d9963c70791b2af1c01 (diff) |
Add explicit method to clear clipboard.
Fix several bugs along the way:
-- Clipboard permissions weren't being revoked for related users
when a new primary clip was set.
-- checkGrantUriPermissionLocked() wasn't checking to see if an
otherwise-open provider requires permissions on specific paths.
-- When granting Uri permissions for clipboard data, we need to
include the real source UID for the grant; we no longer allow the
system UID to source grants, to avoid confused deputy problems.
-- Use the Handler passed into ClipboardManager constructor so
it lives on the right thread.
Test: cts-tradefed run commandAndExit cts-dev -m CtsContentTestCases -t android.content.cts.ClipboardManagerTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests
Bug: 71711122, 73797203
Change-Id: I99315035efc0c6a90471c279311294dc86766c8d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions