Soft-Gets

Thursday, April 19, 2012

Force Install all Android apps to SD card

Just a few updates to the post, if are running Android version higher than 2.3.x, or if you are running Android ICS, Jellybean or higher then read "Move apps to SD-card in Jelly Bean and ICS : the only possible way"
How helpful it will be if you can move all the apps you download on your Android to SD card, hmmm this could surely save a lot of space in your phone. One can surely make all the apps move to the SD card with some exceptions but almost all apps can be moved to the SD card. Android has got 3 options for storage 0, 1 and 2 the 0 is for auto mode, 1 is for the phone preferred mode and the last one 2 is for the SD-card mode which is what we want. So we will be changing the settings of our Android phone to move apps to the SD card. To this you will need to download Android SDK, just download the .zip file and extract it to the C drive, now make sure that you have installed the drivers for your phone’s connectivity to your computer.

Now next is to enable the USB debugging mode in your Android Phone, to do this just hit over to the settings -> applications -> development and just check in the option which says USB debugging.


Now after this step just connect your Android Device with the computer and open command prompt, now change the directory to the platform tools directory in the android sdk folder just by typing cd followed by the location of the folder, now type in ADB if you see a list of available commands then you have fully set the development environment.


Next up just type in ADB devices if it says device in from of a code like in the image below your device is fully connected.


So now for the final step just type the code below and your phone will now have the option to move the phone only apps to the SD card:

adb shell pm setInstallLocation 2 

This is it have fun saving space on your android you can also refer to the video below and see how I did it on my phone.




138 comments:

  1. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Bro, done da proccess but the apps still get installed on the phone and not da ext mem card, pls help
      i have da note 800 wid 64gb mmc
      infact it does not shoe move to ext sd card option on app mgr
      dis 1s da only hope
      directory binder-root acess fail
      link2sd-stupid app n failes

      Delete
  2. heyy when i type--> adb shell pm setInstallLocation 2

    it gaves me an error like thiss...:
    ------------------------------------------------------------
    Error: unknown command 'set-install-location'
    usage: pm [list|path|install|uninstall]
    pm list packages [-f]
    pm list permission-groups
    pm list permissions [-g] [-f] [-d] [-u] [GROUP]
    pm list instrumentation [-f] [TARGET-PACKAGE]
    pm list features
    pm path PACKAGE
    pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] PATH
    pm uninstall [-k] PACKAGE
    pm enable PACKAGE_OR_COMPONENT
    pm disable PACKAGE_OR_COMPONENT

    The list packages command prints all packages. Options:
    -f: see their associated file.

    The list permission-groups command prints all known
    permission groups.

    The list permissions command prints all known
    permissions, optionally only those in GROUP. Options:
    -g: organize by group.
    -f: print all information.
    -s: short summary.
    -d: only list dangerous permissions.
    -u: list only the permissions users will see.

    The list instrumentation command prints all instrumentations,
    or only those that target a specified package. Options:
    -f: see their associated file.

    The list features command prints all features of the system.

    The path command prints the path to the .apk of a package.

    The install command installs a package to the system. Options:
    -l: install the package with FORWARD_LOCK.
    -r: reinstall an exisiting app, keeping its data.
    -t: allow test .apks to be installed.
    -i: specify the installer package name.

    The uninstall command removes a package from the system. Options:
    -k: keep the data and cache directories around.
    after the package removal.

    The enable and disable commands change the enabled state of
    a given package or component (written as "package/class").
    -------------------------------------------------------------------------
    plss help me ;)

    ReplyDelete
    Replies
    1. your sdk is not properly setup
      make sure you properly install all the required tools....

      Delete
    2. yess all the tools are installed and i checked the sdk card and it was properly installed?but it still gives me the error..plss try to find if the command is renamed or something else..
      thank u ;)

      Delete
    3. the data is up to date, try one thing install any one of the packages from Android SDK manager....

      Delete
    4. yea.. i installed all the packages :( but problem is still happening :(

      Delete
    5. ok send me a screen shot of command prompt at help@soft-gets.com

      and also the location of the android tools directory

      Delete
    6. Hi, I'm having the same problem that mety is having... did you got a solution for it?

      Delete
    7. I'm to..
      did you have the solution...

      Delete
    8. exactly Same prob here.. BTW my phones is Sony tipo android 4.0.4 ..

      Delete
    9. this error is because the cmnd prompt is unable to understand the command,

      try the command with the full path of the platform-tools folder
      for eg :

      "C:\downloads\android\platform-tools\adb shell pm setInstallLocation 2"

      this must work...

      Delete
    10. done and not work.. do you think its got prob with the access to the phone root? i mean my sony doesnt have any latest update as for this date time, not like any htc or other devices that may get updates to let the driver or anything that let the devices to set the "setinstalllocation" thing

      Delete
    11. nooh update doesn't matter

      if you are getting the error that the command doesn't exist then it is the issue with the development environment

      try typing 'adb' only and if it comes up with something long without any errors its fine but if it gives error then u are not using the command with the right path

      try it with the location added with the command

      just open the platform-tools folder and copy the location from the top in the address bar and hope it works.....!

      Delete
  3. when I put adb devices, it shows list of the devices are attache but the message is not same as you shown above. after that when I put the final command, it gives an error message
    "error: devices not found"
    Please help me my phone model is HTC Desire.

    ReplyDelete
    Replies
    1. make sure u have HTC sync installed n when you connect your device just close the application, it will only have the drivers available, this will work, otherwise just update HTC sync...

      Delete
    2. where HTC Sync Located and how to update it

      Delete
    3. http://www.htc.com/www/help/

      u can download it from here....

      Delete
  4. I have two problems.
    First off, the platform-tools directory isn't included in the SDK zipfile anymore. Instead there is a text file stating the following:

    "The adb tool has moved to platform-tools/

    If you don't see this directory in your SDK,
    launch the SDK and AVD Manager (execute the android tool)
    and install "Android SDK Platform-tools"

    Please also update your PATH environment variable to
    include the platform-tools/ directory, so you can
    execute adb from any location."

    That's where problem number two kicks in. When opening the SDK Manager I get the following error message:
    "Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused"
    And even when I force the https setting (tools->options->Force https..) the error still occurs.

    Any thoughts on how to solve this issue?

    ReplyDelete
    Replies
    1. Many thanks in advance to the one who will slay this dragon!!

      Delete
    2. I think there are some issues with the installation instead of that zip file try the exe installer, when I started with Android development a few years back even I faced the error number 2, the path is platform tool

      just try it with the exe and hope it works out..

      Delete
  5. I have just finished this tutorial and i have installed some aplications, 60% of the aplications are directly installed in the sd but others still installing in the phone. What can I do?

    ReplyDelete
    Replies
    1. you are doing ok with this, this is because of the way the apps are built by the developer of the app, so this happens. In such case u will have to manually move them..

      Delete
    2. This comment has been removed by the author.

      Delete
    3. the apps which come preinstalled with the device will not be moved to the sd-card but for others u just follow the instructions carefully and you will be able to free some space on your device..

      Delete
    4. oky but i didn't understand what is the 2nd Step ,, what Should i donwload and What Can i do after the first step :l please Help me
      :D

      Delete
    5. http://developer.android.com/sdk/index.html here is the link where u will find the stuff to do this

      Delete
  6. how do i move my facebook and gmail etc.. to the sd card everything went fine but some apps still on phone i understand some have to stay on phone but some can go plesae help sorro for english

    ReplyDelete
  7. gmail stays on the phone but Facebook does move to the sd if it is not preinstalled on the device, u have downloaded it.... still there are a bunch of apps which neven go in the sd card.....!

    ReplyDelete
  8. i have an error in the last step they told me error: device offline

    ReplyDelete
    Replies
    1. type in adb devices to see that the device is offline or online then use the command
      n if the device is offline reconnect the device.

      Delete
  9. Replies
    1. u r having some issues with the device drivers or the device is not in debugging mode.

      main thing might be that the usb drivers are not installed or not updated....

      Delete
  10. it says
    permission denied what is suposed i do ?

    ReplyDelete
    Replies
    1. try moving android sdk folder to a different location other then the windows drive.....

      Delete
  11. are u here?i have the sam problem i have a gs3 and its all ok i installed the sdk the cmd but when i come to the adb devices it says no attached...the usb driver in the sdk extras is installed what can i do??please help

    ReplyDelete
    Replies
    1. either the phone is not in debugging mode or the drivers are not properly installed, make sure u reinstall the drivers and check in the phone settings that it is in debugging mode

      Delete
  12. error : device not found.

    i did installed the phone connectivity to computer.. and i did tick the debug mode. but why does the device not found?

    ReplyDelete
    Replies
    1. there are issues with the device connectivity, just try this command and let me know does it show anything...

      "ADB devices"
      if it gives an ofline device then make sure you close the PC suit software which u got with the device

      Delete
    2. when i type " adb devices " it says only List of attached. no offline and everything.

      Delete
    3. yeps there is a problem with the drivers of the phone, the sdk is not able to connect with device

      you will have to work around with the drivers of the device..

      Delete
    4. how can i work with the drivers? *sorry too many asking. ^.^

      Delete
    5. aaah no issues with the questions... :)
      m just install the software which came with the phone, something like PC suite, that will install the required drivers of the phone...

      or refer to this http://developer.android.com/sdk/win-usb.html page in the Android Developer site and install these drivers as instructed..

      Delete
  13. Hi Paritosh, well I tried it out and it worked. Thanks a lot for the video tutorial. It does not work on the most Google apps such as google maps, google play store, youtube, but the rest is fine. And it helped a lot, so thank you very much

    ReplyDelete
    Replies
    1. aaah... the default application are build right into the Android OS so they cannot be move to the SD-card :)

      Delete
  14. Hi Paritosh,
    I've used your method for several months and I want to thank you for that! It helped me a lot.
    Now, I've decided to root my phone & I remember that I read somewhere, that I needed to undo the settings you explained above. Is that true? How can I do that? Just in the same way? What number do I need to use (instead of the 2)? Won't there be a problem, if I have to undo these settings, that all the apps I could install to the SD card, thanks to your method, will install on the phone then (so, from the moment I undo your settings)? I almost don't have any free memory on my internal memory of my phone, so what will happen then?
    Or can I hold your settings and just root my phone?
    Thank you!!

    ReplyDelete
    Replies
    1. the simplest way to get the setting to default is to restart the phone, it works most of the time, but if that doesn't work then just use the same method with just the change in the number from 2 to 0: "adb shell pm setInstallLocation 0"..!

      or the other way is just root the devices that will reset all the things to that ROM's default

      so you can do this either way :)

      Delete
    2. Thanks for your reply, Parotosh! :o)

      So I think that just starting to root my phone (Xperia Ray), without changing the settings again into 0, will be the easiest way to do. Because after the rooting, it won't matter anymore that I made the changes into 2, in the past.


      Delete
    3. Sorry for misspelling your name, Paritosh... :o{
      I think I was a bit abstracted...

      Delete
  15. it was okay till "adb" .. after that when i typed "adb devices" it doesnot show my device under the list of devices, n yes the phone was already connected with usb debugging on. samsung galaxy pro.. please suggest.

    ReplyDelete
    Replies
    1. try installing Samsung studio, that will make sure that the usb drivers are installed properly

      Delete
  16. Dear bro,
    Thank you very much for this great tutorial..
    I tried your tutorial on my SAMSUNG GALAXY Y DUOS GT S6102 (Android 2.3.6)...
    All was OK but unfortunate on the last step I was unsuccessful..... when my device was found and I typed... adb shell pn setinstalILocation 2 (I was used i after setinstal,,,,,,,)
    I seen a message that in the below:
    pn: permission denied ...... my memory was 170 mb but 152 mb useable. Please g\help me... my mail is: mohammadapu1@gmail.com wish your good helth

    ReplyDelete
    Replies
    1. the command is "adb shell pm setinstalILocation 2" pm not pn
      make sure that is ok and if nothing happens try moving the folder to other location in your computer...

      Delete
  17. I'm getting the same error message as @mety

    Error: unknown command 'set-install-location'

    I've installed everything properly so i'm not sure what the problem is HELP!!

    I have you in my Google+ circle please contact me at your earliest convenience

    thanks

    ReplyDelete
    Replies
    1. the command is 'setInstallLocation 2' not with the -

      try this and this must work

      Delete
    2. yes of course i've used, in fact i copy & paste it from the screen...still nothing..now, my phone is NOT rooted. does it need to be rooted for it to work?

      Delete
    3. I think u better try the full path of platform-tools folder
      for eg:
      C:/downloads/androidsdk/platfo­rm-tools/adb pm setInstallLocation 2
      try this hope it works out for you....!

      Delete
  18. hey, when i downloaded the file and opened it ,it had platform tools . both were in diffrent folders n platform folder was empty

    ReplyDelete
    Replies
    1. there might be some issue with the download, may be not complete or interrupted download....!

      Delete
    2. Abhay is correct. I have also downloaded that SDK file and there are two different folders, platform and tools, out of which platform is completely empty.
      Maybe they have updated the SDK file.
      Can you just upload your SDK zip file to some file-sharing site like mediafire, so that we can download the correct version of the Android SDK ??
      And one small question, can we undo this thing, if we want again to save apps to the phone memory instead of External SD card ?

      Delete
    3. this is what the new sdk say

      "The adb tool has moved to platform-tools/

      If you don't see this directory in your SDK,
      launch the SDK and AVD Manager (execute the android tool)
      and install "Android SDK Platform-tools"

      Please also update your PATH environment variable to
      include the platform-tools/ directory, so you can
      execute adb from any location."

      so install "Android SDK Platform-tools" using the avd manager

      Delete
    4. will thi be apply on hcl me u1 tab

      Delete
    5. yeps if the device has got an sd-card, it will work on any Android device... :)

      Delete
  19. what to after typing 'adb shell pm setInstallLocation 2 '

    ReplyDelete
    Replies
    1. if it gives nothing it means this has worked and the apps can now be moved to SD-card and if it gives up an error message then something is wrong.....

      Delete
  20. It doesn't show any device under the "list of devices"
    I have the new Sony Xperia Miro
    Can you please tell me what software do I need to install in the case of Sony Xperia series like we have to install HTC sync for HTC phones.

    ReplyDelete
  21. it is PC Companion for Sony devices, just Google it u will get the download link :)

    ReplyDelete
    Replies
    1. I have downloaded and installed Sony PC companion 2.1
      PC companion has detected my device and installed the drivers too but still I can't see my device under the "list of devices" in cmd
      I have switched ON USB debugging and have also tried this procedure by closing Sony PC companion as you said in your video but still no luck.
      What should I do now and is their any method to check whether the drivers are installed properly or not ?

      Delete
    2. if u have installed Sony PC companion it means drivers must be available, try using the procedure after quitting Sony PC companion, if still dosen't work send me the exact message u r getting

      Delete
    3. The drivers were not properly installed by Sony PC companion. So i just googled for a way to install correct drivers. Then I found a software named "PdaNet Desktop" which has finally installed the drivers for my phone. Now after following all the procedure of cmd, finally SDK detected my device but then when i entered the command
      adb shell pm setInstallLocation 2

      It gave me the below long error
      C:\Users\Mittal\AppData\Local\Android\android-sdk\platform-tools>adb shell pm setInstallLocation 2
      Error: unknown command 'setInstallLocation'
      usage: pm list packages [-f] [-d] [-e] [-s] [-e] [-u] [FILTER]
      pm list permission-groups
      pm list permissions [-g] [-f] [-d] [-u] [GROUP]
      pm list instrumentation [-f] [TARGET-PACKAGE]
      pm list features
      pm list libraries
      pm path PACKAGE
      pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
      pm uninstall [-k] PACKAGE
      pm clear PACKAGE
      pm enable PACKAGE_OR_COMPONENT
      pm disable PACKAGE_OR_COMPONENT
      pm disable-user PACKAGE_OR_COMPONENT
      pm set-install-location [0/auto] [1/internal] [2/external]
      pm get-install-location
      pm createUser USER_NAME
      pm removeUser USER_ID

      pm list packages: prints all packages, optionally only
      those whose package name contains the text in FILTER. Options:
      -f: see their associated file.
      -d: filter to only show disbled packages.
      -e: filter to only show enabled packages.
      -s: filter to only show system packages.
      -3: filter to only show third party packages.
      -u: also include uninstalled packages.

      pm list permission-groups: prints all known permission groups.

      pm list permissions: prints all known permissions, optionally only
      those in GROUP. Options:
      -g: organize by group.
      -f: print all information.
      -s: short summary.
      -d: only list dangerous permissions.
      -u: list only the permissions users will see.

      pm list instrumentation: use to list all test packages; optionally
      supply to list the test packages for a particular
      application. Options:
      -f: list the .apk file for the test package.

      pm list features: prints all features of the system.

      pm path: print the path to the .apk of the given PACKAGE.

      pm install: installs a package to the system. Options:
      -l: install the package with FORWARD_LOCK.
      -r: reinstall an exisiting app, keeping its data.
      -t: allow test .apks to be installed.
      -i: specify the installer package name.
      -s: install package on sdcard.
      -f: install package on internal flash.

      pm uninstall: removes a package from the system. Options:
      -k: keep the data and cache directories around after package removal.

      pm clear: deletes all data associated with a package.

      pm enable, disable, disable-user: these commands change the enabled state
      of a given package or component (written as "package/class").

      pm get-install-location: returns the current install location.
      0 [auto]: Let system decide the best location
      1 [internal]: Install on internal device storage
      2 [external]: Install on external media

      pm set-install-location: changes the default install location.
      NOTE: this is only intended for debugging; using this can cause
      applications to break and other undersireable behavior.
      0 [auto]: Let system decide the best location
      1 [internal]: Install on internal device storage
      2 [external]: Install on external media

      So after reading the first line of error, I was able to find that SDK is not accepting the "setInstallLocation" command and at the end of this long error as you can see, it suggested me to use "set-install-location" in place of "setInstallLocation".
      So when I used the below command

      C:\Users\Mittal\AppData\Local\Android\android-sdk\platform-tools>adb shell pm set-install-location 2

      It didn't gave me any error but it simple added this below line again (the same which happened in your video tutorial)

      C:\Users\Mittal\AppData\Local\Android\android-sdk\platform-tools>

      Delete
    4. So I guess everything worked fine. But now when I go into settings of my phone, into apps section and open the settings of a particular app for example say Agent Dash. It doesn't show any option to move it to SD card. It just give me an option "Move to internal storage" and when I press that button, it moves the app to internal storage and then that button changes to "Move to phone memory".
      Also I tried installing news apps to check where they were going and I found that they were going to phone memory like always.
      Earlier also I was not able to move apps to SD card because it was showing only these two options in App Settings. So doing all this thing didn't bring any change in my phone.
      I forgot to mention one more thing. The Phone memory of my device is about 754 MB free which is meant for apps and the Internal Storage is of 2.1 GB.
      And the internal storage is named as "SD card" in my phone and my real SD card which is the memory card is named as "ext card".
      Also i can't rename any of two things.
      Could this be the reason why the apps are not going to memory card or did i did some mistake while following all this process ?
      Please help me, I as so desperate to move apps to my SD card.

      Delete
    5. if the app says move to phone, that means the app is already in the sd-card
      u can try app2sd to see which apps are in the sd-card which are phone only apps and which of the apps can be moved to the SD-card..

      Delete
    6. the sdk is not detected in the final command in the comment above, try the command with the full path of the platform-tools folder for eg

      C:/downloads/android/platform-tools/adb shell pm setInstallLocation 2

      Delete
    7. I have tried the command with full path also but that didn't worked too, that's why I have used other command.
      As I said before there are two memories in my mobile, phone memory and internal memory and the internal memory is named as "SD card" by default which I can't rename. Due to this , app2sd is misinterpreting internal storage as memory card and it is showing the apps which are in internal storage under the sd card section in app2sd. So what should I do now ?

      Delete
    8. aaah this sounds very confusing :)

      try connecting the card to the computer and rename it...!

      Delete
  22. all steps are done. but cannot move application to my sd. why?

    ReplyDelete
    Replies
    1. there might be some error in between or maybe you are trying to move the per-installed apps... :)

      Delete
  23. Dear paritosh iam getting error while executing adb shell pm set
    InstallLocation 2
    command please help me
    c:\Users\ashok\AppData\Local\Android\android-sdk\platform-tools>adb devices
    List of devices attached
    434235313154485A305A device

    c:\Users\ashok\AppData\Local\Android\android-sdk\platform-tools>adb shell pm set
    InstallLocation 2
    Error: unknown command 'setInstallLocation'
    usage: pm [list|path|install|uninstall]
    pm list packages [-f]
    pm list permission-groups
    pm list permissions [-g] [-f] [-d] [-u] [GROUP]
    pm list instrumentation [-f] [TARGET-PACKAGE]
    pm list features
    pm path PACKAGE
    pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] PATH
    pm uninstall [-k] PACKAGE
    pm enable PACKAGE_OR_COMPONENT
    pm disable PACKAGE_OR_COMPONENT

    The list packages command prints all packages. Options:
    -f: see their associated file.

    The list permission-groups command prints all known
    permission groups.

    The list permissions command prints all known
    permissions, optionally only those in GROUP. Options:
    -g: organize by group.
    -f: print all information.
    -s: short summary.
    -d: only list dangerous permissions.
    -u: list only the permissions users will see.

    The list instrumentation command prints all instrumentations,
    or only those that target a specified package. Options:
    -f: see their associated file.

    The list features command prints all features of the system.

    The path command prints the path to the .apk of a package.

    The install command installs a package to the system. Options:
    -l: install the package with FORWARD_LOCK.
    -r: reinstall an exisiting app, keeping its data.
    -t: allow test .apks to be installed.
    -i: specify the installer package name.

    The uninstall command removes a package from the system. Options:
    -k: keep the data and cache directories around.
    after the package removal.

    The enable and disable commands change the enabled state of
    a given package or component (written as "package/class").

    ReplyDelete
    Replies
    1. the installation in the "AppData\Local\Android" directory doesn't seem to be right, if you are sure that the installation is in that directory I will say move it to some easy accessible place...

      Delete
  24. try
    adb shell pm set-install-location 2
    dont forguet the -

    ReplyDelete
    Replies
    1. the command is "shell pm setInstallLocation 2" not with "-"

      the command with - will not work....!

      Delete
    2. you're wrong i tried with the original command and it didn't work but with the other command with - it did

      Delete
    3. yaaaa the new version of Android has a little change in the command up till 2.3 the command works fine

      Delete
  25. after typing adb shell pm setinstalllocation 2 . it is saying that'adb server is out of date..killing'

    ReplyDelete
  26. ohhhh this is an issue with the software which u installed, the PC support of the phone, just quit it before using the command....

    I think u got it, if m not clear with this let me know :)

    ReplyDelete
  27. thanx a lot man this work with my phone and it's very easy.
    so can you give suggest what i have to do if my friends android phone also want to this , must i start from the begining or i just plug my friend phone into my computer.
    thanks.
    please reply : rindink_hal@yahoo.com

    ReplyDelete
  28. C:\Program Files\Android\android-sdk\platform-tools>adb shell pm setinstalllocation 2
    Error: unknown command 'setinstalllocation'
    usage: pm [list|path|install|uninstall]
    pm list packages [-f] [-d] [-e] [-u] [FILTER]
    pm list permission-groups
    pm list permissions [-g] [-f] [-d] [-u] [GROUP]
    pm list instrumentation [-f] [TARGET-PACKAGE]
    pm list features
    pm list libraries
    pm path PACKAGE
    pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
    pm uninstall [-k] PACKAGE
    pm clear PACKAGE
    pm enable PACKAGE_OR_COMPONENT
    pm disable PACKAGE_OR_COMPONENT
    pm setInstallLocation [0/auto] [1/internal] [2/external]

    The list packages command prints all packages, optionally only
    those whose package name contains the text in FILTER. Options:
    -f: see their associated file.
    -d: filter to include disbled packages.
    -e: filter to include enabled packages.
    -u: also include uninstalled packages.

    The list permission-groups command prints all known
    permission groups.

    The list permissions command prints all known
    permissions, optionally only those in GROUP. Options:
    -g: organize by group.
    -f: print all information.
    -s: short summary.
    -d: only list dangerous permissions.
    -u: list only the permissions users will see.

    The list instrumentation command prints all instrumentations,
    or only those that target a specified package. Options:
    -f: see their associated file.

    The list features command prints all features of the system.

    The path command prints the path to the .apk of a package.

    The install command installs a package to the system. Options:
    -l: install the package with FORWARD_LOCK.
    -r: reinstall an exisiting app, keeping its data.
    -t: allow test .apks to be installed.
    -i: specify the installer package name.
    -s: install package on sdcard.
    -f: install package on internal flash.

    The uninstall command removes a package from the system. Options:
    -k: keep the data and cache directories around.
    after the package removal.

    The clear command deletes all data associated with a package.

    The enable and disable commands change the enabled state of
    a given package or component (written as "package/class").

    The getInstallLocation command gets the current install location
    0 [auto]: Let system decide the best location
    1 [internal]: Install on internal device storage
    2 [external]: Install on external media

    The setInstallLocation command changes the default install location
    0 [auto]: Let system decide the best location
    1 [internal]: Install on internal device storage
    2 [external]: Install on external media

    C:\Program Files\Android\android-sdk\platform-tools>

    ReplyDelete
    Replies
    1. things look ok ur side the error shows "pm setInstallLocation [0/auto] [1/internal] [2/external]"

      as the right command so try it with I in install and L in location as capital

      Delete
  29. the some problem!!!!! help!!!!

    Windows XP Sweet 5.1 [SP3 v5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\Administrateur>cd C:\Documents and Settings\Administrateur\Mes documents\adt-bundle-windows-x86\sdk\platform-tools

    C:\Documents and Settings\Administrateur\Mes documents\adt-bundle-windows-x86\sdk\platform-tools>adb devices
    List of devices attached
    b9ed53f9 device


    C:\Documents and Settings\Administrateur\Mes documents\adt-bundle-windows-x86\sdk\platform-tools>adb shell
    shell@android:/ $ adb shell pm setInstallLocation 2
    adb shell pm setInstallLocation 2
    error: device not found
    255|shell@android:/ $ pm setInstallLocation 2
    pm setInstallLocation 2
    Error: unknown command 'setInstallLocation'
    usage: pm list packages [-f] [-d] [-e] [-s] [-e] [-u] [FILTER]
    pm list permission-groups
    pm list permissions [-g] [-f] [-d] [-u] [GROUP]
    pm list instrumentation [-f] [TARGET-PACKAGE]
    pm list features
    pm list libraries
    pm path PACKAGE
    pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH
    pm uninstall [-k] PACKAGE
    pm clear PACKAGE
    pm enable PACKAGE_OR_COMPONENT
    pm disable PACKAGE_OR_COMPONENT
    pm disable-user PACKAGE_OR_COMPONENT
    pm set-install-location [0/auto] [1/internal] [2/external]
    pm get-install-location
    pm createUser USER_NAME
    pm removeUser USER_ID

    pm list packages: prints all packages, optionally only
    those whose package name contains the text in FILTER. Options:
    -f: see their associated file.
    -d: filter to only show disbled packages.
    -e: filter to only show enabled packages.
    -s: filter to only show system packages.
    -3: filter to only show third party packages.
    -u: also include uninstalled packages.

    pm list permission-groups: prints all known permission groups.

    pm list permissions: prints all known permissions, optionally only
    those in GROUP. Options:
    -g: organize by group.
    -f: print all information.
    -s: short summary.
    -d: only list dangerous permissions.
    -u: list only the permissions users will see.

    pm list instrumentation: use to list all test packages; optionally
    supply to list the test packages for a particular
    application. Options:
    -f: list the .apk file for the test package.

    pm list features: prints all features of the system.

    pm path: print the path to the .apk of the given PACKAGE.

    pm install: installs a package to the system. Options:
    -l: install the package with FORWARD_LOCK.
    -r: reinstall an exisiting app, keeping its data.
    -t: allow test .apks to be installed.
    -i: specify the installer package name.
    -s: install package on sdcard.
    -f: install package on internal flash.

    pm uninstall: removes a package from the system. Options:
    -k: keep the data and cache directories around after package removal.

    pm clear: deletes all data associated with a package.

    pm enable, disable, disable-user: these commands change the enabled state
    of a given package or component (written as "package/class").

    pm get-install-location: returns the current install location.
    0 [auto]: Let system decide the best location
    1 [internal]: Install on internal device storage
    2 [external]: Install on external media

    pm set-install-location: changes the default install location.
    NOTE: this is only intended for debugging; using this can cause
    applications to break and other undersireable behavior.
    0 [auto]: Let system decide the best location
    1 [internal]: Install on internal device storage
    2 [external]: Install on external media
    shell@android:/ $

    ReplyDelete
    Replies
    1. you are in the newer version of the OS, the command is little changes it is now "set-install-location" for instead of setInstallLocation

      Delete
  30. Please send me the link for the sdk tools to downlaod the proper sdk tools please send links on thinkingcorner1@gmail.com

    ReplyDelete
  31. Dear please send me the link of sdk tools download file please

    ReplyDelete
  32. C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools>adb devices
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    List of devices attached


    Dear i have done all after installing the tools but at the last step this happens and everything stops please help me please see below and help me

    C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools>adb shell pm
    setInstallLocation 2
    error: device not found

    C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools>

    ReplyDelete
  33. Dear i have done all after installing the tools but at the last step this happens and everything stops please help me please see below and help me

    C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools>adb devices
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    List of devices attached


    C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools>adb shell pm
    setInstallLocation 2
    error: device not found

    C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools>

    ReplyDelete
    Replies
    1. you are facing issue with the drivers of the device, just install the software which came with the device

      Delete
  34. Bro I have htc explorer please tell me where does i find its drivers?

    ReplyDelete
    Replies
    1. just install HTC sync on your system and that will make sure that the drivers are installed

      Delete
  35. Replies
    1. Bro Paritosh,

      First thanks for posting a video on who to do it.
      Really appreciate it.

      But failed on my phone.

      I am on samsung galaxy s3 i9305 , rooted

      I hv all the drivers as well as Kies installed.

      Pls advise brother...

      jimlooi@gmail.com

      Delete
  36. i have a prestigio multiphone pap 4300 duo i don´t have any usb drivers with it and i get an error device not found at the last step

    ReplyDelete
  37. I've done this and it still says that I do not have enough space, please free some space on your phone. Where do I see an option to move to sd card?

    ReplyDelete
    Replies
    1. you will find the option to move apps to sd card in settings-> applications

      n if you are using ICS or jelly bean it doesn't show any option, I have a post in this site related to jelly bean n ICS u can search that out if you are in the latest version of the OS

      Delete
  38. guy i hav tried many times but at the last its is showing device not found..plzzz help me.............plzzzz help me as soon as u can i hav htc explorer and i hav also installed htc sync on my windows vista plz plz plz help me there is only 27 MB left on my phn and the suptizing thing is that i hav uninstalled all the apps even i hav uninstalled the play store updates plzz plzz help me fast or give me your phn. no. i need that plzz.....

    ReplyDelete
    Replies
    1. aaah ok it will work once u have installed HTC sync it may be that u are keeping sync open while connecting, also make sure that USB debugging is enabled

      and once just connect the phone with HTC sync that will install some sync stuff in the phone as well

      Delete
  39. I dont want to root my prestigio 4300 bit i cant get drivers for it in usb debuging in device manager on win 7 it shows they are not installed so im cmd it shows device not found any help for this?

    ReplyDelete
    Replies
    1. aaaah just check the manufacturer's site for some drivers to install, something like sync or a manger for your computer that will make sure all the drivers are installed...!

      Delete
  40. successfully done all. still i cant install apps in sd. Using samsung galaxy s duos.

    ReplyDelete
  41. successfully done all. still i cant install apps in sd. Using samsung galaxy s duos

    ReplyDelete
    Replies
    1. aaah the duos has ICS so what Google has done is it doesn't have the option to move apps to SD-card in ICS or Jelly Bean so one needs to root the device and do some more things to make it work, u can see this post this will make things clear what I am talking about : http://www.soft-gets.com/2012/12/move-apps-to-sd-card-in-jelly-bean-and.html

      Delete
    2. successfully done all. not oppen s2e app. am using samsung galaxy s duos..please help me

      Delete
    3. how to downlaod cm10 for samsung galaxy s duos

      Delete
    4. try searching XDA-Developers for this, may be u will find something

      Delete
    5. sory bro... didnt found... any other way... iam so sad nw

      Delete
    6. follow this link, this will give you instructions on rooting Samsung Galaxy S duos

      http://forum.xda-developers.com/showthread.php?t=1952743

      Delete
  42. this works with LG Optimus L9? Thanks

    ReplyDelete
    Replies
    1. if its Android 2.3 it will work fine but if it is ICS or jelly bean refer to this post : http://www.soft-gets.com/2012/12/move-apps-to-sd-card-in-jelly-bean-and.html

      Delete
  43. please give me the link to root my Samsung galaxy s duos

    ReplyDelete
    Replies
    1. search for your device in xda developers site you will sure be able to find something

      Delete
  44. Does it work on Android 4.1.1 jellybean ?
    Please answer quickly (sorry for my bad ebglsh)

    ReplyDelete
    Replies
    1. it does work but you will have to do some more things check this post out

      http://www.soft-gets.com/2012/12/move-apps-to-sd-card-in-jelly-bean-and.html

      Delete
  45. Hello! I have Sony Ericsson Xperia Mini Pro with Android 2.3.4. I did the entire thing as shown in the video, but I'm still unable to move apps to the SD...Please tell me how should I proceed...

    ReplyDelete
    Replies
    1. It will work fine in your phone, If everything happened the way I said in the post then you will be able to move the apps to the card, for the installed apps it will not happen automatically you will manually have to do it form settings->applications->and then selecting the application you want to move and tapping on the move to sd card button...!

      and if you faced some issue or error let me know

      Delete
  46. Hello! Yeah, some of the apps are movable, but Adobe Flash Player, Adobe Reader, Facebook,Gmail,Google Maps,Street View are still not movable...

    ReplyDelete
    Replies
    1. the pre-installed apps dosen't go to the SD-Card and the apps you mentioned, those Google ones doesn't go to the card and may be other apps also came pre-installed....!

      Delete
  47. Oh...I see..Will routing help me move these apps to the SD?

    ReplyDelete
  48. aaaah not just rooting you will have to do some other steps as well n once the move to sd-card option is available in application info in ICS or JB then this trick works fine for those devices

    ReplyDelete
  49. hey..I cud get through the pc steps but I couldnt get a way to move d apps to sd card. Can u pls guide for the same. I'm using galaxy s duos.

    ReplyDelete
    Replies
    1. ohhhhk the device you are using is running ICS so without root it is not possible to make this work

      this trick is good for 2.3

      n if you really want a solution see this post, hope it will help you out

      http://www.soft-gets.com/2012/12/move-apps-to-sd-card-in-jelly-bean-and.html

      Delete
  50. okay..yeah i guess rooting is the only thing i can resort to now. thanks a lot anyways :)

    ReplyDelete
  51. Works fine and if you follow procedure from the tutorial it's very easy. Although I noticed that it doesn't transfer the whole app to SD card, but only the part of it. I mean, some of them still occupy some of the phone internal memory, but that's also fine. Thanx man :)

    I have HTC explorer and Windows XP SP3 (I think it's SP3) and I downloaded the SDK ADT Bundle for Windows (32 bit)from http://developer.android.com/sdk/index.html on my C: and everything went great.

    ReplyDelete
    Replies
    1. yeps 10 to 20 percent of the app stays in the phone that is because the phone needs some information to know where the app is in the card..

      Delete
  52. This comment has been removed by the author.

    ReplyDelete
  53. hi, i did everything according to your instructions and it went well too but still my phone installs apps in the phone memory. when i cmd get-install-location it shows 2[external but there is still no option of moving apps and also the apps are still getting stored in the phone memory. please help

    ReplyDelete
  54. which version of Android you are using ..?

    ReplyDelete
  55. Hi Paritosh, thanks for this great tutorial and your work! ... must be a
    full time job to answer all these questions ... I wanted to try it, but
    the link to the download one needs in the 1st step seems to leed to
    another page and I can't find the exact zip-file ("android SDK")... only something
    similar that doesnt contain the folder "platform-tools ... any chance of
    updating this??

    ReplyDelete

Thank you for your feedback and keep visiting...!