diff options
author | Amith Yamasani <yamasani@google.com> | 2014-06-08 17:54:27 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2014-09-10 17:15:06 -0700 |
commit | 8cd28b57ed732656d002d97879e15c5695b54fff (patch) | |
tree | 33f02a0e243e5c3d8889862c26af5accc0e4e98b /cmds/am | |
parent | da6e6c888f81d3bd19ff1f3cf9b081b7f9b2a013 (diff) | |
download | frameworks_base-8cd28b57ed732656d002d97879e15c5695b54fff.zip frameworks_base-8cd28b57ed732656d002d97879e15c5695b54fff.tar.gz frameworks_base-8cd28b57ed732656d002d97879e15c5695b54fff.tar.bz2 |
Apply cross-user restrictions to Shell
Even though Shell user is allowed to perform cross-user actions,
lock that path down if the target user has restrictions imposed by
the profile owner device admin that prevents access via adb.
If the profile owner has imposed DISALLOW_DEBUGGING_FEATURES, don't
allow the shell user to make the following types of calls:
start activities, make service calls, access content providers,
send broadcasts, block/unblock packages, clear user data, etc.
Bug: 15086577
Change-Id: I9669fc165953076f786ed51cbc17d20d6fa995c3
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index c06ef0d..a0ba32e 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -846,7 +846,7 @@ public class Am extends BaseCommand { } private void sendBroadcast() throws Exception { - Intent intent = makeIntent(UserHandle.USER_ALL); + Intent intent = makeIntent(UserHandle.USER_CURRENT); IntentReceiver receiver = new IntentReceiver(); System.out.println("Broadcasting: " + intent); mAm.broadcastIntent(null, intent, null, receiver, 0, null, null, mReceiverPermission, |