"Android"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
잔글 (→‎basic)
 
24번째 줄: 24번째 줄:
  
 
=== if an error occurs.(almost permission error) ===
 
=== if an error occurs.(almost permission error) ===
<syntaxhighlight lang="bash">
+
<pre>
 
localhost$ emulator -avd (vmname) -partition-size 1024 -memory 512
 
localhost$ emulator -avd (vmname) -partition-size 1024 -memory 512
</syntaxhighlight>
+
</pre>
 
partition-size or memory size can be given differently.(maybe)
 
partition-size or memory size can be given differently.(maybe)

2017년 3월 30일 (목) 23:58 기준 최신판

/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)