Android Wi-Fi 修改国家码(QCOM平台)

修改Wi-Fi国家码的方法有很多,目前只列举出几种方法

1.supplicant provide one private command which can be used by framework or supplicant to change the country code of wlan driver 

wpa_cli -i wlan0 DRIVER COUNTRY CN //change to CN 

2.将WCNSS_qcom_wlan_nv.bin文件取成xxx.xml文件然后将国家码修改成对应的国家

 <DefaultCountryTable>   

	 <RegulatoryDomain Map="0:FCC,1:ETSI,2:JAPAN,3:WORLD,4:N_AMER_EXC_FCC,5:APAC,6:KOREA,7:HI_5GHZ,8:NO_5GHZ"> 3 </RegulatoryDomain>   
	
	 <CountryCode>   

		 <Value>48</Value>   
		 <Value>48</Value>   
		 <Value>73</Value>   

	 </CountryCode>   
 </DefaultCountryTable>

3.通过adb临时修改国家码。

(1)首先开启手机的飞行模式
(2)adb remount; adb shell setprop gsm.operator.iso-country us---->设置成对应的国家
(3)adb remount; adb shell setprop gsm.sim.operator.iso-country us
(4)adb shell getprop | grep operator


4.SIM信息修改国际码

此方法通过获取SIM卡中的MCC(移动国家码,Mobile Country Code,3bit)信息然后通过setCountryCode方法设置。具体代码流程请看

我的另一篇博文

http://blog.csdn.net/xiaoxiangyuhai/article/details/75044469(点击打开链接)

5.修改WCNSS_qcom_cfg.ini修改国家码

#Set countrycode for STA mode.
gStaCountryCode = us 

#Set country code in SoftAP mode.
gAPCntryCode = us

6.通过开启11d功能设置国际码


  • 1
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值