修改Android hosts文件
2012-10-18 09:25
302 查看
1、启动模拟器,配置参数,设置内存大小, -partition-size 256
2、启动adb shell
>adb shell
排除Android Read-only file system 错误
#mount -o remount rw /
设置目录可读写权限
#mount -o remount,rw rootfs /system/
转向hosts所有目录
#cd /system/etc
修改hosts文件
#rm hosts
#echo "127.0.0.1 localhost" > hosts
#echo "10.249.50.47 account.aliyun.com" >> hosts
3、
To get around this, you need to mount the partition read-write. Typically this is done with /system partition
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
(Replace /dev/block/mtdblock3 &
/system with appropriate device path and mount point, as obtained from
cat /proc/mounts)
参考:/article/6580178.html
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
2、启动adb shell
>adb shell
排除Android Read-only file system 错误
#mount -o remount rw /
设置目录可读写权限
#mount -o remount,rw rootfs /system/
转向hosts所有目录
#cd /system/etc
修改hosts文件
#rm hosts
#echo "127.0.0.1 localhost" > hosts
#echo "10.249.50.47 account.aliyun.com" >> hosts
3、
Mount a filesystem read-write
Very often when you want to write files to a particular partition on ADP1, you will get a "Permission Denied" if the partition is mounted read-only.To get around this, you need to mount the partition read-write. Typically this is done with /system partition
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
(Replace /dev/block/mtdblock3 &
/system with appropriate device path and mount point, as obtained from
cat /proc/mounts)
参考:/article/6580178.html
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
相关文章推荐
- android下修改hosts文件不起作用(无效)的解决办法
- android 模拟器 hosts文件修改 亲测可用
- android 模拟器 hosts文件修改
- Android下修改hosts文件
- Android下修改hosts文件-重启有效 android开发adb命令的用法,开发包platform-tools中自带adb.exe
- Android 下 hosts 文件修改教程
- Android 修改 hosts 文件
- Android修改hosts文件
- Android 修改HOSTS解决办法,android下修改hosts文件不起作用(无效)的解决办法
- 修改Android的hosts文件
- Android下修改hosts文件-重启有效
- Linux系统环境下修改android的hosts文件
- android下修改hosts文件
- android 下修改 hosts文件 及 out of memory的解决
- Android手机修改HOSTS文件方法
- Android下修改hosts文件-重启有效
- 修改 android 手机 hosts 文件的方法
- Android下修改hosts文件(需要重启后有效)
- Android 修改Hosts文件
- Android下修改hosts文件-重启有效