[SCRIPT][CM7/9] /datadata/ low storage notification lagless fix - init.d script

Search This thread

grifovunque

Senior Member
Nov 9, 2009
646
109
genova
cm9 build 17 - devil kernel 1.1.6
all works perfectly with this script...
before i have always use .nodatadata tips, now i use your script without problem...
thank you very much
;)
 

abitzsong

Senior Member
Nov 1, 2010
160
34
CM9, semaphore 0.9.5b

I've been on this script for two days and it's working amazingly.
No noticeable lag nor low space messages.
This script should be tested for compatibility and stability and be integrated in all cyanogenmod based roms.
 

tiwag

Senior Member
Oct 15, 2010
382
113
CM9, semaphore 0.9.5b

I've been on this script for two days and it's working amazingly.
No noticeable lag nor low space messages.
This script should be tested for compatibility and stability and be integrated in all cyanogenmod based roms.


AOKP [ROM][ICS][4.0.3][Milestone4]BLUE LIGHTNING- v1.1.0
& semaphore 0.9.5b

works nicely !! thanks a lot !! finally got rid of low memory warning !!
 

naTrium

Member
Feb 17, 2007
9
139
I'm glad it has been working well so far. :)

Sorry for the lack of feedback on my part, I've been busy and I've not been able to update the main post.
I'm planning to list all the roms and kernels you have tested so far as soon as I get some free time.

Cheers.
 

bhu1

Senior Member
Aug 1, 2011
5,307
4,517
29
Jaipur
I never had low storage notifications but still, thus script indeed make my phone and rom butter.
 

linkness

Senior Member
Aug 11, 2010
62
13
Toronto
Does any one notice settings for certain apps not sticking after installing this? This definitely freed up space from \datadata and after the reboots it became fast again but recently I noticed GoSMS not retaining my settings if its closed.
The only settings which are retained are the individual settings like theme. Other settings like receive settings and pop notification all go back to default once gosms closes. It only closes when I run "fast reboot" app or when the phone has been asleep for awhile. I wonder if it has to do with this script since it I'm not sure if its moving the preference file to \datadata and if it is in sync with the most recent settings?

I have tried uninstalling the app and clearing data on it. I even deleted preference file from \datadata and it still happens.
Anyone else seeing this issue?

Im on AOKP port from BHuvan goyal beta 2.1
 

damianmb

Senior Member
Apr 16, 2011
158
22
The corruption is not being able to see the pics in the gallery or means that I've lost my pics?
 

cocos2000

Senior Member
Mar 13, 2010
64
8
thank you! works perfect! Great job, no more low memory problem!
(CM 7)
 
Last edited:

millerm

Member
Mar 30, 2006
47
5
All my apps work nicely without performance loss.

Only Chrome browser has become VERY slow after applying it. Could one make exceptions for certain apps?

Sent from my GT-i9000 using Slim ICS 2.8
 

Adevem

Senior Member
Aug 4, 2010
1,349
87
All my apps work nicely without performance loss.

Only Chrome browser has become VERY slow after applying it. Could one make exceptions for certain apps?

Sent from my GT-i9000 using Slim ICS 2.8
yes chrome is pissing me off, it even froze my phone once. I thought that's just me.
 

kathees

Senior Member
Feb 8, 2012
145
13
Singapore
Hmmm,

I don't know this is happens because of this script I'm having reboot once/twice a day atleast. I never had this issue for more than 2 months. I'm in ICSSGS 4.2 and Semaphore 0.9.1.

Just wanted to make sure why this happens!!! How do I revert the changes by this script?
 

rmms

Senior Member
Aug 11, 2007
81
14
Thanks a lot! Worked great on AOKP-milestone4 ! No more low memory problem!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 137
    Hello fellow I9000 users.

    tl;dr - This fixes your low storage notification problems just by flashing it on CWM.

    Disclaimer
    First of all, I'd like to inform you that this post is a compilation of the work done by drafnel on the CyanogenMod forums, revthanki on the XDA-Developers forum, and as such I take little to no credit in it, as all I've done was ask for drafnel to help me in the cleanup code for me to put it in a flashable zip.

    Sources:
    http://forum.cyanogenmod.com/topic/39718-workaround-for-small-datadata-partition/
    http://xdaforums.com/showthread.php?t=1444333

    Also, as you should know, you take full responsability should data loss or other kinds of damage occur.

    Introduction
    Lot's of people have encountered the problem where their /datadata partition fills up and then apps begin force closing. This is often confusing since there is usually a lot of space available on the internal 2GB storage partition. But these are two different partitions on cyanogenmod. The created the datadata partition on the fast internal memory so that apps would start up and run faster (i.e. less lag), but it is only about 170MB (which can't be helped).

    One thing that can be done is to move the contents of /datadata onto the 2GB /data partition. That will solve the space problem, but then you have the lag problem. So, what we need is for the files that take up a lot of space to reside on the 2GB partition and the files that are accessed frequently by an app to reside an the fast 170MB partition. The files that are accessed often, or that affect app startup speed are the sqlite database files and the xml preferences files. These reside in the databases and shared_prefs sub-directories in each app directory. Drafnel has written a script to perform these operations.

    Requirements
    • Samsung Galaxy S based phone (GT-I9000, Vibrant, Fascinate, Captivate, etc.)
    • Kernel that supports init.d scripts

    How to use it?
    As you would flash a ROM update or a Kernel:
    1. Download the file to your sdcard.
    2. Reboot your phone into CWM.
    3. Choose 'install zip from sdcard', and choose the script from there.
    It will run on boot everytime. It's pretty light so your total boot time shouldn't suffer. It will only do the operations if they are needed, and it will clean up after itself. No need to worry about broken links or stale resources.


    What it actually does?
    On every boot:
    1. Runs a check to see if /data/data is still symlinked to /datadata/
    2. Moves everything that isn't performance critical from /datadata/ to unlinked /data/data/
    3. Cleans up old databases from uninstalled apps

    Other stuff to watch out for
    • Titanium Backup users should tick the Preferences > Troubleshooting settings > Follow all symbolic links option
    • SlimICS users should follow this procedure

    Changelog
    11032012 - First working release.
    11
    For those of you who are having trouble getting the script to run, I have created a small flashable zip that will ensure that the missing busybox applets are symlinked. For whatever reason SlimICS doesn't have busybox linked properly.

    TL;DR - Flash if on SlimICS
    9
    I get rm failed for -rf when I manually run the script. Any ideas? I'm on a Samsung captivate and cm9.
    Just remove the "f" from each "rm" command.
    But it seems you're using the April script which is not recommended and buggy.

    I'm working on a "next generation" script running flawlessly since 3 days. Like the 2903 datafix libs are on /data and everything else is on /datadata. But now, you could move selected applications cache (like Chrome or so) to /data. And this could be reverted ;-)
    I have to test this when updating rom then create a new topic here. :p.

    Sent from my GT-I9000 using XDA
    6
    Please help me working datafix for slim ics 3.4 with devil kernel 2_0.74 thanks....
    Has anyone got this to work on AOKP build 33 yet? And if so, which kernel are you on, which version of this script did you use and exactly how did you install it?
    Actually, make that build 34 since I'm currently looking at the bug fixes that one introduces and I'm probably going to update now...
    Did you try to rename the /system/etc/init.d/30datafix to /system/etc/init.d/S30datafix ????

    I think I should make another zip file with this mod ...


    EDIT : done DataFix_29032012v2.zip
    6
    Does this script move the cache to /data/data aswell, or does it stay in /datadata?

    I hope it does as it's annoying having to delete the cache all the time.
    As some apps lag if their cache wasn't on /datadata you could choose (by editing a text file) which apps store their cache on /data. This could be reverted if app becomes laggy ...

    EDIT : Here is my new datafix : http://xdaforums.com/showthread.php?t=1665742