commit | db730834d5a3a170df34ed769a5cabf34cda8165 | [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:37 2017 +0000 |
tree | c381341496955b55910959e63a6a3d51a3f852e0 | |
parent | fc2d51e25bc5378ca6f82a7404951cb465935889 [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 d61ef59..5f0313d 100644 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1544,6 +1544,7 @@ @Override public void setCellInfoListRate(int rateInMillis) { + enforceModifyPermission(); mPhone.setCellInfoListRate(rateInMillis); }