summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2016-11-10 00:40:56 -0800
committerYohei Yukawa <yukawa@google.com>2016-11-11 03:38:15 +0000
commit16e67edb366ad9a65d67b473ecc52a2d9e22f060 (patch)
treeeac2775236d712e632fc5aa20bd9f4b59b04fbe5 /libs/hwui/ProgramCache.cpp
parent446e723c0885773716f365328aa4a7c242a6c9a2 (diff)
Fix up content URI for different users
Currently Commit Content API work only when the content URI provided by the IME is accessible to the target application. This is non-trivial if the target application is running as a different user (profile) and it is actually a possible scenario when managed profile is enabled. This CL takes care of such a situation, by fixing up the content URI when and only when InputContentInfo#getContentUri() is called from a different user than the owner of the content URI. This CL also makes it clear that we currently do not support content URIs that already have embedded user IDs. Since IActivityManager#grantUriPermissionFromOwner() does not support such URIs, we should have had a special handling for such a case, which will be addressed in a subsequent CL. Bug: 32427307 Bug: 32778718 Test: Made sure that Commit Content API works as expected on a managed profile created by https://github.com/googlesamples/android-testdpc Change-Id: I19d87fc19beea248f49b59ec5a5711b95bcbb466
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions