I would like to know whether there is a way to tell Android to install applications on the micro SD card by default instead of having to download applications to internal memory first and then having to move them to the SD card manually.
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
adb shell pm setInstallLocation 2
adb shell pm set-install-location 2)
This command will set the devices default installation target to your SDCard. That doesn't necessarily mean everything gets installed there: only apps supporting this will go there, and devs can "overrule" this in their apps manifest if they think it's needed. From the linked API reference:
Changes the default install location. Location values:
0: Auto—Let system decide the best location.
1: Internal—install on internal device storage.
2: External—install on external media.
Note: This is only intended for debugging; using this can cause applications to break and other undesireable behavior.
Update: To avoid confusion with t0mm13b's answer, some clearance on the installation process:
/data/local, i.e. to your internal-storage. You can't change that.
.apkwill be installed automatically. Where to, depends on multiple things:
android:installLocationproperty in his apps
Manifest, the app will be installed to internal story. Full stop, no other choice (see: API reference).
android:installLocationis set to
preferExternal, and external storage is available, it will go there.
auto, it again depends:
That cannot be changed! That is how Android works.
All downloads from Google Play goes to the internal filesystem, then from:
If the button Move to SDCard is disabled or greyed out, its probably to prevent the app from functioning - such as their own widgets on home screen.
Also, see this answer in the related side-bar to the right of this page. :)
Install "Terminal Emulator for Android" in your mobile and open
$ su # pm get-install-location 0[auto] # pm set-install-location 2 # pm get-install-location 2[external]
Go to "Manage apps" and then select the "All" tab and find "Google Play Store". Tap on it and then press the "Uninstall updates" button. After that, go to the Play Store all the apps will be installed on your SD Card. This is what I did on my QMobile A110 (Android 4.2).
The thing is u can change the default install directory if your phone is rooted. Download lucky patcher and tap on tools there you can find option to change default install directort. **Do not do this for android 4 or above or it may cause irreversible change. **
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?