diff options
author | Alex Johnston <acjohnston@google.com> | 2020-02-21 16:21:38 +0000 |
---|---|---|
committer | Alex Johnston <acjohnston@google.com> | 2020-02-28 14:00:16 +0000 |
commit | bb1d2a931b720c6509b26625effa3babf64b8d48 (patch) | |
tree | d63a123eac31b0ae2a39032c1c14e8f2428553ca /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7bee686ef7193eb0dcef28c6af46bc6f86c0aaa5 (diff) |
Fix testScreenCaptureDisabled
* A SecurityException was being thrown because getProfiles
in UserManager cannot be called by the COPE PO for user 0
without permission MANAGE_USERS or CREATE_USERS.
* Added binderWithCleanCallingIdentity to this method.
Bug: 149941985
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testScreenCaptureDisabled
Change-Id: Iccc60233baaeaa732f197d7aaf31acc9d75a247b
Merged-In: Iccc60233baaeaa732f197d7aaf31acc9d75a247b
(cherry picked from commit 27975949140cbd942bdc7bfe3a2b787b3b123508)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions