Develop
2013.04.23 16:57
[android] 디바이스(시뮬레이터) hosts 파일 수정하기
조회 수 31119 댓글 0
remount 한다.
>adb remount
안드로이드에 있는 host 파일을 받는다.
>adb pull /system/etc/hosts D:\TDPlatform\android_home\backup\
hosts 파일 수정한다.
---------------------------------------
기본적으로 로컬만 등록되어 있음.
127.0.0.1 localhost
---------------------------------------
host 파일을 넣는다.
>adb push D:\TDPlatform\android_home\work\hosts /system/etc/
hosts 파일 수정 확인해보기
>adb -e shell
#cat /system/etc/hosts
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
93 | System/OS | [linux] 네트워크 커널 설정.. | hooni | 2003.04.23 | 16539 |
92 | System/OS | [linux] 커널 컴파일, 설정 | hooni | 2003.04.23 | 17906 |
91 | System/OS | [linux] 네트웍 트래픽 모니터링(MRTG) | hooni | 2003.04.23 | 42272 |
90 | System/OS | [linux] DHCP(Dynamic Host Configuration Protocol) 서버 | hooni | 2003.04.23 | 13087 |
89 | System/OS | [linux] Masquerade 가상 ip분할기법 | hooni | 2003.04.23 | 48005 |
88 | System/OS | [linux] DNS(Domain Name System) 설치, 설정 | hooni | 2003.04.23 | 12504 |
87 | System/OS | [linux] sendmail 설정/사용 | hooni | 2003.04.23 | 14631 |
86 | System/OS | [linux] 이기종간의 파일 공유(Samba) | hooni | 2003.04.23 | 14949 |
85 | System/OS | [linux] 텔넷, FTP 텍스트 모드에서 사용 | hooni | 2003.04.23 | 11991 |
84 | System/OS | [linux] 랜카드가 2개 일 때 네트워크 설정 | hooni | 2003.04.23 | 30117 |
83 | System/OS | [linux] 아파치설치/설정 - 알리어싱(aliasing) | hooni | 2003.04.23 | 51447 |
82 | System/OS | [linux] 아파치설치/설정 - 사용인증 | hooni | 2003.04.23 | 15140 |