Move all apps to sd card in Android by using adb interface setting

I have experienced all apps in android device not moving to sd card and  this leads to out of space the phone memory. To deal with this we can set default installation location to sd card. To achieve this we need to use adb interface and some commands.

Before using this trick you need to download the SDK package from android . Once you have the SDK you can find the adb tool in /platform-tools/, though in my case I have it at /tools/.

After you’ve installed the SDK you’ll need to connect your phone to your computer using the USB data cable. You’ll also need to make sure that debugging is possible by visiting “Settings -> Applications -> Development” and checking “USB Debugging”.

To change the the install location we are going to run the pm command via the adb shell. Here’s the details of the pm command:

 
The setInstallLocation command changes the default install location
  0 [auto]: Let system decide the best location
  1 [internal]: Install on internal device storage
  2 [external]: Install on external media

To change the default install location to the SD card (which also enables moving most apps to the SD card.) run the following from the dir containing the adb command:

adb shell pm setInstallLocation 2

You can check the Installation location which has been set by you  then enter following command

adb shell pm getInstallLocation

Comments

Popular posts from this blog

Restore the lost focus of Auto post back controls in asp.net update Panel control

Clone a generic list in C# using extension method

Add Comma automatically while entering amounts in textbox using Javascript