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.
精彩评论