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


Popular posts from this blog

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

Disable backspace key using Jquery

Clone a generic list in C# using extension method

Add Comma automatically while entering amounts in textbox using Javascript

Remove Owin from MVC 5 Application and use custom forms authentication

Step by step migration of ASP.NET Core 2.2 to 3.1

Send bulk Email in using excel file

Email validation using regular expression in jQuery

How to Import CSV File and bind csv file data to gridview in using c#