[Android] 从 logcat 日志中获取设备的 mac 地址信息

关键 TAG

WifiStateMachine

09-01 02:01:21.450  3624  3762 D WifiStateMachine: CMD_START_CONNECT sup state UninitializedState my state DisconnectedState nid=0 roam=false
09-01 02:01:21.450  3624  3762 I WifiStateMachine: Connecting with 18:93:7f:67:f7:e6 as the mac address

DhcpClient

09-01 02:17:21.743  3624  7737 D DhcpClient: Broadcasting DHCPDISCOVER
09-01 02:17:21.750  3624  7741 D DhcpClient: Received packet: 18:93:7f:67:f7:e6 OFFER, ip /10.1.2.183, mask /255.255.254.0, DNS servers: /172.16.12.167 , gateways [/10.1.3.254] lease time 7200, domain null
09-01 02:17:21.751  3624  7737 D DhcpClient: Got pending lease: IP address 10.1.2.183/23 Gateway 10.1.3.254  DNS servers: [ 172.16.12.167 ] Domains  DHCP server /10.1.3.254 Vendor info null lease 7200 seconds
09-01 02:17:21.751  3624  7737 D DhcpClient: Broadcasting DHCPREQUEST ciaddr=0.0.0.0 request=10.1.2.183 serverid=10.1.3.254
09-01 02:17:21.758  3624  7741 D DhcpClient: Received packet: 18:93:7f:67:f7:e6 ACK: your new IP /10.1.2.183, netmask /255.255.254.0, gateways [/10.1.3.254] DNS servers: /172.16.12.167 , lease time 7200
09-01 02:17:21.759  3624  7737 D DhcpClient: Confirmed lease: IP address 10.1.2.183/23 Gateway 10.1.3.254  DNS servers: [ 172.16.12.167 ] Domains  DHCP server /10.1.3.254 Vendor info null lease 7200 seconds
上一篇:获取包名和活动名


下一篇:如何抓取崩溃的log日志?