Skip to content

Commit ff54920

Browse files
author
Amith Yamasani
committed
Temporarily disable multiuser for specific builds
Enable switching through power menu for other builds Change-Id: I0bd8450583e078b0a83fb639337427ab84db5ab8
1 parent 86ad866 commit ff54920

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/java/android/os/UserManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ public void wipeUser(int userHandle) {
320320
* @return a value greater than or equal to 1
321321
*/
322322
public static int getMaxSupportedUsers() {
323+
// Don't allow multiple users on certain builds
324+
if (android.os.Build.ID.startsWith("JVP")) return 1;
323325
return SystemProperties.getInt("fw.max_users",
324326
Resources.getSystem().getInteger(R.integer.config_multiuserMaximumUsers));
325327
}

policy/src/com/android/internal/policy/impl/GlobalActions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ public boolean showBeforeProvisioning() {
314314
}
315315

316316
// one more thing: optionally add a list of users to switch to
317-
if (SystemProperties.getBoolean("fw.power_user_switcher", false)) {
317+
// temporarily enable this by default
318+
if (true || SystemProperties.getBoolean("fw.power_user_switcher", false)) {
318319
addUsersToMenu(mItems);
319320
}
320321

0 commit comments

Comments
 (0)