android下修改hosts文件的方法
android下修改hosts文件的方法
发布时间:2016-12-24 来源:查字典编辑
摘要:具体步骤如下1、获得root权限:adbroot2、设置/system为可读写:adbremount3、将hosts文件复制到PC:adbp...

具体步骤如下

1、获得root权限:adb root

2、设置/system为可读写:adb remount

3、将hosts文件复制到PC:adb pull /system/etc/hosts e:hosts

4、修改PC机上文件

5、将PC机上文件复制到手机:adb push e:hosts /system/etc/hosts

但在第五步时,有的人会报 out of memory的错误

这是因为直接用命令行启动,而没加一个参数造成的,但是用下面这个命令来启动就行了

emulator -avd Android2.1 -partition-size 128

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新手机软件教程学习
热门手机软件教程学习
电脑基础子分类