Muffinresearch Labs by Stuart Colville

Android: Force Moving Apps to an SD Card | Comments (94)

Posted in Linux/Unix, Mobile on 2nd February 2011, 7:19 pm by

Droids Skateboarding

This isn’t anything new but I thought I would share my experiences of trying to free space on my HTC desire by forcing apps to be movable to the sd card using the android SDK on linux.

WARNING: Ensure you have a backup of any important data before you start in case something goes wrong. Carrying out these instructions is at your own risk.

Running out of space is really the only annoyance I have come across since owning an android phone. Every now and again the low space icon comes up and you have to try and free up some space.

Since Froyo you’ve been able to move certain apps to SD card, but it’s only if the developer allows it. If you’re an android developer and you want to know how to do it, see this post: Enabling the Android Move To SD Card Feature

So if you’re stuck with a bunch of apps you can’t move by default because “Move to SD Card” is greyed out in “Settings -> Applications -> Manage Applications -> Appname” then you might be thinking it’s not possible. However, it is possible to change the default install location to SD card via adb.

Introducing the Android Debug Bridge

Adb is the Android Debug Bridge which comes as part of the SDK. If you don’t have the SDK the first thing you will need to do is install it (get it fromdeveloper.android.com). Once you have the SDK you can find the adb tool in <sdk>/platform-tools/, though in my case I have it at <sdk>/tools/.

Update 2012-01-26: You may find when you unpack the SDK adb isn’t there. If that’s the case you may need to run the “android” program (./android under linux) to be shown a window which provides a way to download platform-tools. once you have installed that you should find adb there.

After you’ve installed the SDK you’ll need to connect your phone to your computer using the USB data cable. You’ll also need to make sure that debugging is possible by visiting “Settings -> Applications -> Development” and checking “USB Debugging”.

Enabling moving of apps to SD card

To change the the install location we are going to run the pm command via the adb shell. Here’s the details of the pm command:

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

To change the default install location to the SD card (which also enables moving most apps to the SD card.) run the following from the dir containing the adb command:

./adb shell pm setInstallLocation 2

If you at any point hit the following:

error: insufficient permissions for device

Try doing this:

./adb kill-server
sudo ./adb  start-server

You should now find you can run the above commands without error.

Insufficient Storage Available

The other error I had was that when I was trying to move any app after changing the default install location to the SD card was something along the lines of “Unable to move application. Insufficient Storage”.

The way I got around this was to uninstall twitter which was using about 17mb (it was the largest app). After that I re-installed it and it used far less space (naturally as the data would have been removed by the re-install process). After that I was able to successfully move most of my remaining apps (twitter included) to my SD card.

Re-setting the installation location back to auto

I’d strongly recommend re-setting the default installation location when you are done moving apps. The reason for this is that apps will fail to be installed directly to the external location, at least this is what I experienced when trying to re-install the twitter app.

To reset the install location to automatic (let the system decide) use the following:

./adb shell pm setInstallLocation 0

Should you forget where it was left at you can always run:

./adb shell pm getInstallLocation

e.g:

$ ./adb shell pm getInstallLocation
0[auto]

Post Tools

Comments: Add yours

1. On February 2nd, 2011 at 8:49 pm Chris Heilmann said:

Just YMMV: This totally corrupted my SD card – lots of photos lost.

2. On February 2nd, 2011 at 11:40 pm Stuart Colville said:

@Chris I’m very sorry to hear that.

It’s hard to say with absolute certainty if changing this setting could contribute indirectly or directly to an SD card failing in such a way.

However, in any case I’ve added a warning to the top of the post that anyone trying these instructions should ensure they have a backup just in case.

3. On February 24th, 2011 at 1:32 am Matija said:

Works like a charm!

This is why I love Linux. I have been fooling around with this for two days already on Windows with no success and solved it in minutes under Linux (thanks to you that is).

The only thing I have to suggest for you is to better explain how to install the sdk but considering the topic here this isn’t what a newcomer to android would look for in any case, ah the power of search ;)

btw I don’t know if it has to do something with Chris above but…have you turned off the debugging on your phone?

It won’t read from the sd if it’s checked, I think so.

Rooting is a pain for me.
Thanks again!

4. On March 11th, 2011 at 4:17 pm Neil said:

Great post, thank you.

Can you clarify- will this move already installed apps to the SD card, or only apps which are installed after running the above commands?

Thank you,

Neil

5. On March 11th, 2011 at 4:26 pm Stuart Colville said:

@Neil: this just changes the default location that apps are installed to and also makes it possible to move apps that weren’t previously able to be moved to the SD card.

I’d personally recommend making the setting change, then move the apps you want to move and then set it back to the default.

6. On March 11th, 2011 at 10:56 pm Neil said:

Hi Stuart,

Thanks for the quick reply. I have installed the necessary SDK and accosiated files. I have found adb in the platform-tools folder.

WHen i click on adb, I get a command window open breifly, then it vanishes. How do I enter the neseccary script ./adb shell pm setInstallLocation 2 ??

Thanks again,

Neil

7. On March 11th, 2011 at 11:12 pm Neil said:

sorry, meant to add that in the command prompt window I keep getting the response “adb is not recognised….”

8. On March 11th, 2011 at 11:21 pm Stuart Colville said:

@Neil: on linux you’ll need to open the folder that contains the adb executable in the terminal and from there you should be able to run the commands as listed.

9. On March 11th, 2011 at 11:45 pm Neil said:

OK it’s getting late and I think i’ve had enough for one night!

Rather than post question after questions here, perhaps I can email you for further help Stuart?

I’ve made some progress and hit another stumbling-block, i’ll take a screen shot and send on.

Kind Regards,

Neil

10. On April 29th, 2011 at 4:15 am ben said:

All I’m getting whenever I try any of the commands is:

-bash: adb: command not found

What am I doing wrong?

11. On April 29th, 2011 at 4:18 am ben said:

Here is a copy of what I tried:

Last login: Fri Apr 29 14:16:30 on ttys000
Bennys-MacBook-Pro:~ Benny$ adb shell pm getInstallLocation
-bash: adb: command not found
Bennys-MacBook-Pro:~ Benny$ ./adb shell pm getInstallLocation
-bash: ./adb: No such file or directory
Bennys-MacBook-Pro:~ Benny$
12. On April 29th, 2011 at 8:55 am Stuart Colville said:

@ben: First ensure the android sdk is installed.

Then, if you’re not in the directory that adb lives in then adb will need to be on your path.

e.g (in your ~/.bashrc or ~/.profile)

export PATH=/path/to/adb/dir:$PATH

To get that to work immediately you’ll need to subsequently run:

source ~/.bashrc

If you are in the directory that adb is in then you need to use ./adb instead of adb at the prompt.

Hope that helps.

Stuart

13. On May 23rd, 2011 at 9:57 am Mir Osman Ali said:

I bought the Cruz Reader R101, totally unaware of what I was getting into. I have a HTC T-Mobile G2 with Android OS 2.2. I am in love with this phone, so I was expecting a very similar experience from the reader. I knew it had Android OS 2.0 on it but did not read the manufacturer’s website saying that there will be no upgrade for this device above 2.0.

No I can’t install more than 4-5 five apps without the little out of space notice coming up.

Can I try this method for the Cruz Reader, if anyone knows?

14. On June 10th, 2011 at 8:26 am bloptra18 said:

I’ll have done everything correctly without any error messages. Rebooted the phone. But my “Move to SD Card” button is still grey. My phone is rooted and using android 2.2.

15. On July 9th, 2011 at 8:14 pm Ajay said:

Excellent hack! Works perfectly on Gingerbread.
The tip about how already installed apps which cannot be shifted can be shifted after this modification is especially useful :)

16. On July 14th, 2011 at 8:21 pm Bling2Ming said:

Thanks worked like a charm on a stock HTC Wildfire S running Gingerbread 2.3.3. Limited internal memory no longer such a big issue. Still a minority of apps refuse to be moved (looking at you Cozi) but just freed up 20 Mb of internal storage and phone now seems faster. Cheers

17. On July 25th, 2011 at 2:35 am Jeremy said:

Got my HTC EVO all set to store future apps on the SD card. How do I force existing apps to the SD card? I have in particular that ‘move to SD card’ is not available.

18. On July 25th, 2011 at 3:59 am roberto said:

do i need to root my htc wilfire s first to do this?

19. On August 4th, 2011 at 8:12 am Davide said:

This is just what I’m after for my HTC Wildfire. However I don’t have Linux. Can I do this from my Windows 7 PC? Say, bring up a command window to do the .adb commands?

20. On August 9th, 2011 at 5:04 am Vijayendran said:

Hi,
I have Samsung galaxy ACE GT5830 mobile rooted version running android 2.3.4 Ginger bread. Will the above post works in android 2.3.4 also ? Please let me know.

21. On August 9th, 2011 at 11:08 am ali said:

hi

im experiencing a problem

i did this to my htc desire and it worked for a while then when i wanted to install an app i would hit install and after maybe 2 seconds it would say “application not installed”

if i use the sdk and set the installation path back to [0/auto] or [1/internal] the app can be installed

does anyone know how to fix this problem ???????

22. On August 9th, 2011 at 5:31 pm Jan said:

Very nice.
Helped a lot.

I can’t move these:
gmail
google maps updates
facebook
youtube

Is there a solution for these biggies?

rgds
Jan

23. On August 12th, 2011 at 5:32 am Santiago said:

Perfect. Exactly what I was looking for. This freed over 23 megs of internal storage space. Thank you very much, and long live Linux! Nexus One running Android 2.3.4.

PS. Google, you are awesome. But if you are going to put your name behind a phone with very limited internal storage, make your apps movable to SD. Seriously. It takes two lines of code.

24. On August 14th, 2011 at 2:44 am Stuart Colville said:

@roberto: No this doesn’t require root.

25. On August 14th, 2011 at 2:45 am Stuart Colville said:

@ Vijayendran Should be fine.

26. On August 14th, 2011 at 2:46 am Stuart Colville said:

@Davide: Yes the same commands should work fine from windows.

27. On August 15th, 2011 at 3:26 am Chris A.K.A. gearhead1977 said:

When attempting to run these commands from command prompt in Windows XP, all commands yield error “permission denied” including the kill-server commands you recommended for those type errors. I am able to access the adb shell wherein the prompt changes from “c:\progra~1\android\android-sdk\platform tools” to a simple “$”. Any ideas on how to run this command or what command is required to gain sufficient permissions to make this change?

28. On August 29th, 2011 at 2:34 am harry said:

Ok i have a problem .. this worked but still the internal memory keeps on filling up.

29. On September 6th, 2011 at 5:20 pm Shiva said:

thanks a lot bro :)

30. On September 25th, 2011 at 7:22 am Alex said:

Followed all commands just fine. Restarted phone. Unistalled a couple different apps and reinstalled. They are still intalling on my phone and not SD card. Don’t know why it is not working. HTC Evo 4G.

31. On September 28th, 2011 at 2:47 pm Chris said:

I’m trying to do this, and have the phone plugged in. The sdk is downloaded but when I try
adb shell pm setInstallLocation 2 I get a device not found error. Am I missing something here? Hope you can help

32. On September 28th, 2011 at 3:13 pm Stuart Colville said:

@Alex: Bear in mind some apps will not allow installation to SD card whatever you do. Which apps were you trying to do this for?

@Chris: Is this on windows? If so this may help: http://code.google.com/p/android/issues/detail?id=1039#c10

33. On September 29th, 2011 at 7:51 am lecho said:

Dear Stuart, sorry for bothering. My friend has asked to help with his son Galaxy mini with Froyo, as he is getting annoying message there is no space. I’m using Mac with Lion, have installed Android SDK and AVD Manager, downloaded Android SDK platform Tools. I’ve double clicked on android and terminal window + SDK MAnager app appeared. I’ve typed according to your guidance: ./adb shell pm setInstallLocation 2 (had to copy adb to the same folder as android (unit executable files) was stored. I got below stated messages:

lecho$ Downloads/android-sdk-mac_x86/tools/adb shell pm setInstallLocation 2
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

Is it OK? Phone connected all the time.

Thanks in advance for your advice. Regards.

Lech
Macbook-Pro-3:~ lecho$

34. On September 29th, 2011 at 8:41 am Stuart Colville said:

@lecho: If you want to check if it’s set correctly just use:

<path-to-adb->/adb shell pm getInstallLocation

35. On October 1st, 2011 at 6:39 am harsh said:

can i do dis in windows os ? i dont hav linux installed currently…

36. On October 4th, 2011 at 4:17 am Bob said:

Hi, these directions worked perfectly for me. Thanks for taking the time to post them. One issue, when I restarted my phone all of the thumbnail icons for the apps I had moved to the SD card had changed to the default android thumbnail. Once I moved the apps back to the phone and restarted the icons were restored to their originals. Does anyone know why this is happening or how to properly move the icons along with the apps to the SD card?

37. On October 11th, 2011 at 5:26 am chethan said:

Does this work on HTC wildfire s

38. On October 13th, 2011 at 9:34 am Linda said:

My hTc wildfire s has the same problem!! very annoying…want to do this but cant understand how!! please help..

39. On October 13th, 2011 at 3:25 pm Jiabao said:

Very useful. Thank you.

I’m moving my apps right now, will post back if I see any problems.

40. On October 16th, 2011 at 5:50 pm Balaji Manoharan said:

Dear Sir,

I am using HTC SALSA with android version 2.3.3 (gingerbird) bought a week ago. The storage gets filled very often and unable to install anymore apps. I tried APP2SD app too and though its getting filled often.

I tried your steps and when I run the adb from the Platformtools folder , the command window just appears for a sec and then vanishes!! Can you please help !! I even tried running as Admin too and also tried running with the sdk manager open , but in vain. Please help me sort it out!!

41. On October 18th, 2011 at 9:51 am Rich said:

Thank you, since going to 2.3.3 on my Desire I’ve been running out of space, this has really helped!

42. On October 18th, 2011 at 8:13 pm Stuart Colville said:

@Balaji Manoharan hi sounds like you need to use a terminal (linux) or the command prompt (windows) to run the commands in question.

If you’re using windows go “start” -> “run” and type cmd to get the command prompt. From there you’ll need to navigate to the adb tools directory e.g cd \path\to\tools. Alternatively this “hack” makes life easier as you can right click from explorer and the command window will open in the right place. http://www.howtogeek.com/howto/windows-vista/make-command-prompt-here-always-display-for-folders-in-windows-vista/

Note that if you’re using windows use adb rather than ./adb in each case.

Hope that helps. Let me know if you’re still stuck.

43. On October 18th, 2011 at 8:14 pm Stuart Colville said:

@Rich: Thanks, I’m glad it’s useful.

44. On October 19th, 2011 at 7:15 am Balaji Manoharan said:

Thanks Very Much Stuart.. I tried as you said. I right clicked on the window containing the adb application file and then , clicked on “open command window here” and then popped up a cmd window for that location and then I typed ” adb shell pm setInstallLocation 2″ and then hit ENTER and then nothing appeared! just again the same path of the CMD window appeared, is this right?

Thanks in advance!,
Balaji Manoharan

45. On October 19th, 2011 at 9:34 pm Freia said:

I get to the very last step, input adb blah blah blah and get
ERROR device not detected.
On my computer, it comes up on driver F
I can move music from my computer into my phone
I’ve done an update and computer says device is working properly
I have an Alcatel One Touch 908s
What gives?

46. On October 19th, 2011 at 9:52 pm Stuart Colville said:

@Balaji: Try checking it with “adb shell pm getInstallLocation”

@Freia: Have you enabled “USB Debugging” under settings -> applications -> Development?

47. On October 22nd, 2011 at 8:23 pm Smide said:

Everything works great on my HTC Legend and also on Huawei Ideos S7. I love your work here !!! Thank you you save me with this thread.

Smide

48. On November 2nd, 2011 at 7:24 pm Pete said:

I run the command…and it says device not found. I have the drivers installed for the phone. The computer beeps and recognizes it and in the phone notification tray it shows usb connection and usb debugging. WTF ?

49. On November 2nd, 2011 at 7:48 pm Pete said:

P.S. I tried my LG Updater…and it finds my phone no problem. Do not know why I am getting the error mentioned above. Please Help !

50. On November 2nd, 2011 at 8:08 pm Stuart Colville said:

@Pete: Is this windows? Can you try running adb devices

51. On November 2nd, 2011 at 8:24 pm Pete said:

I am running Windows 7.Pretty much a newbie to Android though. I am able to type ADB and it runs a bunch of stuff… but when I type adb shell…it keeps saying device not found. Again, when I use the LG Update tool…it connects no problem. It is a LG Optimus M. I just got an update not to long ago to 2.2.2. Can that be causing it. I don’t think so since it is supposed to work with even 2.3 ? Again any help would be appreciated. I am trying to free up internal memory.
Thanks.

52. On November 2nd, 2011 at 8:53 pm Stuart Colville said:

@Pete: and did you run adb devices? This will tell you if adb can see your phone. If you can do that and post the output it might help to solve the issue.

Also you could check that USB storage is turned off.

53. On November 2nd, 2011 at 9:35 pm Pete said:

How do I run adb devices…sorry…on very familiar with it. I did follow the instructions to a T…and got up to the part to type the command, but got that error message. Again, please let me know how to run adb devices and I will post the output.

54. On November 2nd, 2011 at 9:36 pm Pete said:

lol…P.S. How do I check if USB storage if off ? Thanks for all you help and patience. I came along way believe it or not.

55. On November 3rd, 2011 at 12:11 am Stuart Colville said:

@pete: To check USB storage is off – it should say it’s connected as a drive on the phone when hooked up via USB. To check the status drag the top of the screen down to reveal the current status.

Now to get connected under Windows 7:

First step is to check USB debugging is enabled. On the device, go to Settings > Applications > Development and enable USB debugging.

On windows you need to have installed USB drivers if you haven’t already – this page lists the USB drivers for most phone hardware manufacturers: http://developer.android.com/sdk/oem-usb.html

Once you’ve downloaded the driver the install instructions are here: http://developer.android.com/sdk/win-usb.html#Win7

Once this is done it should just be a case of opening the command window ( In the Start Menu search box area type cmd and press Enter.) Navigate to where you installed the Android SDK and then to “platform-tools” and run adb devices. If connected, you’ll see the device name listed as a “device.”

Let me know if you get stuck at any point.

56. On November 3rd, 2011 at 3:27 pm Pete said:

Thanks Stuart for all your help. On a whim, I downloaded another version of Android SDK and IT WORKED ! SUCCESS finally !!!!! Thanks again for you great post and answering me so quickly. If you have an email list and have updates or new ideas, please add me to it. Freed up so much memory !

57. On November 3rd, 2011 at 3:29 pm Pete said:

Wait…in actuallity in only let me move two apps…is that normal. Like google maps….it won’t let me move it, facebook and a mail app it did ?

58. On November 3rd, 2011 at 3:36 pm Stuart Colville said:

@Pete: Yes unfortunately some apps are authored in such a way that prevents moving them even with the install location updated.

One way to work around this is to root your phone and install CyanogenMod 7 and then use something like simple2ext which allows you to format your SD card and then it can use that for applications. I’ve recently done this on my Desire because whilst you can free some space with the install location method it’s really only a stop-gap measure.

Naturally this is all a bit more involved and is potentially more risky as you could brick your phone in the process.

59. On November 3rd, 2011 at 3:40 pm Pete said:

My phone is an LG Optimus M. It just received an update not to long ago from froyo 2.2 to 2.2.2, That I know messed everyone’s root up etc… can that be causing my problem as well. When I enter adb shell I get a $ like other post say then pm InstallLocation 2 I get another $ dollar sign that many other posts say I should get. Then just reboot my phone and voila…well like I said, most of the Bloatware is still unable to be moved ? Please help.

60. On November 3rd, 2011 at 3:44 pm Pete said:

Sorry for all the posts. It is letting move about 8-10 apps using APP2SD…but the Bloatware I am guessing that is installed my the manufacturer is just impossible to move, at least without rooting, which I had a “pro” try to root my phone and could not…was unable to downgrade back to 2.2 to attempt a root. Will have to wait til someone comes out with a new procedure. Really want Gingerbread if I can figure it out. Oh well, if you just let me know it is normal not to be able to move bloatware. From my reading, it is…and now with being able to move other apps that I couldn’t move before I am guessing that is just the case. Please confirm ?

61. On November 3rd, 2011 at 3:47 pm Stuart Colville said:

@Pete: yes that’s correct – see my previous reply – some apps just can’t be moved with this technique.

62. On November 3rd, 2011 at 4:28 pm Pete said:

As soon as they come out with a technique to root froyo 2.2.2 or I can figure out why I can not downgrade my phone to 2.2…I will definately try rooting again. Thanks for all your help. This little fix gave me about 35MB of free space. Considering my measley old MetroPCS LG Optimus came with 200MB total, I got a decent gain. Thanks again for your help. You’ve been outstanding !

63. On November 9th, 2011 at 1:08 am Drew said:

I did have many problems along the way, but most of them were the same ones as the other people had. Since you answered all their questions, I had practically no problem doing this. My Xperia Play has only 200MB total for me to use, so this is wonderful. This gave me 50MB of free space, which was wonderful. Thank you so much for this!!!

64. On November 22nd, 2011 at 1:32 am Nicole said:

Hi,
I’m still having “permission denied” problems. My device is a Wildfire S and OS is Win 7 Pro.

65. On November 22nd, 2011 at 2:03 am Nicole said:

Hi,
Kindly ignore my previous comment. I’ve successfully completed it, it was just the wrong commands. Big Thank you!

66. On November 28th, 2011 at 11:33 pm Anne said:

On my HTC Wildfire S I was able to move some apps, eg. my Swiftkey input which is great. However, it still won’t let me move Facebook or Gmail apps… I can’t root since my phone is S-ON. Do you know of any way to move those big apps to the sd card as well?

Also, HTC and 3 have installed lots of small useless apps and widgets that I never use, do you know of any way to move these to the simcard?

Thanks for the clear explanations!

67. On November 29th, 2011 at 9:43 am Stuart Colville said:

@Anne: Unfortunately pre-installed apps generally cannot be moved (which typically includes things like Gmail/facebook etc). If this is a problem then it’s probably worth looking into rooting your phone and then possibly installing something like Cyanogenmod 7.

I recently did this on my Desire and found the processes straight forward enough and with a EXT4 partition on a class10 SD card combined with simple2ext (cyanogenmod7 only) running out of space is a thing of the past. That said if you remotely consider rooting/reflashing *do* take care to back everything up and understand the risks inherent in these processes before you start.

68. On November 29th, 2011 at 7:44 pm André said:

Works great in my Samsung Ace. Without any errors. It allows me to move some apps to my SD card, stopping the boring message of lack space.

Thanks.

69. On December 1st, 2011 at 5:56 pm Prajeesh said:

Thanks a lot. Brilliant…

70. On December 5th, 2011 at 8:00 pm Randy said:

I’ve been pleasantly surprised at how much I liked my Samsung Admire. The one downfall was the limited internal memory filling up so fast. This has been an ABSOLUTE lifesafer! You rock buddy! Thanks so much!!!!!!

71. On December 7th, 2011 at 8:28 pm joe said:

- (set install location to sdcard on source device)
adb shell pm setInstallLocation 2

- (download app from Market on source device)

- (pull app off sdcard)
adb pull /mnt/asec/com.app.blah
pull: building file list…
pull: /mnt/asec/com.app.blah/pkg.apk -> ./pkg.apk
1 file pulled. 0 files skipped.
3220 KB/s (1983084 bytes in 0.601s)

- (hookup target device and install)
adb install pkg.apk

72. On December 7th, 2011 at 10:56 pm Ahmed said:

Hi all i have a problem when i open the adb it open very quickly and the close automatically so any one can help me
thanks

73. On December 8th, 2011 at 9:44 am SINEKT said:

LG Optimus One P500 – works.

Had a little trouble finding the USB drivers though, THE ONES IN THE SDK WILL NOT WORK !!! But I found them easily on Google.

Didn’t help me as much though, yes, you can move many more apps on the SD, but some don’t work on SD, such as widgets and task killers… so it’s one thing to move them on external storage and a whole other thing to make them WORK on SD. :) )

74. On December 9th, 2011 at 12:18 pm Tiago (Brazil) said:

I just type de command to set location on SD Card, and work fine. Now i can move may apps to sd using app manager on my Android 2.3.4.
Phone: Samsung Galaxy ACE.

Thanks a lot.

75. On December 10th, 2011 at 3:44 am arvin said:

hi stuart

will it work on windows? thanks in advance.

76. On December 14th, 2011 at 8:45 am vikas said:

it works..but after moving apps to SD card still it acquires phone memory…
i installed ninja game of size 8mb than i moved it in SD card but my phone memory also reduced to 12mb from 20 mb..every apps i download it is installed in both sd card and phone..
any solution for it??

my cell is GALAXY pop mini

77. On December 17th, 2011 at 3:53 am noah said:

i own a mac and whenever i try the command “./adb shell pm setInstallLocation 2″ it says “-bash: ./abd: no such file or directory found…help please?

78. On December 17th, 2011 at 4:40 am noah said:

*edit* everything is working fine, but when I type the command adb shell pm setInstallLocation 2 it says its an unknown command…

79. On January 2nd, 2012 at 8:16 pm emperornayan said:

Hi,
For people facing issues with no directory found, or no such commands using this code
./adb shell pm setInstallLocation 2
Is not working because IMHO in the recent updated sdk the adb location has been changed and hence try using this
adb shell pm setInstallLocation 2
Hope this solves the problem.

80. On January 8th, 2012 at 4:55 pm phpfreak said:

Thanks for the tips. It works on my Samsung Prevail. I haven’t try it on Samsung Galaxy Player 5.0 yet but I will later on. I need to get a bigger storage like (32GB) from a nearest store. I couldn’t wait, even though I supposed to receive a mail package from Amazon supposedly tomorrow.

After the mod on the default installation (0:auto) to 2:external, most of my apps are ready to be moved. I double check with different apps like SDMove, App2SD Free, and our default Android Application–>Manage applications,

If you’re using appSaver it will say “These Apps can’t be moved to SDcard”.. However, actually it will once you double tap on any app listed.. lol.. Thanks! Now I am worry free of the tiny 161.18 MB internal system storage partitioned on my Prevail. Hopefully it will work on m 2 GB internal system on my Samsung Galaxy Player 5.0 too.

81. On January 8th, 2012 at 5:05 pm phpfreak said:

I forgot to mention this, I am still using Froyo.. 2.2.

The applications that couldn’t be moved is as listed under SDMove:
1.Layar
2.Link2SD
3.MinaSoftIME
4.Poynt
5.SCVNGR”
6.Twidroyd

listed under App 2 SD Free
1. Market
2. YouTube
3. Link2SD
4. Street View
5. MinaSoftIME

82. On January 12th, 2012 at 1:46 am Vishal said:

Hi, very interesting post, very helpful, I own Htc wildfire S, do I have to put S-off to root the phone, if yes please tell how… Or shud sell off wildfire S & buy sensation or S2 …. I am scared to brick my phone …..

How do I subscribe to this post?

83. On January 12th, 2012 at 1:55 am Vishal said:

Hi, very interesting topic found thru google. Stuart I really appreciate your & other fellow member’s comments.

I am looking forward to a reply if anybody can guide me to turn the S-Off on Htc wildfire S the easy way, I am looking forward to root my phone.

I am scared to brick my phone, should I leave it d way it is n sell off n buy a sensation or S2 …. I really like my wildfire S…

Awaiting comments…

84. On January 12th, 2012 at 9:35 pm Stuart Colville said:

@Vishal: There’s a comments feed for this post here: http://muffinresearch.co.uk/archives/2011/02/02/android-force-moving-apps-to-an-sd-card/feed/ You can subscribe to that in any feed reader such as Google Reader.

To force moving android apps to the sdcard you don’t need root. However, if you find the limitations are too restrictive then you can use something like unrevoked (just google it) to unlock your wildfire. If you are at all worried about it after reading the instructions then I’d suggest not doing it. It goes without saying really that rooting your phone is risky and should be carried out if you understand the risks you are taking.

85. On January 15th, 2012 at 2:11 am fivekitten said:

After reading through all the comments, I think I just want to point out two things to people going through this process. 1. If your “adb” command isn’t working, you might need to execute it from a different folder. 2. If adb is working and you’re getting device not found, it could be a usb driver issue even if your usb driver has worked before. My USB driver was up to date, all the debugging, etc., was checked off appropriately, but it needed a different driver to work with Android. Windows would not find it through their search, a google search and manual update through device manager worked.

Personally, I am now stuck on the install location command not working. Thinking like you said, things may have moved.

Thank you for posting the commands so clearly above!

On to more googling…

86. On January 15th, 2012 at 3:04 pm Stuart Colville said:

@fivekitten: This post was originally written with linux users in mind however if you’re using windows you can drop the “./” and use “adb ” and the command should work. The “./” is a linux idiom.

87. On January 25th, 2012 at 10:08 pm wisdom said:

Thanks a lot Mr for your useful tutorial :) , I have a question:
I’ve installed the package specified for linux -using ubuntu- but when it’s extracted I can’t find “adb” file in tools nor in platforms :’(…..is it possible because JDK not installed or something missed ??

88. On January 26th, 2012 at 12:09 am Stuart Colville said:

@wisdom: Currently if you download and extract the sdk you’ll need to run ./android which will open a window with an option to download platform-tools. Once you’ve downloaded and installed that you should find adb there.

89. On January 26th, 2012 at 11:11 am wisdom said:

Great….that’s done perfectly with “Galaxy mini” :D , but still something confuses me ! even I moved all apps to SD card the internal storage deceased just about 30 MB !! how is it eaten ?!!

90. On January 26th, 2012 at 11:27 am Stuart Colville said:

@wisdom: This method helps, but cannot move everything to the SD card. This is a known limitation. If you really want to fully utilise the SD card for apps then there are other alternatives out there but you’ll need to root your phone.

In the end I found the technique detailed in this post helped initially with preventing the out of space messages on my htc desire. However it only put off the inevitable.

I have since rooted my phone and installed Cyanogenmod along with a 16GB Class 10 SD card utilising simple2ext. Now I have bags of space and performance is fine. However clearly carrying out these steps does not come without risks.

91. On January 26th, 2012 at 12:33 pm wisdom said:

sorry for many questions but I don’t know how to thank you for your help :) , Now I get a lot of free internal memory by factory reset my phone then do instructions above to install apps on SD card….my last question is : is it kind of risk if I left default apps installation on SD card ?? I did that and re-install all my apps without any wrong error !

92. On January 26th, 2012 at 1:15 pm Stuart Colville said:

@wisdom: Not sure is the honest answer. Off the top of my head I doubt you’ll see a problem – it will just use up some SD card space.

93. On February 9th, 2012 at 2:58 am JDC said:

I can connect my phone and get the adb shell but no matter what I try the adb command will only run as the shell user so I cannot execute the pm command. I can kill the server using the kill-server command but since I am connected using a Windows 7 machine I cannot use the sudo command. I try executing adb root but when I go back in the shell it is not running as root.
This is the second phone I am executing this on and I did not have this issue before.
Thanks

94. On February 19th, 2012 at 1:42 am Appu said:

Worked like a charm on my Nexus One (Android 2.3.4). Although FB, Gmail etc. won’t move, I was still able to free up 16 MB. Thanks Stuart!







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(2)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.591s.