OSDN Git Service

RESTRICT AUTOMERGE Create separated tasks for different apps from startActivities
authorRiddle Hsu <riddlehsu@google.com>
Sat, 22 Feb 2020 15:20:41 +0000 (23:20 +0800)
committerAnis Assi <anisassi@google.com>
Mon, 30 Mar 2020 20:56:09 +0000 (13:56 -0700)
commita952197bd161ac0e03abc6acb5f48e4ec2a56e9d
tree38634ffb0ab1938bc94bea4df55e06001b66d961
parentd37eb96212c6fe4819c66bd0a1e0a2f9f7501602
RESTRICT AUTOMERGE Create separated tasks for different apps from startActivities

Assume there are 2 applications A, B with different uids.
There are 4 activities A1, A2, B1, B2 with default task
affinity and launch mode.

After A1 called startActivities(B1, A2, B2):
 Original   : Task(A1, B1, A2, B2)
 This Change: Task(A1, B1), Task(A2, B2)
In other words, the source caller cannot launch its activity
above the activity of other application in the same task, and
it can still launch activity of other application in its task.

Bug: 145669109
Test: run cts --test android.server.cts.StartActivityTests \
      -m CtsServicesHostTestCases
Change-Id: I97bd875146a52f62b8fe82235487ccefb2955e8e
(cherry picked from commit 973ecc619c0bb87a03481774ea9e86d2924601e4)
services/core/java/com/android/server/am/ActivityStarter.java