[Script]New "Low Storage" Notification fix

Search This thread

senotrius

Senior Member
Jan 4, 2011
984
103
I think that is not really something you want.
But it you really want everything on/data and leave /datadata empty.. just create an empty file ".nodatadata" in /datadata and reboot.
I assume that works on slim as well, if it doesn't, dump slim.

Taptalked u see

I know that trick.pawitp was the one who told me that one.like during initial days of cm9 beta.but it doesn't take long for it to not work.well uninstalling some apps after applying that fix screws it up for some reason-notification comes back if we do so.

for some reason just flashing this new zip has taken care of the low storage problem.I didnt edit no txt files as said in op.it auto configured I guess.


edit:I don't know if anyone has reported this but I seem to have a bug.my home button and lock screen not working properly anymore.let me explain:
press power button-screen off.
press home button-screen on except there's no pattern lock anymore.and the home button doesn't work anywhere else except for making screen on.some help please:(
I don't know if its related to the fix or not.first time I'm having this problem.
 
Last edited:

Zatta

Inactive Recognized Developer / Contributor
Dec 22, 2010
2,177
1,222
Sneek
I know that trick.pawitp was the one who told me that one.like during initial days of cm9 beta.but it doesn't take long for it to not work.well uninstalling some apps after applying that fix screws it up for some reason-notification comes back if we do so.

for some reason just flashing this new zip has taken care of the low storage problem.I didnt edit no txt files as said in op.it auto configured I guess.


edit:I don't know if anyone has reported this but I seem to have a bug.my home button and lock screen not working properly anymore.let me explain:
press power button-screen off.
press home button-screen on except there's no pattern lock anymore.and the home button doesn't work anywhere else except for making screen on.some help please:(
I don't know if its related to the fix or not.first time I'm having this problem.

Some have that, some don't.. I've had it without the script a couple of times. Lucky you have made a nandroid ofcourse because a factory reset is what you have to do now. Sometimes only a format /datadata doe doe the trick but that was when I didn't have a datafix so all data was in /datadata, now it is spread between /data/data/ and /datadata/..
 
  • Like
Reactions: senotrius

dastinger

Senior Member
Dec 2, 2010
895
307
That issues are related to the fix. I don't know why but they are. Happened to me already a couple of times and always after flashing a datadata fix or editing the partitions myself. For me, only a Factory Reset did it.
 
  • Like
Reactions: senotrius

Zatta

Inactive Recognized Developer / Contributor
Dec 22, 2010
2,177
1,222
Sneek
Hmm, yes and no, it is related to some loss of data. The risk to lose some is higher when moving data around than to leave it in place I guess. But it is something that happens with and without script.

Taptalked u see
 
  • Like
Reactions: dastinger

upichie

Senior Member
Nov 15, 2010
1,354
287
I know that trick.pawitp was the one who told me that one.like during initial days of cm9 beta.but it doesn't take long for it to not work.well uninstalling some apps after applying that fix screws it up for some reason-notification comes back if we do so.

Keep in mind the notification will also appear if your /data/data fills up. This happened to me after I decided to see how many games I could install. I have 112 games installed, 273 total apps (including system). Lots of 50+ mb apps. That was my limit. :victory:

for some reason just flashing this new zip has taken care of the low storage problem.I didnt edit no txt files as said in op.it auto configured I guess

Well of course. Without any apps in either configuration (text) files, it will move all lib files to /data and leave everything else on /datadata. This still gives a tremendous improvement to space in /datadata.
 
  • Like
Reactions: senotrius

Silentbob999

Senior Member
Apr 6, 2012
1,063
728
Montréal
Exactly what I had in mind the first time I see the Wendigogo version of data fix.

Thanks you.

Envoyé depuis mon GT-I9000 avec Tapatalk
 

BradleyR2010

Senior Member
Jul 30, 2010
381
374
GT
nice app i was just thinking of adding something like this too my app now you saved me the trouble

Sent from my GT-I9000 using xda app-developers app
 
  • Like
Reactions: Zatta

itenos

Senior Member
Jul 28, 2010
262
46
Bali
Anyone having a problem with the new Swype beta? After losing my personal dictionary since some days, today I decided to fully uninstall it, doing a reboot and then installing it again.
All the new words I entered showed up regularly in the personal dictionary in settings.

Then after a while I did another reboot with the script running on startup and my personal dictionary is empty again and doesn't learn new words either.

So I finally found the culprit... :)

Sent from my GT-I9000 using Tapatalk 2
 

Zatta

Inactive Recognized Developer / Contributor
Dec 22, 2010
2,177
1,222
Sneek
Check some posts back (328 if I'm not mistaken)

Taptalked u see
 

MoneyFace =p

Senior Member
Dec 17, 2010
192
55
Singapore
Has anyone tried to restore data successfully from Titanium Backup from a backup that has this datafix enabled? My backups are always corrupted... :(
 

Zatta

Inactive Recognized Developer / Contributor
Dec 22, 2010
2,177
1,222
Sneek
Has anyone tried to restore data successfully from Titanium Backup from a backup that has this datafix enabled? My backups are always corrupted... :(

Yes . But you have had to have "follow symlinks" enabled when you made your backup.

Verstuurd van mijn GT-I9000 met Tapatalk
 

Ipse_Tase

Senior Member
Feb 29, 2012
893
196
Samsung Galaxy S21 Ultra
Weeeeeeeeeeeeeeird.....I flashed this wonderful script (Thanks for the idea!!!) from CWM, nada...nothing happened.
I tried running it manually using ScriptMgr and it *****ed about permissions, so I ran it as root and it worked.

I have to mention I rebooted twice after installing the script and still only had 15meg free in /datadata...not I have 100+ after running it manually.

This is probably why my semaphore scripts don't get executed after a reboot although they are in init.d...they seem to lack root privs...need to check the permissions maybe.
Just weird that I didn't see anyone complaining about permissions in this thread...wth did I do to my phone to have this issue?

/EDIT Yup, script only had root execute. Is it normal?
 
Last edited:

Wendigogo

Senior Member
Jun 14, 2010
614
327
Lyon
Samsung Galaxy Note 20 Ultra
Weeeeeeeeeeeeeeird.....I flashed this wonderful script (Thanks for the idea!!!) from CWM, nada...nothing happened.
I tried running it manually using ScriptMgr and it *****ed about permissions, so I ran it as root and it worked.

I have to mention I rebooted twice after installing the script and still only had 15meg free in /datadata...not I have 100+ after running it manually.

This is probably why my semaphore scripts don't get executed after a reboot although they are in init.d...they seem to lack root privs...need to check the permissions maybe.
Just weird that I didn't see anyone complaining about permissions in this thread...wth did I do to my phone to have this issue?

/EDIT Yup, script only had root execute. Is it normal?
I've got some problems with latest Semaphore too ... But not those described. Did you use Semaphore app to activate init.d script ? If not the script couldn't work ...

What script version did you used ? You may have a look at the dedicated app in app section (or in Play Store).

My script permissions are : -rwxr-x--- root shell 6868 2012-07-16 21:11 S30datafix_ng_busybox
 

bomba6

Senior Member
Feb 9, 2010
60
4
Something went wrong.
I was installing the DataFix_20120524.zip on cm-9-20120719-NIGHTLY,
and I'm stuck for the last 20 minutes on the Cyanogen logo (that blue guy).

What can I do from here? Try soft-reset? Pulling out the battery? I don't want to damange anything.
P.S. The previous time I installed that script was on cm-9-20120625 without any problems, after about 5 minutes the phone was up and running.
P.S. everything is stock.

Please, your help is needed ):
 

carlosgardel

Senior Member
Sep 8, 2011
207
57
Something went wrong.
I was installing the DataFix_20120524.zip on cm-9-20120719-NIGHTLY,
and I'm stuck for the last 20 minutes on the Cyanogen logo (that blue guy).

What can I do from here? Try soft-reset? Pulling out the battery? I don't want to damange anything.
P.S. The previous time I installed that script was on cm-9-20120625 without any problems, after about 5 minutes the phone was up and running.
P.S. everything is stock.

Please, your help is needed ):

Maybe is not the script.Wipe Data/factory reset help me other times in that situation.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 124
    Here we go ! :D

    Starting point is from CyanogenMod Captivate forum and some improvement were added here and there. Credits are recalled and came from this thread : [SCRIPT][CM7/9] /datadata/ low storage notification lagless fix - init.d script.

    Background :
    CyanogenMod (CM) based roms on our I9000 (and brothers) uses a small and fast flash chip to store application datas. This make the rom smooth and sweet ... This chip is mounted as /datadata and is about 170Mo.
    With a lot of apps (or apps storing lots of stuff there) we faced a "Low storage" notification and our phone becomes laggy.
    • The first idea was to move this /datadata to /data (about 2Go) whose have a lot of free space. This works but the phone became laggy.
    • Then some others devs think about moving back to /datadata frequently accessed files (sqlite database and xml preferences files). First as scripts part then as flashed zip file. The phone becames smoother but not like a "vanilla" CM rom. This is the 1103 datafix in thread linked previously.
    • An xda user suggested to let on /data only library files and move back all other stuff to /datadata. These lib files are only accessed (when used by users) in read mode so the ext4 /data partition is efficient in this way and phone becomes smoother as "vanilla" CM roms. This is the 2903 datafix I made and post in previously linked xda thread.
    • But with this latest datafix, applications cache are stored in /datadata and recent Google apps (like Chrome) fulfilled it quickly : the "Low storage" notification is back ! :mad:

    Next solution :
    Like 2903 datafix, only libraries ("lib" and "libs" subdirectories) stay on /data by default.
    BUT unlike it you could choose which apps will also store their cache in /data. And this is REVERSIBLE : if one of selected app becomes laggy you could move back its cache onto /datadata

    How to use it :
    Make a nandroid backup
    Just grab the zip file and flash it in recovery
    At reboot, it will revert previous datafix (if there is one) and apply this one. So first boot could take more time (5 minutes max) than "normal" boot.
    It also creates a "datafix" directory in /data/local with two files : "move_cache.txt" and "skip_apps.txt".
    Just edit the first file (root needed) to add apps whose cache will go back to /data at next boot :
    Code:
    com.android.chrome
    org.mozilla.firefox_beta
    will put Google Chrome and Firefox Beta cache on /data. All others apps cache will go to /datadata.
    If you want Firefox cache to go back on /datadata, just remove its line in the file and reboot.

    In the "skip_apps.txt" file, just put apps you want to fully stay on /data/data. If apps was previously moved to /datadata by the datafix it won't apply; you have to add its name in "skip_apps.txt" file after installing it and before rebooting the phone. On the other hand, if you remove the apps name from "skip_apps.txt" file all but libraries will be moved to /datadata at next reboot.

    Requirements :
    • Samsung Galaxy S based phone (GT-I9000, Vibrant, Fascinate, Captivate, etc.)
    • CM based rom (including CM7/9, MIUI and maybe ao(k)sp etc.)
    • Kernel that supports init.d scripts (latest CM9 nightly support it)
    • Busybox installed
    • A fresh nandroid backup

    FAQ :
    Q : There is 2 zip files, who's the good one ?
    A : It depends of your kernel. With stock CM9 kernel use the Datafix20120521. With others like Devil etc., use the SDatafi20120521. The only difference is between the script name : 30datafix or S30datafix. Some recent kernels add a "S" before the init.d script name. Why ? No idea !!!

    Q : Will this wipe my phone ?
    A : No, it should not delete any data on your phone. But as it's not tested with every phone xda user have it's a good idea to have a fresh nandroid backup

    Q : Do I need to reflash the zip file ? When ?
    A : The datafix will be erased each time you upgrade/change your rom (including Nightly Builds) or your kernel (many of them "clean" the init.d directory). But if you don't install lots of apps after upgrading you don't really need to install the datafix again : without full wipe, a nandroid restore or an Odin full installation te datafix will stay on.

    Q : Is there something to do when backuping my apps ?
    A : Nandroid should work without specific option; Titanium Backup users should tick the Preferences > Troubleshooting settings > Follow all symbolic links option. I don't use other backup apps ...

    Q : Can I use this on Samsung based rom ?
    A : No ! And it's irrelevant cause Samsung roms don't have the "Low storage" issue !

    Q : I'm using Slim ICS rom, do I need some busybox fixer etc. ?
    A : I don't use SlimICS but all commands in my script call busybox directly so it should work. Let me know if there is still a problem with this !

    Q : Why do you change naming of the zip file ?
    A : Cause I want ! And it's listed directly in chronological order in terminal (or recovery) in this way.

    Q : How can I know which apps use most space on /datadata :
    A : Just run as root (in adb or terminal) :
    Code:
    du -s /datadata/*|sort -n

    Downloads :
    Box : https://www.box.com/s/6783d86f3840c02db911
    Dropbox : https://www.dropbox.com/sh/rwibb0r0fhhyvh6/KaoBoC1BtB
    Please don't mirror this.

    I put the shell script in attachement here. Just grab it on your sdcard, remove the ".txt" extension and you could run it using Scripter or equivalent (root needed). Please post here if something gone wrong when using it.

    Donations :
    As I spent some time (and coffee) for this (and april datafix for those following previous xda thread) I think about a donation button. Give me your advise on that please ...
    Link for donations ;)

    But just a little "Thanks, it works great !" would be great ! :D
    8
    Took me time to realise, was seeing my datadata about 15mb left then thought "hmm, don't forget your datafix" but kept forgetting and finally see that every time chrome gav me that cache reading error datadata got more space left.
    Kept wondering about this and finally saw someone saying Pawitp talked about this.
    I didn't found Pawitp's words or changelog stating it but that's it.
    It's about a week that i flash cm9 based rom with no wipe and still i have approximately between 15 to 25mb left even opening new apps.
    That's a good news but if I understand correctly, it "only" flush the apps'cache if space left on /datadata is under 10%.
    But what's happen when installing many apps with big libs (like Dice Player or so) ? I mean if no more cache is present and low free space left ?
    I think CM dev thought about this but I'm curious. If someone could point to the appropriate bug it should be great ! :laugh:

    Will there be any further development to the datafix script in the future? If not I recommend updating the original post with the latest test version.

    I don't think the script needs any more work doing to it myself. Only thing I can think of is a user interface to make moving cache & apps to /data/data easier.
    There is developpement of the test version (as I've got a lot of personnal work not really fast :angel: ). And there's (at least) 2 bugs in test version : first if installing with previous datafix and second if space separated directories exists ...
    Both corrected in current version. I think upload a new zip tomorrow including these fixes (and creation of default txt files in /data/local/datafix directory).

    Plus Zatta and I are working on big improvements. Stay tuned ! ;)
    6
    The execution window opens and states that permission is denied
    Do I have to set something else before running this script through Script Manager? :confused:
    I suppose you have to run it as root ...




    As promised a new test version attached here, only two fixes here :
    • Solved a problem that can occurs if coming from another datafix version
    • Improve installation script in zip file :
      -creation of default txt files
      -adding gmail and market cache in move_cache.txt if not present
    • Fix issue with space separated directories in datafix script

    Some others things to include/improve and the undo_datafix to finish.

    Have a nice (end of) day ! :D
    5
    now i cannot download from play store,first i had the low storage notification,i flashed the datafix..it was good after the flash,no lag n no problem...but from today i cannot download from play store,i checked datadata by root explorer,there were just 166KB of space left..then i flashed the datafix again,now i have 9MB of space left but still cannot download from play store...any clue what to do?
    This is a problem I see before. You need to add "com.android.providers.downloads" and "com.google.android.gm" in "move_cache.txt" as said before. The first app is for market cache (so if /datadata is full you can't install/upgrade anymore apps) and the second is for Gmail cache.

    For whatever reason I can't clear any app's cache anymore, besides going in and manually deleting files. Apps don't work, doing it via Android's Manage Apps doesn't work—hell, not even Titanium Backup works.

    This is annoying.
    This could be "forced" by an external rooted app I think :)D @Zatta )

    Hey Wendigogo, do you follow the discussion here (plus read some posts back)?

    An uhh, you are okay, aren't you? Sent you a small update per mail, looks like you didn't get it again?
    Thanks for point this. I could use another directory in /data/local. The best way is to use a directory in /sdcard to prevent factory reset removing config files and to permit users editing it kindly.

    I install you update but don't have time to try it for now (no datafix installed as I don't have time to play with my phone now so few apps installed) .

    I'll be busy for about 2 weeks (preparing exams). I'll try to give a shot (and to YPhoto suggestions too) before this.

    Thanks for answering in this thread to people having problems. :cool:
    5
    Ok, it worked!
    For user that cannot get this mod to work:
    -Download Script manager.
    -With root explorer (or any other program) extract the script from the .zip file
    -Open Script Manager and run the script giving it root permissions and allowing it to run on boot.
    And that's it! Now everytime you reboot the phone the script will run.
    I've noticed the difference a lot, now my Galaxy S is a lot faster, and I do not have the low storage bug :cool:
    I will see if I face problems with Google Chrome (although I think the stock browser is a lot better)
    ;)
    EDIT: I'm running cm9 with Semaphore 1.2.0 kernel