"Android"의 두 판 사이의 차이
ph
잔글 |
|||
20번째 줄: | 20번째 줄: | ||
cat /etc/hosts | cat /etc/hosts | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
− | emul$ echo (target ip) >> /etc/hosts | + | emul$ echo '(target ip)' >> /etc/hosts |
</syntaxhighlight> | </syntaxhighlight> | ||
=== if an error occurs.(almost permission error) === | === if an error occurs.(almost permission error) === |
2011년 5월 20일 (금) 15:40 판
/etc/hosts file setting in android emulator
basic
localhost$ adb -e shell
emul$ su
emul$ mount
rootfs / rootfs ro 0 0
tmpfs /dev/tmpfs rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /acct cgroup rw,cpuacct 0 0
tmpfs /mnt/asec tmps rw,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 ro 0 0
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
blablabla...
emul$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
emul$ cat /etc/hosts
cat /etc/hosts
127.0.0.1 localhost
emul$ echo '(target ip)' >> /etc/hosts
if an error occurs.(almost permission error)
localhost$ emulator -avd (vmname) -partition-size 1024 -memory 512
partition-size or memory size can be given differently.(maybe)