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

Edited by Clifford, Charmed, Anonymous, Innocent Yogo and 11 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 | I need help

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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  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 | I need help

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 | I need help

Instructions

  1. 1
    Open the settings menu by tapping on "Settings".
    beside
    icon on your home screen.
    Advertisement
    Was this step helpful? Yes | No | I need help

  2. 2
    Go to "Applications".
    beside
    Was this step helpful? Yes | No | I need help

  3. 3
    Go to "Developments".
    Screen shot 2013-09-19 at 8.19.44 AM.png
    Was this step helpful? Yes | No | I need help

  4. 4
    Tick on the "USB Debugging" to enable it on your Android device.
    Was this step helpful? Yes | No | I need help

  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 | I need help

  6. 6
    Install drivers where needed, depending on your operating system.
    beside
    beside
    beside
    Was this step helpful? Yes | No | I need help

  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 | I need help

  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 | I need help

  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 | I need help

  10. 10
    Press "Enter" after typing, and wait for the command.
    Was this step helpful? Yes | No | I need help

  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 | I need help

  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 | I need help

  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 | I need help

    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

Android USB debug. Is there any way I can enable USB debug on my Android phone?

The phone is locked on a Japanese network. Menu and other settings are inaccessible without the correct SIM car, therefore I cannot access or enable USB debug through settings.

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

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 | I need help

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

Force applications to install to external SD?

I have an MTK phone that I don't know the maker of, but it shows as N900 on my PC. I want to be able to install all applications to the SD card. It comes up with an error even though I've set the default install location to SD card.

Was this helpful? Yes | No | I need help

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.

My Android screen got broken (Tecno p3)?

I wanted to use vysor to be controlling the device from my PC but while vysor was installing the apk file on my device, it showed an error, it showed some thing like this:sdk older. I have tried: I have tried changing the default storage to SD card through ADB. I think it was caused by: The phone was stuck at boot mode and I repaired it myself. maybe I I didn't repair it well

Was this helpful? Yes | No | I need help

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

Comments

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




Strongfire
Premier Author
20 Articles Started
87 Article Edits
5,550 Points
Strongfire is a premier author with VisiHow. Strongfire has achieved the level of "Sergeant" with 5,550 points. Strongfire has started 20 articles (including this one) and has also made 87 article edits. 238,000 people have read Strongfire's article contributions.
Strongfire's Message Board
Strongfire: Hi, my name is Strongfire.
Strongfire: Can I help you with your problem about "Force Application to Install on Your SD Card Using ADB (Android Debug Bridge)"?
 

Article Info

Categories : Android

Recent edits by: Nuance, utsav, Manjeet

Share this Article:

Thanks to all authors for creating a page that has been read 11,858 times.

Do you have a question not answered in this article?
Click here to ask one of the writers of this article
x

Thank Our Volunteer Authors.

Would you like to give back to the community by fixing a spelling mistake? Yes | No