网络模式设置

package/services/Telephony/res/values-zh-rcn/strings.xml
<string name="preferred_network_mode_title" msgid="2336624679902659306">"首选网络类型"</string>
<string name="preferred_network_mode_dialogtitle" msgid="4048082093347807230">"首选网络类型"</string>
<string name="preferred_network_mode_cdma_summary" msgid="3175690187294334241">"首选网络模式:CDMA"</string>
package/services/Telephony/src/com/android/phone/msim/MSimMobileNetworkSubSettings.java
UpdatePreferredNetworkModeSummary
            case Phone.NT_MODE_CDMA:
                switch (mPhone.getLteOnCdmaMode()) {
                    case PhoneConstants.LTE_ON_CDMA_TRUE:
                        mButtonPreferredNetworkMode.setSummary(
                                getResources().getBoolean(R.bool.config_network_smartfren_feature)
                                        ? R.string.preferred_network_mode_1x_evdo_summary
                                        : R.string.preferred_network_mode_cdma_summary);
                    break;
                    case PhoneConstants.LTE_ON_CDMA_FALSE:
                    default:
                        mButtonPreferredNetworkMode.setSummary(
                                getResources().getBoolean(R.bool.config_network_smartfren_feature)
                                        ? R.string.preferred_network_mode_1x_evdo_summary
                                        : R.string.preferred_network_mode_cdma_evdo_summary);
                        break;
                }
                break;
mPhone = PhoneUtils.getPhoneFromIntent(getIntent());
package/services/Telephony/src/com/android/phone/PhoneUtils.java
    public static Phone getPhoneFromIntent(Intent intent) {
        return getPhoneFromSubId(getSubIdFromIntent(intent));
    }
    public static int getSubIdFromIntent(Intent intent) {
        return intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY,
                SubscriptionManager.getDefaultSubId());
    }
frameworks/telephony/java/android/telephony/SubscriptionManager.java
    public static int getDefaultSubId() {
        int subId = INVALID_SUBSCRIPTION_ID;


        try {
            ISub iSub = ISub.Stub.asInterface(ServiceManager.getService("isub"));
            if (iSub != null) {
                subId = iSub.getDefaultSubId();
            }
        } catch (RemoteException ex) {
            // ignore it
        }


        if (VDBG) logd("getDefaultSubId=" + subId);
        return subId;
    }
frameworks/telephony/java/com/android/internal/telephony/RILConstants.java
    int LTE_ON_CDMA_UNKNOWN = -1;
    int LTE_ON_CDMA_FALSE = 0;
    int LTE_ON_CDMA_TRUE = 1;
frameworks/telephony/java/com/android/internal/telephony/PhoneContacts.java
    public static final int LTE_ON_CDMA_TRUE = RILConstants.LTE_ON_CDMA_TRUE;


package/services/Telephony/src/com/android/phone/MobileNetworkSettings.java


/telephony/java/com/android/internal/telephony/TelephonyProperties.java
static final String PROPERTY_LTE_ON_CDMA_DEVICE = "telephony.lteOnCdmaDevice";
./out/target/product/s700/obj/PACKAGING/target_files_intermediates/target_files-S700_V0.23/SYSTEM/build.prop
./out/target/product/s700/system/build.prop
# System props for telephony
# System prop to turn on CdmaLTEPhone always
telephony.lteOnCdmaDevice=1
./device/qcom/s700/system.prop
# System props for telephony
# System prop to turn on CdmaLTEPhone always
telephony.lteOnCdmaDevice=1
./frameworks/base/core/java/android/view/WindowManager.java

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值