summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
diff options
context:
space:
mode:
authoratrost <atrost@google.com>2019-10-21 17:10:39 +0100
committeratrost <atrost@google.com>2019-10-21 17:10:39 +0100
commit69ff1c42e5265088e0a6e5d312bf60bb71eff8e4 (patch)
treecbc569cf878b69be8305ac9b0ca7abaf44b3ffe5 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
parent7b5773765ff92afb502d73802ecccb6248163b9f (diff)
Get ApplicationInfo using self UID to make sure we have permission.
Otherwise the caller is checked for permission to get the ApplicationInfo, and may be denied due to lack of INTERACT_ACROSS_USERS. Bug: 142942524 Test: patched to internal master, 1. Install TestDPC via adb 2. Invoke "Set up Te..." from the launcher to create a work profile and follow "next" button and select "skip adding an account" 3. Select TestDPC from the "work" tab of the list of all apps in launcher. 4. Using built-in search look for "Password constraints" and tap it. 5. tap "Minimum password length" and try to set it to 5. Before change: Neither user 1010193 nor current process has android.permission.INTERACT_ACROSS_USERS. After Change: password quality should be at least 131072 for setPasswordMinimumLength Change-Id: I4018fac21c1ce40f4258be0dc39ebe0e8e1bd582
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions