"Android"의 두 판 사이의 차이
ph
(새 문서: == /etc/hosts file setting in android emulator == === basic === <syntaxhighlight lang="bash"> $ adb -e shell ---- $ su $ mount rootfs / rootfs ro 0 0 tmpfs /dev/tmpfs rw,mode=600 0 0 pro...) |
|||
2번째 줄: | 2번째 줄: | ||
=== basic === | === basic === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $ adb -e shell | + | localhost$ adb -e shell |
− | + | ||
− | $ su | + | emul$ su |
− | $ mount | + | emul$ mount |
rootfs / rootfs ro 0 0 | rootfs / rootfs ro 0 0 | ||
tmpfs /dev/tmpfs rw,mode=600 0 0 | tmpfs /dev/tmpfs rw,mode=600 0 0 | ||
16번째 줄: | 16번째 줄: | ||
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0 | /dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0 | ||
blablabla... | blablabla... | ||
− | $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system | + | emul$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system |
− | $ cat /etc/hosts | + | emul$ cat /etc/hosts |
cat /etc/hosts | cat /etc/hosts | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
− | $ 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) === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $ emulator -avd (vmname) -partition-size 1024 -memory 512 | + | localhost$ emulator -avd (vmname) -partition-size 1024 -memory 512 |
</syntaxhighlight> | </syntaxhighlight> | ||
partition-size or memory size can be given differently.(maybe) | partition-size or memory size can be given differently.(maybe) |
2011년 5월 20일 (금) 15:39 판
/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)