Get Wifi Interface name on Android

前端 未结 6 960
无人及你
无人及你 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:16

    All you have to do is change

    Log.e("MyTemp",netInterface.getName());
    

    to

    Log.e("MyTemp",netInterface.getDisplayName());
    

提交回复
热议问题