体步骤如下
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

相关文章:

  • 2022-12-23
  • 2021-06-18
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-06-14
  • 2021-07-21
相关资源
相似解决方案