开发者

Android How to enable/disable ethernet from an application?

开发者 https://www.devze.com 2023-02-25 06:14 出处:网络
How can i enable/disable the ethernet 开发者_运维百科from my android app? There is no EthernetManager in SDK like WifiManager.Android comes with ifconfig (configure arbitrary network and netmask, also

How can i enable/disable the ethernet 开发者_运维百科from my android app? There is no EthernetManager in SDK like WifiManager.


Android comes with ifconfig (configure arbitrary network and netmask, also to put the network up or down). and dhcpcd (obtain and use dynamic ip). Both commands work for me. I cannot find any GUI tools so far.

Unfortunately, this is currently only possible with the rooted device.


No, that's not possible in Android, sorry.

0

精彩评论

暂无评论...
验证码 换一张
取 消