我尝试编辑Android模拟器的host文件。我按照以下步骤进行:
step1
adb root
step2
adb remount
step3
adb pull /system/etc/hosts .
然后我为客户主机信息添加了新的一行,然后推送hosts文件时出现了一些错误:
step4
adb push hosts /system/etc/hosts
错误信息:
adb: error: failed to copy 'hosts' to '/system/etc/hosts': couldn't create file: Read-only file system
环境信息:
osx ei capitan
android emulator: android 7.1.1
android studio: 2.2.2
adb reboot
!这非常重要。否则,您将无法再从avd管理器启动模拟器! - steven