Skip to content

Commit 1ab36c1

Browse files
author
Amith Yamasani
committed
Send USER_SWITCHED with the correct permission
Forgot to change this from MANAGE_ACCOUNTS to MANAGE_USERS. Change-Id: Ib07d2ac84c19cef278a0e564676b6200e0f97dd1
1 parent 9c38d6e commit 1ab36c1

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)