yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 General] Wendigogo:
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:

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 ! ;)
[Galaxy S I9000 General] ibrubeer:
I may be the only one who didn't fully comprehend the whole picture of this script and what it does, but I am willing to bet there is someone else out there having the same problem?

I am running teamhacksung's ICS port for Fascinate with the kernel that comes with it. I initially installed it and then started having the low memory messages after about a week. I found this thread and ran the Datafix zip in CWR (20120524 version). After about another week, and after updating several apps in the market, my phone started to get laggy and a bit buggy. I think that the problem is that you need to periodically run the script again, right? Specifically, you should run the script (or reboot if you have the datafix installed via CWR) after updating a handful of apps or when it starts to lag again. Do I understand this correctly?

I was having some major problems so I decided to go back to stock, reflash the ICS rom, and Google apps. The problem was that I thought I would also save time and flash the datafix right after before the first boot. I think this probably causes some problems. First off, I haven't restored any apps yet for the datafix to affect. This seems obvious now, but not when I was trying to save time while flashing a rom. :( The real problem was when I would finally reboot my phone the next time. It would get stuck on the animation screen for at least 35 minutes if I let it! I am assuming that I waited too long to reboot/run the script after updating a bunch of apps?

I am not totally aware of all my errors, but I suspect that flashing the datafix right after the rom/Google apps and then not again until after updating several (approx 40) apps was causing problems...

---------- Post added at 08:21 PM ---------- Previous post was at 07:49 PM ----------

I am thinking of using Script Manager to automate this whole process without having to actually reboot the phone. Just so I am sure I understand it...

1) the Datafix

should

run every time I reboot the phone if it was flashed via CWR, correct?

2) It is also possible to use Script Manager to automate the process without having to reboot via this procedure: http://xdaforums.com/showpost.php?p=26408157&postcount=23

Do I understand it correctly? Thanks for the advice!
[Galaxy S I9000 General] upichie:
The ZIP file that you flash places the script in /system/etc/init.d. All scripts within this folder are run at boot. That is how it works. You can, of course, also run the script manually (with an app). I personally use Script Manager to run the script whenever I need to; I never reboot my phone just to run the script. Doing this also gives you the luxury of seeing what exactly the script does—what files it moves, what errors it encounters, when it runs out of space, etc.

I would definitely use Script Manager if you're having troubles. If you have flashed the zip, you can simply point Script Manager to /system/etc/init.d to find the script (the GUI is pretty much a file manager). Otherwise, as the post you quoted states, you can pull the script from the zip and have it anywhere you want on your sd card.

I'm not sure if flashing the script before the initial boot of a new ROM would cause problems, but I would probably give the phone a clean boot before doing anything to it—scripts, kernels, etc.

As for your other problems, if you install a bunch of apps without running the script, the apps' data will be in /data (the slower partition). When you run the script, it will move the necessary files to /datadata. So if you haven't run the script after installing a lot of apps, those apps may be slower.

Also, if you ever run out of space on /datadata, any apps that try to write data will force close, causing a lot of problems. Make sure you have some room on /datadata before running the script.

Always here to help. Let me know if you still have any questions. :)
[Galaxy S I9000 General] itenos:
Reading this thread I just installed Script Manager from the market to give it a try.

After pointing it to system/etc/init.d and choosing our s30datafix_ng_busybox file, I clicked on RUN.

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:
[Galaxy S I9000 General] Wendigogo:
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
[Galaxy S I9000 General] martinomac:
Thank you for this...just a few questions: what do you suggest is the process if coming from datafix_test.zip. Do you even suggest I flash this is things are running OK with latest test version? Things are running quite well for me with about 65MB free in Datadata after adding a few items to move_cache.txt and skip_apps.txt. I started off with 80MB, but even cleaning cache using TiBu Pro doesn't make it smaller, not sure where this is accumulating from?

BTW, thank you for bringing new life to my Captivate (i896)...I was ready to toss it seeing all the fancy OneX and SIII talk out there.
[Galaxy S I9000 General] Rebel2k:
Flashed the new version a few hours ago. Everything seems to be OK right now! ;) Feedback in a few days! :)
[Galaxy S I9000 General] upichie:
Titanium Backup won't clear any app's cache, unless that app is in either move_cache.txt or skip_app.txt due to the symlinking.

The app SD Maid was mentioned a few pages back. The paid version works for clearing an app's cache. No other app I tried work. Clearing data manually (with a file explorer) will, of course, still work.
[Galaxy S I9000 General] Silentbob999:
+1. Totally agree :-P

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 General] Vertron:
Can you flash the new datafix over the old one without any issues? I'm using the Elite rom and Devil kernel, so I assume I need to use the Sdatafix?
[Galaxy S I9000 General] Zatta:
Yes and yes!

Taptalked u see
[Galaxy S I9000 General] martinomac:
Thank you, just not sure how to use SDMaid though :confused:
[Galaxy S I9000 General] Vertron:
Click on the clean apps tab at the top of the screen, then click on check, once that's finished click on clean all.
[Galaxy S I9000 General] Wendigogo:
Yes and as you want. :p

Yes : you can flash it over the old datafix (nandroid backup before as always !!!).

As you want : it seems the Devil kernel (and probably others) manages all init.d scripts. Explanation here by Devil's dev :
[Galaxy S I9000 General] Vertron:
I've installed the new datafix over the old one without any issues.
[Galaxy S I9000 General] MrAndroid12:
Why not a script that makes app storage work the same as on a stock samsung rom instead of favouring high benchmark scores that mean nothing to end user?
[Galaxy S I9000 General] Wendigogo:
If you know how app storage work in Samsung Rom, your welcome to share it with us. :angel:

This is how CM roms manage apps data and this is part of the reason why our phone is a lot smoother in CM roms than in Samsung roms (latest Samsung roms have been improved a lot in this way compared to earlier Froyo or GB roms). No Benchmarks here, just a way to improve useness of our phone.
[Galaxy S I9000 General] MrAndroid12:
Would be nice if I knew :)

EDIT:

In samsung rom (from nandroid backup), my datadata partition is only 17mb full and I have a sh1t load of apps, 1.2GB :P
[Galaxy S I9000 General] Driv:
Works for me!:)
[Galaxy S I9000 General] Vertron:
Will flashing a different kernel effect the datafix in any way?
[Galaxy S I9000 General] Wendigogo:
Some kernel use cleaning script so they could remove de datafix (newly installed apps will fully stay on /data after reboot).
[Galaxy S I9000 General] Vertron:
Do you recommend reinstalling the datafix before booting with the new kernel?
[Galaxy S I9000 General] upichie:
It doesn't matter. As Wendigogo said, if the datafix is removed, all newly installed apps will be on /data. And you don't need to worry about /data filling up.

However, if you were to install a bunch of new apps and then apply the datafix, it may attempt to move too much data to /datadata, filling it up and giving you a lot of problems.
[Galaxy S I9000 General] hamedhd:
My Phone Just Got Boot Loop And then I Removed The Battery and turned it on again, every data was lost.
[Galaxy S I9000 General] loonieryan:
Breaks Google Drive

Thanks for this script! Works great, and it's a lot better than the original version.

Unfortunately, since applying this script I can no longer open Documents in the Google Drive app. I can open spreadsheets without a problem though. When I try to open a document, I get the following error in logcat:

E/ ( 6486): statfs /data/data/com.google.android.apps.docs/cache/filecache2 failed, errno: 2
W/dalvikvm( 6486): threadid=25: thread exiting with uncaught exception (group=0x40a581f8)
E/CAKEMIX_EDITOR_CRASH( 6486): uncaughtException java.lang.IllegalArgumentException
E/CAKEMIX_EDITOR_CRASH( 6486): at android.os.StatFs.native_setup(Native Method)
E/CAKEMIX_EDITOR_CRASH( 6486): at android.os.StatFs.<init>(StatFs.java:32)
E/CAKEMIX_EDITOR_CRASH( 6486): at ZL.b(PreferenceUtilsImpl.java:245)
E/CAKEMIX_EDITOR_CRASH( 6486): at ZL.a(PreferenceUtilsImpl.java:253)
E/CAKEMIX_EDITOR_CRASH( 6486): at ZL.a(PreferenceUtilsImpl.java:217)
E/CAKEMIX_EDITOR_CRASH( 6486): at ZL.a(PreferenceUtilsImpl.java:228)
E/CAKEMIX_EDITOR_CRASH( 6486): at Ra.a(FileInstanceHelperImpl.java:225)
E/CAKEMIX_EDITOR_CRASH( 6486): at QP.b(DocumentFileManagerImpl.java:426)
E/CAKEMIX_EDITOR_CRASH( 6486): at QP.a(DocumentFileManagerImpl.java:369)
E/CAKEMIX_EDITOR_CRASH( 6486): at QP.a(DocumentFileManagerImpl.java:342)
E/CAKEMIX_EDITOR_CRASH( 6486): at kh.c(AppCacheCleanupThread.java:30)

Any ideas?
[Galaxy S I9000 General] AlexandreT:
I'm on slim 4.2 and devil kernel. I have been running this datafix script since it was published, everything has been fine.

I now have a problem, I have this game installed, strikefleet omega that is over 40mb. Whenever I try to update it I get an error in Play store about media process and it fails to update. I read that it could be solved by clearing data from media storage but the problem remains. I would like to try to move the Play store cache to data. What should I put in the move cache file to achieve this?
[Galaxy S I9000 General] upichie:
Add the process name of Google Drive (com.google.android.app.drive) to skip_apps.txt. It appears to be looking for the data on /data, and it isn't there. This should fix it.
[Galaxy S I9000 General] upichie:
com.android.providers.downloads

Should fix your troubles. This happens because the apk temporarily downloads to the /datadata partition to be installed. If there isn't enough room (which happens with large games) then it will fail to install. Moving the downloads to /data will fix this since you won't run out of room there.
[Galaxy S I9000 General] Bejda:
Edit:All is said way better up above :)
[Galaxy S I9000 General] dan73b:
Will it work on DarkyROM v11? I'm getting the low storage notification with 1.2gig free.
[Galaxy S I9000 General] Alberto96:
After i applied your S version my data ( not apps ) got deleted and home button dont work anymore. I'm on TIRAMISLIM 2.0 FINAL.
[Galaxy S I9000 General] purpleraintoxicity:
Same here.

Aokp b40 w/ devil 3.99
[Galaxy S I9000 General] Bejda:
Devil users should provide user.log and user.log.bak in /data if problems occurred.It could help to know more of what happened.
[Galaxy S I9000 General] purpleraintoxicity:
Funny... /data is empty now

Edit: su probs

Herr user.log

http://db.tt/sVCcsUpu

http://db.tt/2lLAdhpw
[Galaxy S I9000 General] Bejda:
Strange,already had this kind of problems but /data wasn't empty,only /datadata then /data/data were.

Edit:Ah ok,happened to me too ;)

I see nothing strange in logs,you just flashed datafix,**** happened and you didn't reboot since then?
[Galaxy S I9000 General] Alberto96:
:( now i have to reinstall all again as i dont have a nandroid backup.
[Galaxy S I9000 General] AlexandreT:
That didn't solve the problem. In the move cache file, how do I separate different apps? I just placed in a different line but I'm not sure this was the correct thing.

Thank you for your answer.
[Galaxy S I9000 General] Bejda:
@AlexandreT,try clear data of download manager,not sure it will work for you but usually solve the media process fc's.
[Galaxy S I9000 General] purpleraintoxicity:
Rebooted. Reflashed devil.... nothing helps
[Galaxy S I9000 General] purpleraintoxicity:
Same here
[Galaxy S I9000 General] purpleraintoxicity:
Sick and tried. Full wipe install it is...

Back to devil data fix I guess
[Galaxy S I9000 General] alb3rtt:
after appyling the new script, my power menu is gone (well i only have power off and reboot and nothing will add) i have no lockscreen and home button doesnt work. any help?
[Galaxy S I9000 General] purpleraintoxicity:
do you use Devil kernel?

then don't reboot, don't do nothing...

just open /data folder and search for user.log and user.log.bak and post here
[Galaxy S I9000 General] acmilan77051:
i dont know.is it my fault or the fix doesnt work...after flashing the newest sdatafix zip two txt file were created in the data/local/datafix directory..i added the package name of extreme skater in skip_apps.txt,a backup file was automatically created,then i reboot my phone,before reboot 29 MB was free,after rebooting same 29 MB free,no change,but when i uninstalled it,49MB got free in datadata folder,i checked before uninstalling extreme skater had a 8MB lib file and some small files in both datadata and data/data folder under it's package name..so my question is why the fix didnt work even after the addition of package name in skip_apps.txt and reboot???? it was clearly stated in the OP that full app will move to data/data from datadata or did i miss something! im on tiramislim 2.0 and midnight ics kernel...
[Galaxy S I9000 General] purpleraintoxicity:
ok

i used the latest "S" datafix (as i use devil with aokp)

now, everything is good. i apply it on wiped rom, then restored apps, without their data

after an hour or so, some apps are fc after reboot.

such as:

Facebook, FriendCaster Pro, DroidAir, Current

(at least thats the list for now)

i wipe the app's data and its ok again...

i wanna know why does this happening and how do i prevent it?
[Galaxy S I9000 General] Silentbob999:
Maybe a typo error in the package name? Did you copy /paste from the folder name?

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 General] purpleraintoxicity:
sorry... what?

what do i need to past, where to, and why?

(datafix noob here)
[Galaxy S I9000 General] Silentbob999:
I am just saying that maybe you didn't write the package name correctly. I always doing fault when writing directly, it is why I always prefer to copy and paste the information when available....

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 General] purpleraintoxicity:
paste what package name to where exactly? :P
[Galaxy S I9000 General] hamedhd:
As I Said! All My Data's Lost (No Apps). I'm AOKP With Semaphore 1.2.5
[Galaxy S I9000 General] Silentbob999:
I just realized that you post 1 minute before me, aka at the same time, my post was in response to the post before you. The one that had issue with space taken by a game.

Sorry for the confusion.

For your issue /question I prefer to let more experimented people answer.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 General] purpleraintoxicity:
I'll be happyto get help from experience user because seriously I don't really know what to do and I got a lot of force close on the same apps, do I need to move them somehow or somewhere?
[Galaxy S I9000 General] upichie:
One space is used to seperate apps.

"com.android.providers.downloads com.android.email flipboard.app"

There's an example for you.
[Galaxy S I9000 General] upichie:
Simple fix. After adding the app to skip_apps.txt, back it up with Titanium Backup, uninstall it and then restore it.

When you install an app its data is entirely in /data. The script moves it to /datadata. This problem occurs, I believe, because the script is designed to skip the apps in skip_apps.txt. So if you've already moved its data to /datadata, it doesn't move it back, it just skips it.

Those are my observations. Wendigogo, if you read this, maybe put a check in and move the data back if it's already in /datadata.
[Galaxy S I9000 General] upichie:
The only time your apps should force close (because of this script) is when your /datadata partition is filled. I would first check that. I noticed you listed Google Currents. This app has a huge cache. I would recommend adding its package name to move_cache.txt.

The reason they force close when /datadata is full is because this is where the app stores its data. If it tries to write any data (whether it's adding to its cache or anything else) it produces an error, and thus the app force closes.

Always keep an eye on /datadata, and make sure to add all apps with a large cache to move_cache.txt (so there cache is stored on /data instead). If /datadata gets completely filled, you won't be able to use any apps that need to write data in order to execute.
[Galaxy S I9000 General] alb3rtt:
i was using slim ics with semaphore. i just decided to wipe data and it returned.
[Galaxy S I9000 General] hamedhd:
Now My Google Play Store FC's on Begin of Download. what should i do? I Know That Caused By The script.

Any Solution?
[Galaxy S I9000 General] purpleraintoxicity:
first, I would wipe google playz data at system-google apps-all

Then if it comes back I would wipe the google services framework

Data (in same page as before) and reboot.

If still fc is in place, add the play store full name (located as folder in datadata) in the move_cache file located in data/local/datafix.

And reboot
[Galaxy S I9000 General] upichie:
This was the power menu being gone problem?

Honestly can't see this happening... I guess data got messed up somewhere? Run the script with Script Manager and see if it produces any errors.

I can't imagine the power menu is stored in an app's data. You sure this wasn't caused by something else?
[Galaxy S I9000 General] Zatta:
I've had this personally a couple of times. It goes accompanied with a non working home button.

It has something to do with some data corruption or something like that, the only way to correct it was a factory reset aka wipe /data and /datadata.

All the times were before i started to use datafixes.

Taptalked u see
[Galaxy S I9000 General] Bejda:
Yes,those symptoms happened to me two times on ics and could surely be reproduced by wiping datadata only in recovery then reboot (thing I won't do anymore now there's datafix solutions,was emergency cases and wasn't producing such issues if I remember well on ginger aosp roms).

Home button does wake the phone but isn't responding anymore in use,no more lockscreen and power menu appears reduced.

I had this too one time testing previous (between 2903 until the latest one) datafix versions not right after flash but after first reboot after install...but kind of another story for me as the latest one works perfectly.
[Galaxy S I9000 General] -sandro-:
I'm using RemICS and tried both the stock CM script and non-stock one. I doesn't create the datafix directory in /data/local and the txt files. What can I do?
[Galaxy S I9000 General] Wendigogo:
Ouch, a lot of posts to answer. Fortunately, some users did it perfectly. Thanks to them (special thanks to @upichie) ! :good:

First, For those having problem, please ask on which kernel/rom and which datafix you use (and how do you apply it : throught recovery (and which one) or by a script manager). So much things to deal with ... :eek:

I'm on Semphore 1.2.5.s (and in 1.2.6s in few minutes ^_^) on Slim-4.2 with SDatafix_test_20120704.zip applied in CWM Recovery. All in default options and everything works like a charm !

I'll edit the OP to add current test version as the previous one doesn't create txt default files and could fulfilled /datadata if installing huge applications or having huge attached parts in Gmail.

You could add app's name as you want : in different lines, space separated etc. as long as their name is correct (case and typo sensitive).

Which datafix did you used ? If the one in OP, that the normal behaviour : skip_apps.txt has to e edited before rebooting the phone (just after the application is installed).

In the current test version this limitation has gone and you could add/remove application from skip_apps.txt (as in move_cache.txt).

As said before, it's the behaviour of the OP datafix version. Both testing versions allow moving cache or full app's data to /datadata or /data as wanted by user !

Do you apply it in recovery ? That's strange cause it's a simple shell script that create these files & directory. Maybe (another) busbox installation/linking problem. I see some user having a superuser problem; maybe the same in recovery (which kernel is used) ?
[Galaxy S I9000 General] alb3rtt:
do you have any idea why when i updated the script from the previous one, my home button stopped working, i had no lockscreen, no extended power menu and a few other things that i cant remember. all i did was install the update from cwm, wipe cache, wipe dalvik cache and reboot and they were gone! i wiped data, installed my apps again and set it up got the low storage notificationth and applied the latest fix in cwm, and it worked fine!