summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuchi Amalapurapu <asuchitra@google.com>2010-02-12 14:17:27 -0800
committerSuchi Amalapurapu <asuchitra@google.com>2010-02-12 14:17:27 -0800
commit7cdf9b3362df82fbfea24d559329109b8ed0b46f (patch)
treeb4c378545c479ddca8878928cccd50cb1eb9c51d
parentc8da777da196c9784324a0d055ea4df5bcb3503a (diff)
downloadandroid_packages_apps_PackageInstaller-7cdf9b3362df82fbfea24d559329109b8ed0b46f.zip
android_packages_apps_PackageInstaller-7cdf9b3362df82fbfea24d559329109b8ed0b46f.tar.gz
android_packages_apps_PackageInstaller-7cdf9b3362df82fbfea24d559329109b8ed0b46f.tar.bz2
Remove recomended install app location
-rwxr-xr-xsrc/com/android/packageinstaller/InstallAppProgress.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/com/android/packageinstaller/InstallAppProgress.java b/src/com/android/packageinstaller/InstallAppProgress.java
index 4e757e8..ca49687 100755
--- a/src/com/android/packageinstaller/InstallAppProgress.java
+++ b/src/com/android/packageinstaller/InstallAppProgress.java
@@ -156,17 +156,6 @@ public class InstallAppProgress extends Activity implements View.OnClickListener
String installerPackageName = getIntent().getStringExtra(
Intent.EXTRA_INSTALLER_PACKAGE_NAME);
-
- int bestInstallLoc =
- pm.recommendAppInstallLocation(PackageUtil.getPackageInfo(mPackageURI));
-
- // If best location is SD card, mark it in package flags.
- // for the time being, ignore if the application does not fit.
- if ((bestInstallLoc != PackageManager.INSTALL_FAILED_INSUFFICIENT_STORAGE) &&
- (bestInstallLoc != PackageManager.INSTALL_PARSE_FAILED_NOT_APK)) {
- installFlags = installFlags | bestInstallLoc;
- }
-
PackageInstallObserver observer = new PackageInstallObserver();
pm.installPackage(mPackageURI, observer, installFlags, installerPackageName);
}