最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - How to restart ethernet network programmatically? - Stack Overflow

programmeradmin3浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论