summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorEvan Laird <evanlaird@google.com>2018-09-04 15:06:37 -0400
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-09-04 22:42:51 +0000
commitdcff118a5c9c3bc4c0b252e77a8b1ef02fdaa9ec (patch)
tree19d47218a2d8f416d54e23227e50cec8d5fe05ae /tools/aidl/generate_java.cpp
parent53d19585e8a8e57f2d2b92570d27d20cdb9f96cd (diff)
Don't request profile owner as user if we don't have a valid user
ag/4891733 changed DevicePolicyManager#getProfileOwnerAsUser() to call into DPMService.getProfileOwnerAsUser() instead of getProfileOwner(). It turns out that getProfileOwnerAsUser doesn't accept invalid userIds but the latter method did. This CL guards against calling that method if we don't have a valid userId. The calling code just wants to know if a profile is managed but I'm pretty sure a UserRecord pointing at a non-user can't be managed. Test: Expand QS, tap user switcher icon Change-Id: Idfe46cb6c0d25ba3817ae3639f87de70bbce2d0b Fixes: 113777483 (cherry picked from commit 97eaacba10529a100306635be8a2aa7cd308d0f0)
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions