zoukankan      html  css  js  c++  java
  • [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
    
  • 相关阅读:
    读《见识》 | 当别人扇了你一巴掌
    Java集合类
    Java数据结构简述
    Java加密算法
    Java JDK与JRE
    Java String、StringBuilder、StringBuffer[笔记]
    Java同步(Synchronization)
    Java断言(Assertion)
    Java strictfp
    Java Native Interface(JNI)
  • 原文地址:https://www.cnblogs.com/shaobin0604/p/13595798.html
Copyright © 2011-2022 走看看