summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-09-17 14:54:26 -0700
committerAmith Yamasani <yamasani@google.com>2012-09-17 14:54:26 -0700
commit07a0ede729f9b2f472b659b67b4cbc3602aa289a (patch)
treeabd948f84ab469504c8515b54c020e50fe7e393d /services/java
parentc71a57d6fa45edf67e79e948b4656fa25a11f1b8 (diff)
downloadframeworks_base-07a0ede729f9b2f472b659b67b4cbc3602aa289a.zip
frameworks_base-07a0ede729f9b2f472b659b67b4cbc3602aa289a.tar.gz
frameworks_base-07a0ede729f9b2f472b659b67b4cbc3602aa289a.tar.bz2
Start userId from 10, reserving 1-9 for special use in the future.
Change-Id: I3d0c1717d8b3add75ba43ed98e53ba02e6682c34
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/pm/UserManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/pm/UserManagerService.java b/services/java/com/android/server/pm/UserManagerService.java
index a58c4ea..ca2236f 100644
--- a/services/java/com/android/server/pm/UserManagerService.java
+++ b/services/java/com/android/server/pm/UserManagerService.java
@@ -688,7 +688,7 @@ public class UserManagerService extends IUserManager.Stub {
*/
private int getNextAvailableIdLocked() {
synchronized (mPackagesLock) {
- int i = 0;
+ int i = 10;
while (i < Integer.MAX_VALUE) {
if (mUsers.indexOfKey(i) < 0) {
break;