title: Google Glass // System signature // Install APK in background
body: <p>I want to download and install / remove APKs in background programmatically on a google glass device. </p>
  
  <p><em>Steps i already tried:</em></p>
  
  <ul>
  <li>Move APK to <strong>/system/priv-apps</strong></li>
  <li>Try to sign the APK with the system signature (I don't know if I signed it with the correct one)</li>
  <li>Set the android sharedUserId to "android.uid.system" -> this gave me a permission error while installing</li>
  </ul>
  
  <hr>
  
  <p>Can anybody help me getting my App signed by a system signature? I really do not want to code a shell script running on each boot.. </p>
  
  <p>I am also getting the following error while trying to exec the</p>
  
  <pre><code>pm install -r APK_PATH
  </code></pre>
  
  <p>command programmatically:</p>
  
  <pre><code>Error running exec(). Command: [su] Working Directory: null Environment: null
  </code></pre>
  
  <p>Please help me! :-)</p>