Move intent redirect checks before intent resolution.

The checks for missing or invalid creator tokens and the extraction of intent creator information are now performed before calling supervisor.resolveIntent/resolveActivity. This ensures that the intent's component is not changed by resolveActivity method, which invalidates creatorToken.

Bug: 475542441
Test: Manually verify the PoC of the bug is fixed.
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:93b9c2af63c6f161cd3287d27b892e0f2057c3ce
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:2006b1a874f6f6060a5f396d83ad827b13e78ca8
Merged-In: Iae6a7ef5cb569e1436c9a705b686488bf348b5ff
Change-Id: Iae6a7ef5cb569e1436c9a705b686488bf348b5ff
2 files changed