前言
rk平台平Android13系统测试以太网,发现设置静态IP保存不了问题,即设置静态IP以后重启系统,IP又变成动态的了。
分析
抓取log发现保存静态IP的时候会打印如下log:
08-07 06:22:28.377 626 749 D EthernetNetworkFactory: updateInterface, iface: eth0, ipConfig: IP assignment: STATIC
08-07 06:22:28.377 626 749 D EthernetNetworkFactory: Static configuration: IP address 192.168.1.68/24 Gateway 192.168.1.1 DNS servers: [ 192.168.1.1 0.0.0.0 ] Domains
08-07 06:22:28.377 626 749 D EthernetNetworkFactory: Proxy settings: NONE
08-07 06:22:28.377 626 749 D EthernetNetworkFactory: , old ipConfig: IP assignment: DHCP
08-07 06:22:28.377 626 749 D EthernetNetworkFactory: Proxy settings: NONE
08-07 06:22:28.377 626 749 D EthernetNetworkFactory: , capabilities: null, old capabilities: [ Transports: ETHERNET Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_ROAMING&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandw