• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Force App Install to Internal Memory?

lexluthor

Android Expert
May 15, 2010
4,157
402
Not sure if this is a root specific question, but I'll start here.

Is there any way to force all apps to install to the internal memory? We have so much internal memory that I really don't want apps installed on the SD card.

What's even more annoying is if I originally install and app and it goes to the SD card, by default, then I move the app to internal memory manually, if I then update the app, it goes back to the SD card.

Is there a way to tell apps that support apps to App2SD and are coded to default to the SD card to still install to internal memory?
 
Is there any way to force all apps to install to the internal memory?

Is there a way to tell apps that support apps to App2SD and are coded to default to the SD card to still install to internal memory?

Lex,

Don't think I have a concrete answer, but I have some background info that might shed a little more light on your issue / question.

Beginning with Android 2.2 / Froyo, the AndroidManifest.xml for each app can contain an android:installLocation attribute in the manifest element that can have a value of either "preferExternal" or "auto".

Here's the description (taken from App Install Location | Android Developers):

If you declare "preferExternal", you request that your application be installed on the external storage, but the system does not guarantee that your application will be installed on the external storage. If the external storage is full, the system will install it on the internal storage. The user can also move your application between the two locations.

If you declare "auto", you indicate that your application may be installed on the external storage, but you don't have a preference of install location. The system will decide where to install your application based on several factors. The user can also move your application between the two locations.


(There's also a lot of other good / interesting information in the above linked page).

Anyway, it seems to me that since the content of the AndroidManifest.xml file in the app's .apk controls where the app can be installed, it doesn't seem likely that you can dynamically modify the AndroidManifest.xml file's android:installLocation attribute's value, re-pack, and re-sign it just prior to being installed.

Also, the Android package installer's APIs are no longer public (ref. Google, Android, and Private APIs. Al Sutton's Blog), so it must be that the CyanogenMod team has developed their own app installer to affect where an app eventually gets installed.

Hope that helps a little.

Cheers!
 
Upvote 0
I just found this thread.
[APP][Froyo][root] Move2SD Enabler - ex SetInstallLocation - xda-developers
Seems like the main use is to force install to SD Card, but looks like it also has an option to force install to internal memory.

Somewhere in the middle of the thread, there's a link to a beta version that works on gingerbread.

Little scared to try it though.

Thoughts?
 
Upvote 0
I just found this thread.
[APP][Froyo][root] Move2SD Enabler - ex SetInstallLocation - xda-developers
Seems like the main use is to force install to SD Card, but looks like it also has an option to force install to internal memory.

Somewhere in the middle of the thread, there's a link to a beta version that works on gingerbread.

Little scared to try it though.

Thoughts?

Says it for Froyo only (although I didn't read through each page of the thread to see if the OP got it to work for GB or if a GB user had any success with it).

You're not on Froyo still are you, Lex?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones