Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
DavisNT
Old
(Last edited by DavisNT; 23rd May 2012 at 12:30 AM.) Reason: typo
#1  
DavisNT's Avatar
Senior Member - OP
Thanks Meter 154
Posts: 113
Join Date: Aug 2011
Location: Riga
Default [MOD] Move to sd-ext | Simple app, private-app and Dalvik cache to SD solution

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.
Attached Files
File Type: zip sd-ext_patch-signed-v11.zip - [Click for QR Code] (190.9 KB, 2896 views)
File Type: zip to_sd-ext_patch-signed-v10.zip - [Click for QR Code] (124.9 KB, 2461 views)
The Following 66 Users Say Thank You to DavisNT For This Useful Post: [ Click to Expand ]
 
DJBhardwaj
Old
#2  
DJBhardwaj's Avatar
Recognized Contributor
Thanks Meter 1451
Posts: 2,849
Join Date: Apr 2011
Location: Delhi

 
DONATE TO ME
+1
Is this mod developed by you?
Nexus 4 - ThinkingBridge ROM (Latest build) // Nexus S - ThinkingBridge ROM (Latest build) // HTC Desire Z - AOSP 4.2.2 // LG Optimus One - CyanogenMod 10
Nexus 4 Guide // Nexus S Guide


Kindly Obey The Forum Rules
Are you a Recognized Contributor? Please read this
 
DavisNT
Old
#3  
DavisNT's Avatar
Senior Member - OP
Thanks Meter 154
Posts: 113
Join Date: Aug 2011
Location: Riga
Quote:
Originally Posted by DJoptimus-One View Post
Is this mod developed by you?
Yes
If you like my post, press Thanks on that post. If you like my thread, rate that thread. Thanks!

My New App: Jelly Bean 4.2 Airplane Mode Helper

Phone: Samsung Galaxy S2 I9100
Baseband: I9100BVLPE
ROM: CyanogenMod 10.1
Mods: Swap SDcards mod for SGS2 CM10

Ex Phone: LG Optimus One P500; New Baseband; CyanogenMod 7.2.0; candied kernel by DJNoXD (2.4-caveman-vsync version); Move to sd-ext
The Following 5 Users Say Thank You to DavisNT For This Useful Post: [ Click to Expand ]
 
DJBhardwaj
Old
#4  
DJBhardwaj's Avatar
Recognized Contributor
Thanks Meter 1451
Posts: 2,849
Join Date: Apr 2011
Location: Delhi

 
DONATE TO ME
Quote:
Originally Posted by DavisNT View Post
Yes
Nice work, I'm surely gonna try
Keep up.
Nexus 4 - ThinkingBridge ROM (Latest build) // Nexus S - ThinkingBridge ROM (Latest build) // HTC Desire Z - AOSP 4.2.2 // LG Optimus One - CyanogenMod 10
Nexus 4 Guide // Nexus S Guide


Kindly Obey The Forum Rules
Are you a Recognized Contributor? Please read this
The Following User Says Thank You to DJBhardwaj For This Useful Post: [ Click to Expand ]
 
D3oDex3D_AyusH
Old
#5  
D3oDex3D_AyusH's Avatar
Senior Member
Thanks Meter 43
Posts: 242
Join Date: Apr 2011
Location: surat
Good work here!! Really nice to see some REAL development here
Will try it and report soon.........

Sent from heaven, wandering with Steve Jobs
IF I Helped You Out, Don't type "Thanks", Just Click On .... That's Much Easy

My BLOG!!---HERE!!. You can request for new android games here.!!
 
FitAmp
Old
#6  
FitAmp's Avatar
Senior Member
Thanks Meter 459
Posts: 1,050
Join Date: Mar 2012
Location: Terrace
Any feedback yet? Would love to give it a try :thumbup:

Sent from my LG-P500 using XDA
 
thachtunganh
Old
#7  
thachtunganh's Avatar
Senior Member
Thanks Meter 1914
Posts: 1,659
Join Date: Mar 2011
Location: Hà Nội - Hanoi
Quote:
Originally Posted by FitAmp View Post
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!!
HTC Desire HD
  • The one who brought sweep2wake feature for Atmel touch panel driver to HTC Desire HD .
    First for Android with Sense 4.1, then for AOSP based ROM.
Advice: Only Use Original Software
Nevermind, install CyanogenMod ROM, doesn't matter it's unofficial or official version, believe me, it's still the best!
 
john9
Old
#8  
Account currently disabled
Thanks Meter 263
Posts: 1,592
Join Date: Oct 2011
nice work will try
 
dynamite33
Old
#9  
dynamite33's Avatar
Senior Member
Thanks Meter 647
Posts: 398
Join Date: Apr 2012
Location: Mumbai
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
Have a Visit
http://forum.xda-developers.com/show....php?t=1591581
DyNaMiTe Rom..



ALL IN ONE ICS
http://forum.xda-developers.com/show...php?p=25462553



Press THANX if i have helped u....
 
FitAmp
Old
#10  
FitAmp's Avatar
Senior Member
Thanks Meter 459
Posts: 1,050
Join Date: Mar 2012
Location: Terrace
Just flashed on cm9 weekly... so for so good

Sent from my LG-P500 using XDA

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...