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

Commit ccc47f6d authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "[automerger skipped] [RESTRICT AUTOMERGE][pm] prevent system app...

Merge "[automerger skipped] [RESTRICT AUTOMERGE][pm] prevent system app downgrades of versions lower than preload am: b0be65f9 -s ours am: d97c6fe8 -s ours am: cc2fe134 -s ours am: 8bd6c222 -s ours am: 26082c17 -s ours" into tm-mainline-prod
parents 8387da9c 1a1244dc
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -245,9 +245,6 @@ public class ParsingPackageUtils {
    private static final String MAX_NUM_COMPONENTS_ERR_MSG =
            "Total number of components has exceeded the maximum number: " + MAX_NUM_COMPONENTS;

    /** The maximum permission name length. */
    private static final int MAX_PERMISSION_NAME_LENGTH = 512;

    @IntDef(flag = true, prefix = { "PARSE_" }, value = {
            PARSE_CHATTY,
            PARSE_COLLECT_CERTIFICATES,
@@ -1274,11 +1271,6 @@ public class ParsingPackageUtils {
            // that may change.
            String name = sa.getNonResourceString(
                    R.styleable.AndroidManifestUsesPermission_name);
            if (TextUtils.length(name) > MAX_PERMISSION_NAME_LENGTH) {
                return input.error(INSTALL_PARSE_FAILED_MANIFEST_MALFORMED,
                        "The name in the <uses-permission> is greater than "
                                + MAX_PERMISSION_NAME_LENGTH);
            }

            int maxSdkVersion = 0;
            TypedValue val = sa.peekValue(