·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> app软件开发 >> Android开发 >> android如何默认打开小区广播具体实现

android如何默认打开小区广播具体实现

作者:佚名      Android开发编辑:admin      更新时间:2022-07-23
在nvram_cust_pack.c中COMMON_NVRAM_EF_SMSAL_COMMON_PARAM_DEFAULT
复制代码 代码如下:
kal_uint8 const COMMON_NVRAM_EF_SMSAL_COMMON_PARAM_DEFAULT[] =
{
#if defined (__CS_SERVICE__) && defined (__SMS_OVER_PS_SUPPORT__)
0x03, /* bearer service : GSM prefer */
#elif defined (__SMS_OVER_PS_SUPPORT__)
0x00, /* bearer service : GPRS Only */
#else
0x01, /* bearer service : GSM Only */
#endif
0x00, 0x00, /* status report, reply path OFF */
0x02, /* VP: Relative format */
#ifdef __UNIFIED_MESSAGE_SIMBOX_SUPPORT__
0x01, 0x01, 0x01, /* mem1, mem2, mem3 */
#else/* __UNIFIED_MESSAGE_SIMBOX_SUPPORT__ */
0x05, 0x05, 0x05, /* mem1, mem2, mem3 */
#endif /* __UNIFIED_MESSAGE_SIMBOX_SUPPORT__ */
0x00, 0x01, /* CB setting */
0x00, /* AT default profile ID */
0x00, /* First Octet */
0x00, /* Turn Off SMS FDN */
0x00, /* last_used_tp_mr */
0x00, /* mem_capacity_available */
0x00, /* selected_msp */
0x00 /* reserve */
};

第8个byte就是小区广播的开关,1是打开,0是关闭。

设置默认关闭或打开是修改如下代码中的第一个数据。 0x00就默认关闭,改成0x01就是默认打开
0x00, 0x01, /* CB setting *