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

Commit 31826a5a authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 8e1985d4: Merge change Ie552036f into eclair

Merge commit '8e1985d4' into eclair-plus-aosp

* commit '8e1985d4':
  Fix issue #2286419: maxSdkVersion causes existing apps to disappear.
parents c2e074c1 8e1985d4
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);