Merge "Add hidden APIs to get the cached SignalStrength from SST"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index a5f9c07..0ff3e5d 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -57,6 +57,7 @@
import android.telephony.RadioAccessFamily;
import android.telephony.ServiceState;
import android.telephony.SmsManager;
+import android.telephony.SignalStrength;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyHistogram;
@@ -3727,4 +3728,21 @@
return false;
}
}
+
+ /**
+ * Get the current signal strength information for the given subscription.
+ * Because this information is not updated when the device is in a low power state
+ * it should not be relied-upon to be current.
+ * @param subId Subscription index
+ * @return the most recent cached signal strength info from the modem
+ */
+ @Override
+ public SignalStrength getSignalStrength(int subId) {
+ Phone p = getPhone(subId);
+ if (p == null) {
+ return null;
+ }
+
+ return p.getSignalStrength();
+ }
}