{"id":21423,"date":"2011-11-25T13:08:41","date_gmt":"2011-11-25T11:08:41","guid":{"rendered":"http:\/\/onsoftware.en.softonic.com\/?p=21423"},"modified":"2025-07-02T01:54:44","modified_gmt":"2025-07-02T08:54:44","slug":"force-android-to-automatically-install-apps-to-sd-card","status":"publish","type":"post","link":"https:\/\/cms-articles.softonic.io\/en\/force-android-to-automatically-install-apps-to-sd-card\/","title":{"rendered":"How to: Force Android to automatically install apps to SD card"},"content":{"rendered":"<p><!--[lead]--><\/p>\n<p><strong>Wondering why your HTC Android phone keeps running out of memory?<\/strong> One of the answers could be that it\u2019s <a href=\"http:\/\/en.softonic.com\/android\/best-software\">crammed full of apps<\/a>. By default the Android Market <strong>stores all of your apps on your device\u2019s internal memory<\/strong>, rather than your larger SD card.<\/p>\n<p><!--[\/lead]--><\/p>\n<p><!--[materials]--><\/p>\n<p>Don\u2019t worry though because with a bit of patience and the help of the Android SDK it can be done. Start by downloading the following tools:<\/p>\n<h2>What you need to perform the \u2018hack\u2019<\/h2>\n<ul>\n<li><a title=\"Download JDK\" href=\"http:\/\/java-development-kit-jdk.en.softonic.com\/\"><strong>Java Development Kit<\/strong><\/a> (JDK)<\/li>\n<li><a href=\"http:\/\/android-sdk.en.softonic.com\/\"><strong>Android Developer Kit<\/strong><\/a> (SDK)<\/li>\n<li><a title=\"Download HTC Sync\" href=\"http:\/\/htc-sync.en.softonic.com\/\"><strong>HTC Sync<\/strong><\/a> or USB drivers (such as <a href=\"http:\/\/developer.android.com\/sdk\/win-usb.html\"><strong>Google<\/strong><\/a>\u2019s or <a href=\"http:\/\/www.mediafire.com\/?ckh8794j5k81piq\"><strong>these<\/strong><\/a>)<\/li>\n<\/ul>\n<p>Now, on your phone, go to <strong>Settings &gt; Applications &gt; Development<\/strong> and activate <strong>USB Debugging<\/strong>.<\/p>\n<p><!--[\/materials]--><\/p>\n<p><!--[body]--><\/p>\n<h2>1. Install the SDK and Platform-tools<\/h2>\n<p>To start, install the Java JDK, then the Android SDK. After having installed the SDKs, open the <strong>Android SDK Manager<\/strong> and check the <strong>Android SDK Platform-tools<\/strong> package. Then hit the <strong>Install<\/strong> button.<\/p>\n<p>This package of tools contains the <a href=\"http:\/\/developer.android.com\/guide\/developing\/tools\/adb.html\"><strong>Android Debug Bridge (<\/strong>ADB)<\/a>, a utility that allows you to <strong>communicate with an Android device via command line<\/strong>. This is what you need to be able to tell Android to automatically install apps to a memory card.<\/p>\n<h2>2. Connect your phone to your computer<\/h2>\n<p>Now connect your Android phone to your PC using the USB cable in HTC Sync mode. If the HTC Sync program opens automatically in Windows, shut it down from the Task Bar (Right-click on the icon and click \u2018Close\u2019).<\/p>\n<p>Bear in mind that not all USB cables are valid with all devices. In <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?t=726348&amp;page=3\"><strong>some cases<\/strong><\/a>, they won\u2019t connect your phone to your device. Have more than one to hand just in case.<\/p>\n<h2>3. Open a command console and carry out checks<\/h2>\n<p>Go to <strong>Start &gt; Run<\/strong> in Windows, or hit <strong>Windows+R<\/strong> and type <strong>cmd<\/strong>. In the command console that appears, switch to the directory \u2018Program files (x86)\u2019 or \u2018Program Files\u2019 and enter the path: <strong>Android\/Android-SDK\/Platform-tools<\/strong>. Once you\u2019re here:<\/p>\n<ul>\n<li>Type <strong>adb devices<\/strong> to see if your device is connected and recognized<\/li>\n<li>You should see your device with its serial number listed<\/li>\n<li>If it doesn\u2019t show up or appears as <strong>offline<\/strong>, try with a different USB cable<\/li>\n<li>Type <strong>netstat<\/strong> and check if <strong>port 5037<\/strong> is in use<\/li>\n<li>It\u2019s this port that uses the ADB. If it\u2019s in use, kill the process which is using it<\/li>\n<\/ul>\n<p>Before continuing, it\u2019s recommended that you <strong>deactivate any firewalls or antivirus<\/strong> on your system, because this can interfere with the ADB connection process.<\/p>\n<h2>4. Run the command to force apps to install on SD card<\/h2>\n<p>Android has a parameter that describes how to install applications on the mobile by default. This parameter is called <strong>setInstallLocation<\/strong>, and accepts three values:<\/p>\n<ul>\n<li>0 [auto]: Lets the phone decide the best location for an app<\/li>\n<li>1 [internal]: Installs everything on the internal memory<\/li>\n<li>2 [external]: Installs everything on the memory card<\/li>\n<\/ul>\n<p>As you might have guessed, you now need to change the value from 0 to 2 in setInstallLocation. To do this, run the following command:<\/p>\n<ul>\n<li><strong>adb shell pm setInstallLocation 2<\/strong><\/li>\n<\/ul>\n<p>If no error message appears, disconnect the phone, turn it off and reboot it. From now, all applications will install automatically on the SD card. If you want to revert back to the previous way, repeat the process, changing the 2 for a 0.<\/p>\n<p><!--[\/body]--><\/p>\n<p><!--[conclusion]--><\/p>\n<h2>A word of warning<\/h2>\n<p>Certain applications, such as widgets, don\u2019t run well from the memory card. If you experience problems you should move these apps from the SD card to the phone<strong>.<\/strong><\/p>\n<p><!--[\/conclusion]--><\/p>\n<p><!--[calltoaction]--><\/p>\n<p><strong><strong>Have you been having problems with space on your Android device? What method do you use to free up space?<\/strong><\/strong><\/p>\n<p><!--[\/calltoaction]--><\/p>\n<p><!--[sources]--><\/p>\n<p>[Via <a href=\"http:\/\/onsoftware.softonic.com\/como-obligar-android-a-instalar-apps-en-la-tarjeta-sd\"><strong>Softonic Spain<\/strong><\/a>]<\/p>\n<p><!--[\/sources]--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wondering why your HTC Android phone keeps running out of memory? One of the answers could be that it\u2019s crammed full of apps. By default the Android Market stores all of your apps on your device\u2019s internal memory, rather than your larger SD card. Don\u2019t worry though because with a bit of patience and the &hellip; <a href=\"https:\/\/cms-articles.softonic.io\/en\/force-android-to-automatically-install-apps-to-sd-card\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to: Force Android to automatically install apps to SD card&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2006,"featured_media":52216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wpcf-pageviews":0},"categories":[2441],"tags":[1082],"usertag":[],"vertical":[],"content-category":[],"class_list":["post-21423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-android"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/21423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/users\/2006"}],"replies":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/comments?post=21423"}],"version-history":[{"count":1,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/21423\/revisions"}],"predecessor-version":[{"id":333998,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/21423\/revisions\/333998"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/media\/52216"}],"wp:attachment":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/media?parent=21423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/categories?post=21423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/tags?post=21423"},{"taxonomy":"usertag","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/usertag?post=21423"},{"taxonomy":"vertical","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/vertical?post=21423"},{"taxonomy":"content-category","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/content-category?post=21423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}