阅读:2786回复:1

最近有客户反应wifi无法上网

楼主#
更多 发布于:2022-03-07 21:20
分析:
1. wifi能正常连接
2. 之前能上网
3. 检查系统时间是否为当前时间,问题就出在这里


device里配置了config_ntpServer为2.android.pool.ntp.org
这个URL由于某种原因,国内突然无法访问


解决办法:
已出货的固件,写个app把Settings数据库里的ntp_server 设置成cn.pool.ntp.org


系统代码修改:在DatabaseHelper中加入

if (SystemProperties.get("ro.vendor.project", "marconi").endsWith("CN")) {
 loadStringSetting(stmt, Settings.Global.NTP_SERVER, R.string.def_ntp_server_cn);
}


ro.vendor.project这个是用来标记客户信息,比如分辨率、默认语言、项目名称等

<string name="def_ntp_server_cn">cn.pool.ntp.org</string>

最新喜欢:

PazivalPaziva... VastStarGamesVastSt... zhaoyf13zhaoyf...
沙发#
发布于:2022-03-08 09:16
陆总牛逼
If you have nothing to lose, then you can do anything.
游客

返回顶部