diff options
author | Sudheer Shanka <sudheersai@google.com> | 2017-02-03 15:15:57 -0800 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2017-03-01 12:03:10 -0800 |
commit | b4e2ddde4f08ba25f57c97a4fe7c339cbe805559 (patch) | |
tree | d6cfa60c0ae9a0482c7610ac13a2f14dbae03363 /tools/aapt2/diff/Diff.cpp | |
parent | 3b264fa2afdeb7c01753eb6879e0f7f2461267e4 (diff) |
Use context's userId in ContentResolver class.
- When registering and notifying observers, we should use the user in the
context as opposed to current user.
- Relax the permission check while registering and notifying content observers
to use INTERACT_ACROSS_USERS instead of INTERACT_ACROSS_USERS_FULL permission.
Change-Id: I973936903d4a2272c5722f3b98a057a40c0402be
Fixes: 32955100
Test: Created managed profile and verified that there are not failures.
runtest -x core/tests/coretests/src/android/content/SecondaryUserContentResolverTest.java
runtest -x core/tests/coretests/src/android/content/ManagedUserContentResolverTest.java
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions