This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Statis Ip setting in Android JB

 After entire booting sequence of android.

I invoked the adb shell & done following settings

netcfg eth0 up ifconfig eth0 < IP > netmask < mask >

route add default gw < IP > dev eth0

setprop net.dns1 < DNS IP >

All these settings I have given in adb shell & I can able get the static IP. 

But to save these setting for the purpose of static IP on every boot I have following changes in init.rc file like

In the /etc/init.rc  added all the above 5 lines & recompiled. Rebooted the android JB

But the output of netcfg is

 eth0 UP 0.0.0.0/0  0x00001043 c6:ab:69:54:1d:43

here it is not able to fetch the IP.

Also added these 5 lines in the init.rc files related to board. (OmapBlazeboard.rc)

Can One you please tell me the exact procedure of setting the Static IP in android JB 4.1.2..?

If possible please help me in how to add the ethernet UI support in android JB...

Regards,

sainath