Merge change Ie552036f into eclair

* changes:
  Fix issue #2286419: maxSdkVersion causes existing apps to disappear.
This commit is contained in:
Android (Google) Code Review
2009-11-25 12:55:44 -08:00

View File

@@ -851,10 +851,6 @@ public class PackageParser {
}
}
int maxVers = sa.getInt(
com.android.internal.R.styleable.AndroidManifestUsesSdk_maxSdkVersion,
SDK_VERSION);
sa.recycle();
if (minCode != null) {
@@ -894,13 +890,6 @@ public class PackageParser {
} else {
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);