How do I run adb on a mac terminal?

前端 未结 6 1312
一个人的身影
一个人的身影 2021-02-02 07:29
adb shell run-as /data/data/com.mypackagename 

returns

adb command not found

though I see adb in the dir

6条回答
  •  孤城傲影
    2021-02-02 07:36

    If you are using Catalina:

    echo 'export PATH=$PATH:~/Library/Android/sdk/platform-tools/' >> ~/.zshrc
    source ~/.zshrc
    adb devices
    

提交回复
热议问题