Android network interface configuration

1k Views Asked by At

I'm developing the RNDIS host functionality on Android-based devices. I've already compiled and installed appropriate Android drivers but have faced with another problem: how to set IP address of the network interface (usb0) in Android automatically? I can set IP for the interface manually like ifconfig, ip addr etc., but I need to implement these operations automatically after the network interfaces up automatically. I know how it is done in Linux operating systems (editing files like /etc/network/interfaces) but I didn't find any information about Android OS.

0

There are 0 best solutions below