Showing posts with label android mac osx. Show all posts
Showing posts with label android mac osx. Show all posts

Thursday, January 24, 2013

Android #2 : How to Install Android Apps to the SD Card (Mac OSX)

Problems:
Android apps install to the internal storage by default, but can set the SD card as default install location.

Solutions :

  1. Install android sdk and connect your phone to your computer.

  2. Run the following adb commands:









    cd /path/to/android-sdk-macosx/platform-tools
    ./adb devices
    ./adb shell pm getInstallLocation
    ./adb shell pm setInstallLocation 2



  3. To check the install location:










    ./adb shell pm getInstallLocation




    it should return










    2[external]





Note


In Android, Install Location has 3 values:

  • 0[auto] – Let the system decide the best location

  • 1[internal] – Install the application on internal device storage. This means any internal storage provided with your device

  • 2[external] – Install the application on external media. This means any SD, microSD cards attached to your device.


The default value is 0[auto]. You can revert back to the default using the following adb command:










./adb shell pm setInstallLocation 0


Refer : Mac OSX - http://notepad2.blogspot.com/2012/10/android-force-apps-to-install-to-sd.html



For Windows - http://www.howtogeek.com/114667/how-to-install-android-apps-to-the-sd-card-by-default-move-almost-any-app-to-the-sd-card/