adb shell run-as /data/data/com.mypackagename
returns
adb command not found
though I see adb in the dir
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