not the whole app to sd card - G1 Android Development

Hello guys
i just want to know if there is able to transfer some apps to sdcard and some apps stay in the internal memory. i know how to move apps to sdcard and move them back to internal memory, but not all apps to sd card. so any one knows how?
thanks

I don't know the exact command off the top of my head, but couldn't this be done with unionfs? Since it is included in the fs image, it might not be too bad.

Or you could make symlinks (ls) for individual apps maybe? It would still require an ext2 partition and would be a lot messier...

Related

[Q] Internal, External SD card and moving apps + data

I searched about this but I don't really fully understand it yet:
I got an Samsung Galaxy S (rooted) and just bought an 16GB microSD for it and now want to move my apps from the internal phone space to the external SD card.
As far as I understand many of the "bigger" apps like games have two parts.. one executable part and then the data part.
On my /sdcard subfolder (thats the internal sd) for example I have many folders made by apps which include various data (sounds for games etc..).
I would like to move it ALL (the apps executables and the additional data) onto my external SD card (/sdcard/external_sd) - how do I do this and what do I need?
----
My firmware is 2.2 JPO rooted. I understood so far that I need a program like app2sd to move (most) apps and with the ModInstallLocation App I could even get the rest to move over to the external SD right?
But what wonders me: I tried App2SD out for AngryBirds.. or rather used the built-in button in the application details - but still the external_sd folder was empty when I browsed it afterwards. Shouldn't there be something in there now that I moved the angrybirds?
And secondly - what happens with the data thats located in the /sdcard folder? Will those be moved to the /sdcard/external_sd folder automatically when I move an app to the SD or do I have to manually do it. If manually.. does simply moving it from /sdcard to /sdcard/external_sd work and the data is still found or does it get more complicated?
I'm sorry if this is a simple thing, I just want to make sure I fully understand how to move both the app itself and the data onto the external sd.
---
And while I'm at it: Is it also possible to make backups with clockworkmod onto/from the external sd or only the internal? when I made my backups they all got stored in /sdcard/clockworkmod/backup folder.
Thanks for reading, hope someone can explain it to me quick or lead me to a place where its fully explained.
ok so I just noticed that the apps you move seem not to be "visible" on the sd-card but I noticed a change in the free space when I moved some around.
But will this "move" also include those files from the /sdcard (internal SD) directory to the external sd?
zroice said:
ok so I just noticed that the apps you move seem not to be "visible" on the sd-card but I noticed a change in the free space when I moved some around.
But will this "move" also include those files from the /sdcard (internal SD) directory to the external sd?
Click to expand...
Click to collapse
I am wondering the same thing, but about the LG Optimus 2X Speed.
It has an internal SD card. If you mount your own SD it is mounted under //mnt/sdcard/_ExternalSD. How can I install apps to the external SD?
When programs are talking about moving apps to SD, they mean /mnt/sdcard (this is the /sdcard yo are talking about, /mnt/sdcard is its real path).
This means they move the apps from internal system access only memory (i.e. /data or /system) to the user accessable /mnt/sdcard/.
Only apps that are programmed to support this can be moved to /sdcard.
Sadly moving apps to /mnt/sdcard/external_sd (this is the actual SD card that you can remove) is not supported in android 2.2.
Dark3n said:
When programs are talking about moving apps to SD, they mean /mnt/sdcard (this is the /sdcard yo are talking about, /mnt/sdcard is its real path).
This means they move the apps from internal system access only memory (i.e. /data or /system) to the user accessable /mnt/sdcard/.
Only apps that are programmed to support this can be moved to /sdcard.
Sadly moving apps to /mnt/sdcard/external_sd (this is the actual SD card that you can remove) is not supported in android 2.2.
Click to expand...
Click to collapse
Hi,
I know it's an old topic, but what's about android 2.3 or higher? Is it still impossible to move apps to the external SD?
Thanks,
Philippe
I think only custom ROMs like TYPHOON can do this even w/o support build in application. The best is using APP2SD and dont care where the applications are. I have more than 100APPs on my phone now :]

[Q] app get copied to external SD Card rather than internal SD Card

hi, im Geoff.
recently after flashing the stock 4.0.3 ICS firmware, flashing a old bootloader and using my own USB Jig and resetting
the flash counter for kernels, i finally flashed JellyBean 4.1.2 Original Firmware from Samsung. my mobile is Galaxy S2 i9100.
my problem is i recently bought a 16GB micro sd card and inserted it into my phone before i could install any app onto my phone.
then i installed few apps and games from the Google Play Store. then i noticed the external sd card have about 120 mb of used
memory. but i only had about 20 mb of data that i copied onto it that were certain zip files and nothing else. i noticed that when i install
any app, then go to applications and move to SD Card option [which previously copied apps to the internal SD Card/USB storage],
is now actually moving the apps to the External SD Card. So if I unmount the external SD Card or remove it, none of my installed apps appear.
My external SD Card is meant for songs and movies. I want my internal SD Card to store all my apps so that i can remove my External
SD Card when ever i want to and swap it or not use it at all.
I also removed the external SD Card and then installed a new app, then use the move app to SD Card option. I got a error message,
saying something like insufficient memory/space.
my doubt is, apps are trying to be moved to the internal sd card but because they cannot be moved, they are being copied to the
external sd card.
any help is appretiated. btw i have rooted my phone by doing the temporary update of CWM from the stock recovery using the update from
external card method. then i also installed SuperSU. so its rooted and i didn't have to flash a kernel to root.
[update] im gonna provide some new info here:
I have a Android folder in my Internal SD Card [sdcard0]
and ".android_secure" in my External SD Card [extSdCard]
/mnt contains
asec [software files stored on the internal memory/ not internal SD Card or sdcard0]
obb [empty]
secure/asec [software moved using move to sdcard option. these files get copied to the extSdCard and not the sdcard0]
.lfs
and the sdcard and extSdCard links.
If I remove my External SD Card and try to move apps to the Internal SD Card using the move to sdcard button in application settings,
I get the insufficient memory error.
Also when I use the move to SD Card button in Application Settings, it shows the file being moved to the USB Storage [which is supposed to be
the internal sd card or sdcard0], yet it actually is being copied into my external SD Card or extSdCard.
What apps/games?
A lot of app data is stored on SD card, whether the core files and executable are on the internal or not, so that may just be cache stuff etc... One way to check is to remove the SD card then try to run whichever apps, I am willing to bet they still run.
orangekid said:
What apps/games?
A lot of app data is stored on SD card, whether the core files and executable are on the internal or not, so that may just be cache stuff etc... One way to check is to remove the SD card then try to run whichever apps, I am willing to bet they still run.
Click to expand...
Click to collapse
i use the move to sd card for most apps/games. apart from 1-2 apps that dont have that option, about 10 apps+games have the option to be moved to the SD Card. And i used that option. But I am positive they got copied to the External SD Card because after I remove the
External SD Card, all the apps disappear.
Also when i then try installing new apps to the phone and then try to move them again [without the external sd card in its slot],
i get the error message of insufficient space/memory.[i have 8GB+ empty space in the internal SD Card]
its really annoying me
TitanHack said:
i use the move to sd card for most apps/games. apart from 1-2 apps that dont have that option, about 10 apps+games have the option to be moved to the SD Card. And i used that option. But I am positive they got copied to the External SD Card because after I remove the
External SD Card, all the apps disappear.
Also when i then try installing new apps to the phone and then try to move them again [without the external sd card in its slot],
i get the error message of insufficient space/memory.[i have 8GB+ empty space in the internal SD Card]
its really annoying me
Click to expand...
Click to collapse
Sounds like you have an option enabled in app settings to install all to SD, check your app settings in system settings.
orangekid said:
Sounds like you have an option enabled in app settings to install all to SD, check your app settings in system settings.
Click to expand...
Click to collapse
I have gone through everything in settings. I cant find any option where I can actually select weather to install all to SD.
I appretiate you trying to help me out. I hope i find a solution to this problem.
Initailly I felt that it cound be some code causing the apps to move to the external sd card instead of the internal one. But after I got
the error message that I have insufficient space [with the external sd card removed ], even tho I have plenty of space, about 8GB+,
on the internal sd card...so I dont think this is due to any code somewhere pointing to install into the external SD card.
I read somewhere that when the internal sd card is full and no more apps can be installed, the new apps go to the external sd card by default.
Something like that is happening to me, except my internal sd card is fine.
I updated my first post with more info to help diagnose and solve the problem. ty to all trying to help me.
bump
[reserved]
I would back up the stuff you want from SD and from your ROM (to your computer), then go to recovery, full wipe + cache + dalvik, then format external SD, then reboot into system, then restore what you want.
orangekid said:
I would back up the stuff you want from SD and from your ROM (to your computer), then go to recovery, full wipe + cache + dalvik, then format external SD, then reboot into system, then restore what you want.
Click to expand...
Click to collapse
hey man ty for not giving up on me ive not been well and then got so busy recently....
i did what you asked. i even accidently wiped the system folder from cwm recovery. it went into a boot loop or whatever it is called.
i re-flashed the official samsung jellybean firmware 4.1.2 on my i9100. then again cleant delvic + cache +used data. yet the problem
persists.
i noticed that the android folder is being created in the internal sd card. but that android folder has very small amount of the app
files stored on it. the major chunk is in android_secure which is only being stord on the external sdcard.
when i go to mnt folder in root i see two folders named asec and secure.
1."asec" contains apps stored on internal memory [not internal sd card]
and 2. "secure" contains a "asec" folder which stores app stored on the external sdcard.
i believe somewhere the code which should point the android_secure folder to the internal sdcard is pointing to store apps on the
external sd card. perhaps you guys can show me how i can change the folder path of android secure. then it will behave like
default, the way is was meant to behave.
You might need to repartition your system.
I'll see else we can come up with later today, in the mean time, try to maybe use TWRP instead and a different ROM
little more info
orangekid said:
You might need to repartition your system.
I'll see else we can come up with later today, in the mean time, try to maybe use TWRP instead and a different ROM
Click to expand...
Click to collapse
when i click move to sdcard in the application settings/menu, it shows USB data filling up.
that USB data is supposed to be my USB drive or my Internal SD Card. And the external sdcard shows up
as 0 KB of data. But actually the files are being copied to the external sdcard and not internal.
now if we think the android system cannot access the internal sdcard, then thats not the matter because
it creates a folder named Android in the internal sdcard and stores the app cache there.
So to me it seems that the android system is confused and actually thinks that the android_secure folder is
mounted on the internal sdcard while it actually is mounted on the external sdcard.
perhaps anyone can link me a guide to move my android_secure folder...
TitanHack said:
perhaps anyone can link me a guide to move my android_secure folder...
Click to expand...
Click to collapse
Facing this problem now.
TitanHack, did you found an answer?

[Q] Link2SD problems on the Galaxy Note 10.1

I own a Galaxy Note 10.1 GT-N8013, it is rooted but I still use the stock ROM. I've been doing some tests to see if Link2SD would solve my storage problem. During these tests I noticed that all the big games I linked to the 2 partition of my SD card aren't really linked, as they still are inside the internal storage!!! After that I also noticed in the storage info that I have an external SD card, a SD card second partition and a SD card strangely similar in size to my internal storage!!!! (image attached to help undestand) Can someone explain this to me and possibly give me a solution!!!
No Problem with LINK2SD!!!
PedroJGT said:
I own a Galaxy Note 10.1 GT-N8013, it is rooted but I still use the stock ROM. I've been doing some tests to see if Link2SD would solve my storage problem. During these tests I noticed that all the big games I linked to the 2 partition of my SD card aren't really linked, as they still are inside the internal storage!!! After that I also noticed in the storage info that I have an external SD card, a SD card second partition and a SD card strangely similar in size to my internal storage!!!! (image attached to help undestand) Can someone explain this to me and possibly give me a solution!!!
Click to expand...
Click to collapse
I'm using LINK2SD and I don't have any problems.
In fact I have close to 370+ apps (user) and except ENCRYPTED apps (~8) all are in EXT SDCARD 2nd partition.
It is TRUE whenever I'm flashing a NEW ROM - I don't see all those 360+ apps because 2nd partition is not mounted yet (because of new flash).
When I click LINK2SD it again re-creates mount scripts and I have all the apps again.
So far so good.
What I'm saying is that whenever I move a big game like Real Racing 3, Link2SD only moves a couple of MB's that are in the internal memory to the SD card's 2 partition, the 1GB of game data stays in the internal SD card!!! My space problem is a result of many games in my note, so I need to move the game data to the SD card!!
I'm a new Galaxy Note 10.1 GT-N8013 owner and need a few pointers on using link2sd. I installed it and understand that since our tablets don't support Apps2Sd natively that we have to move the relevant files to their respective locations onto the 2nd(exFat) partition of the SD card. I understand this however I am not sure how to do it since the tablet can't see this second partition(at least mine can't). If I go to Settings->Storage I can only see my main 16GB internal storage and the 1st(Fat32) partition on the sdcard. No other file managers allow me to see this 2nd partition on the sdcard either. With that in mind, how do I access this 2nd partition to move the linked files to the sdcard?
Dudes, you need to understand, that Link2SD and app2sd DON'T move the big app (game) data from the /mnt/sdcard0/Android folder to your external SD. It only moves the app itself. It was always this case, so I'm wondering about the hype unless you don't have a small app partition.
You have to use Directory Bind or FolderMount for moving big files to external SD. Or simply swap external SD with internal storage.

[Q] SD CARD Partion

Good morning all !!!!
I have done an ample amount of reading and I am still confused by the topic a little bit. And the post I came across were rather old. I just bought a 32G micro SD card for my galaxy s 4g running (wicked rom 9.1). This rom finally has the ability to move apps to SD. My question is, is it really necessary to partition your SD card for any reason??? What are the benefits? I still do not get he concept. I can only find the ways to do it. but not the reason.
*BUMP*
so.... I still did a bunch of reading, and did a SD card wipe attempted the 2nd partition and using link2sd and seems that the 2nd partition is not being recognized? can someone point me in the right direction?
Partitioning the SD card!
Actually, partitioning gives you the benefit of using space in your SD Card to install apps or use app data, instead of cramming it all up in the phones' internal memory. In other words, the Second Partition acts as the internal memory of the phone. So creating a 1 GB partition for a device with low internal memory allows the user to install more apps and doesn't let the internal memory decrease.
Link2SD can only accept partition with the proper scripts, i.e if the SD card has been partitioned with Ext2 then Link2SD must also be given the command for creating scripts as Ext2.
It is usually recommended to partition SD as Ext2 or Ext3 and create scripts on Link2SD as the same.
Hope it helped :good:

[Q] Is there a way to partition for simulated external SD?

On my old phone i used to have an external sd card and all my media is placed on there also other things that i dont want deleted off the phone when i do clean installs of roms... just incase more roms pop out in the future... is there a way to replicate that? Maybe like partition the internal sd? Thanks

Categories

Resources