2011년 10월 20일 목요일

adb 실행시 no permissions 문제 해결


ubuntu(kubuntu) 11.10 & android sdk(r14) 설치하고 adb shell을 실행했는데 같은 에러가 출력되었다.
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: insufficient permissions for device
구글링을 해 보니 adb process의 권한 문제이며 sudo로 실행하라고 한다.
매번 sudo로 실행하기 너무 귀찮아서 아래와 같이 수정하고 정상동작하는 것을 확인했다.
$adb kill-server
$sudo chown root:root adb
  -> adb가 설치되어 있는 디렉토리에서 수행 (<설치폴더>/android-sdk-linux_x86/platform-tools)
$sudo chmod 4775 adb
$adb shell
  -> 정상동작함.

댓글 없음:

댓글 쓰기