linkdata2sd  Update of "linkdata2sd"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.


Artifact ID: 07cdd64270e4bf40a2fbdb999fe0fb3a5ae5753a
Page Name:linkdata2sd
Date: 2016-03-21 01:49:44
Original User: brau
Parent: 7b62921eef4e2f1fde89f197701ee3a4eebc458f


is a script designed to run inside Android phones to migrate data/cache directories from internal storage to sd card.

Assuming you have Link2sd installed in your phone, this script covers the data handled by premium licence only.

You are required to have partitioned the sd-card and have /data/sdext2 mounted. If you don't know how to do this you should start by booting TempCWM to partition the sd (backup first!), and let Link2sd detect the new partition.

This is not an app, it's a sh script. It was tested on Android 2.3. Aside from that there are no dependencies. I don't know if it works on newer devices.

To run it you could install a terminal emulator app or login into the device via a ssh server app.

Once in terminal

$su      (enter root mode, if not already)
#sh    (wherever the script is located)

In default mode the app prompts the installed apps' data/cache sorted by size (in decreasing order). From here on you can:

  • move the data to/from the sd card (link/unlink)
  • launch a shell inside the data directory (sh)
  • make a snapshot of current data (snap)
  • reuse a previous snapshot
  • delete the data (delete)

Sample session

This sample shows aquamail and whatsapp apps data linked in sdcard preceded by the listing of all the snapshots taken. In the aquamail case, the linked snapshot is 20160319_041426.

Filesystem             Size   Used   Free   Blksize
/data                  189M   153M    36M   4096
/data/sdext2           914M   149M   765M   1024

 * 20160319_041426
org.kman.AquaMail [8.4M, sd] (unlink/delete/sh/VERSION/snap/ren): [4.0K, phone] (link/delete/sh/snap): 

 * 20160319_041534
com.whatsapp [869.0K, sd] (unlink/delete/sh/VERSION/snap/ren):
com.sec.pcw.device [4.0K, phone] (link/delete/sh/snap): [4.0K, phone] (link/delete/sh/snap): [4.0K, phone] (link/delete/sh/snap): [4.0K, phone] (link/delete/sh/snap):