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

Commit 935ef2c4 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #2286419: maxSdkVersion causes existing apps to disappear.

Change-Id: Ie552036f4ea673e0ce9981ff1cbd1fbe08678510
parent 7f7c16de
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);