OSDN Git Service

Pick up default install location
authorSuchi Amalapurapu <asuchitra@google.com>
Thu, 25 Feb 2010 19:49:43 +0000 (11:49 -0800)
committerSuchi Amalapurapu <asuchitra@google.com>
Thu, 25 Feb 2010 22:03:34 +0000 (14:03 -0800)
core/java/android/content/pm/PackageParser.java

index 6599ae5..b07bafc 100644 (file)
@@ -30,6 +30,7 @@ import android.content.res.XmlResourceParser;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.PatternMatcher;
+import android.provider.Settings;
 import android.util.AttributeSet;
 import android.util.Config;
 import android.util.DisplayMetrics;
@@ -711,9 +712,10 @@ public class PackageParser {
                     com.android.internal.R.styleable.AndroidManifest_sharedUserLabel, 0);
         }
         sa.recycle();
+
         pkg.installLocation = sa.getInteger(
                 com.android.internal.R.styleable.AndroidManifest_installLocation,
-                PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY);
+                PackageInfo.INSTALL_LOCATION_AUTO);
 
         // Resource boolean are -1, so 1 means we don't know the value.
         int supportsSmallScreens = 1;