diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-25 11:49:43 -0800 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-25 14:03:34 -0800 |
commit | aaec779513737a70007dea955f60e1b8bcbc2f1a (patch) | |
tree | 7530e81575a01934ed3c06f8e508f580bc83f1a7 /core/java | |
parent | aa635db5c65351a43ce17ceaed5909018383d88d (diff) | |
download | frameworks_base-aaec779513737a70007dea955f60e1b8bcbc2f1a.zip frameworks_base-aaec779513737a70007dea955f60e1b8bcbc2f1a.tar.gz frameworks_base-aaec779513737a70007dea955f60e1b8bcbc2f1a.tar.bz2 |
Pick up default install location
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/content/pm/PackageParser.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java index 6599ae5..b07bafc 100644 --- a/core/java/android/content/pm/PackageParser.java +++ b/core/java/android/content/pm/PackageParser.java @@ -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; |