From 315a5fb91dbafe6073435a13d937cee9d26877f6 Mon Sep 17 00:00:00 2001 From: Suchi Amalapurapu Date: Tue, 13 Apr 2010 14:32:16 -0700 Subject: Dont fall back to installing on sdcard when internal storage is filled up when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard is filled up. If nothing is specified ie install location is set to let system decide, we just check on internal storage. Fix tests Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b --- .../src/com/android/defcontainer/DefaultContainerService.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'packages') diff --git a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java index 57f9ce7..79c8f9a 100644 --- a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java +++ b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java @@ -346,16 +346,13 @@ public class DefaultContainerService extends IntentService { PackageHelper.APP_INSTALL_AUTO); if (installPreference == PackageHelper.APP_INSTALL_INTERNAL) { checkInt = true; - checkBoth = true; break check_inner; } else if (installPreference == PackageHelper.APP_INSTALL_EXTERNAL) { checkExt = true; - checkBoth = true; break check_inner; } // Fall back to default policy if nothing else is specified. checkInt = true; - checkBoth = true; } // Package size = code size + cache size + data size -- cgit v1.1