Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
您已拥有 root 权限,但仍需要重新挂载 /system 才能进行读/写
$ adb shell $ su $ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
转到此处了解更多信息:以读写方式挂载文件系统。
You have root, but you still need to remount /system to be read/write
Go here for more information: Mount a filesystem read-write.
adb shell su mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
这假设您的 /system 是 yaffs2 并且它位于 /dev/block/mtdblock3 在大多数 Android 手机上执行此操作的更简单/更好的方法是:
adb shell su mount -o remount,rw /system
完成。这只是说重新挂载/系统读写,您不必指定文件系统或挂载位置。
This assumes your /system is yaffs2 and that it's at /dev/block/mtdblock3 the easier/better way to do this on most Android phones is:
Done. This just says remount /system read-write, you don't have to specify filesystem or mount location.
这在我的情况下并没有真正起作用 - 即为了覆盖主机文件,您必须遵循它的指示,即:
./emulator -avd myEmulatorName -partition-size 280
然后在其他术语窗口中(推送新的主机文件 /tmp/hosts):
./adb remount ./adb push /tmp/hosts /system/etc
That didn't really work in my case - i.e. in order to overwrite hosts file you have to follow it's directions, ie:
and then in other term window (pushing new hosts file /tmp/hosts):
最简单的方法可能是使用此应用主机编辑器。你需要有root权限
Probably the easiest way would be use this app Hosts Editor . You need to have root
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(4)
您已拥有 root 权限,但仍需要重新挂载 /system 才能进行读/写
转到此处了解更多信息:以读写方式挂载文件系统。
You have root, but you still need to remount /system to be read/write
Go here for more information: Mount a filesystem read-write.
这假设您的 /system 是 yaffs2 并且它位于 /dev/block/mtdblock3 在大多数 Android 手机上执行此操作的更简单/更好的方法是:
完成。这只是说重新挂载/系统读写,您不必指定文件系统或挂载位置。
This assumes your /system is yaffs2 and that it's at /dev/block/mtdblock3 the easier/better way to do this on most Android phones is:
Done. This just says remount /system read-write, you don't have to specify filesystem or mount location.
这在我的情况下并没有真正起作用 - 即为了覆盖主机文件,您必须遵循它的指示,即:
然后在其他术语窗口中(推送新的主机文件 /tmp/hosts):
That didn't really work in my case - i.e. in order to overwrite hosts file you have to follow it's directions, ie:
and then in other term window (pushing new hosts file /tmp/hosts):
最简单的方法可能是使用此应用主机编辑器。你需要有root权限
Probably the easiest way would be use this app Hosts Editor . You need to have root