FORUMS
Remove All Ads from XDA

[APP] Link2SD - *choose* which apps to move to SD on Eclair

4,537 posts
Thanks Meter: 5,232
 
Post Reply Email Thread
This is a thread about a brilliant application, developed by xda-member bakpinar.

You can watch the original thread and download the application here!


Quote:
Originally Posted by bakpinar

Instead of moving all applications to SD card with app2sd, I want to move only selected applications.
Because I don't want to move my launcher, soft keyboard and dialer application to SD and make them unavaliable on boot if my SD card has problem or not inserted.
In order to resolve this I developed an application called Link2SD.

The idea behind is same, linking to SD card's second partition but differs in two ways.

One, instead of linking /data/app folder (that means moving all applications), you can select applications that you want to move.

Two, it's an application which means has a user interface. You can manage your applications, create or remove links with just one click.

Features:
Creates and removes link for application you select
Lists applications, shows their link status
Sorts and filters applications
Displays available space information of internal storage, SD card and SD card 2nd partition.

What you need:
root permission.
a second partition on your SD card. You should have two partitions on SD card and both should be primary.

The first FAT partition is your standard SD card storage. The second partition is used for application files and can be ext2, ext3, ext4 or FAT32.
ext4 is the latest ext format but several ROMs have issues with it while fewer have issues with ext3 and ext2. FAT works on all ROMs.

I use free "MiniTool Partition Wizard Home Edition" (windows application) for this.
You can create the second partition without repartitioning, formatting or deleting your existing partition with this tool. Connect your SD card to PC with a card reader or phone itself and make it visible as a drive. Open Minitool select this drive and resize down FAT partition, you will see an unallocated area at the end of the card. Create ext2, ext3 or FAT32 partition in that area (create as primary, not logical), click apply. Unplug from the PC and reboot the phone. (To be on the safe side backup your data before starting)
That's all. Just install Link2SD, it will do all necessary. No need to copy files or run scripts.*
* Some phones lack the ext2, ext3 or ext4 file system support and you may get mount errors like "no such device", "invalid argument". These phones need a matching ext2.ko or ext3.ko modules and even some additional modules to be able to mount.
Using FAT32 on the second partition will eleminate such problems, because FAT32 is supported on all phones.

How it works:
Link2SD mounts the second partition of your SD card as /data/sdext2 and makes OS mounts it at boot time.

When you select an application and press "Create Link" button it moves apk file and dalvik-cache file (if you select) to SD card's second partition and creates symbolic links in original directories (/data/app and /data/dalvik-cache).

Note: After this step, application icon disappears from the phone on Android 1.6 and 2.1, but after reboot you can see and run without problems. On 2.2+ this is not the case.

Can I remove the link and put application back to phone storage?
Yes, just click on application which is linked and press "Remove Link" button. Link2SD removes symbolic links and moves apk and dex files to orginal directories.

What happens if I uninstall a linked application?
If you uninstall a linked application apk and dex files will be automatically deleted from the SD card by Link2SD.

What happens if I update a linked application?
If you update a linked application new apk and dex files will be placed in the internal memory at first and then they will be automatically relinked by Link2SD in the background.
You don't have to manually relink after updating applications.
Note: Since it is linked again application icon disappears from the phone on Android 1.6 and 2.1, you need to reboot.

Android Market and Link2SD
Android Market doesn't see applications that have been link to SD card. Because vending process marks them as "UNINSTALLED" when the link created.
To repair their state use "Market Fix" menu.
This will synchronize Android Market database with installed applications and missing market apps will be repaired.
Note: Before starting, make sure market is not running and you're not downloading anything from the market.

Some points
If you applied App2sd, please uninstall App2sd and revert to original. Otherwise you cannot create link with Link2SD. Link2SD detects this and warns you at startup.
Link2SD detects applications which are already moved to SD card on Android 2.2+ natively and disables "create link" for them.
System applications should not be linked to SD card. Link2SD does not allow these applications to be linked.
When you connect your phone to PC as mass storage, Android unmounts FAT partition but the second partition remains mounted. Therefore linked applications are not affected and can be run without problems.
Link2SD does not move application data directory, it moves apk and dex (dalvik-cache) files.

DISCLAIMER: It is made available for use at your own risk with no warranty of any kind.

It's avaliable on Android Market. Search the market for "Link2SD" or scan the QR here.

UPDATE:
1.5.1
- fixed background message
1.5.0
- added ext3, ext4 and FAT32 support for the second partition of SD card
- added refresh menu
- added "Not Linked" filter option
- changed App2sd checking
- added support in linking protected (/data/app-private) apps
- added support in detecting and mounting the second partition for some roms
- some bugfixes
1.4.2
- disabled automatic Market status fix after linking
1.4.1
- added option to link dalvik-cache (.dex) files along with apk files
- added automatic re-linking after app upgrade
- added automatic deleting from SD card after app uninstall
- added "Reinstall" button
- added "Link dalvik-cache files" menu which links dex files of all existing linked applications all at once
- added automatic Market status fix after linking
- better froyo support
- added dex file size and link status information
1.3.1
- added support in detecting and mounting ext2 partition for some roms
- some minor bugfixes
1.3.0
- added uninstall feature which deletes apk file also from ext2 for linked apps
- added launch and manage buttons
- added detailed size information of applications
- added support in detecting and mounting ext2 partition for some roms
- some minor bugfixes
1.2.1
- added info message to show which applications have been repaired after "Market Fix"
1.2.0
- added "Market Fix" feature to repair missing Market applications
- added support in detecting and mounting ext2 partition for some roms
- removed "ext2 found" info message at startup
- some minor bugfixes
1.0.5
- added support for some roms which install-recovery.sh is not operational
- added ext2.ko module installation on boot (if exists) for Motorola phones
1.0.4
- changed mount method at startup to be much safer
- some minor bugfixes
1.0.3
- initial release

I find that it is working perfectly on X10, on stock SE 2.1 ROM!

But be careful:

1. If you have an application already installed and used, and decide to use Link2SD to move it to your SD, it probably will not work, as in it will force-close after a few seconds of opening, it will not function properly (VidTrim for example, could not save trimmed videos) or not open at all. BUT if you install an application and DON'T OPEN IT, but immediately use Link2SD, move it to your SD and reboot, it will work perfectly fine!

2. If you are missing Market links after moving apps to your SD, Titanium Backup's Market Doctor restores them perfectly!


THE ABOVE ISSUES WERE ADDRESSED AND NOW EVERYTHING WORKS GREAT!!!!
The Following 12 Users Say Thank You to iridaki For This Useful Post: [ View ] Gift iridaki Ad-Free
 
 
23rd February 2011, 04:59 PM |#2  
Senior Member
Flag toronto
Thanks Meter: 3
 
More
i jusut fouund this and it looks like it could be really useful because i only have 200ish megs left on my initernal memory and i want to have as much as possible (because i believe it will help performance?)
so will i have to delete and reinstall all of the apps i want put on my sd card?
23rd February 2011, 07:32 PM |#3  
iridaki's Avatar
OP Retired Forum Moderator
Flag Edinburgh, Scotland
Thanks Meter: 5,232
 
Donate to Me
More
Quote:
Originally Posted by tdiddy1987

i jusut fouund this and it looks like it could be really useful because i only have 200ish megs left on my initernal memory and i want to have as much as possible (because i believe it will help performance?)
so will i have to delete and reinstall all of the apps i want put on my sd card?

You have enough space, and unless you fall down to 10-15 MB left, you won't notice any difference in performance.
But still, you can use this app, as long as you partition your SD first!
And yes, you will need to reinstall!
23rd February 2011, 07:58 PM |#4  
Senior Member
Thanks Meter: 21
 
More
I don't understand this app. With Apps2SD you can pick and choose which apps move.
23rd February 2011, 08:31 PM |#5  
iridaki's Avatar
OP Retired Forum Moderator
Flag Edinburgh, Scotland
Thanks Meter: 5,232
 
Donate to Me
More
Quote:
Originally Posted by madmurdoch

I don't understand this app. With Apps2SD you can pick and choose which apps move.

That's only for the native apps2sd on Froyo.
With this app, you can move the apks of every app you choose on an ext partition on your SD.
The Following User Says Thank You to iridaki For This Useful Post: [ View ] Gift iridaki Ad-Free
23rd February 2011, 09:43 PM |#6  
oliverpeabody's Avatar
Member
Flag Spruce Grove
Thanks Meter: 3
 
More
Can u confirm this working for 2.2 and/or cm roms
24th February 2011, 12:23 AM |#7  
Senior Member
Flag toronto
Thanks Meter: 3
 
More
Quote:
Originally Posted by My_Immortal

You have enough space, and unless you fall down to 10-15 MB left, you won't notice any difference in performance.
But still, you can use this app, as long as you partition your SD first!
And yes, you will need to reinstall!

so iv done a bit of testing now and im not soo sure why u were having that problem

i tried ur idea (uninstall and reinstall without opening and then link) with angry birds and it worked

but just for the sake of it i tried to link a few apps without uninstalling and reinstalling them
i did it with a few games and the cineplex application (a great one for movies here in toronto) and after 2 restarts they are still successfully linked and fully functional
im on the stock 2.1 rom with root jit and xrec
24th February 2011, 01:55 AM |#8  
this app is exactly what i needed and works flawlesly. For now that is ^_^ Also i tested it on some already installed apps and i can confirm that i didnt get an fc

Sent from my X10a on stock 2.1 rooted, jit and dualtouch enabled using XDA App
26th February 2011, 04:26 AM |#9  
Member
Thanks Meter: 4
 
More
Unhappy
Link2SD is not working on my CM 6.1.3 and freeX10 beta4...it displays the SD card format is unsupported and broken,needed to reformat
26th February 2011, 07:47 AM |#10  
davelinders's Avatar
Senior Member
Thanks Meter: 84
 
More
Quote:
Originally Posted by czw2002cn

Link2SD is not working on my CM 6.1.3 and freeX10 beta4...it displays the SD card format is unsupported and broken,needed to reformat

Why not using app2sd?
This program is a sort of app2sd but for 2.1 systems.
You dont need this because you have 2.2 and you can use app2sd.
26th February 2011, 09:38 AM |#11  
Member
Thanks Meter: 4
 
More
Originally Posted by czw2002cn
Link2SD is not working on my CM 6.1.3 and freeX10 beta4...it displays the SD card format is unsupported and broken,needed to reformat

Why not using app2sd?
This program is a sort of app2sd but for 2.1 systems.
You dont need this because you have 2.2 and you can use app2sd.

Yes,i formatted the sd to 1 fat32 and 1 ext2, the problem is if i use both 2.1(with link2sd) and 2.2, after i restore the 2.2 to the system, i need to reformat my SD card in order to use it. the only reason i use the 2.1 is that it has HD video recording and picture taking, Video illusion in 2.2 will have a broken audio in the camcorder.
Post Reply Subscribe to Thread

Tags
link2sd

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes