Skip to content

Commit 81c304b

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Send USER_SWITCHED with the correct permission" into jb-mr1-dev
2 parents 5d683a0 + 1ab36c1 commit 81c304b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13493,7 +13493,7 @@ public boolean switchUser(int userId) {
1349313493
// Inform of user switch
1349413494
Intent addedIntent = new Intent(Intent.ACTION_USER_SWITCHED);
1349513495
addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
13496-
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_ACCOUNTS);
13496+
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_USERS);
1349713497

1349813498
return true;
1349913499
}

0 commit comments

Comments
 (0)