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

Commit eee4bea0 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Android (Google) Code Review
Browse files

Merge "Improve app index validation" into main

parents 61ea56e6 1a531ab0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1290,6 +1290,11 @@ public class UiccProfile extends IccCard {
            return -1;
        }

        if (mUiccApplications[index] == null) {
            loge("App index " + index + " is invalid");
            return -1;
        }

        if (mUiccApplications[index].getType() != expectedAppType
                && mUiccApplications[index].getType() != altExpectedAppType) {
            loge("App index " + index + " is invalid since it's not "