Enable moving packages when install location is set to auto.

Change-Id: If081ad949cb2aed6b3555275c582e951e579ffc9
This commit is contained in:
Suchi Amalapurapu
2010-04-22 10:56:51 -07:00
parent f07466782b
commit a3683a51fa

View File

@@ -242,7 +242,8 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) == 0 && if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) == 0 &&
(mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 && (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 &&
pkgInfo != null) { pkgInfo != null) {
if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) { if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ||
pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_AUTO) {
moveDisable = false; moveDisable = false;
} else if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_UNSPECIFIED) { } else if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_UNSPECIFIED) {
IPackageManager ipm = IPackageManager.Stub.asInterface( IPackageManager ipm = IPackageManager.Stub.asInterface(