How do I run adb on a mac terminal?

前端 未结 6 1311
一个人的身影
一个人的身影 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:34

    If you are in that directory, you can run it with a leading dot-slash, i.e. ./adb shell run-as /data/data/com.mypackagename.

    In general, you might want to add that directory to your PATH environment variable.

提交回复
热议问题