Merge "Add isManualNetworkSelectionAllowed api"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 8ac58b2..f2bc7d3 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -4991,6 +4991,23 @@
}
@Override
+ public boolean isManualNetworkSelectionAllowed(int subId) {
+ boolean isAllowed = true;
+ final long identity = Binder.clearCallingIdentity();
+ try {
+ TelephonyPermissions.enforeceCallingOrSelfReadPhoneStatePermissionOrCarrierPrivilege(
+ mApp, subId, "isManualNetworkSelectionAllowed");
+ Phone phone = getPhone(subId);
+ if (phone != null) {
+ isAllowed = phone.isCspPlmnEnabled();
+ }
+ } finally {
+ Binder.restoreCallingIdentity(identity);
+ }
+ return isAllowed;
+ }
+
+ @Override
public UiccSlotInfo[] getUiccSlotsInfo() {
enforceReadPrivilegedPermission();