summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-09-17 14:56:02 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-17 14:56:03 -0700
commit1d31d5ba129007fc13bd0ed49a3e3cd60e748e7c (patch)
tree8521295d667cfd32d8499e9489187eea4655d5c7 /services/java
parent7134ef60b7ebe81b37dffdd65f22a9aae80e3d14 (diff)
parent07a0ede729f9b2f472b659b67b4cbc3602aa289a (diff)
downloadframeworks_base-1d31d5ba129007fc13bd0ed49a3e3cd60e748e7c.zip
frameworks_base-1d31d5ba129007fc13bd0ed49a3e3cd60e748e7c.tar.gz
frameworks_base-1d31d5ba129007fc13bd0ed49a3e3cd60e748e7c.tar.bz2
Merge "Start userId from 10, reserving 1-9 for special use in the future." into jb-mr1-dev
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 914ff67..690d7c9 100644
--- a/services/java/com/android/server/pm/UserManagerService.java
+++ b/services/java/com/android/server/pm/UserManagerService.java
@@ -701,7 +701,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;