commit | 963f83bdcee1da7227233e2a3abfbce203433782 | [log] [tgz] |
---|---|---|
author | Yorke Lee <yorkelee@google.com> | Tue Jul 28 16:48:57 2015 -0700 |
committer | Yorke Lee <yorkelee@google.com> | Tue Jul 28 16:48:57 2015 -0700 |
tree | efab45be2f171ac583ea6fbaebd17f0e76044485 | |
parent | ed058349a636243714db0f53d441591cbf00410a [diff] |
Don't update call log in CallerInfoQueryThread without permission Bug: 22801077 Change-Id: I16c9c574597564c9f84bbcc00211e097538529de
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index 9a660e1..20d33a0 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java
@@ -298,6 +298,10 @@ */ 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;