adb shell run-as /data/data/com.mypackagename
returns
adb command not found
though I see adb in the directory (/Users/me/Library/Android/sdk/platform-tools)
/Users/me/Library/Android/sdk/platform-tools
You just need to add this path to your bash profile and source it:
echo 'export PATH=$PATH:~/Library/Android/sdk/platform-tools/' >> ~/.bash_profile source ~/.bash_profile adb devices
2.1m questions
2.1m answers
60 comments
57.0k users