adb shell cat /sys/class/net/eth0/address 或者 adb shell cat /sys/class/net/wlan0/address
ifconfig eth0 down ifconfig eth0 hw ether 00:0C:18:EF:FF:ED ifconfig eth0 up
看下源码,就能明白了,通过wifiInfo获取mac的方式,Android已经不推荐了,你可以通过eth0/wlan0取
你之前做的什么操作?
80,351
社区成员
91,288
社区内容
加载中
试试用AI创作助手写篇文章吧