How to set the language on the AP interface that can display the default selection for cell broadcast
1, the entire system can support up to 30 cell broadcast languages. Even if there is no pre-configured cell broadcast language (DCS) in the SIM card or NVRAM, there will be a default language in the system that supports 20 cell broadcasts. Their order is, and according to the ISO639 standard, they can know the language they represent.
{
De: German
En: English
It: Italian
FR: French
ES: Spanish
NL: Dutch
SV: Swedish
DA: Danish
PT: Portuguese
Fi: Finnish
No: Norwegian Bokmål
El: Modern Greek
TR: Turkish
Hu: Hungarian
PL: Polish
CS: Czech
He: Hebrew
AR: Arabic
RU: Russian
is: Icelandic
}
2, set these languages by default is open or off.
Modify the default value of the Nvram_ef_cb_ch_info_lid in NVRAM_DATA_ITEMS.C (Custom\service\nvram) common_nvram_ef_cb_ch_info_default[].
Among them, Dcs_mask has 32 bit, the first 30 bits make sense, each bit corresponds to a language setting, 0 means off, and 1 means open.
For example, if you want to set, only Spanish is turned on by default, because Spanish corresponds to the 5th bit, so you can set it like this:
Static Kal_uint8 const common_nvram_ef_cb_ch_info_default[] =
{
......
0x08/*00001000 */, 0x00, 0x00, 0x00,/* dcs_mask, default all DCS turn on */
......
}
3. Set the switch that supports all languages to off
Modify the default value of Nvram_ef_smsal_common_param_lid in NVRAM_DATA_ITEMS.C (Custom\service\nvram) common_nvram_ef_smsal_common_ Param_default[].
wherein, CB setting, the first byte indicates whether the cell broadcast is open, and the second byte indicates whether the cell broadcast supports all languages. If you want to turn off support for all languages, please follow the settings below:
Kal_uint8 Const common_nvram_ef_smsal_common_param_default[] =
{
......
0x01, 0x00,/* CB setting-on */
/* CB Status:on, all language:off*/
......
};
4, the above two lid,nvram_ef_smsal_common_param_lid and nvram_ef_cb_ch_info_lid, the definition of the Verno value added one, so as to ensure that the version upgrade, the changes can be updated.
The following examples can be consulted:
Nvram_editor_data_item.h (Interface\service\nvram)
#define NVRAM_EF_SMSAL_COMMON_PARAM_LID_VERNO "002"
#define NVRAM_EF_CB_CH_INFO_LID_VERNO "002"
In the above example, the original "002" was changed to "003".
5, apply patch, open macro __sms_sim_dcs_default_off__, so that the phone does not read the SIM card read language. Avoid replacing the SIM card, or the presence of a language in the SIM card, which invalidates the above settings.
How Android Sets the default language for cell broadcast