title: How to use su command over adb shell?
body: <p>I need to make a script that executes a lots of thing on Android device, my device is rooted, when I enter on the shell, I can give the command su, and it works but I need pass this command like:</p>
  
  <pre><code>adb shell "
  su;
  mv /sdcard/Download/app_test /data/local;
  cd /data/local;
  ./app_test;
  exit;
  exit;
  "
  </code></pre>
  
  <p>when I put some commands before the su it works, according what I read su creates a new shell that return immediately, but I need give commands on the su shell, how can I do that?</p>