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
<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