am 81c304b9: Merge "Send USER_SWITCHED with the correct permission" into jb-mr1-dev
* commit '81c304b99d920e8d66ac16332489d78ff7162e12': Send USER_SWITCHED with the correct permission
This commit is contained in:
@@ -13493,7 +13493,7 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
// Inform of user switch
|
// Inform of user switch
|
||||||
Intent addedIntent = new Intent(Intent.ACTION_USER_SWITCHED);
|
Intent addedIntent = new Intent(Intent.ACTION_USER_SWITCHED);
|
||||||
addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
|
addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
|
||||||
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_ACCOUNTS);
|
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_USERS);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user