5,600,292 Members 35,804 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Install Android Apps on SD Card by Default

Tip us?
 
badger_boy
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Dec 2013
Default [Q] Install Android Apps on SD Card by Default

Hi All,

I have the 32GB model of the Samsung 10.1 2014 Note Model #SM-P6000ZKVXAR. I rooted the tablet about a week after I purchased it by flashing one of the ROMs provided by a senior member of the forum, which I have greatly enjoyed. I recently purchased a 64GB Team MicroSDXC card from Newegg because I ran out of room with the internal storage. I was reading on an android blog about changing the default location that apps are installed from the Google Play store from the device's internal storage to the MicroSDXC card. I followed the tutorial (which I can't link to since I am a new member) and the output I got on command prompt said: Error: unknown command 'setInstallLocation' . Below I will provide the command prompt script and output. Thanks in advance for any help with this. I would definitely appreciate being able to directly install to the MicroSDXC card. Here is the script:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\User>C:\Users\User\Downloads\adt-bundle-windows-x86_64-20131030\adt-bun
dle-windows-x86_64-20131030\sdk\platform-tools\adb shell pm setInstallLocation 2

Error: unknown command 'setInstallLocation'
usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [--user USER_ID] [FIL
TER]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm list instrumentation [-f] [TARGET-PACKAGE]
pm list features
pm list libraries
pm list users
pm path PACKAGE
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f]
[--algo <algorithm name> --key <key-in-hex> --iv <IV-in-hex>]
[--originating-uri <URI>] [--referrer <URI>] PATH
pm uninstall [-k] PACKAGE
pm clear [--user USER_ID] PACKAGE
pm enable [--user USER_ID] PACKAGE_OR_COMPONENT
pm disable [--user USER_ID] PACKAGE_OR_COMPONENT
pm disable-user [--user USER_ID] PACKAGE_OR_COMPONENT
pm disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT
pm grant PACKAGE PERMISSION
pm revoke PACKAGE PERMISSION
pm set-install-location [0/auto] [1/internal] [2/external]
pm get-install-location
pm set-permission-enforced PERMISSION [true|false]
pm trim-caches DESIRED_FREE_SPACE
pm create-user USER_NAME
pm remove-user USER_ID
pm get-max-users

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

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

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

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

pm list features: prints all features of the system.

pm list users: prints all users on the system.

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

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

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

pm clear: deletes all data associated with a package.

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

pm grant, revoke: these commands either grant or revoke permissions
to applications. Only optional permissions the application has
declared can be granted or revoked.

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

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

pm trim-caches: trim cache files to reach the given free space.

pm create-user: create a new user with the given USER_NAME,
printing the new user identifier of the user.

pm remove-user: remove the user with the given USER_IDENTIFIER,
deleting all data associated with that user

C:\Users\User>
 
cuccimo
Old
#2  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Mar 2014
I have the same Error trying to change the default installation storage.
Using a Sony Xperia Z1 Compact 4.4.2
 
dr.m0x
Old
#3  
dr.m0x's Avatar
Senior Member
Thanks Meter 693
Posts: 3,082
Join Date: Oct 2010
Location: Auckland
It's because you are on Android 4.3.
That command hasn't worked since gingerbread or something like that.

Sent from my SM-N9005 using Tapatalk
The Note 3 is a beast
 
cuccimo
Old
#4  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Mar 2014
Is there another way without rooting the device?
 
dr.m0x
Old
#5  
dr.m0x's Avatar
Senior Member
Thanks Meter 693
Posts: 3,082
Join Date: Oct 2010
Location: Auckland
Quote:
Originally Posted by cuccimo View Post
Is there another way without rooting the device?
No. It's not really supposed to happen at all in Android anymore. Causes issues. Samsung only added the option back in after the complaints about storage space on the s4.

Sent from my SM-N9005 using Tapatalk
The Note 3 is a beast
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes