commit | a8d8cb8e810c410cce9329c226badac294422678 | [log] [tgz] |
---|---|---|
author | Jack Yu <jackyu@google.com> | Mon Jan 16 10:15:34 2017 -0800 |
committer | Jack Yu <jackyu@google.com> | Thu Jan 26 17:32:19 2017 -0800 |
tree | 2283519c8b21d63a5332113612835c04535359d7 | |
parent | aa50d9f13e35f9ab1c4d5bc711f551015d424e4f [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
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index 81e6abc..340ec3f 100644 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1681,6 +1681,7 @@ @Override public void setCellInfoListRate(int rateInMillis) { + enforceModifyPermission(); WorkSource workSource = getWorkSource(null, Binder.getCallingUid()); mPhone.setCellInfoListRate(rateInMillis, workSource); }