Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6023d0b9 authored by Suchi Amalapurapu's avatar Suchi Amalapurapu Committed by Android (Google) Code Review
Browse files

Merge "Fix 258181 Enable moving apps to external storage if install location...

Merge "Fix 258181 Enable moving apps to external storage if install location is set and they had been moved to internal storage." into froyo
parents fc5a0222 30de8477
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -239,15 +239,11 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
            moveDisable = false;
        } else {
            mMoveAppButton.setText(R.string.move_app_to_sdcard);
            if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) != 0 ||
                    (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
                moveDisable = true;
            } else if (pkgInfo != null) {
                if (pkgInfo.installLocation ==
                    PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY) {
                    // If an application explicitly specifies install location
                    // consider that
                    moveDisable = true;
            if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) == 0 &&
                    (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 &&
                    pkgInfo != null) {
                if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) {
                    moveDisable = false;
                } else if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_UNSPECIFIED) {
                    IPackageManager ipm  = IPackageManager.Stub.asInterface(
                            ServiceManager.getService("package"));