OSDN Git Service

Allow holders of MANAGE_ACTIVITY_STACKS to launch on private displays
authorAndrii Kulian <akulian@google.com>
Fri, 17 Mar 2017 17:30:50 +0000 (10:30 -0700)
committerAndrii Kulian <akulian@google.com>
Fri, 17 Mar 2017 17:30:50 +0000 (10:30 -0700)
commite6ac20e1c7146f326070101f14ffa8a456ae3fe8
tree341c03470914fabe4bfa7da24f7c289fa368e9f9
parentff8b79e162cb4e1c7a8152b9f6cf44dbaceeb175
Allow holders of MANAGE_ACTIVITY_STACKS to launch on private displays

MANAGE_ACTIVITY_STACKS permission allows moving stacks, tasks and
activities between corresponding parents. It makes no sense to
require more strict START_ANY_ACTIVITY permission to launch on
private display, as an activity still can be moved to it.

Bug: 34164473
Test: 'adb unroot' and run android.server.cts.ActivityManagerDisplayTests
Change-Id: I3b59127829c432e42a46630025eeddd152bce1b0
services/core/java/com/android/server/am/ActivityStackSupervisor.java