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

Commit 73f20ce1 authored by Nan Wu's avatar Nan Wu Committed by Android (Google) Code Review
Browse files

Merge "Fix check creator token" into main

parents aa47b52c f8c9fd78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -899,7 +899,7 @@ public class Intent implements Parcelable, Cloneable {
        boolean isForeign = (intent.mLocalFlags & LOCAL_FLAG_FROM_PARCEL) != 0;
        boolean isWithoutTrustedCreatorToken =
                (intent.mLocalFlags & Intent.LOCAL_FLAG_TRUSTED_CREATOR_TOKEN_PRESENT) == 0;
        if (isForeign && isWithoutTrustedCreatorToken) {
        if (isForeign && isWithoutTrustedCreatorToken && preventIntentRedirect()) {
            intent.addExtendedFlags(EXTENDED_FLAG_MISSING_CREATOR_OR_INVALID_TOKEN);
        }
    }