我正在尝试将主机文件推送到我的 adb 设备。
所以我做了:
[~/Library/Android/sdk/tools]$ emulator -avd Nexus_5X_API_26_x86 -writable-system 
emulator: WARNING: System image is writable
emulator: ### WARNING: /etc/localtime does not point to /usr . 
/share/zoneinfo/, can't determine zoneinfo timezone name
emulator: ### WARNING: /etc/localtime does not point to 
/usr/share/zoneinfo/, can't determine zoneinfo timezone name
现在在不同的控制台中我做 
adb push hosts /system/etc/hosts
但我收到以下错误:
adb:错误:无法将“主机”复制到“/system/etc/hosts”:远程无法创建文件:只读文件系统主机:已推送 0 个文件。0.1 MB/s(0.001s 中的 93 个字节)
有什么建议?
Rop*_*tah 15
对于那些在 2020 年来到这里的人:
在我的情况下,答案中的步骤不起作用,因为版本30API 不支持可写系统。
我不得不使用版本28API 版本。
小智 11
尝试这个:
$emulator -avd Nexus_5X_API_26_x86 -writable-system 
$adb root
$adb remount
$adb push hosts /system/etc/hosts
| 归档时间: | 
 | 
| 查看次数: | 12724 次 | 
| 最近记录: |