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

Commit 7f03381e authored by Nan Wu's avatar Nan Wu
Browse files

Fix missing token issue

Identified from b/377637684, apps could use Context.startActivityAsUser
to start an activity. This method does not call intent.prepareToLeaveProcess
before the IPC call and was not covered by our token generation
logic from ag/29190483, which is causing a creator token missing
issue. This CL added collectExtraIntentKeys call to cover the
activity start invocation.

Bug: 377637684
Test: manual test. FrameworksMockingServicesTests:ActivityManagerServiceTest
        FrameworksCoreTests:IntentTest
Flag: android.security.prevent_intent_redirect
Change-Id: I4555f3c648b65ff534a25dceac506885ca0169fa
parent 5ba04ee6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment