Android Network 5+ vs 4+May 142016
By this post we are starting new company blog regarding Android OS specific tricks.
The first theme is related to network configuration.
Android 4+ static network configuration
First of all set the IP for device and GW:
ifconfig DEV [IP] netmask [NETMASK] route add default gw [GATEWAY] dev DEV
Next DNS settings:
setprop net.eth0.dns1 188.8.131.52 setprop net.eth0.dns2 184.108.40.206
Android 5+ specifics
To be able to reach any external network resource you would need:
ip rule add from all lookup main