'MAC'에 해당되는 글 1건

  1. 2014.02.04 :: MAC] 맥에서 adb shell 설정하기 3
MAC 2014. 2. 4. 17:12
윈도우에서는 sdk만 있다면 바로 adb 명령어를 사용할 수 있지만 mac에선 

따로 path를 잡아줘야한다.

1. 터미널 창을 연다

2. cd 명령어로 sdk 내부에 platform-tools 디렉토리로 이동
(ex : /Users/username/eclipse/adt-bundle-mac-x86_64-20131030/sdk/platform-tools)

3. open -e ~/.bash_profile 명령어를 사용하여 bash_profile 파일을 연다
(없다고 나오면 touch .bash_profile 명령어를 입력하여 새로 만든 후 다시 3번을 시도한다.)

4. 열린 텍스트 창에 
exportPATH=${PATH}: /Users/username/eclipse/adt-bundle-mac-x86_64-20131030/sdk/platform-tools
를 쓴 후 저장한다. ({PATH}:뒤로는 현재 자신의 platform-tools 경로 : 1번 경로 이용)

5. 저장한다. 
- esc 를 누른후 :wq 입력 후 엔터

6. source ~/.bash_profile 입력하여 활성화 한다.
(경로 관련 문제가 있다면 
source ~/eclipse/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/.bash_profile 
과 같이 현재 디렉토리로 잡아준다)

7. adb version 
명령어로 등록 확인한다. 


posted by 젊은쎄오
: