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

Commit dfe5f0c2 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Temporary stop-gap for Chrome target SDK issue." into sc-dev

parents ca6a54ed c6be9fe4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2807,7 +2807,15 @@ public class ParsingPackageUtils {
        }
    }

    @SuppressWarnings("AndroidFrameworkCompatChange")
    private void convertSplitPermissions(ParsingPackage pkg) {
        // STOPSHIP(b/183905675): REMOVE THIS TERRIBLE, HORRIBLE, NO GOOD, VERY BAD HACK
        if ("com.android.chrome".equals(pkg.getPackageName())
                && pkg.getVersionCode() <= 445500399
                && pkg.getTargetSdkVersion() > Build.VERSION_CODES.R) {
            pkg.setTargetSdkVersion(Build.VERSION_CODES.R);
        }

        final int listSize = mSplitPermissionInfos.size();
        for (int is = 0; is < listSize; is++) {
            final PermissionManager.SplitPermissionInfo spi = mSplitPermissionInfos.get(is);