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 220.127.116.11 setprop net.eth0.dns2 18.104.22.168
Android 5+ specifics
To be able to reach any external network resource you would need:
ip rule add from all lookup main