This topic created in 4798 days ago, the information mentioned may be changed or developed.
有没有可能是像linux关闭一个网卡那样,
使用ifconfig wlan0 down 关闭一个网络设备,
在使用的时候再ifconfig wlan0 up ?
5 replies • 1970-01-01 08:00:00 +08:00
 |
|
源码都在那,看看就明白了
|
 |
|
Android有API来给应用用的,普通应用也用不了ifconfig...
|
 |
|
root权限下: service call wifi 14 | grep "0 00000001" if [ "$?" -eq "0" ]; then service call wifi 13 i32 1 else service call wifi 13 i32 0 fi
|
 |
|
有CHANGE_WIFI_STATE权限就不要root。
|