FORUMS
Remove All Ads from XDA

[MOD] Move to sd-ext | Simple app, private-app and Dalvik cache to SD solution

460 posts
Thanks Meter: 581
 
Post Reply Email Thread
This is a simple and effective (moves most space hogging folders from internal memory to sd-ext) APP2SD solution.
It moves the following things from /data partition to ext partition on SD card:
/data/app => /sd-ext/app
/data/app-private => /sd-ext/app-private
/data/dalvik-cache => /sd-ext/dalvik-cache
and creates symlinks to new locations in place of original folders.

Solution consists of 2 via recovery flashable ZIPs:
  • sd-ext_patch-signed-vXX.zip - this updates/creates CyanogenMod 7/9 script that mounts SD card ext partition to /sd-ext so /sd-ext can be any ext version (by default it can be only ext3) and installs e2fsck. This must be re-flashed after each ROM update (unless you know that ROM will mount your /sd-ext out of the box).
  • to_sd-ext_patch-signed-vXX.zip - actually moves folders to ext partition on SD card. This can be flashed only after first boot into ROM after wiping /data. It should be re-flashed only in conjunction with wiping /data and /sd-ext.

This mod requires ext2/ext3/ext4 partition on SD card.
Always make full Nandroid backup before flashing this mod or updating ROM with mod installed!

Disclaimer: I am not responsible for anything that may happen as a result of using this mod.

Installation/usage:

To install mod on a working ROM:
  1. Flash sd-ext_patch-signed-vXX.zip via Recovery.
  2. Flash to_sd-ext_patch-signed-vXX.zip via Recovery.

After updating ROM:
Re-flash sd-ext_patch-signed-vXX.zip without booting into updated ROM.

After wiping /data from Recovery:
  1. Delete moved folders from /sd-ext (in most cases you will want to do this by wiping /sd-ext from Recovery).
  2. Boot into your ROM.
  3. Re-flash to_sd-ext_patch-signed-vXX.zip via Recovery.

This mod is tested with CyanogenMod 7 (7.1 by mik_os and 7.2 official builds) and CyanogenMod 9 by hephappy and Amon RA recovery 3.0.6.

If you are using Clockworkmod Recovery see this post.
Attached Files
File Type: zip sd-ext_patch-signed-v11.zip - [Click for QR Code] (190.9 KB, 6509 views)
File Type: zip to_sd-ext_patch-signed-v10.zip - [Click for QR Code] (124.9 KB, 5417 views)
The Following 86 Users Say Thank You to DavisNT For This Useful Post: [ View ]
 
 
23rd May 2012, 01:58 AM |#2  
DJBhardwaj's Avatar
Recognized Contributor
Flag Delhi
Thanks Meter: 2,591
 
Donate to Me
More
+1
Is this mod developed by you?
23rd May 2012, 06:30 AM |#3  
DavisNT's Avatar
OP Recognized Developer
Flag Riga
Thanks Meter: 581
 
Donate to Me
More
Quote:
Originally Posted by DJoptimus-One

Is this mod developed by you?

Yes
The Following 6 Users Say Thank You to DavisNT For This Useful Post: [ View ]
23rd May 2012, 08:23 AM |#4  
DJBhardwaj's Avatar
Recognized Contributor
Flag Delhi
Thanks Meter: 2,591
 
Donate to Me
More
Quote:
Originally Posted by DavisNT

Yes

Nice work, I'm surely gonna try
Keep up.
The Following 2 Users Say Thank You to DJBhardwaj For This Useful Post: [ View ] Gift DJBhardwaj Ad-Free
23rd May 2012, 07:31 PM |#5  
aayushARM's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 50
 
More
Good work here!! Really nice to see some REAL development here
Will try it and report soon.........

Sent from heaven, wandering with Steve Jobs
24th May 2012, 05:47 AM |#6  
FitAmp's Avatar
Senior Member
Flag Terrace
Thanks Meter: 695
 
More
Any feedback yet? Would love to give it a try :thumbup:

Sent from my LG-P500 using XDA
24th May 2012, 01:18 PM |#7  
thachtunganh's Avatar
Senior Member
Flag Hà Nội - Hanoi
Thanks Meter: 1,982
 
More
Quote:
Originally Posted by FitAmp

Any feedback yet? Would love to give it a try :thumbup:

Sent from my LG-P500 using XDA

Don't ask for that, try it yourself!!
24th May 2012, 01:42 PM |#8  
Account currently disabled
Thanks Meter: 268
 
More
nice work will try
25th May 2012, 05:29 AM |#9  
dynamite33's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 656
 
More
Does this work on gb?2.3.3?
How to move app's ? Does this automatically moves it?

Sent from my LG-P500 using XDA
25th May 2012, 06:39 AM |#10  
FitAmp's Avatar
Senior Member
Flag Terrace
Thanks Meter: 695
 
More
Just flashed on cm9 weekly... so for so good

Sent from my LG-P500 using XDA
25th May 2012, 07:29 AM |#11  
Member
Flag Prague
Thanks Meter: 27
 
More
Good work. Nice example of KISS approach - three symlinks + few lines of other code
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes