am 8e1985d4: Merge change Ie552036f into eclair
Merge commit '8e1985d4f28bfa9bea7db05f324759991d4e59e9' into eclair-mr2 * commit '8e1985d4f28bfa9bea7db05f324759991d4e59e9': Fix issue #2286419: maxSdkVersion causes existing apps to disappear.
This commit is contained in:
@@ -851,10 +851,6 @@ public class PackageParser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int maxVers = sa.getInt(
|
|
||||||
com.android.internal.R.styleable.AndroidManifestUsesSdk_maxSdkVersion,
|
|
||||||
SDK_VERSION);
|
|
||||||
|
|
||||||
sa.recycle();
|
sa.recycle();
|
||||||
|
|
||||||
if (minCode != null) {
|
if (minCode != null) {
|
||||||
@@ -894,13 +890,6 @@ public class PackageParser {
|
|||||||
} else {
|
} else {
|
||||||
pkg.applicationInfo.targetSdkVersion = targetVers;
|
pkg.applicationInfo.targetSdkVersion = targetVers;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (maxVers < SDK_VERSION) {
|
|
||||||
outError[0] = "Requires older sdk version #" + maxVers
|
|
||||||
+ " (current version is #" + SDK_VERSION + ")";
|
|
||||||
mParseError = PackageManager.INSTALL_FAILED_OLDER_SDK;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XmlUtils.skipCurrentTag(parser);
|
XmlUtils.skipCurrentTag(parser);
|
||||||
|
|||||||
Reference in New Issue
Block a user