diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-28 16:48:57 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-07-28 16:48:57 -0700 |
commit | 963f83bdcee1da7227233e2a3abfbce203433782 (patch) | |
tree | efab45be2f171ac583ea6fbaebd17f0e76044485 | |
parent | ed058349a636243714db0f53d441591cbf00410a (diff) |
Don't update call log in CallerInfoQueryThread without permission
Bug: 22801077
Change-Id: I16c9c574597564c9f84bbcc00211e097538529de
-rw-r--r-- | src/com/android/dialer/calllog/ContactInfoHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index 9a660e1ae..20d33a003 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -298,6 +298,10 @@ public class ContactInfoHelper { */ public void updateCallLogContactInfo(String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) { + if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.WRITE_CALL_LOG)) { + return; + } + final ContentValues values = new ContentValues(); boolean needsUpdate = false; |