一、连接wifi提示网络受限,但是可以上网

连接后的log:

D NetworkMonitor/100: PROBE_DNS www.google.com 107ms OK 104.244.46.85
D NetworkMonitor/100: PROBE_DNS connectivitycheck.gstatic.com 118ms OK 203.208.50.66
D NetworkMonitor/100: PROBE_HTTP http://connectivitycheck.gstatic.com/generate_204 time=35ms ret=302 request={Connection=[close], User-Agent=[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.32 Safari/537.36]} headers={null=[HTTP/1.0 302 Moved Temporarily], Allow=[GET,POST,HEAD], Location=[http://10.10.1.2:8080/cn/index.html], MIME-Version=[1.0], Pragma=[No-Cache], Server=[AP Server 1.0], X-Android-Received-Millis=[1615220820212], X-Android-Response-Source=[NETWORK 302], X-Android-Selected-Protocol=[http/1.0], X-Android-Sent-Millis=[1615220820196]}
D NetworkMonitor/100: PROBE_HTTPS https://www.google.com/generate_204 Probe failed with exception javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
D NetworkMonitor/100: isCaptivePortal: isSuccessful()=false isPortal()=true RedirectUrl=http://10.10.1.2:8080/cn/index.html isPartialConnectivity()=false Time=172ms

修改解析DNS的网址,改为国内

/packages/modules/NetworkStack$ git showdiff --git a/res/values/config.xml b/res/values/config.xml
index d6a11ab..7b6d44c 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -21,8 +21,8 @@config_captive_portal_https_url and *NOT* by changing or overlayingthis resource. It will break if the enforcement of overlayable starts.-->
-    <string name="default_captive_portal_https_url" translatable="false">https://www.google.com/generate_204</string>
-
+       <!-- <string name="default_captive_portal_https_url" translatable="false">https://www.google.com/generate_204</string> -->
+       <string name="default_captive_portal_https_url" translatable="false">https://developers.google.cn/generate_204</string><!-- List of fallback URLs to use for detecting captive portals. --><!-- default_captive_portal_fallback_urls is not configured as overlayableso OEMs that wish to change captive_portal_fallback_urls configuration
@@ -31,8 +31,8 @@this resource. It will break if the enforcement of overlayable starts.--><string-array name="default_captive_portal_fallback_urls" translatable="false">
-        <item>http://www.google.com/gen_204</item>
-        <item>http://play.googleapis.com/generate_204</item>
+       <item>http://developers.google.cn/gen_204</item>
+       <item>http://play.googleapis.com/generate_204</item></string-array><!-- Configuration hooks for the above settings.Empty by default but may be overridden by RROs. -->

二、wifi提示连接失败

wifi连接失败,一直提示已经保存。
log为:

[ 1479.260269] [dhd][wlan0] _dhd_set_mac_address : MACID ae:dc:f9:d5:e8:1a is overwritten
[ 1479.345057] [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 7, bssidx: 0
[ 1482.007423] [dhd][wlan0] wl_ext_set_chanspec : channel 40, 0xe12a
[ 1482.015055] [dhd][wlan0] wl_conn_debug_info : Connecting with 48:0e:ec:22:f5:f2 ssid "vantron_test5_5G", len (10
[ 1482.985424] [dhd][wlan0] wl_bss_connect_done : Report connect result - connection failed
[ 1482.985528] [dhd][wlan0] wl_ext_iapsta_event : connect failed event=0, reason=0, status=5
[ 1482.993597] [dhd][wlan0] IAPSTA-ERROR) wl_ext_in4way_sync_sta : WPA failed at 15
[ 1483.010426] [dhd][wlan0] wl_iw_event : [0 times] disconnected with 00:00:00:00:00:00, event 11, reason 8
[ 1483.020228] [dhd][wlan0] wl_ext_iapsta_event : [S] Link down with 00:00:00:00:00:00, WLC_E_DISASSOC(11), reason8

同样的,wifi不能同时自动切换5G和2.4G的频段,wifi的热点也不能打开2.4G或者5G的频段都可以修改这里
关闭ACS信道自动选择

--- a/common/wifi/WifiOverlay/res/values/config.xml
+++ b/common/wifi/WifiOverlay/res/values/config.xml
@@ -27,7 +27,7 @@<bool translatable="false" name="config_wifi_background_scan_support">true</bool><!-- Enable ACS (auto channel selection) for Wifi hotspot (SAP) -->
-    <bool translatable="false" name="config_wifi_softap_acs_supported">true</bool>
+    <bool translatable="false" name="config_wifi_softap_acs_supported">false</bool>

三、网络时间无法自动更新

切换ntp服务器网址。
前提是你的网络正常,不会显示网络受限这种。
log会打印为:

ntp_failure: [time.android.com/2001:4860:4806::,java.net.sockettimeoutexception: poll timed out]
//time.android.com 这个就是你要修改的网址
/frameworks/base/
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -2037,7 +2037,7 @@<bool name="config_actionMenuItemAllCaps">true</bool><!-- Remote server that can provide NTP responses. -->
-    <string translatable="false" name="config_ntpServer">time.android.com</string>
+    <string translatable="false" name="config_ntpServer">asia.pool.ntp.org</string>

四、wifi的mac地址读取会改变

在开发板中去读取这个节点的内容的时候

cat /sys/class/net/wlan0/address
d4:9c:dd:5a:2e:8a

每次更换一个wifi都会更换一个对应的网络的mac地址
修改

cluo@cluo:/sd1/NXP/VT-SBC-BIOL/device/nxp/common$ git diff .
diff --git a/common/wifi/WifiOverlay/res/values/config.xml b/common/wifi/WifiOverlay/res/values/config.xml
index ffce3d1e..201a1c54 100644
--- a/common/wifi/WifiOverlay/res/values/config.xml
+++ b/common/wifi/WifiOverlay/res/values/config.xml
@@ -33,7 +33,7 @@<bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">true</bool><!-- True if the firmware supports connected MAC randomization -->
-    <bool name="config_wifi_connected_mac_randomization_supported">true</bool>
+    <bool name="config_wifi_connected_mac_randomization_supported">false</bool><!-- True if the firmware supports p2p MAC randomization --><bool name="config_wifi_p2p_mac_randomization_supported">true</bool>

android的一些简单配置修改(2)相关推荐

  1. Android开发环境简单配置

    为什么80%的码农都做不了架构师?>>>    ·         Android开发环境简单配置 写这个系列的原因也是因为自己对android比较感兴趣,而网上多数教程都是直接参照 ...

  2. BetaFlight统一硬件资源简单配置修改

    BetaFlight统一硬件资源简单配置修改 1. 源由 2. 资源配置注意事项 3. 资源配置文件修改验证步骤 Step 1:确认硬件修改内容 Step 2:资源配置文件修改 Step 3:验证配置 ...

  3. 在Android Studio进行“简单配置”单元测试(Android Junit)

    起因 在Android studio 刚出.本人就想弄单元测试,可惜当时Android studio不知道抽什么风(准确来说,应该是我不会弄而已).无法执行到相应的代码. 后来今天突然自己又抽风.又想 ...

  4. 超简单配置Android持续集成自动化打包流程 - GitHub+GitLab-CI+蒲公英+钉钉

    我的Github:github.com/BzCoder GitLab-CI的相关语法:fennay.github.io/gitlab-ci-c- 欢迎各位留言讨论 场景 为了优化工作流程,解放开发人员 ...

  5. MTK Android部分配置修改

    MTK Android浏览器输入框字数限制 /mediatek/frameworks/base/res/res/values/config.xml:    <integer name=" ...

  6. putty窗口标题修改、字体颜色修改等简单配置以及putty多开工具mtputty的使用

    putty窗口标题修改 设置Window->Behaviour->Window title: 在Terminal->Features中一定要勾选Disable remote-cont ...

  7. android蓝牙移植,全志平台ap6476模组 bluetooth功能调试(1)驱动移植配置修改

    1. 前言 蓝牙移植内核修改的较少, android层由于使用broadcom提供bplus,framework和package改动较多, android部份的移植只提及重要的修改. 2. 内核配置 ...

  8. ftp修改服务器配置,ftp服务器的简单配置

    ftp的简单配置 所需环境:redhat enterprise 5.4 1.把防火墙和selinux关了,以免影响后面的试验. #iptables -F #setenforce 0 2.安装vsftp ...

  9. oracle修改filesystem,Oracledatabasefilesystem(DBFS)简单配置文档

    Oracle database filesystem (DBFS) 简单配置文档 本机环境:11.2.0.1 1. download fuse package on website download ...

最新文章

  1. jquery学习(3)--高级选择器
  2. oracle10G 错误删除数据或者表 闪回功能帮你忙。。。闪回操作例子
  3. UVA10305 Ordering Tasks
  4. java随机抽题系统_在用java做一个在线考试系统,随机抽题遇到了问题,我写了一个随机抽题的方法,不知道在asp按钮中怎么用...
  5. PDF数据防扩散系统方案
  6. 帝国cms php点击删除,帝国CMS删除内容非本站链接的方法(非插件)
  7. linux-shell-命令总结
  8. cuda版本查看_ubuntu安装CUDA
  9. Android 内存数据库
  10. 常用中国姓氏日文平假名对照表
  11. XPS文件,在Windows XP下的打开查看阅读和打印方法。(多图详细讲解)
  12. pentaho安装mysql驱动_在Pentaho数据集成中安装MySQL JDBC驱动
  13. Android快捷方式解密
  14. RNA二级结构系列(1):基础知识篇
  15. QML之gradient
  16. 利用Python爬取网页内容
  17. 历史为什么选择C语言?事实证明:暮年的C语言,依旧宝刀未老!
  18. domoticz添加和风天气与彩云天气
  19. Vue + element-ui 实现分页功能完整流程
  20. 模型预处理均值、方差的理解与使用

热门文章

  1. 六大设计原则之接口隔离原则
  2. subclipse 下载地址
  3. cs224w(图机器学习)2021冬季课程学习笔记12 Knowledge Graph Embeddings
  4. Matlab_回归分析_逐步回归
  5. Python3安装PyQt5
  6. maple 解代数方程组得多项式_Maple与数学实验
  7. Linux查看系统信息命令总结
  8. Linux系统之进入单用户模式的方法及相关作用
  9. vi/vim 中可以使用 :s 命令来替换字符串。
  10. boox android 4.4,纷极阅读app