Background
It is possible to set the default installation to the SD card by using (based on this link) :
for pre- API14 :
adb shell pm setInstallLocation 2
for API 14 and above:
adb shell pm set-install-location 2 (Android 4.x)
The problem
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).
What I've tried
I tried to read the commands available via ADB, and tried to run the next command:
adb shell pm install -s -r -i com.example.test
But it didn't work
The question
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) ?