Go Back   Android Forums > Android Phones > HTC Desire > Desire - Tips and Tricks

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

Closed Thread
 
LinkBack Thread Tools
Old August 27th, 2010, 04:24 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
SB13X's Avatar
 
Join Date: Jun 2010
Location: Wigan, UK
Posts: 930
 
Device(s): HTC Desire / HTC Desire HD / HTC One X / Sony Ericsson Xperia X10 Mini Pro
Carrier: Not Provided

Thanks: 166
Thanked 225 Times in 176 Posts
Default Force Apps to install to SD without Root!!

mod note: this guide has been superceded by [Guide] Move more (most) apps to SD without root (Simplified)

This was linked to within the Froyo Tips thread above however the link connected to a Blog where the blogger no longer wished to support the advice contained therein. He also appears to have taken down his blog completely since then.

So here is the guide to installing your apps to SD by default by using the Android SDK and your phone attached to your PC under Disk drive while having USB Debugging active, to have all apps you download install to SD by default.

Here are the instructions:

How to Install Apps to the SD Card by Default on Android 2.2 Froyo | larsa | Androinica

Quote:
First you have to enable USB debugging on your Android device from Settings > Applications > Development > USB debugging. Now you need to download and install the Android SDK on your computer from http://developer.android.com/sdk/.

Once you’ve downloaded and extracted the package to the folder of your choice, run SDK Setup.exe and click on Available Packages to the left. If you get an error message at this point, enable “Force https://…” in the Settings. From the list of available packages, select “Usb Driver package”, click on the Install Selected button in the bottom right corner and follow the prompts.

Connect your phone to your computer with a USB-cable. Your OS will prompt you to install new drivers. Choose to install them from the android-sdk/usb_driver folder. Do not mount your device; you only need to plug-in the cable.

Next, run a command prompt and navigate to the Android-SDK\tools folder. In Windows, this is done by selecting Run from the Start Menu (or by pressing Win+R) and typing cmd. You change drives in the command prompt by entering the drive letter followed by a colon (, and change folders with the CD command. For example, to enter the Android-SDK folder, simply type cd android-sdk.

In the Android-SDK\tools folder, type in adb devices and you should get a serial number starting with “H” in return. All you have to do next is entering adb shell pm setInstallLocation Voilą, you’re done! Android will now installapps to the SD card by default.

To switch back to storing software on the internal memory, enter adb shell pm setInstallLocation 0.

I should point out that it’s preferable to install certain apps to the main memory, since it will take a while before the SD card becomes available when you start your phone. Applications installed on the memory card will also be unavailable to the system each time you mount your phone as a disk drive. The internal storage is probably quicker as well, even though Google claims that “there is no effect on the application performance so long as the external storage is mounted on the device.” In general, apps that integrate with the Android OS and that often run in the background is better to install on the internal storage, while games and most other applications will have no problem chilling outside on your SD.

Update: Homescreen widgets should be installed to the internal storage as well. I noticed that LauncherPro, for example, won’t recognize widgets stored on the SD card when you start your phone, because when the app is launched, the memory card is still unavailable.
If you have any issues after installing any apps or after moving them please ensure that you have power cycled your phone before replying to this thread with issues.

I will check back daily to either answer your question directly or advise you on where best to look.

SB13X is offline  
Last edited by Slug; October 26th, 2011 at 04:44 AM. Reason: Thread closed and link to updated guide added
The Following 11 Users Say Thank You to SB13X For This Useful Post:
akemwarhead (June 28th, 2011), altered.ego (January 26th, 2011), Audiobear (September 16th, 2010), beetle (January 15th, 2011), chtamina (September 18th, 2010), jim_h (September 18th, 2010), mayurh (September 14th, 2010), nicknefarious (September 10th, 2010), SJN (July 12th, 2011), staz1000 (November 12th, 2010), williamj1 (September 12th, 2010)
sponsored links
Old August 28th, 2010, 12:41 AM   #2 (permalink)
Senior Member
 
rtb35's Avatar
 
Join Date: Jun 2010
Posts: 521
 
Device(s): Motorola Razr XT910 Motorola Xoom MZ604
Carrier: Not Provided

Thanks: 61
Thanked 131 Times in 106 Posts
Default

The way i did it was,

cd\
cd AndroidSDK\tools\
adb devices
adb shell
pm setInstallLocation 2

do it exactly like that including all spaces/capital letters etc to make it work.
rtb35 is offline  
The Following 5 Users Say Thank You to rtb35 For This Useful Post:
alekos (September 29th, 2010), cyberbuff (October 16th, 2011), sam881001 (June 22nd, 2011), williamj1 (September 12th, 2010), wrst (September 16th, 2010)
Old August 30th, 2010, 05:00 AM   #3 (permalink)
New Member
 
KanedAndUnable's Avatar
 
Join Date: Jul 2010
Location: Manchester, UK
Posts: 6
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
kanedavies66@gmail.com
Default

this works fine up until the step

Quote:
Connect your phone to your computer with a USB-cable. Your OS will prompt you to install new drivers. Choose to install them from the android-sdk/usb_driver folder. Do not mount your device; you only need to plug-in the cable.
at this point i get no prompt at all :-(

any ideas what i need to do?
KanedAndUnable is offline  
Old August 31st, 2010, 10:16 AM   #4 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 14
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by KanedAndUnable View Post
this works fine up until the step



at this point i get no prompt at all :-(

any ideas what i need to do?

If you are running Windows 7 like me, UNPLUG your phone from PC, d/l the Android SDK kit but entirely skip the part with installing USB driver, instead just go to HTC page ( http://www.htc.com -> Support and find your product ) and d/l HTC Sync application, install it. Plug in the phone now, set connection type to synchronize and check if HTC Sync recognizes the phone, if yes, you are set (HTC Sync installs the needed ADB drivers under Win 7).
All you need to do now is to enable the USB Debugging in your phone and set connection type to "Charge only" (tho it worked also with sync setting) and follow up rest of the tutorial.
felix1318 is offline  
The Following 3 Users Say Thank You to felix1318 For This Useful Post:
daviyong (August 23rd, 2011), electrohead (September 8th, 2010), SB13X (August 31st, 2010)
Old September 3rd, 2010, 05:57 PM   #5 (permalink)
Member
 
Join Date: May 2010
Posts: 197
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 8 Times in 8 Posts
Default

does this force apps that are not permitted to be stored on the SD card onto the SD card? Or does this just change the installation location default settings?
EmperorKabir is offline  
Old September 4th, 2010, 08:58 AM   #6 (permalink)
Senior Member
 
rtb35's Avatar
 
Join Date: Jun 2010
Posts: 521
 
Device(s): Motorola Razr XT910 Motorola Xoom MZ604
Carrier: Not Provided

Thanks: 61
Thanked 131 Times in 106 Posts
Default

Both.
rtb35 is offline  
Old September 4th, 2010, 12:35 PM   #7 (permalink)
Member
 
Join Date: May 2010
Posts: 197
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 8 Times in 8 Posts
Default

some of my apps can now be moved to SD, but not every single one.

Is that something to do with programmer preference? e.g if phone only is enforced?
EmperorKabir is offline  
Old September 4th, 2010, 12:46 PM   #8 (permalink)
Member
 
Join Date: May 2010
Posts: 197
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 8 Times in 8 Posts
Default

the apps that can't be moved: maps, what the doodle, jewllust, basket ball, facebook, and abduction world attack. the rest (about another 50-70) are all now on SD card.
EmperorKabir is offline  
Old September 5th, 2010, 05:16 AM   #9 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 62
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 4 Times in 4 Posts
Default

Yes - yes - yes. Made me a happy bunny. Just a quick add if other people are having problems. The ADK extracted as "android-sdk-windows", so I had to type cd android-sdk-windows\tools . Otherwise easy to do, and works great.... thanks.
pspbricker is offline  
Old September 5th, 2010, 05:32 AM   #10 (permalink)
Member
 
Join Date: May 2010
Posts: 197
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 8 Times in 8 Posts
Default

also just another note, some apps i had to move back otherwise the widgets wouldn't load properly, or notifications would stop etc.

These were:

no lock, missed reminder, battery time lite, advanced task killer, jorte, 3g watchdog. You get the idea. Handcent is working from the SD fine but is force closing every time I send a message now so I might move that back too.
EmperorKabir is offline  
sponsored links
Old September 5th, 2010, 08:48 AM   #11 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Question certain a

hi, I was wondering if there was a way to move certain apps? And after I do the command will they all automatically move, or is it just the next install to come?
alankrut is offline  
Old September 5th, 2010, 09:46 AM   #12 (permalink)
Senior Member
 
rtb35's Avatar
 
Join Date: Jun 2010
Posts: 521
 
Device(s): Motorola Razr XT910 Motorola Xoom MZ604
Carrier: Not Provided

Thanks: 61
Thanked 131 Times in 106 Posts
Default

The above method will change the default installation destination to the SD card so in the future most of the apps you install will go to the SD card.

If you wish to move existing apps click Menu > Settings > Applications > Manage applications > then select the app and then click move to sd card.

As mentioned above some apps like widgets that run on the homescreen should/cannot be moved to the SD card.
rtb35 is offline  
Old September 6th, 2010, 02:12 PM   #13 (permalink)
Junior Member
 
sam9s's Avatar
 
Join Date: Aug 2010
Posts: 75
 
Device(s): HTC Desire OTA 2.2 (Rooted)
Carrier: Not Provided

Thanks: 4
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by rtb35 View Post
The way i did it was,

cd\
cd AndroidSDK\tools\
adb devices
adb shell
pm setInstallLocation 2

do it exactly like that including all spaces/capital letters etc to make it work.
Even I have win 7, and even I did not get the prompt, so I installed the HTC Sync........now the next step says to navigate to AndroidSDK\tools folder ..... now where is that. i cannot find this location on my c drive ...???

EDIT ::: never mind I figured that out ..... you need to go the folder where you extracted SDk Package ......

and BTW thanks for this guide @stublake ..... this works perfectly ..... tried an application immediately after following up the steps and the apps did show on the SD card ..... Thanks again ....
sam9s is offline  
Last edited by sam9s; September 6th, 2010 at 02:33 PM.
Old September 9th, 2010, 05:45 AM   #14 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

I have an issue, although I'm not sure it has something to do with this.
The problem is in this topic: Not loading apps on sd
It only happened twice now and only did after I used this trick.
jelte12345 is offline  
The Following User Says Thank You to jelte12345 For This Useful Post:
pamijill56 (October 26th, 2011)
Old September 10th, 2010, 01:40 AM   #15 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default Permissions problem on Ubuntu Lucid 64-bit

Hey all,

Can anyone help me out here... I am trying to do this on my non-rooted HTC Desire using Ubuntu Lucid 64-bit.

When I try to run the
Code:
./adb devices
command in a terminal after navigating to the tools directory where adb is located it returns an error message saying
Quote:
~/android-sdk-linux_x86/tools$ ./adb devices
List of devices attached
???????????? no permissions
If I try the command
Code:
./adb root
to restart the daemon in root mode again it also returns an error
Quote:
sudo ./adb root
error: insufficient permissions for device
This happens when I run execute any of the adb commands. How do I pass myself the permissions for the device so I can execute the commands?

Any help here is much appreciated.

Big cheers,

Nick
nicknefarious is offline  
Old September 10th, 2010, 03:08 AM   #16 (permalink)
Member
 
Mavis Cruet's Avatar
 
Join Date: Jun 2010
Posts: 100
 
Device(s):
Carrier: Not Provided

Thanks: 14
Thanked 8 Times in 6 Posts
Default

Quote:
Your OS will prompt you to install new drivers.
Quote:
I'm following the instructions, but when I connect to my computer (running xp)
I don't get any prompt to install the drivers, and I can't seem to navigate to the folder using the cmd command. Exactly where should I put it? .. Thanks.
SOLVED:
My son helped me out, we had to install HTC sync from their site, to get the correct drivers.
Now working great .. Thanks to OP. :-)
Mavis Cruet is offline  
Last edited by Mavis Cruet; September 10th, 2010 at 06:56 AM.
Old September 10th, 2010, 06:40 AM   #17 (permalink)
Junior Member
 
Join Date: Sep 2010
Location: Braila, Romania
Posts: 40
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by nicknefarious View Post
Hey all,

Can anyone help me out here... I am trying to do this on my non-rooted HTC Desire using Ubuntu Lucid 64-bit.
...
Any help here is much appreciated.

Big cheers,

Nick
Try to run adb commands as root.
DragosP is offline  
Old September 10th, 2010, 06:56 AM   #18 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default Thanks...

Quote:
Originally Posted by DragosP View Post
Try to run adb commands as root.
Thanks for the suggestion but, as I loosely mentioned in my post, running as root still presents permission errors.

In the end, sadness of all sadness, I had to fire up Win 7 in a VM. Install HTC Sync in it. Download the SDK for Windows and was able to perform this from there with a few reboots and visits to Device Manager to get the drivers installed and running. Funny thing too for me was that I can't get HTC Sync (latest version downloaded from HTC's site) to recognise the phone. It's definitely recognised and all the drivers are installed by the OS but HTC Sync can't recognise it. But executing
Quote:
adb devices
while in the correct folder (tools folder where the SDK had been extracted to) it appeared and I executed the
Code:
adb shell pm setInstallLocation 2
everything worked and I was able to relocate all those apps that are OK to be relocated to SD.

Would love to know how to fix the permissions problem when using Ubuntu so I can make better use of it next time.

Thanks to the OP for providing the info/tutorial.

Nick
nicknefarious is offline  
Old September 10th, 2010, 05:25 PM   #19 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jelte12345 View Post
I have an issue, although I'm not sure it has something to do with this.
The problem is in this topic: Not loading apps on sd
It only happened twice now and only did after I used this trick.
I just thought of something. I have two pc's and only one of them has the sdk and htc sync installed.
is it possible that it causes this problem when I try to connect to the pc (mount as diskdrive) i haven't installed it on?
please help me.
jelte12345 is offline  
Old September 10th, 2010, 06:11 PM   #20 (permalink)
Member
 
Join Date: May 2010
Posts: 197
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 8 Times in 8 Posts
Default

i now have an issue where my win 7 pc does not recognise my phone at all in disk mode, but connecting in htc sync suddenly works in disk mode. not a big deal but meh.

anyway.

will any OTA updates screw up my phone now that I have moved tonnes of apps over that should not have normally been allowed?
EmperorKabir is offline  
sponsored links
Old September 11th, 2010, 08:32 AM   #21 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default Help please :(

Edit: See new Noob guide below.
williamj1 is offline  
Last edited by williamj1; September 11th, 2010 at 10:04 AM.
Old September 11th, 2010, 09:11 AM   #22 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by williamj1 View Post
Ok guys, so I'm new to both android and the Android Forums. I signed up specially to get help with this.

- So I'm using my HTC Desire, using HTC's official 2.2 froyo update (the o2 version) and the phone is not rooted. And using windows xp.

-I have downloaded the SDK, extracted and installed USB Drivers etc.
- HTC Sync already in use, phone connects successfully etc etc.

- Now I can't get beyond the run CMD part.

I am pretty good with phones and computers etc,but have very little experience or knowledge with windows command promt.

Ive tried to open it, go to run, type in CMD and then the black screen comes up. Ive tried typing in (without quotes)

"CD Android-SDK\tools"
"C: Android-SDK\tools"
"CD Android-SDK-windows\tools"
"C: Android-SDK-windows\tools"
"cd\"
"cd AndroidSDK\tools\"
"adb devices"
"adb shell"
"pm setInstallLocation 2"

etc etc and It always comes up with errors and not recognised, code not expected errors and stuff and I am completely lost.

Below is what my command promt thingy looks like. Please please please can someone reply back telling me specifically telling me about capitals and spaces etc what I have to type exactly for my system.

What do I put after C:\Documents and Settings\William> ??? I am desperate to get this working.

Thanks.

William

I think you should check the debug mode checkbox on your phone.
You can find it at settings -> applications -> development.
jelte12345 is offline  
Old September 11th, 2010, 10:02 AM   #23 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default

My Noob's Guide to this Process.

Ignore my last post. Successfully running most apps from my SD Card now. I think I will clarify how to do this for other users, as as helpful as the first post is - I think it misses out some key points for noobs

  1. Download the SDK from here- Android SDK | Android Developers
  2. Extract using something like WinRar
  3. Copy the second folder into the sdk named "android-sdk-windows" to the desktop.
  4. Open the folder on the desktop and open the file, SDK Manager.exe (as no such file as setup.exe exists in the new version of the SDk)
  5. Close the command / windows command prompt window that opens
  6. Untick all options you are promted to download except ones like the manuals, and Essentially, ensure the USB driver option is selected / ticked.
  7. Let these files download
  8. Ensure on your phone, USB Debugging is on - Go to Settings/Applications/Development/USB Debugging and ensure its ticked / on.
  9. Download and install HTC Sync from HTC's website for your device.
  10. Connect your phone by USB and select the HTC sync option when it pops up with charge only, disk mode etc.
  11. Allow the sync to complete.
  12. Open windows command promt. Start / Run
  13. Type in (without quotations) "cmd"
  14. The following should appear. (with your user account instead of William
15. Type in the following after the ">" at each step (without quotations,and including spaces and capital letters)

"cd desktop\android-sdk-windows\tools"
"adb devices"
"adb shell"
A $ sign should pop up
"pm setInstallLocation 2"
Another $ should pop up

And your done. Close everything, disconnect phone, turn off phone and then turn it back on again.

16. Now the phone will be set to install all apps you install onto the SD card. However, current apps on phone will mostly still be stored on the internal memory. This process doesn't move these apps for you, it adds the ability. So you must now manually move those already installed on the phone.

To do this, go to settings / applications / manage applications
Then you just click on an app, and the move to SD card box should no longer be Grey. So you must now move all the apps you want onto the SD Card.

Note: I would not advise moving apps like widgets, or anything system related. Furthermore, for example, I have the 3g watchdog app and the advanced task killer app constantly running, so it is advisable to keep apps like that on the internal memory.

Good luck. Any questions just ask. Ill check back regularly too. Hopefully, this guide is a little simpler for noobs

William
williamj1 is offline  
Last edited by williamj1; September 12th, 2010 at 06:16 AM.
The Following 8 Users Say Thank You to williamj1 For This Useful Post:
bishani (September 23rd, 2010), cock_e (January 8th, 2011), Hakasin (September 13th, 2010), Lanod (October 14th, 2010), mayurh (September 14th, 2010), Nessiehunters (September 13th, 2010), Pad1 (November 19th, 2010), tef89 (September 12th, 2010)
Old September 11th, 2010, 12:35 PM   #24 (permalink)
Junior Member
 
Nessiehunters's Avatar
 
Join Date: Aug 2010
Posts: 23
 
Device(s): htc one
Carrier: Three mobile

Thanks: 4
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by williamj1 View Post
My Noob's Guide to this Process.

Ignore my last post. Successfully running most apps from my SD Card now. I think I will clarify how to do this for other users, as as helpful as the first post is - I think it misses out some key points for noobs

  1. Download the SDK from here- Android SDK | Android Developers
  2. Extract using something like WinRar
  3. Copy the second folder into the sdk named "android-sdk-windows" to the desktop.
  4. Open the folder on the desktop and open the file, SDK Manager.exe (as no such file as setup.exe exists in the new version of the SDk)
  5. Close the command / windows command prompt window that opens
  6. Untick all options you are promted to download except ones like the manuals, and Essentially, ensure the USB driver option is selected / ticked.
  7. Let these files download
  8. Ensure on your phone, USB Debugging is on - Settings, Development, USB Debugging.
  9. Download and install HTC Sync from HTC's website for your device.
  10. Connect your phone by USB and select the HTC sync option when it pops up with charge only, disk mode etc.
  11. Allow the sync to complete.
  12. Open windows command promt. Start / Run
  13. Type in (without quotations) "cmd"
  14. The following should appear. (with your user account instead of William
15. Type in the following after the ">" at each step (without quotations,and including spaces and capital letters)

"cd desktop\android-sdk-windows\tools"
"adb devices"
"adb shell"
A $ sign should pop up
"pm setInstallLocation 2"
Another $ should pop up

And your done. Close everything, disconnect phone, turn off phone and then turn it back on again.

16. Now the phone will be set to install all apps you install onto the SD card. However, current apps on phone will mostly still be stored on the internal memory. This process doesn't move these apps for you, it adds the ability. So you must now manually move those already installed on the phone.

To do this, go to settings / applications / manage applications
Then you just click on an app, and the move to SD card box should no longer be Grey. So you must now move all the apps you want onto the SD Card.

Note: I would not advise moving apps like widgets, or anything system related. Furthermore, for example, I have the 3g watchdog app and the advanced task killer app constantly running, so it is advisable to keep apps like that on the internal memory.

Good luck. Any questions just ask. Ill check back regularly too. Hopefully, this guide is a little simpler for noobs

William
Have done everything as above and keep getting :the system cannot find the path specified when I run the cmd part, can anyone advise me on what to do?.
Nessiehunters is offline  
The Following 2 Users Say Thank You to Nessiehunters For This Useful Post:
cock_e (March 13th, 2011), daviyong (August 24th, 2011)
Old September 11th, 2010, 06:14 PM   #25 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default

Quote:
Originally Posted by Nessiehunters View Post
Have done everything as above and keep getting :the system cannot find the path specified when I run the cmd part, can anyone advise me on what to do?.
Can you upload a picture like i did of the command prompt window showing what you are attempting to type in or tell me what it is your typing ?

The invalid path message suggests it cannot find the required folder you are asking it to. My method only works if you have saved it to the desktop. If you have saved it elsewhere it won't work. You would have to redirect the desktop part of the code ("cd desktop\android-sdk-windows\tools") to somewhere else.

For example if you saved it in my docs instead, it would be - "cd My Documents\android-sdk-windows\tools". That's why I used the desktop, it's far easier to code the cmd to find the file.

Finally, part of the problem is that when you extract the core sdk rar file, it is extracted to a folder wherever it was saved originally titled android-sdk-windows, but in that is another folder called android-sdk-windows, and then only once you open that second folder do you gain access to the tools, usb driver folders and so on. Therefore, you must either, remove the first folder so you are left with just a folder named android-sdk-windows which inside contains tools... or you must recode my above to say "cd Desktop\android-sdk-windows\android-sdk-windows\tools".

Likewise, beware as I can't remember for certain, but I think the sdk in its core form is called android-sdk_r07-windows or something, so rename this to android-sdk-windows.
williamj1 is offline  
Last edited by williamj1; September 12th, 2010 at 05:43 AM. Reason: Added more info.
Old September 12th, 2010, 02:46 AM   #26 (permalink)
Member
 
tef89's Avatar
 
Join Date: May 2010
Posts: 289
 
Device(s): HTC Desire HD Leedroid 3.3
Carrier: Not Provided

Thanks: 65
Thanked 24 Times in 23 Posts
Default

Works perfectly for me William - thanks so much :-)
tef89 is offline  
Old September 12th, 2010, 05:42 AM   #27 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 2
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default permission denied

After the last step: 'pm setInstallLocation 2' I have got the following error: 'setInstallLocation: permission denied'. Do I need to enable permissions before somewhere? Thanks.
kureka is offline  
Old September 12th, 2010, 06:05 AM   #28 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default

Quote:
Originally Posted by kureka View Post
After the last step: 'pm setInstallLocation 2' I have got the following error: 'setInstallLocation: permission denied'. Do I need to enable permissions before somewhere? Thanks.
Step 8. Ensure on your phone, USB Debugging is on - Go to Settings/Applications/Development/ and ensure USB Debugging is ticked.

Then make sure you connect in Sync mode and allow the htc sync to complete.
williamj1 is offline  
The Following User Says Thank You to williamj1 For This Useful Post:
cock_e (March 13th, 2011)
Old September 12th, 2010, 10:27 AM   #29 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 2
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks a lot. I have not allowed for sync to complete. It worked now.
kureka is offline  
Old September 12th, 2010, 11:58 AM   #30 (permalink)
Senior Member
 
sookster54's Avatar
 
Join Date: Jul 2010
Posts: 906
 
Device(s): HTC Desire, LG Shine Plus, LG Optimus One
Carrier: Not Provided

Thanks: 6
Thanked 56 Times in 46 Posts
Default

Quote:
Originally Posted by nicknefarious View Post
Hey all,

Can anyone help me out here... I am trying to do this on my non-rooted HTC Desire using Ubuntu Lucid 64-bit.

When I try to run the
Code:
./adb devices
command in a terminal after navigating to the tools directory where adb is located it returns an error message saying If I try the command
Code:
./adb root
to restart the daemon in root mode again it also returns an error This happens when I run execute any of the adb commands. How do I pass myself the permissions for the device so I can execute the commands?

Any help here is much appreciated.

Big cheers,

Nick
You don't need to sudo on your Ubuntu to do these adb commands as long as adb's installed on your home directory. And from the results of your adb devices, you don't have an android.rules setup.

as root (in Ubuntu) open a new file in /etc/udev/rules.d/51-android.rules and add:
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
then exit back to your main user then ./adb kill-server and ./adb devices to see if it appears.

Also ensure USB debugging is enabled on your Desire under settings > applications > development.
__________________
Useful Downloads (for root users)
LG Optimus LTE P935 / 2.3.5
HTC Desire / CyanogenMod 7.1
Motorola can kiss my a##
sookster54 is offline  
Last edited by sookster54; September 12th, 2010 at 12:00 PM.
sponsored links
Old September 12th, 2010, 12:02 PM   #31 (permalink)
Junior Member
 
Nessiehunters's Avatar
 
Join Date: Aug 2010
Posts: 23
 
Device(s): htc one
Carrier: Three mobile

Thanks: 4
Thanked 4 Times in 3 Posts
Default

Managed to get it to work! I had the folder on the desktop, I had not opened the second folder containing the files, thanks for the tutorial above it really helped me a lot. Thanks Williamj1 for taking the time to Provide the instructions.
Nessiehunters is offline  
Last edited by Nessiehunters; September 13th, 2010 at 06:59 AM.
Old September 13th, 2010, 05:09 AM   #32 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

hi there
will i able to move copilot and asphalt to sd card after doing this?
mayurh is offline  
Last edited by mayurh; September 13th, 2010 at 08:21 AM.
Old September 13th, 2010, 10:13 AM   #33 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default

Quote:
Originally Posted by mayurh View Post
hi there
will i able to move copilot and asphalt to sd card after doing this?
Yes, I own them both and can confirm they can be moved to sd after this process and work just as well as before.

I actually found those two were my largest apps, at combined just over 30mb, so I was very very glad to have them moved
williamj1 is offline  
The Following User Says Thank You to williamj1 For This Useful Post:
mayurh (September 14th, 2010)
Old September 14th, 2010, 12:24 AM   #34 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

wow thats great news
thanks alot.im definately going to try this
mayurh is offline  
Old September 14th, 2010, 02:35 AM   #35 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Nessiehunters View Post
Have done everything as above and keep getting :the system cannot find the path specified when I run the cmd part, can anyone advise me on what to do?.

try cd desktop\androi~1\tools

else try androi~2
i had to go to androi~3
mayurh is offline  
Old September 14th, 2010, 02:36 AM   #36 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by williamj1 View Post
Yes, I own them both and can confirm they can be moved to sd after this process and work just as well as before.

I actually found those two were my largest apps, at combined just over 30mb, so I was very very glad to have them moved
thanks alot guys
it worked
wow
why couldnt google do this by default? the developers are so slow
but this helps
thanks
almost 60mbs free now
mayurh is offline  
Old September 15th, 2010, 03:43 PM   #37 (permalink)
New Member
 
Join Date: Aug 2010
Location: Ireland
Posts: 14
 
Device(s): Samsung Galaxy s2
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
To do this, go to settings / applications / manage applications
Then you just click on an app, and the move to SD card box should no longer be Grey. So you must now move all the apps you want onto the SD Card.
Hi, I have done all the steps a couple of times now but when I go into settings and manage applications, the option to move to sd card is not there, not even greyed out. Am I doing something wrong?
Magser is offline  
Old September 16th, 2010, 01:01 AM   #38 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 20
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

guys jus remember after you do this.all new apps will install to sdcard
so if its a widget or an app that automatically starts up at boot, then u need to do the following
after app/widget is installed. go to applications.and click on the app/widget and move to sd. then you need to restart your phone.otherwise you wont see the widget in the list when you trying to add it to one of your homescreens
mayurh is offline  
Old September 16th, 2010, 11:25 AM   #39 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default

Quote:
Originally Posted by Magser View Post
Hi, I have done all the steps a couple of times now but when I go into settings and manage applications, the option to move to sd card is not there, not even greyed out. Am I doing something wrong?
What is your phone?
Is the phone running android version 2.2 froyo?
What application are you trying to move?
williamj1 is offline  
Old September 16th, 2010, 11:45 AM   #40 (permalink)
Junior Member
 
Join Date: Apr 2010
Location: London UK
Posts: 52
 
Device(s): HTC Desire, HTC Desire Z, Samsung Galaxy Tab 2 10.1, Nexus 7
Carrier: Not Provided

Thanks: 8
Thanked 4 Times in 4 Posts
Default

this method certainly works! The only downside appears to be that applications installed pre-modification and then subsequently moved to the SD card don't seem to be updated via the Market - at least not to the SD card. But a re-installation seems to work fine. So all in all, a good tip.
Audiobear is online now  
sponsored links
Old September 16th, 2010, 02:43 PM   #41 (permalink)
New Member
 
Join Date: Aug 2010
Location: Ireland
Posts: 14
 
Device(s): Samsung Galaxy s2
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by williamj1 View Post
What is your phone?
Is the phone running android version 2.2 froyo?
What application are you trying to move?
It's 2.1...stooopid network hasn't updated yet.
Magser is offline  
Old September 17th, 2010, 11:09 AM   #42 (permalink)
Junior Member
 
Join Date: Sep 2010
Location: Braila, Romania
Posts: 40
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Magser View Post
It's 2.1...stooopid network hasn't updated yet.
Then you have to wait until to Froyo, because you are on Eclair...
DragosP is offline  
The Following User Says Thank You to DragosP For This Useful Post:
Magser (September 17th, 2010)
Old September 17th, 2010, 03:47 PM   #43 (permalink)
New Member
 
Join Date: Aug 2010
Location: Ireland
Posts: 14
 
Device(s): Samsung Galaxy s2
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DragosP View Post
Then you have to wait until to Froyo, because you are on Eclair...
Thank you for telling me. I thought there was something wrong with my phone.
Magser is offline  
Old September 18th, 2010, 03:55 AM   #44 (permalink)
Member
 
tef89's Avatar
 
Join Date: May 2010
Posts: 289
 
Device(s): HTC Desire HD Leedroid 3.3
Carrier: Not Provided

Thanks: 65
Thanked 24 Times in 23 Posts
Default

It is great to be able to move most apps but having used it for a weeks I've noticed several apps still leave a 'footprint' on the system memory, and some of these can be quite big.

Rockplayer for example is a whopping 12 meg on the internal memory but even when moved to the SD card it leaves 8 meg on the system memory used up - for an app that does nothing in the background unless actively used it's pretty disappointing.
tef89 is offline  
Old September 18th, 2010, 01:46 PM   #45 (permalink)
Member
 
Join Date: Apr 2010
Posts: 233
 
Device(s): Nexus7 Unrooted SGS II Unrooted HTC Desire (Mildwild 4.3) ZTE Blade (TPT to Gen2, Self moded CM7.2)
Carrier: Not Provided

Thanks: 59
Thanked 9 Times in 9 Posts
Default

I am thinking of doing this and have some questions. Please help.

1. Is there any chance of bricking the phone whilst doing this?
2. Does it work after official branded software update?
3. Can you move apps to phone once they are installed to sd without reversing the save location using this method?

Thanks!
Sheshnag is offline  
Old September 19th, 2010, 04:24 AM   #46 (permalink)
Junior Member
 
Join Date: Sep 2010
Location: Braila, Romania
Posts: 40
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

1. No, it's Froyo procedure.
2. Yes.
3. Yes.
DragosP is offline  
Old September 19th, 2010, 02:12 PM   #47 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 9
 
Device(s): HTC Desire
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

I have done it successfully....
Thanks all........

but still after installing application though it is installing in SD but phone memory filling up.and also few application can not move, like google map, adove flush player...

Is there any way to move them to SD.
thanks all.. agian
raihanbuet is offline  
Old September 19th, 2010, 03:48 PM   #48 (permalink)
Senior Member
Thread Author (OP)
 
SB13X's Avatar
 
Join Date: Jun 2010
Location: Wigan, UK
Posts: 930
 
Device(s): HTC Desire / HTC Desire HD / HTC One X / Sony Ericsson Xperia X10 Mini Pro
Carrier: Not Provided

Thanks: 166
Thanked 225 Times in 176 Posts
Default

One thing I am discovering is that your phone memory will still have data added with every app installed however this is just data that allows the phone to locate the required app. Another thing is that you may still continue to get low memory notifications. That said I have found out that you can quite happily ignore it, and if the notification sitting there bothers you a great deal a quick reboot of the phone will remove it until you install something else where it may well appear again. HTH
SB13X is offline  
Old September 20th, 2010, 07:23 AM   #49 (permalink)
Member
 
Join Date: Feb 2010
Location: Halifax, England
Posts: 270
 
Device(s): ASUS Transformer Tf101 ICS Rooted HTC Desire - MIUI
Carrier: Not Provided

Thanks: 63
Thanked 18 Times in 18 Posts
Default

Hi,

I cannot get this to work at all. I have the latest sdk and Sync software installed (both downloaded today).

Following the instructions and I sync the mob, then issue the command:
adb devices - this then results in:
adb server is out of date. killing...
* daemon started successfully *

At this point, my phone is disconnected automatically from Sync and the rest of the instructions fail (permission denied), presumably because of the disconnection. I have to replug my mob into the cable to get Sync to recognise it again.

I have tried rebooting the phone and performing the steps with it set to "charge only" (doesn't work at all) and with it running Sync.

How can I stop it killing the adb server? If I could prevent it from doing this, I think it would probably work.

Any help would be appreciated.

Cheers,
Jim
jim_h is offline  
Old September 20th, 2010, 02:01 PM   #50 (permalink)
Senior Member
 
williamj1's Avatar
 
Join Date: Sep 2010
Location: UK
Posts: 641
 
Device(s): HTC Desire Current ROM: Redux 2 Test Builds (Gingerbread 2.3.5)
Carrier: Not Provided

Thanks: 90
Thanked 218 Times in 79 Posts
Default

Quote:
Originally Posted by jim_h View Post
Hi,

I cannot get this to work at all. I have the latest sdk and Sync software installed (both downloaded today).

Following the instructions and I sync the mob, then issue the command:
adb devices - this then results in:
adb server is out of date. killing...
* daemon started successfully *

At this point, my phone is disconnected automatically from Sync and the rest of the instructions fail (permission denied), presumably because of the disconnection. I have to replug my mob into the cable to get Sync to recognise it again.

I have tried rebooting the phone and performing the steps with it set to "charge only" (doesn't work at all) and with it running Sync.

How can I stop it killing the adb server? If I could prevent it from doing this, I think it would probably work.

Any help would be appreciated.

Cheers,
Jim
No. It should kill the adb server. The code you typed ^^ is correct.

And put it in Sync mode, not charge only mode, then allow HTC Sync to complete and try again.
williamj1 is offline  
Closed Thread


Go Back   Android Forums > Android Phones > HTC Desire > Desire - Tips and Tricks
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:10 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.