Loading services/core/java/com/android/server/pm/UserTypeFactory.java +3 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,8 @@ public final class UserTypeFactory { .setName(USER_TYPE_PROFILE_MANAGED) .setBaseType(FLAG_PROFILE) .setDefaultUserInfoPropertyFlags(FLAG_MANAGED_PROFILE) // Only allow one per device; we cannot currently handle conflicting policies. .setMaxAllowed(1) .setMaxAllowedPerParent(1) .setProfileParentRequired(true) .setLabels( Loading Loading @@ -302,6 +304,7 @@ public final class UserTypeFactory { .setName(USER_TYPE_PROFILE_PRIVATE) .setBaseType(FLAG_PROFILE) .setProfileParentRequired(true) .setMaxAllowed(1) .setMaxAllowedPerParent(1) .setEnabled(UserManager.isPrivateProfileEnabled() ? 1 : 0) .setLabels(R.string.profile_label_private) Loading Loading
services/core/java/com/android/server/pm/UserTypeFactory.java +3 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,8 @@ public final class UserTypeFactory { .setName(USER_TYPE_PROFILE_MANAGED) .setBaseType(FLAG_PROFILE) .setDefaultUserInfoPropertyFlags(FLAG_MANAGED_PROFILE) // Only allow one per device; we cannot currently handle conflicting policies. .setMaxAllowed(1) .setMaxAllowedPerParent(1) .setProfileParentRequired(true) .setLabels( Loading Loading @@ -302,6 +304,7 @@ public final class UserTypeFactory { .setName(USER_TYPE_PROFILE_PRIVATE) .setBaseType(FLAG_PROFILE) .setProfileParentRequired(true) .setMaxAllowed(1) .setMaxAllowedPerParent(1) .setEnabled(UserManager.isPrivateProfileEnabled() ? 1 : 0) .setLabels(R.string.profile_label_private) Loading