Force Application to Install on Your SD Card Using ADB (Android Debug Bridge)

Edited by Clifford, Charmed, Innocent Yogo, Eng and 12 others

Installing applications or games that require a lot of memory is a pain, especially for those of us who don't have the luxury of a large internal memory on our phones. Google has addressed this issue by introducing the option of moving apps to our SD card. However, this option is dependent on the app developer. Using ADB (Android Debug Bridge) you can force the application to be installed on your SD card instead of the internal memory of your phone. Using this method, you don't have to root your phone, and you can easily reverse the process if you decide you no longer want it.

Was this helpful? Yes | No
Ad

Instructions

  1. 1
    The first step is to enable USB debugging on your phone
    .
    USB debugging is used by developers to feed useful information to your computer when developing an application for Android system. To enable this on your phone, open up the Settings menu by touching the "Settings"
    beside
    icon. Tap "Applications"
    beside
    , then "Development", then you have to tick "USB Debugging"
    beside
    beside
    beside
    Advertisement
    Was this step helpful? Yes | No
  2. 2
    Next you need to install the Android SDK (Software Development Kit) on your PC by visiting SDK and choose the correct version of SDK for your operating system
    .
    After downloading, open the folder where you've saved the file.
    Screen shot 2013-09-18 at 7.16.29 PM.png
    Advertisement
    Was this step helpful? Yes | No
  3. 3
    You should have downloaded an .exe file if you are using Windows operating system
    .
    If you are using Linux, or OS X, you'll get a zipped folder. Just unzip it to see the entire file.
    Screen shot 2013-09-18 at 7.22.56 PM.png
    Screen shot 2013-09-18 at 7.23.42 PM.png
    Was this step helpful? Yes | No
  4. 4
    If you are using Windows, you need to update the drivers for your phone
    .
    You have to connect your to your computer using the provided USB cable, but do not mount the SD card on the phone. Windows will ask you to install additional drivers for your phone.
    Was this step helpful? Yes | No
  5. 5
    You have to open up a terminal/command line by clicking Start then run and type CMD on the space provided, then hit enter
    .
    For OS X - the terminal app in the utilities folder. For Linux, it should be on your app list.
    Screen shot 2013-09-18 at 7.32.10 PM.png
    beside
    beside
    Was this step helpful? Yes | No
  6. 6
    Go to the SDK directory you have previously downloaded using the command line
    .
    It's important to place the ADB tool folder where you can easily access it e.g. - in the root of your drive. If you have placed the folder on your C drive, just type "CD \adbtools" and hit enter. If you got the message that the system cannot find the specified file , then you must be in the wrong directory.
    Screen shot 2013-09-18 at 7.47.41 PM.png
    Was this step helpful? Yes | No
  7. 7
    Connect your phone to your PC via the USB, and then type "ADB Devices" on the terminal
    .
    Your phone should appear on the list. If not, it may be that you have a missing driver. Just double check your phone and make sure you have all the drivers.
    Was this step helpful? Yes | No
  8. 8
    If your phone is in the list of the ADB Devices, proceed by typing "adb shell pm setInstallLocation 2" then press "Enter"
    .
    There should be a brief pause and the command prompt will return. All apps that you now install should go straight into your SD card by default, saving your internal memory space.
    Screen shot 2013-09-18 at 7.50.28 PM.png
    Was this step helpful? Yes | No
  9. 9
    You could check this by installing an app
    .
    Tap "Settings".
    beside
    Tap "Applications"
    beside
    and then "Manage Application". Tap the "SD card" tab. Check if the application is listed there.
    beside
    beside
    beside
    Was this step helpful? Yes | No
  10. 10
    To reverse the changes, follow the previous steps, but instead of typing "adb shell pm setInstallLocation 2" you have to type "adb shell pmsetInstallLocation 1".
    Was this step helpful? Yes | No

Important Note! Any previously installed apps will NOT be installed back on your internal memory.

Installing games to SD card Android SDK

To install games to the SD card of your Android using the SDK, you need to download the game application to your device first, then you can follow the procedures mentioned above in this article, with a few differences.

Was this helpful? Yes | No

Instructions

  1. 1
    Open the settings menu by tapping on "Settings"
    .
    beside
    icon on your home screen.
    Advertisement
    Was this step helpful? Yes | No
  2. 2
    Go to "Applications"
    .
    beside
    Was this step helpful? Yes | No
  3. 3
    Go to "Developments"
    .
    Screen shot 2013-09-19 at 8.19.44 AM.png
    Was this step helpful? Yes | No
  4. 4
    Tick on the "USB Debugging" to enable it on your Android device.
    Was this step helpful? Yes | No
  5. 5
    Ensure that you've installed the SDK on your computer
    .
    Screen shot 2013-09-19 at 8.26.31 AM.png
    Was this step helpful? Yes | No
  6. 6
    Install drivers where needed, depending on your operating system
    .
    beside
    beside
    beside
    Was this step helpful? Yes | No
  7. 7
    Connect your phone to your PC via the USB
    .
    Screen shot 2013-09-19 at 8.36.05 AM.png
    Was this step helpful? Yes | No
  8. 8
    Type "ADB Devices" on the terminal
    .
    You will be able to see your phone on the list.
    beside
    Was this step helpful? Yes | No
  9. 9
    Now type "adb shell pm setInstallLocation 2"
    .
    Screen shot 2013-09-19 at 8.44.39 AM.png
    Was this step helpful? Yes | No
  10. 10
    Press "Enter" after typing, and wait for the command.
    Was this step helpful? Yes | No
  11. 11
    Install the games you already downloaded
    .
    They will automatically go to the SD card, since all apps now installed go to the SD card by default.
    Was this step helpful? Yes | No
  12. 12
    Check to see if the game is installed in the SD card
    .
    To do this, go to the settings menu, then "Manage Applications", and then to "SD card", and you will be able to see if the game app is listed there.
    Screen shot 2013-09-19 at 8.48.16 AM.png
    Was this step helpful? Yes | No
  13. 13
    If the game is in the list, then you've successfully installed it to the SD card.
    Was this step helpful? Yes | No
    Advertisement

Tips Tricks & Warnings

  • Any applications you've previously installed, will not automatically be moved to your memory card.
  • You have to uninstall and reinstall any application that you want to move to your memory card.

Questions and Answers

I am not seeing my phone under adb devices?

I have tried everything and installed the Google USB driver on my Windows XP but am still not seeing my phone under list of adb devices

Make sure you've installed the latest oem adb drivers for your PC. You can find the latest version here:

http://koush.com/post/universal-adb-driver

You'll also want to try different USB ports on your computer. It's recommended that you use the ports on the back of the PC for better compatibility.

Lastly, check and see if your phone's USB debugging mode is turned on. You need to have this enabled while connected to your PC. Go into your phone's settings and turn it on in Developer Options.

http://screencast.com/t/Ed2HeR7GeoFI

How do I command the SD card to save all the applications I download on my Samsung S5?

I have a Samsung S5 with a 16GB memory that I have not even used. Every time my phone shows the memory is full when I try to download more applications or view my photo gallery. Your help on this will be appreciated.

Was this helpful? Yes | No

VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.

How to install Android apps to SD card?

How can I install Android apps to the SD card?

VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.

Hi, OEM tablet from China, Android, not bootable?

When I try to open, there is only the Android logo and it won't open. How can I enable USB debug mode. After enabling it, I will get root rights then upload ROM

VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.

I have a problem. After typing adb shell pm setInstallLocation 2 there is an error, please help me?

I am from Poland. I have tried: Everything is OK, but there is a problem with the device saying it's offline. I think it was caused by: Maybe wrong driver?

VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.

I want to restore the SD card on my Samsung Galaxy S5 Marshmallow 6.0.1 to external storage?

The command line "sm partition disk:xxx,xx private" did not perform as eloquently as I had hoped. I don't know how to reverse the procedure and make the card external storage again. This question is not answered or even asked anywhere and I have asked in a dozen different ways attempting to find the answer. I have tried: Attempting to teach myself the ABD tools command line. I think it was caused by: I had foolishly high expectations. When it seems too good to be true, well, you know.

Was this helpful? Yes | No

VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.

If you have problems with any of the steps in this article, please post in the comments section below.

Comments

VisiHow welcomes all comments. If you do not want to be anonymous, register or log in. It is free.

Article Info

Categories : Android

Recent edits by: CynthiaOsborne1960, ifeoluwapo, Nuance

Share this Article:

Thanks to all authors for creating a page that has been read 14,170 times.