commit | 0723870b8e6d1bea64472f3c4b28cf50e2021831 | [log] [tgz] |
---|---|---|
author | zoey chen <zoeychen@google.com> | Tue Dec 17 18:18:59 2019 +0800 |
committer | Zoey Chen <zoeychen@google.com> | Fri Feb 14 06:49:36 2020 +0000 |
tree | 595d1f76294e0dc9d7e56216af58ecbaa11e8fff | |
parent | 1f5402376103427fe731ee6540a86cd34dc1c5cb [diff] [blame] |
[Settings] #getCdmaRoamingMode should use ReadPrivilegedPhoneStatePermission to check instead of ModifyPermission Bug: 145788881 Test: make Change-Id: I56b6633d91df7b42851a8b4d80c2034f9d42cc40 Merged-In: I56b6633d91df7b42851a8b4d80c2034f9d42cc40
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index c11cde0..9d248a8 100755 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -7701,7 +7701,8 @@ @Override public int getCdmaRoamingMode(int subId) { - TelephonyPermissions.enforceCallingOrSelfModifyPermissionOrCarrierPrivilege( + TelephonyPermissions + .enforeceCallingOrSelfReadPrivilegedPhoneStatePermissionOrCarrierPrivilege( mApp, subId, "getCdmaRoamingMode"); final long identity = Binder.clearCallingIdentity();