Showing posts with label android. Show all posts
Showing posts with label android. 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/

 

Thursday, April 5, 2012

Android #1: Couldn’t install on USB storage or SD card

Error message : “Couldn’t install on USB storage or SD card”

The solution is to connect your device to your PC and manually delete the “smdl2temp1” file. The file is likely to reside in 2 locations:

1. /sdcard/.android_secure: this is an invisible folder on your SD card, which you can access with any file manager, like ASTRO
2. /mnt/secure/asec/: access to this folder requires root and a program like Root Explorer

smdl2temp1 is a temporary file. If something goes wrong with a download or installation, the file might get stuck in memory.

Refer :