Saturday 17 September 2011

[TUT] Applying Link2SD [Froyo Only] by magictrick.in





NOTE: Link2SD works only on Froyo


[B]Features:
Creates and removes link for apk, dex and lib files of the applications 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 you can select which files of the application will be linked and moved to SD card. Apk, dex and lib files can be moved and you can select all three or any two of three or even only one of them.
Then, according to your selection, Link2SD moves apk file, dalvik-cache (.dex) file and lib files (.so) to SD card's second partition and creates symbolic links in original directories.

Note: On Android 1.6 and 2.1, shortcut and the widget of the app should be re-added to homescreen if you move the apk file.

Can I remove the links and put application files back to phone?
Yes, just click on application that is linked and press "Remove Link" button. You can select which files of the application will be unlinked and moved back to internal storage.
Then, Link2SD removes the symbolic links and moves the files you selected to original directories.

What happens if I uninstall a linked application?
If you uninstall a linked application apk, dex and lib 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, dex and lib files will be placed in the internal memory at first and then they will be t works:automatically relinked by Link2SD in the background.
You don't have to manually relink after updating applications.
Note: Since the app is linked again, On Android 1.6 and 2.1, shortcut and the widget of the app should be re-added to homescreen if the apk file is linked.

Some points
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's private data directory; it moves apk, dex (dalvik-cache) and lib files.

How to Partition SD Card for Link2SD using Minitool Partition Wizard Home Edition

This tool is compatible with Windows 2000/XP/Vista & Windows 7
requirements: USB SD Card reader.
pull SD card from phone, insert into USB SD Card reader. Windows should report new drive and content of the drive should be visible.

step 1: delete old partitions on SD card
Note: this partition manager QUEUES the operations. So nothing is deleted and changed UNTIL you click "APPLY" and then confirm by clicking "OK".
WARNING!
Make sure you are deleting partition on SD card! (not your hard drive for example)
This step deletes everything on SD card, so backup files first!
Dont be afraid, just read everything and think twice before selecting correct drive.
Do you see three gray icons on the bottom? Under each of them the capacity of each drive is listed, and SD CARD has slightly different icon.
Hard drives on the screenshot have 465.8GB and 74.5GB, and on the bottom, the SD card, with 3.8GB capacity.






step 2: create FAT or FAT32 partition
select "Create As": PRIMARY
Select "File System:" FAT when you have 2GB or smaller card.
Select "File System:" FAT32 when you have 4GB or greater card.




step 3: create ext2 or ext3 or swap partition*

select "Create As": PRIMARY
Select "File System:" ext2 - for App2SD

If you want to create both: do not assign all the space for the first one this way you will have space for creating second one.




step 4: finish
finally, click "apply" button on top left corner.
partitions will be created and card will be formatted.


How to Apply Link2SD:

1. install Link2SD
2. run Link2sd and select Ext2
3. Phone Reboot
4. After booting the phone run Link2SD
- move all apps to phone that are saved in SD
- refresh the list
- click the apps then create link (dalvik should also remain checked)
- Reboot
- All files on SD Card will be removed in partitioning process.
- Check your internal memory storage capacity



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


Minitool Partition Wizard
http://www.partitionwizard.com/free-...n-manager.html

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...