title: How to move spcific apps to/from sd card using ADB?
body: <h2>Background</h2>
  
  <p>It is possible to set the default installation to the SD card by using (based on <a href="http://techgage.com/article/moving_your_non-movable_android_apps_to_an_sd_card/" rel="nofollow"><strong>this link</strong></a>) :</p>
  
  <p>for pre- API14 :</p>
  
  <pre><code>adb shell pm setInstallLocation 2 
  </code></pre>
  
  <p>for API 14 and above:</p>
  
  <pre><code>adb shell pm set-install-location 2 (Android 4.x)
  </code></pre>
  
  <h2>The problem</h2>
  
  <p>This only works for newly installed apps (or you just go manually over each of them and set it there), but I would like to know how to re-install an already installed app into the SD card (and also back to the internal storage).</p>
  
  <h2>What I've tried</h2>
  
  <p>I tried to read the commands available via ADB, and tried to run the next command:</p>
  
  <pre><code>adb shell pm install -s -r -i com.example.test
  </code></pre>
  
  <p>But it didn't work</p>
  
  <h2>The question</h2>
  
  <p>Suppose an app is already installed on the internal storage (or the SD card), how can I use ADB to re-install it to the SD card (or the internal) ? </p>