setInstallLocation - XPERIA X10 Q&A, Help & Troubleshooting

hello every one
Look what i found: http://androidforums.com/desire-tips-tricks/160560-force-apps-install-sd-without-root.html
its a way to set the installation location to the sd card, so the apps standardly be installed on the sd ^^
i try it at my own phone and it works.
For some peoples who knows the adb syntax: ADB has been moved. you must install the platform-tools, there is ADB now =)
Have fun!
#EDIT
If an error appears, fallowed by syntax of adb, try using adb shell pm setInstallLocation 2(0/auto, 1/internal, 2/external)
to set back use adb shell pm setInstallLocation 0
If your mobile still install to internal memory, reboot it.

adb pm setInstallLocation 2 not working
i have partitioned my sd-card with one fat32(3 gb) and one with ext4(1 gb)
then i folowed every step provided here but still my apps are installed i my internal memory. even rebooted the phone
please help

Alternatively, install Rom Toolbox > Configure Apps2SD in Tools screen > Check SD Card and tick Set on Boot.
Much simpler.

takmayo said:
Alternatively, install Rom Toolbox > Configure Apps2SD in Tools screen > Check SD Card and tick Set on Boot.
Much simpler.
Click to expand...
Click to collapse
But this doesnt require root,usefull for silly bootloader locked htc phones

Related

[Q] Install apps to sd by default on Non Rooted Phone

Hi,
I have a Spice Mi-270 dual sim android 2.2 phone.Searching on the internet I came across an article where the procedure for installing the apps by default to sdcard is possible for non rooted phones.I tried it but when I type "adb devices" I get a blank list under list of devices attached.My phone came with the usb drivers, I have installed that.Tried installing Google USB driver package,revision 4.When the phone is plugged in get the message on the phone "USB Debugging started".Windows device manager shows "Android Phone" > Android Composite ADB Interface.Still my device is not detected with the "adb devices" command.I am using winxp pro sp3 32bit.Please Guide!
(If I have posted in the wrong section please inform me where to post)
I probably won't be helping. But on my un-rooted HTC Sensation i just have an app called app2sd. After i installed an app, if it's supported, i copy it to sd card.
Can't you just use that and save the hassle?
try this apps2sd
I have already installed the apps2sd but as said one can move the apps to sd if and only if supported by the app.Besides Android 2.2 by default provides the option to supported apps.How do I change the default install path to sd without rooting?
sounds like u need to root it and add the a2sd+ scripts OR root, install rom with a2sd+ and partition sd card accordingly.
do0b said:
sounds like u need to root it and add the a2sd+ scripts OR root, install rom with a2sd+ and partition sd card accordingly.
Click to expand...
Click to collapse
Sorry doOb but I am not looking at rooting my phone but use the option
adb shell pm setInstallLocation 2.
Why not root your phone? At the end or the day you still can unroot it. It's not like you flash to a different Rom and lost your stock Rom.
As far as I know your running froyo you already have move app to SD at the manage application in setting. There are free market app that can help you to move apps to SD with simple clicks without going to setting with the slow loading.
I'm afraid there are no default to app to SD unless you root your Rom and flash a2sd script like darktermor to make the whole process default. Better still, you also need to partition your card with an ext partition for it to work.
By the way... You should be able to adb shell your phone with a proper setup from your pc. You need to look for adb shell howto.
Sounds like your doing it from the wrong folder at cmd if your using windows. Try start cmd from the folder with adb.exe or set your system path to include the folder with adb.exe. I'm not with a pc now, I can't direct you. You have to look for it on what I mean.
By the way, can you also post the link for the article you found?
I have friends that can't root their phone. E.g HTC wildfire s
Sent from my HTC Legend using XDA App
darryl_co said:
Hi,
I have a Spice Mi-270 dual sim android 2.2 phone.Searching on the internet I came across an article where the procedure for installing the apps by default to sdcard is possible for non rooted phones.I tried it but when I type "adb devices" I get a blank list under list of devices attached.My phone came with the usb drivers, I have installed that.Tried installing Google USB driver package,revision 4.When the phone is plugged in get the message on the phone "USB Debugging started".Windows device manager shows "Android Phone" > Android Composite ADB Interface.Still my device is not detected with the "adb devices" command.I am using winxp pro sp3 32bit.Please Guide!
(If I have posted in the wrong section please inform me where to post)
Click to expand...
Click to collapse
Sounds like the original issue was the pc not seeing the device....I know this may be elementary, but do you have it in "charge only" mode and not in the disk drive mode?
"Sounds like your doing it from the wrong folder at cmd if your using windows. Try start cmd from the folder with adb.exe or set your system path to include the folder with adb.exe." - pysionx
I am starting cmd from the folder with adb.exe that laocated in platform-tools.If I was not doing so I would get the error " 'adb' is not recognized as an internal or external command operable program or batch file." and on typing adb devices in the cmd prompt I would not get the answer "list of devices"
pysionx - "By the way, can you also post the link for the article you found?"
Unfortunately no as this is my first post I am not allowed by the administrator to do so.Please Check out the attachment.Sorry for giving you the trouble to download attachment.
pfroyjr - "Sounds like the original issue was the pc not seeing the device"
If the pc does not see the device how do I get in Windows device manager showing "Android Phone" > Android Composite ADB Interface.
pfroyjr - "I know this may be elementary, but do you have it in "charge only" mode and not in the disk drive mode?"
I do not have it in "charge only" mode but in the disk drive mode, USB debugging started is the message received in the notification area.
But this causes hw to crash!
root_toor said:
But this causes hw to crash!
Click to expand...
Click to collapse
I sorry but I did not understand. what causes hardware to crash?
Google "Spice driver" I'll find a link if you can't. Windows is odd with its drivers sometimes. I remember the first time I ever used SDK I had to remove the default drivers and install the one from HTC but recently just installing the driver was good enough and I've only used adb and not the SDK. just a suggestion.
Sent from my HTC Glacier using xda premium
EDIT: I forgot which posting I was replying to, sorry....
I found THIS which sounds like it's an issue with the phone and maybe not the same Android OS that everyone else has....just what I read. Happy Googling my friend. Sounds like it's a cool device, just not quite up to par with adb.
I do have the drivers of my mobile Spice Mi-270 which was shipped along with the phone. The drivers files are of similar names with that of the google usb drivers for android except for the file versions.
Thanks pfroyjr for the link.It seems it is the problem with the phone itself as I am not the only one facing the problem with adb comand.
darryl_co said:
I do have the drivers of my mobile Spice Mi-270 which was shipped along with the phone. The drivers files are of similar names with that of the google usb drivers for android except for the file versions.
Thanks pfroyjr for the link.It seems it is the problem with the phone itself as I am not the only one facing the problem with adb comand.
Click to expand...
Click to collapse
Best advice is stay active searching for an answer...someone will eventually figure it out
I think it can be done with the help of adb .
Just run command from the folder having adb.exe file after connecting your phone in USB Debugging Mode.
"adb shell pm setInstallLocation 2"
YOu can change it to default by the following command.
"adb shell pm setInstallLocation 0"
Type the commands without quotes....
Hope it helps!!!
darryl_co said:
I have already installed the apps2sd but as said one can move the apps to sd if and only if supported by the app.Besides Android 2.2 by default provides the option to supported apps.How do I change the default install path to sd without rooting?
Click to expand...
Click to collapse
Hey try this adb command from the directory having adb.exe file after connecting your phone to your pc by enabling USB Debugging Mode on it.
adb shell pm setInstallLocation 2
You can change it back to default by this command ..
adb shell pm setInstallLocation 0
Hope it helps you ...
yagya said:
Hey try this adb command from the directory having adb.exe file after connecting your phone to your pc by enabling USB Debugging Mode on it.
adb shell pm setInstallLocation 2
You can change it back to default by this command ..
adb shell pm setInstallLocation 0
Hope it helps you ...
Click to expand...
Click to collapse
when I type "adb devices" I get a blank list under list of devices attached.When my phone is not listed how would the adb shell pm setInstallLocation command work ?
but The pc does see the device and I get in Windows device manager showing "Android Phone" > Android Composite ADB Interface.
Try to install universal root/z4root/any other rooting app and shell commander in your phone then root your device temporarily (temporary root means root will be removed when you reboot)with universal root asn then in shell commander type the commands
su
pm SetInstallLocation 2
and then you can unroot your phone
Also if you want to change back do the same but change 2(externel) to 0(auto)
Hope it helped you!!!
---------- Post added at 09:34 PM ---------- Previous post was at 09:33 PM ----------
Try to install universal root/z4root/any other rooting app and shell commander in your phone then root your device temporarily (temporary root means root will be removed when you reboot)with universal root asn then in shell commander type the commands
su
pm SetInstallLocation 2
and then you can unroot your phone
Also if you want to change back do the same but change 2(externel) to 0(auto)
Hope it helped you!!!
yagya said:
Try to install universal root/z4root/any other rooting app and shell commander in your phone then root your device temporarily (temporary root means root will be removed when you reboot)with universal root asn then in shell commander type the commands
su
pm SetInstallLocation 2
and then you can unroot your phone
Also if you want to change back do the same but change 2(externel) to 0(auto)
Hope it helped you!!!)
Click to expand...
Click to collapse
I installed universal androot and rooted the phone.
Instead of shell commander I installed Move2SD Enabler.The move2sd had three radio buttons Auto, Internal and External.Initially it displayed the radio button on Auto.I selected External and clicked apply.Now it shows External.Then I unrooted the phone.In Apps2SD I found many apps that were listed under phone only under movable apps.Few questions do arise
1.If I restore to factory defaults will the installation to external storage be resetted?
2.Whenever I Install new apps it gets installed in the phones internal storage and the I have to move to sd.Why is that so?
3.Even after moving to the sd some amount remains in the phone internal storage.why?
4.Can I check using shell commander if the install location has changed? what is the command? Do I have to root the phone again to use the command?
darryl_co said:
I installed universal androot and rooted the phone.
Instead of shell commander I installed Move2SD Enabler.The move2sd had three radio buttons Auto, Internal and External.Initially it displayed the radio button on Auto.I selected External and clicked apply.Now it shows External.Then I unrooted the phone.In Apps2SD I found many apps that were listed under phone only under movable apps.Few questions do arise
1.If I restore to factory defaults will the installation to external storage be resetted?
2.Whenever I Install new apps it gets installed in the phones internal storage and the I have to move to sd.Why is that so?
3.Even after moving to the sd some amount remains in the phone internal storage.why?
4.Can I check using shell commander if the install location has changed? what is the command? Do I have to root the phone again to use the command?
Click to expand...
Click to collapse
Restoring factory default settings will reset default install location to auto.
Since you used move to sd enabler it only makes all apps movable to sd but doesn't move them automatically.
System apps and Those apps that don't support app to sd by default can't be completely moved to sd card
Yes, you can check using shell commander but you need to riot you phone to use the command.
pm getInstallLocation
(returns default install location)
pm setInstallLocation 2
(installs app direct to external storage)
Sent from my GT-S5570 using XDA Premium App

[Q] Application Startup

Hi,
I have moved some app to my SD Card. I have viewed that these apps (for example WhatsApp) are not start automatically at phone boot. So I have to start them manually.
How can I solve this issue?
I have executed this command (on Windows 7) to allow my phone to save app on sd.
--
# adb shell pm setInstallLocation 2
--
Thank's for answer
theH4mmer said:
Hi,
I have moved some app to my SD Card. I have viewed that these apps (for example WhatsApp) are not start automatically at phone boot. So I have to start them manually.
How can I solve this issue?
I have executed this command (on Windows 7) to allow my phone to save app on sd.
--
# adb shell pm setInstallLocation 2
--
Thank's for answer
Click to expand...
Click to collapse
Apps on SD card will not start on phone boot. It is the way android is programed

Install APK Without Fully Booting Device

Is there a way to install APK's from any of the bootloader menus? I can install through ADB if the device is fully booted & I have enabled USB Debugging. Is that the only way?
If that IS the only way, is there a way to reset the device's "first boot" attribute back to true after the first boot, so that the manufacturer's setup software runs on the next boot?
get into recovery,run adb,type "adb install app.apk /data/app/app.apk" for installing as user app,or type "adb install app.apk /system/app/app.apk" to install as system app..
Sent from my LT18i
Awesome, I don't understand but I will try it!
If you have shell connection to the STB
Put the apk on an SD card
You must have busybox too (some devices have the applet)
while in bootloader busybox install ApkPath/ApkName /data/app/ApkName
so the first path is the sd card

How to Install Apps to the SD Card by Default on Android Phones

There are certain tricks to regain a couple of MB here and there, like clearing the cache that some applications use, but for those with a taste for apps and games, the phone storage limitation has been quite a nuisance. Android users with root access have been able to enjoy the Apps2SD utility, but getting it to work is a comparatively complicated process. Frozen yogurt to the rescue!
To install an app to the SD card on Android, the application itself needs to support it. In my experience though, most current apps can be moved to the external storage. However, the system installs all new applications on your device’s internal memory by default, except for those that explicitly request external installation. Luckily, it’s possible to make your Android 2.2+ phone put apps on the SD card by default instead. Here’s how:
1. First you have to enable USB debugging on your Android device from Settings > Applications > Development > USB debugging.
2. Now you need to download and install the Android SDK on your computer from the attached file. 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 http: 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.
3. 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.
4. 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.
5. 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 2. You’re done! Android will now install apps to the SD card by default.
6. To switch back to storing software on the internal memory, enter adb shell pm setInstallLocation 0.
problem
darkangel_ said:
There are certain tricks to regain a couple of MB here and there, like clearing the cache that some applications use, but for those with a taste for apps and games, the phone storage limitation has been quite a nuisance. Android users with root access have been able to enjoy the Apps2SD utility, but getting it to work is a comparatively complicated process. Frozen yogurt to the rescue!
To install an app to the SD card on Android, the application itself needs to support it. In my experience though, most current apps can be moved to the external storage. However, the system installs all new applications on your device’s internal memory by default, except for those that explicitly request external installation. Luckily, it’s possible to make your Android 2.2+ phone put apps on the SD card by default instead. Here’s how:
1. First you have to enable USB debugging on your Android device from Settings > Applications > Development > USB debugging.
2. Now you need to download and install the Android SDK on your computer from the attached file. 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 http: 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.
3. 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.
4. 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.
5. 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 2. You’re done! Android will now install apps to the SD card by default.
6. To switch back to storing software on the internal memory, enter adb shell pm setInstallLocation 0.
Click to expand...
Click to collapse
first of all i get message that the command is not recognized and it should be "pm set-install-location 2" so i do that and nothing changes.i have the lg l70 unrooted.when i "get-location..." it return 2 external but apps get installed to internal and most preinstalled apps like google apps are greyed out to move to sd.Help?
There are quite a few different apps that you wouldn't want to install there such as home launchers, widgets, and keyboards, just to name a few.
1 more
now its telling me error no space when i try to install apps from store but in settings it says there is space,like 600 mb omg
answer
To answer my own question, after setting location to 2 i can move some apps to sd but after that i need to set back to 0 to be able to install apps.Hope it helps somebody.
metro l70 kitkat 4.4

Is it possible to install apps to SD in Android 4.1 of Samsung Galaxy Grand I9080L?

I've been trying to find a "solution" for having the ability to install apps to SD. I don't want to root my phone (yet).
I rooted a phone succesfully in the past, but now I'm trying to be a more "common" user.
Is there a possibility of installing a cracked or invented update that let users install apps into SD? (without rooting)
I believe that I'm in a dead end... but maybe someone has a clue on this.
Thanks.
Sent from my GT-I9080L using xda app-developers app
JuanP33 said:
I've been trying to find a "solution" for having the ability to install apps to SD. I don't want to root my phone (yet).
I rooted a phone succesfully in the past, but now I'm trying to be a more "common" user.
Is there a possibility of installing a cracked or invented update that let users install apps into SD? (without rooting)
I believe that I'm in a dead end... but maybe someone has a clue on this.
Thanks.
Sent from my GT-I9080L using xda app-developers app
Click to expand...
Click to collapse
Well there is a method to do this but its pretty long.
Steps:
1. Download Android SDK and unzip the contents to a folder.
2. Enable “USB debugging Mode” in your android device. To do this, go to Settings -> Applications -> Development and enable ‘USB debugging’
3. Connect your device to your computer in “charge only” or similar modes but NOT in ‘USB Storage’ mode.
4. Go to the folder where you have unzipped Android SDK and navigate to to ‘sdk’ folder
5a. Windows users: Go to ‘platform-tools folder. Hold down SHIFT key and right-click anywhere in the folder. From the pop-up menu, select ‘Open command window here’. This will open up a command prompt screen.
5b. Mac users: right-click ‘platform-tools and choose [New Terminal At Folder]
6. Now, in the command prompt window, Windows users:
type: adb devices
Mac users:
type: ./adb devices
and press enter. You will see the name of the device connected at the moment.
8. Then windows users type:
adb shell
Mac users type:
./adb shell
and press enter
9. Next, type:
pm setInstallLocation 2
and press enter. (If this command fails, use this: pm set-install-location 2)
10. Done!
11. To verify, type:
pm getInstallLocation
and press enter. If you see an output ” 2 [external] ” means that the process is successful.
Now, in your device, go to settings->Applications->Manage Applications->On SD card (in some devices it may be USB Storage), and check the apps that you would like to move to your SD card. Hope this helps
Download Android SDK Link:developer.android.com/sdk/index.html
Warning.!!
Some apps shouldn’t be installed to your SD card and should remain installed on the internal storage. The external storage is unavailable when your Android device is mounted on your computer, so apps that remain running all the time should be left on your internal storage. Widgets, launchers, animated wallpapers, and anything you want to use while your Android’s SD card is mounted on your computer should be left on the internal storage.
I did that yesterday but didn't change a thing (even though the default storage IS set to external).
Sent from my GT-I9080L using xda app-developers app
I have the same problem with my phone. I think it is a firmware constriction. The only way i found to use sd card for apps was via link2sd but that requires root.
Sent from my GT-S7562 using XDA Premium 4 mobile app
Why Don't You try this app? I haven't tried it though.
https://play.google.com/store/apps/details?id=appinventor.ai_ccskytpk.forcetosd&hl=en

Categories

Resources