admin管理员组

文章数量:1396871

I am using adb to control my Android tablet. I want to change its ethernet network configuration.

I am successfully editing the file /data/misc/ethernet/ipconfig.txt. You can find file specifications on the web to edit it correctly. It works well.

But ...

I always need the tablet to be restarted for the new configuration to be applied. How to make the tablet reload the configuration file ? Is there a adb shell command to restart the networking ? I tried ifconfig eth0 down; ifconfig eth0 up. It doesn't make the job.

Thanks for your help

本文标签: androidHow to restart ethernet network programmaticallyStack Overflow