5

If you're running out of memory which happens a lot on low-end android devices like Samsung galaxy Y, Samsung galaxy Y-DUOS etc. and want more free space for your apps, then this post is for you..

  • Answering your own question like this is great if you want to help people solve this problem. It'll be a lot easier to find if you make it clear here what the question is, so users can recognise it. – Dan Hulme Nov 29 '13 at 11:02
4
  1. Download and install Java Development Kit from Oracle’s website. I downloaded JDK 7u2 for Windows x64 (approximately 87 MB)

  2. Download and install Android SDK from Google’s website. I preferred the recommended Windows Installer

  3. Run Command Prompt with Administrator Privileges on Windows 7 or Windows 8 OS. (Start Menu → type in cmd → Right click the Command Prompt → Run as Administrator. The UAC will prompt you with a dialog which you should click as ‘Yes’.)

  4. If you have installed the latest version of Android SDK (SDK Manager Revision 16 or later), then type in following command on cmd:

    cd C:\Program Files (x86)\Android\android-sdk\platform-tools
    
  5. On your Android phone/tablet, go to Settings → Applications → Development and enable USB Debugging. Once done, connect the phone/tablet to your laptop/desktop via USB cable.

    enter image description here

  6. Execute following commands in sequence

    adb shell pm getInstallLocation
    

    You would get an output as: "0[auto]". 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 or external USB Storage.
  7. So let's change the default location to 2[external]

    adb shell pm setInstallLocation 2
    

    This will change the default installation location to SD card of all the applications that you install henceforth. What about those that are already installed on device storage? I am sure you were unable to move all of them to SD card earlier. You can give it a try now! Alternatively, you can download an application Apps2SD and manually move them to SD card.

    To check if the settings changed or not, you can execute Step 6 again and check the results

  8. Disable USB debugging on your phone/tablet. Close the Command Prompt and enjoy!

Source

  • 1
    Instead of installing the full SDK to just execute a single ADB command, you might want to take a look at Is there a minimal installation of ADB? (4 files is all that's needed ;) Also: Not forget the device driver on Windows (hint: Universal Android USB Driver). – Izzy Jul 31 '13 at 6:22
  • Might be prudent to point out that widgets will not work in this case! :) – t0mm13b Oct 16 '13 at 10:28
  • check out link2sd. It lets you move files to SD and still allow the widgets to work. – Scott Mar 18 '15 at 19:50
  • It may be worth noting that on Android 5+, you will get the error "Error: java.lang.SecurityException: Package android does not belong to 2000" unless your phone is rooted. – Ryan Weaver Dec 13 '16 at 1:13

protected by Community Jan 5 '14 at 1:04

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?

Not the answer you're looking for? Browse other questions tagged or ask your own question.