Merge "Get the MCC/MNC using defaults." into lmp-sprout-dev
This commit is contained in:
@@ -1501,7 +1501,16 @@ public class TelephonyManager {
|
||||
* @see #getSimState
|
||||
*/
|
||||
public String getSimOperator() {
|
||||
long subId = getDefaultSubscription();
|
||||
long subId = SubscriptionManager.getDefaultDataSubId();
|
||||
if (!SubscriptionManager.isUsableSubIdValue(subId)) {
|
||||
subId = SubscriptionManager.getDefaultSmsSubId();
|
||||
if (!SubscriptionManager.isUsableSubIdValue(subId)) {
|
||||
subId = SubscriptionManager.getDefaultVoiceSubId();
|
||||
if (!SubscriptionManager.isUsableSubIdValue(subId)) {
|
||||
subId = SubscriptionManager.getDefaultSubId();
|
||||
}
|
||||
}
|
||||
}
|
||||
Rlog.d(TAG, "getSimOperator(): default subId=" + subId);
|
||||
return getSimOperator(subId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user