[RESTRICT AUTOMERGE] Do not send new Intent to non-exported activity when navigateUpTo

The new Intent was delivered to a non-exported activity while
#navigateUpTo was called from an Activity of a different uid.

Bug: 238605611
Test: atest StartActivityTests
Change-Id: I854dd825bfd9a2c08851980d480d1f3a177af6cf
Merged-In: I854dd825bfd9a2c08851980d480d1f3a177af6cf
(cherry picked from commit 7bd9c8bfb10cb5c37c661b6315ca79ff406bd85b)
(cherry picked from commit ebf6889f753d40d51301a7cd11d6286d4b1a16aa)
Merged-In: I854dd825bfd9a2c08851980d480d1f3a177af6cf
1 file changed