summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorVladislav Kaznacheev <kaznacheev@google.com>2016-01-22 11:49:13 -0800
committerVladislav Kaznacheev <kaznacheev@google.com>2016-01-26 11:53:00 -0800
commitc14df8e73d093f839c4ea2585eade6ae6690d224 (patch)
treee5ceff7eeafb011ebcddfbe91910ec78e61865e7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent92b26c5bffd92a8e2251f60a6663e9eba4d5aa2d (diff)
Fix SecurityException in Editor.onDrop
When a content URI is dropped onto EditText, it tries making sense of the contents, and in the process it accesses the content provider. If this content provider requires a permission grant, SecurityException occurs. This fix does two things: 1. Editor.onDrop now requests DropPermissions and releases is when it is done. This required the introduction of a new hidden method DropPermissions.takeTransient, because the existing method required access to an Activity instance. 2. If the drag originator neglected to allow the permission grant, DropPermission request would not help, so a try/catch block is added to Editor.onDrop to avoid breaking the recipient app. Bug: 26694948 Change-Id: I714429a507e62c83a150d91fbcdee791bced3ad3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions