Merge "Apply cross-user restrictions to Shell" into lmp-dev

This commit is contained in:
Amith Yamasani
2014-09-11 16:46:33 +00:00
committed by Android (Google) Code Review
10 changed files with 150 additions and 55 deletions

View File

@ -855,7 +855,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,