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

Commit 8e1985d4 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change Ie552036f into eclair

* changes:
  Fix issue #2286419: maxSdkVersion causes existing apps to disappear.
parents d782b4b6 935ef2c4
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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);