windows系统下修改模拟器hosts文件
1、在shell面板通过cd进入到要修改的模拟器文件目录。
2、
adb root //root 运行
adb remount //挂载文件
adb pull /system/etc/hosts doc/hosts //将hosts文件放在指定文件夹下(本文中放在doc文件夹下)
手动在指定文件夹下(本文中放在doc文件夹下)打开host文件修改
adb push doc/hosts /system/etc/hosts//将修改完成的hosts文件放到模拟器中
adb shell cat /etc/hosts//查看host文件是否修改成功
网友评论