Get Wifi Interface name on Android

前端 未结 6 937
无人及你
无人及你 2021-01-06 18:24

I am currently developing a sort of wifi sniffer. To achieve that I use a tcpdump binary compiled for arm. But it\'s assume that I know the name of the Wifi Interface.

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 19:06

    Use this: String interfaceName = SystemInfo.getInstance().getProperty("wifi.interface");

    This will definitely work..

提交回复
热议问题