* commit 'a541338a1eaa0fd3ed53c4eaf4be2551ec1a7350': Get the MCC/MNC using defaults.
This commit is contained in:
@@ -1501,7 +1501,16 @@ public class TelephonyManager {
|
|||||||
* @see #getSimState
|
* @see #getSimState
|
||||||
*/
|
*/
|
||||||
public String getSimOperator() {
|
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);
|
Rlog.d(TAG, "getSimOperator(): default subId=" + subId);
|
||||||
return getSimOperator(subId);
|
return getSimOperator(subId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user