Mustafa İrer
Mustafa İrer

Reputation: 1061

Android How to enable/disable ethernet from an application?

How can i enable/disable the ethernet from my android app? There is no EthernetManager in SDK like WifiManager.

Upvotes: 1

Views: 2263

Answers (2)

Audrius Meškauskas
Audrius Meškauskas

Reputation: 21728

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.

Upvotes: 2

sddsadsf
sddsadsf

Reputation: 250

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

Upvotes: 0

Related Questions