am d992271d: am b0c60f1b: am b789a8ee: Block access to call logs from the corp profile

* commit 'd992271dcd2f97b07e097594b03dc555779391a9':
  Block access to call logs from the corp profile
This commit is contained in:
Yorke Lee
2014-08-11 16:57:07 +00:00
committed by Android Git Automerger

View File

@@ -510,9 +510,10 @@ public class CallLog {
for (int i = 0; i < count; i++) {
final UserInfo user = users.get(i);
final UserHandle userHandle = user.getUserHandle();
if (userManager.isUserRunning(userHandle) &&
!userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS,
userHandle)) {
if (userManager.isUserRunning(userHandle)
&& !userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS,
userHandle)
&& !user.isManagedProfile()) {
Uri uri = addEntryAndRemoveExpiredEntries(context,
ContentProvider.maybeAddUserId(CONTENT_URI, user.id), values);
if (user.id == currentUserId) {