summaryrefslogtreecommitdiffstats
path: root/services/java/com
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-10-10 11:14:31 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-10 11:14:31 -0700
commit3aa837cc0f459e1acf89280b724c0a70c50e61dd (patch)
treebd8940e626c405b7b36e239ec1ded159ba48955d /services/java/com
parent264c2cfe4dc5837213e4b031c13cf9f17025d779 (diff)
parentc296f22e713257271f95c2115df9e13d05d5687a (diff)
downloadframeworks_base-3aa837cc0f459e1acf89280b724c0a70c50e61dd.zip
frameworks_base-3aa837cc0f459e1acf89280b724c0a70c50e61dd.tar.gz
frameworks_base-3aa837cc0f459e1acf89280b724c0a70c50e61dd.tar.bz2
am c296f22e: am 0145e36c: Revert "Only allow 8 OBBs to be mounted by a UID"
Merge commit 'c296f22e713257271f95c2115df9e13d05d5687a' * commit 'c296f22e713257271f95c2115df9e13d05d5687a': Revert "Only allow 8 OBBs to be mounted by a UID"
Diffstat (limited to 'services/java/com')
-rw-r--r--services/java/com/android/server/MountService.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java
index c7997fe..f0029ca 100644
--- a/services/java/com/android/server/MountService.java
+++ b/services/java/com/android/server/MountService.java
@@ -79,8 +79,6 @@ class MountService extends IMountService.Stub
private static final String VOLD_TAG = "VoldConnector";
- protected static final int MAX_OBBS = 8;
-
/*
* Internal vold volume state constants
*/
@@ -161,7 +159,6 @@ class MountService extends IMountService.Stub
* Mounted OBB tracking information. Used to track the current state of all
* OBBs.
*/
- final private Map<Integer, Integer> mObbUidUsage = new HashMap<Integer, Integer>();
final private Map<IBinder, List<ObbState>> mObbMounts = new HashMap<IBinder, List<ObbState>>();
final private Map<String, ObbState> mObbPathToStateMap = new HashMap<String, ObbState>();
@@ -1604,12 +1601,6 @@ class MountService extends IMountService.Stub
}
final int callerUid = Binder.getCallingUid();
-
- final Integer uidUsage = mObbUidUsage.get(callerUid);
- if (uidUsage != null && uidUsage > MAX_OBBS) {
- throw new IllegalStateException("Maximum number of OBBs mounted!");
- }
-
obbState = new ObbState(filename, token, callerUid);
addObbState(obbState);
}
@@ -1708,15 +1699,6 @@ class MountService extends IMountService.Stub
}
mObbPathToStateMap.put(obbState.filename, obbState);
-
- // Track the number of OBBs used by this UID.
- final int uid = obbState.callerUid;
- final Integer uidUsage = mObbUidUsage.get(uid);
- if (uidUsage == null) {
- mObbUidUsage.put(uid, 1);
- } else {
- mObbUidUsage.put(uid, uidUsage + 1);
- }
}
}
@@ -1734,20 +1716,6 @@ class MountService extends IMountService.Stub
}
mObbPathToStateMap.remove(obbState.filename);
-
- // Track the number of OBBs used by this UID.
- final int uid = obbState.callerUid;
- final Integer uidUsage = mObbUidUsage.get(uid);
- if (uidUsage == null) {
- Slog.e(TAG, "Called removeObbState for UID that isn't in map: " + uid);
- } else {
- final int newUsage = uidUsage - 1;
- if (newUsage == 0) {
- mObbUidUsage.remove(uid);
- } else {
- mObbUidUsage.put(uid, newUsage);
- }
- }
}
}