title: adb shell commands with su -c gives Permission denied (phone is rooted)
body: <p>I have the following issue.</p>
  <p>I have a rooted phone, and I want to update a file of an application. When I manually copy my file FILENAME to the phone via <code>adb push</code>, and get an <code>adb shell</code> and root credentials, I can copy $FILENAME to APP_DIR/$FILENAME without any problem.</p>
  <p>However, after the <code>adb push</code> I try to do it with logging into the shell via <code>adb shell su -c</code>, I have given a permission denied message :S</p>
  <p>My WORKING example:</p>
  <pre><code>adb push myfile /data/local/tmp/
  adb shell
  &gt; su
  &gt; # cp /data/local/tmp/myfile /data/data/MYAPP/files/myfile
  </code></pre>
  <p>My NOT WORKING example:</p>
  <pre><code>adb push myfile /data/local/tmp/
  adb shell su -c &quot;cp /data/local/tmp/myfile /data/data/MYAPP/files/myfile&quot;
  /system/bin/sh: can't create /data/data/MYAPP/files/myfile: Permission denied
  </code></pre>
  <p>As a naive other solution, I tried to do without copy commands and used <code>cat myfile &gt; /data/data/MYAPP/files/myfile</code> but still have the same message :S</p>
  <p>Thanks for considering my request</p>