如何更改主机上Android文件 [英] How to change the hosts file on android

查看:121
本文介绍了如何更改主机上Android文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功扎根我的三星Galaxy迷你(安卓2.2.1),并认为,我可以(通常是根能)改变什么。

I have successfully rooted my Samsung Galaxy Mini (android 2.2.1) and thought, that I could change anything (as root usually can).

我想改变主机上的Andr​​oid文件,包括一些本地地址。不过,我仍然感到我没有权限做到这一点的消息。我尝试以下选项:

I would like to change the hosts file on the android, to include some local addresses. However, I still get the message that I do not have permission to do that. I tried following options:

  1. ADB推/路径/要/我的/新/主机/系统的/ etc ...和我得到​​的回应阅读 - 只有文件系统

  1. adb push /path/to/my/new/hosts /system/etc ... and I got the response Read-only file system.

直接在手机外壳上。但是,这也不能工作。我可以做在控制台中,但不能更改文件。

directly in the shell on the phone. But this didn't work either. I can do su in the console, but cannot change the file.

这不是很奇怪,那是超级用户,我不能更改某些文件?

Isn't it strange, that as super user I am not allowed to change some files?

推荐答案

您有根的,但你仍然需要重新安装/系统进行读/写

You have root, but you still need to remount /system to be read/write

$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

去这里的更多信息:挂载文件系统的读写

这篇关于如何更改主机上Android文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆