diff options
author | Sudheer Shanka <sudheersai@google.com> | 2016-09-16 12:59:05 -0700 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2016-10-07 18:11:11 -0700 |
commit | 7cb54a34c44547b55200e4be15be397f6a363c55 (patch) | |
tree | 09661bc4a465d0cc8151a95a6d44c78b56fe03af /cmds/pm | |
parent | a543ca6c05a52537814d9719ac55f44e3bc11e3c (diff) |
Allow some packages to be excluded during during work profile creation.
Bug: 31657192
Test: adb shell am instrument -e class com.android.server.pm.UserManagerTest#testAddManagedProfile_withDisallowedPackages -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I37eab6084e0f911d0e2407186b789875588194a2
Diffstat (limited to 'cmds/pm')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index ace4e3284930..ac8ee8d38c3f 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -981,7 +981,7 @@ public final class Pm { } else if (userId < 0) { info = mUm.createUser(name, flags); } else { - info = mUm.createProfileForUser(name, flags, userId); + info = mUm.createProfileForUser(name, flags, userId, null); } if (info != null) { |