Android studio - /system/bin/sh: Permission Denied
<p>In Android Studio, i want run my app in my device but i have an error message:</p>

<blockquote>
  <p>$ adb shell pm install -r "/data/local/tmp/my.model" /system/bin/sh:
  pm: can't execute: Permission denied</p>
</blockquote>

<p><em>(It launch perfectly in emulator with 0 error.)</em></p>

<hr>

<p>I have a Samsung S3 Mini rooted phone. My phone is visible with command <code>adb devices</code>. </p>

<p>I have try: run Android Studio in administrator, add <code>ADB</code> path on environment variable, Remove build folder and rebuild project,  but i have always this error.</p>

<p>I guess that's why it does not start my Activity. </p>

<blockquote>
  <p>$ adb push C:\Users\me\AndroidStudioProjects\Model\app\build\outputs\apk\app-debug.apk
  /data/local/tmp/my.model</p>
  
  <p>$ adb shell pm install -r "/data/local/tmp/my.model"</p>
  
  <p>/system/bin/sh: pm: can't execute: Permission denied</p>
  
  <p>$ adb shell am start -n "my.model/my.model.MainActivity" -a
  android.intent.action.MAIN -c android.intent.category.LAUNCHER</p>
  
  <p>Error while executing: am start -n "my.model/my.model.MainActivity"
  -a android.intent.action.MAIN -c android.intent.category.LAUNCHER</p>
  
  <p>Starting: Intent { act=android.intent.action.MAIN
  cat=[android.intent.category.LAUNCHER] cmp=my.model/.MainActivity }</p>
  
  <p>Error type 3</p>
  
  <p>Error: Activity class {my.model/my.model.MainActivity} does not
  exist.</p>
  
  <p>Error while Launching activity</p>
</blockquote>

<p>Where is the issue? Thank you.</p>