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

Commit 32d7d7fe authored by TYM Tsai's avatar TYM Tsai Committed by Android (Google) Code Review
Browse files

Merge "PM: Restrict subclass construction." into tm-qpr-dev

parents 8d27bb51 2de3585d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7763,6 +7763,10 @@ public class PackageParser {
            final ArrayList<T> intentsList;
            try {
                final Class<T> cls = (Class<T>) Class.forName(componentName);
                if (!IntentInfo.class.isAssignableFrom(cls)) {
                    throw new AssertionError("Intent list requires subclass of IntentInfo, not: "
                            + componentName);
                }
                final Constructor<T> cons = cls.getConstructor(Parcel.class);

                intentsList = new ArrayList<>(N);