diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-12 14:17:27 -0800 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-12 14:17:27 -0800 |
commit | 7cdf9b3362df82fbfea24d559329109b8ed0b46f (patch) | |
tree | b4c378545c479ddca8878928cccd50cb1eb9c51d /src/com/android | |
parent | c8da777da196c9784324a0d055ea4df5bcb3503a (diff) | |
download | packages_apps_packageinstaller-7cdf9b3362df82fbfea24d559329109b8ed0b46f.zip packages_apps_packageinstaller-7cdf9b3362df82fbfea24d559329109b8ed0b46f.tar.gz packages_apps_packageinstaller-7cdf9b3362df82fbfea24d559329109b8ed0b46f.tar.bz2 |
Remove recomended install app location
Diffstat (limited to 'src/com/android')
-rwxr-xr-x | src/com/android/packageinstaller/InstallAppProgress.java | 11 |
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); } |