commit | 24ea27a2758f753b6e132b2c424f6bfb6c52c774 | [log] [tgz] |
---|---|---|
author | Jack Yu <jackyu@google.com> | Mon Jan 16 10:15:34 2017 -0800 |
committer | Feng Yu <feny@google.com> | Wed Feb 15 02:08:01 2017 +0000 |
tree | d8b6e1abc4ae019dcd2b35a40be139fe5dc17dc9 | |
parent | a98f66bf5ed7193e475f56342cddf7b8d9d53d4d [diff] |
Added permission check for setCellInfoListRate Now the caller needs to have MODIFY_PHONE_STATE to call this API. Test: Manual bug: 33815946 Change-Id: Ia2cf0de383572033c70b94ae71080ef35c3f443c (cherry picked from commit 3128d9ec40fadccbf2be7b9e962e35b9bfbc003a)
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index 45bea8a..9c6adb3 100644 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1633,6 +1633,7 @@ @Override public void setCellInfoListRate(int rateInMillis) { + enforceModifyPermission(); mPhone.setCellInfoListRate(rateInMillis); }