2011/02/27

[Android Dev.] Emulator 접속하기


adb.exe(Android Debug Bridge) 를 이용하여 현재 실행중인 Android Emulator 에 접속할 수 있다. adb.exe 는 android SDK가 설치되어 있는 경로의 platform-tools 폴더에 있다. 어디서든 adb를 사용하려면 PATH를 설정하면 된다.





현재 실행 중인 Emulator 리스트 확인 하기


D:\Dev\Android>adb devices
List of devices attached
emulator-5554 device





Emulator에 접속하기


D:\Dev\Android>adb -s emulator-5554 shell
# ls -l
ls -l
dr-x------ root root 2011-02-27 13:19 config
drwxrwx--- system cache 2011-02-22 23:40 cache
lrwxrwxrwx root root 2011-02-27 13:19 sdcard -> /mnt/sdcard
drwxr-xr-x root root 2011-02-27 13:19 acct
drwxrwxr-x root system 2011-02-27 13:19 mnt
lrwxrwxrwx root root 2011-02-27 13:19 d -> /sys/kernel/debug
lrwxrwxrwx root root 2011-02-27 13:19 etc -> /system/etc
drwxr-xr-x root root 2010-07-01 06:06 system
drwxr-xr-x root root 1970-01-01 09:00 sys
drwxr-x--- root root 1970-01-01 09:00 sbin
dr-xr-xr-x root root 1970-01-01 09:00 proc
-rwxr-x--- root root 12995 1970-01-01 09:00 init.rc
-rwxr-x--- root root 1677 1970-01-01 09:00 init.goldfish.rc
-rwxr-x--- root root 107412 1970-01-01 09:00 init
-rw-r--r-- root root 118 1970-01-01 09:00 default.prop
drwxrwx--x system system 2011-02-22 23:41 data
drwx------ root root 2010-01-28 09:59 root
drwxr-xr-x root root 2011-02-27 13:19 dev
# cd sdcard
cd sdcard
# ls -l
ls -l
d---rwxr-x system sdcard_rw 2011-02-22 23:41 LOST.DIR
#
<

Original Post : http://neodreamer-dev.tistory.com/510

No comments :

Post a Comment