yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Themes and Apps] nereis:
I wished I had that much in datadata!

I am truly amazed by what I just saw the new app spit out. LOL

Uninstall some apps or add some apps to move_cache or skip_apps.

You need to loose 4.4 GiB :silly:

You have the new log in email, but I'll put one up here too.

--

I just tried datafix again, this time trying to move less apps (just gmail & download manager this time)

The same error message comes up reporting 4.4GB required, so I guess the amount "required" is not apps to move dependent.
[Galaxy S I9000 Themes and Apps] Zatta:
Hi all,

I have decided to push the app as it is now to the market. Most of the people won't notice any difference, others will get the script running again with it, and, surprise surprise, the German users will have it in German, thanks to sUsh667.

Itenos, your phone should get okay with the new app, just keep checking boxes until the app decides it is okay to flash the script to init.d, and than add some more to save some extra space. I have no idea why the cache/data clearing function stopped working on your phone.

Nereis, your phone seems to have a problem in /datadata/com.adobe.reader, isn't there a symlink pointing back to /data/data? Looks like a loop of symlinks, something has gone wrong there for some reason. Uninstall adobe reader, check with rootexplorer is there are no remaining data on both /data/data and /datadata and it should become okay again.

Thanks to all who have been helping to improve the app and script, I have plannened to push this update earlier but it seemed to be a bit more complicated than I thought.
[Galaxy S I9000 Themes and Apps] Silentbob999:
Do you check the recursive level. Either on the apps or on the script. If you are able to detect if a symlink create a loop and offer to the user to delete them. That may help.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Themes and Apps] Zatta:
Actually not. I wouldn't know how to do to be honest, that might be the next step. On the other hand, this is the first time I've seen such a thing. But now the pushed app will at least write such things to the log, who knows more people suffer from this.

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
Hello Zatta.

First many thanks for your work !

I got also the recursivity problem, but with the program iGO My Way.

If I deinstall it, datafix 1.2 is happy. But it isn't very practical to deinstall/reinstall/parametrize each time...

Should be nice to be able to ask datafix to ignore iGO.

Note that TitaniumBackup got also a problem with iGO, but I can remove it from the to-backup list before launch the work....

Thanks for your attention and regards.
[Galaxy S I9000 Themes and Apps] Zatta:
Interesting find, the tb thing I mean... I promise I'll have a look into it again but I won't promise a perfect solution. I'm glad I've added this debugging option, else I would still be crawling in the dark :)

Taptalked u see
[Galaxy S I9000 Themes and Apps] Silentbob999:
I will search for a way to find this.

Somebody give me a way to exclude symlink :

http://xdaforums.com/showthread.php?p=31598398

I give quick look at the datafix script, I am not sure if the command would be directly usable without breaking anything. I think the opposite will be more suitable.

Readlink seems promising. If we can determine which files is actually a symlink, Readlink it, and compare the results with the file location to be sure it is not creating a loop.. That will work as an extra function to check/clean that situation.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Themes and Apps] Silentbob999:
For those who get recursive issue. Can you manually find and delete the defective symlink to test the result?

Use a root explorer that show symlink. For example ScriptManager

For example, in the case of @nereis that have data/data/datadata/datadata/......../datadata/. You should have "/data/data/datadata -> /data/data/datadata". Just delete it (/data/data/datadata), its a symlink to itself and thats really not good.
[Galaxy S I9000 Themes and Apps] nereis:
Unfortunately I've since migrated to jelly bean, so perhaps another member still on cm9 partition layout can test.
[Galaxy S I9000 Themes and Apps] Zatta:
Thanks BOB, for having a look. I didn't find time to have a serious look at it. There seems no easy way to reproduce the problem. I think the cases are rare anyway.

In the end there are two problems: the recursive symlinks and the problem where du can't find a folder. The last one can be avoided quite simple I think, the first one is more difficult as I'm calculating the sizes of both /datadata as /data/data.

Taptalked u see
[Galaxy S I9000 Themes and Apps] Silentbob999:
I am close of a way to detect recursive symlink, its a work in progress that I will put on hold, so if you are interested to take a look at it, there an error that show up and anoying me :p...

#!/system/bin/sh
echo "Begin"
echo "Begin" > /sdcard/SearchRecursive.txt
for Dir2 in $(busybox du /data /datadata |busybox cut -f2); do
if [[ -e "$Dir2" && -L "$Dir2" ]]; then
LinkToFolder=$(busybox readlink "$Dir2");
echo "$Dir2 link to $LinkToFolder" ;
if [echo '$Dir2' | grep -q "$LinkToFolder" 1>/dev/null 2>&1 ];then
echo "Found recursive:" ;
echo "Found recursive:" >> /sdcard/SearchRecursive.txt
echo "$Dir2 link to $LinkToFolder" ;
echo "$Dir2 link to $LinkToFolder" >> /sdcard/SearchRecursive.txt
fi
fi
done
echo "End" ;
echo "End" >> /sdcard/SearchRecursive.txt
[Galaxy S I9000 Themes and Apps] Ledaa:
I've installed ScriptManager.

On the root level, it shows only as link:

emmc -> /mnt/emmc

etc -> /system/etc

sdcard -> /mnt/sdcard/

vendor -> /system/vendor/

d -> /sys/kernel/debug

Nothing remarkable in /data or /datadata

Should I look for something else ?

Regards.
[Galaxy S I9000 Themes and Apps] Zatta:
Yes, you could have a look in /datadata/com.whetever_iGo.is/*, there might be a symlink. Just remove it and make it a directory.

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
OK.

First I checked /datadata/com.navngo.igo.javaclient

No link but 5 subdirectories. None of the 5 contains a link...

Then I checked /data. No link.

Then /data/data/com.navngo.igo.javaclient

It contains several links pointing to /datadata/com.navngo.igo.javaclient/ + a subdirectory

or to /mnt/sdcard/igo/ + a subdirectory or a file.

However, I can not remove a link without impacting execution of iGO.

Regards.
[Galaxy S I9000 Themes and Apps] Zatta:
Interesting, can you run the app while debugging is activated and press install? You don't have to install anything, the debugging file is created when pressing install anyway.

And ofc, post the debugging file find on your sdcard?

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
Here it is.

***** LOCAL ***

drwxrwxr-x anr

drwxrwx--x app

drwxrwx--x app-private

drwx------ backup

-rw-rw-rw- 08:09 bdaddr

drwxrwx--x dalvik-cache

drwxrwx--x data

drwxrwx--x data2

drwxr-x--- dontpanic

drwxrwx--- download

drwxrwx--- drm

drwx------ gps

drwxr-x--x local

drwxrwxr-x log

drwxrwx--- lost+found

drwxrwx--t misc

drwx------ property

drwxrwx--- radio

drwxrwx--x resource-cache

drwxrwxr-x system

drwxr-xr-x tombstones

drwxr-xr-x user

/data/local:

drwxrwxrwx datafix

-rw-rw-rw- 08:10 first_boot

-rw-rw-rw- 08:10 succ_boot

drwxrwx--x tmp

/data/local/datafix:

-rwxrwxrwx 15:26 move_cache.txt

-rwxrwxrwx 10:02 move_cache.txt.bak

-rwxrwxrwx 15:26 skip_apps.txt

-rwxrwxrwx 09:40 skip_apps.txt.bak

/data/local/tmp:

***** TITANIUM ***

/data/data/com.keramidas.TitaniumBackup:

lrwxrwxrwx cache ->

lrwxrwxrwx databases ->

lrwxrwxrwx files ->

drwxr-xr-x lib

lrwxrwxrwx shared_prefs ->

/data/data/com.keramidas.TitaniumBackup/lib:

-rwxr-xr-x 00:00 libtitanium.so

/datadata/com.keramidas.TitaniumBackup:

drwxrwx--x cache

drwx------ databases

drwxr-xr-x files

drwxr-xr-x shared_prefs

/datadata/com.keramidas.TitaniumBackup/cache:

-r-------- 10:02 com.android.opengl.shaders_cache

drwx------ webviewCacheChromium

drwx------ webviewCacheChromiumStaging

/datadata/com.keramidas.TitaniumBackup/cache/webviewCacheChromium:

-rw------- 10:02 data_0

-rw------- 10:02 data_1

-rw------- 10:02 data_2

-rw------- 10:02 data_3

-rw------- 10:02 index

/datadata/com.keramidas.TitaniumBackup/cache/webviewCacheChromiumStaging:

/datadata/com.keramidas.TitaniumBackup/databases:

-rw-rw---- 10:02 custom

-rw-rw---- 10:02 filters

-rw-rw---- 09:41 schedules

-rw-rw---- 09:41 schedules-journal

-rw-rw---- 10:02 sysinfo

-rw-rw---- 10:02 sysinfo-journal

-rw-rw---- 10:02 webview.db

-rw-rw---- 10:02 webview.db-shm

-rw-rw---- 10:02 webview.db-wal

-rw-rw---- 10:02 webviewCookiesChromium.db

-rw-rw---- 10:02 webviewCookiesChromiumPrivate.db

/datadata/com.keramidas.TitaniumBackup/files:

-rwxr-xr-x 10:02 busybox

-rwxr-xr-x 10:02 sqlite3

/datadata/com.keramidas.TitaniumBackup/shared_prefs:

-rw-rw---- 15:19 AppLabelCache.xml

-rw-rw---- 10:02 _has_set_default_values.xml

-rw-rw---- 08:55 com.keramidas.TitaniumBackup_preferences.xml

***** INIT.D ***

-rwxr-x--- 09:58 S20enable_netfilter

-rwxr-xr-x 09:58 S22enable_deepidle

-rwxr-xr-x 15:26 S30datafix_ng_busybox

-rwxr-xr-x 09:58 S35enable_tun

-rwxr-x--- 09:58 S47enable_radio

***** Check Sizes ***

avail:176128 dif:962556 total:1041636 lib:59228 cache:18440 skip:1412 791428

***** Check Sizes ***

***** LOGCAT ***
[Galaxy S I9000 Themes and Apps] Zatta:
Alright, than I don't understand your exact problem with the script and iGo..

Can you stipulate it more precise?

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
Here is my problem:

I press Install

After a while, Datafix displays an error message in red color.

(not exact wording. Translated from French)

Disk space on /datadata is too small to execute datafix script correctly.

Delete some applications or add some applications to files move_cache or skip_apps.

You must free 773.3 MB.

This figure of 773.3 MB does not correspond to the sum of applications, and does not change

when I add an app with 4,7 MB of cache.

Regards.
[Galaxy S I9000 Themes and Apps] Zatta:
Ah, now I see. There is no problem with recursive symlinks, it is a problem with the way I calculate the sum of data to be moved! I will find a way to overcome this very soon.

The script is taking the data stored on your sdcard in account because iGo uses a symlink to point to its maps or something. Right.

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
Sorry to have misleading you when I spoke about recursivity...

Regards.
[Galaxy S I9000 Themes and Apps] Silentbob999:
Something like this :

size_total=$(busybox du -sc /data/data /datadata|busybox tail -1|busybox cut -f1)

Instead of :

size_total=$(busybox du -sLc /data/data|busybox tail -1|busybox cut -f1)

Envoyé depuis mon GT-I9000 avec Tapatalk

---------- Post added at 09:42 AM ---------- Previous post was at 09:41 AM ----------

Good job Zatta

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Themes and Apps] Zatta:
On my phone there is a gap of 200 mb's between both options, I'm still looking into this but it seems to be more complicated than I hoped for.

Another problem is that I gave the S1 to my gf, as she has owned a galaxy gio before and i now have a s3, or is slowing down development a little (must things i can test on my s3, but for this particular post of the script I need to have the partition for real)

Taptalked u see
[Galaxy S I9000 Themes and Apps] Silentbob999:
I did not apply the fix so my test don't have the same value. In all /data the only symlink I have is /data/data --> /datadata.

For me the size difference is 305417 instead of 301824 which look reasonable.

I mean maybe I have a symlink in /datadata that add few MO from somewhere else..

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Themes and Apps] Zatta:
For testing it might be more easy to work on /data/data/by.zatta.datafix/files/totalscript.sh. Problem is this file gets overwritten everything you launch the datafix app.

To use the function just type in terminal emulator / adb shell:

su
/data/data/by.zatta.datafix/files/totalscript.sh check_sizes

Personally I prefer QtADB for a shell, it makes pushing and pulling very easy.

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
Another limitation.

The nandroid backup does not handle applications moved to SD card...

Thus it's better to simply take a CWM backup before starting datafix.

Regards.
[Galaxy S I9000 Themes and Apps] Zatta:
As far as I know a cwm backup and a nandroid are the same? I think you mean a titanium backup instead?

Edit: looks like this app can be used on the newest cm10 add well, although it has over 400 mb available on /datadata (how would that ever get filled?!)

Taptalked u see
[Galaxy S I9000 Themes and Apps] Ledaa:
Yes, CWM backup and nandroid backup should be the same.

But in the present case, there is a difference:

when I boot in recovery mode and start a backup, the clockworkmod is stored on \mnt\sdcard and includes .android_secure (of emmc), I can restore all the apps.

and when I tick the nandroid backup mark of datafix, the clockworkmod is stored on \mnt\emmc and does not include the apps moved on \emmc. The apps are only partially restored, and are not executable. I have to restore them again with TitaniumBackup.

Regards.
[Galaxy S I9000 Themes and Apps] Zatta:
That is pretty unexpectedf because I tell cwm to do a backup with this line:

String backup = "assert(backup_rom(\"/sdcard/clockworkmod/backup/"+backupName+"\"));";

And on my SGS1 it actually goes to /mnt/sdcard/clockworkmod/backup but it has been a while since I last tried.

If you try doing a nandroid from RomManager, it the behaviour the same?
[Galaxy S I9000 Themes and Apps] nereis:
I recall when I was on ics your app always made backup on the removable sd, while default backup I initiate from CWM goes to the internal storage. Not sure if this helps?
[Galaxy S I9000 Themes and Apps] Zatta:
Pfew, I cant't remember how it exactly was. Where do the symlinks all point to?

ICS:

/sdcard points to /mnt/sdcard

/emmc points to /mnt/emmc

JB:

/sdcard points to /storage/sdcard0

/emmc points to /storage/sdcard1

or something like that? Or is it different? I can't check myself because my girlfriend is using the sgs1 now, and I am at work at the North Sea atm. That's a bit difficult to debug :S
[Galaxy S I9000 Themes and Apps] nereis:
I think you got it right.

Slim Bean has a whole bunch of other locations though.

I see ./sdcard/ ./mnt/sdcard/ ./storage/sdcard0/ all pointing to internal storage.

While ./emmc/ ./mnt/emmc/ ./storage/sdcard1/ point to removable sd.

That used to cause trouble with some earlier versions of software as they see duplicate media files.
[Galaxy S I9000 Themes and Apps] Ledaa:
I run ICS.

/sdcard and /emmc point as you wrote for ICS.

Regards.
[Galaxy S I9000 Themes and Apps] Zatta:
I have no clue what to do with this matter. CWM does not accept extendedcommands with /mnt/sdcard or /storage/sdcard0 like strophes, it only accepts /sdcard. When I made the app cwm was somewhere at version 5.something, maybe something has changed on the rom side in the fstab whatever it is called or a change has been made to cwm itself. I'll keep looking into it.

Some more (sad) news regarding the app, I can't find a fully working solution for the recursive symlinks and the symlinks pointing to the sdcard (the iGo problem) so I'm a bit at a point that it is what is. If someone encounters one of these bug I hope he (or she) will find this forum and asks for help
[Galaxy S I9000 Themes and Apps] Ledaa:
Thanks for your efforts, Zatta.

My CWM is at version 6 (included in Semaphore 1.3.0). I don't know whether it matters...

Meanwhile you find a solution for the recursive symlinks,

I circumvent the problem by:

- taking a CWM backup

- launching Datafix 1.0.1 that I retrieve in one of my TitaniumBackup backup.

I suggest you make version 1.0.1 available (f.i. in this forum) beside version 1.1.2 available in Google Play.

Regards.
[Galaxy S I9000 Themes and Apps] nemanja066:
Rename [APP - SCRIPT][CM7, 9, HellyBean] Datafix - for "low storage notification" problems to [APP - SCRIPT][CM7, 9, 10, HellyBean] Datafix - for "low storage notification" problems

From date 25.9, CM10 have /datadata (same parition layout as HellyBean) :D
[Galaxy S I9000 Themes and Apps] Zatta:
Nah, it will require me to undo the changes I have made as I didn't save the original 1.0.1 apk that was pushed to the play store. I just have my sources. I will continue to make improvements and come with an update anyway this week/weekend that makes the "new/advanced" space available check an option or something like that. Mind if I PM you for some testing?

Owch, I had to change the tiltle anyway because CM7 isn't supported by this app (the script works, but the app is made against api 15)
[Galaxy S I9000 Themes and Apps] Zatta:
Sorry for letting some people (Ledaa) wait for an update, I borked my laptop while I am at sea. I am working on getting the last time introduced " advanced space available check" to be an option rather that having it as the sole solution. Some people are getting strange problems with it, although I am receiving very little complaints about it. Hopefully I get my laptop up and running soon.

Some good news for me: My GF doesn't like my S1 so I will have a dedicated development phone after this trip at sea. I can't imagine she doesn't like it because she has a non rooted Galaxy Gio running Froyo :S Good thing is: I can keep updating this app more easily because I am now doing everyting on my SGS3.
[Galaxy S I9000 Themes and Apps] he_pennypacker:
I just installed your app from Google Play, selected the apps to move, and chose to create files with a reboot. The nandroid backup completed, and now I am stuck in a boot loop. I get the GT-I9000 splash screen, then the CM splash screen, then the GT-I9000 screen etc...

I've tried pulling the battery, sim and external sd card.

I installed on the cm-9-20120916-NIGHTLY to try to fix the "low on space" notification and lagginess.

What do I do from here?
[Galaxy S I9000 Themes and Apps] Zatta:
That is a nasty thing, those bootloops. If you still have cwm, you could try to do a factory reset and restore your nandroid.

If you can't, you need to go the Odin route. There is a semaphore.tar somewhere, flash that as pda without repartition.

Unfortunately I'm not near my computer (that i managed to fix btw) so i can't help you out further atm.

Once you have restored cwm, do as I said above.

Edit: for cwm less bootloop, flash a tar file from this post for cm9 (not for 10) with odin:

http://xdaforums.com/showthread.php?p=21910951

And please let me know the results, I'm always curious for the outcome when i helped someone.

Taptalked u see .. əəs n pəʞlɐʇdɐʇ
[Galaxy S I9000 Themes and Apps] he_pennypacker:
I didn't have recovery so couldn't restore from nandroid. I ended up flashing a tar that restored recovery, but I couldn't be bothered faffing around to restore CM9, so I took the opportunity to flash a fresh rom and upgrade to CM10.

Cheers...
[Galaxy S I9000 Themes and Apps] dusselwussel:
Datafix not working

Hi there,

first I want to say thank you for that great job, although it does not work for me so far:

I've already installed the Datafix app, ran the script incl. nandroid backup, but after the restart nothing changed - still the same as before saying "create files and reboot".

Any ideas? Thanks for your help.

Regards
[Galaxy S I9000 Themes and Apps] Zatta:
Gutenabend,

Plenty ideas :) Can you please:

enable debuging in the settings of the app,

close the app,

open the app,

choose install without reboot and

close the app by the exit button.

After that there will be a file on your sdcard, debugfileZatta.txt or something alike and attach it to a post here?
[Galaxy S I9000 Themes and Apps] dusselwussel:
Quick answer from my mobile. File attached.
[Galaxy S I9000 Themes and Apps] Zatta:
Can you check if the file in /system/etc/init.d/S30datafix_ng_busybox actually is the script? It looks like it is empty for some reason, maybe you can try to press install again, first without reboot, than with?
[Galaxy S I9000 Themes and Apps] dusselwussel:
Did as requested, file still empty :/
[Galaxy S I9000 Themes and Apps] Zatta:
Is there a non-empty file at /datadata/by.zatta.datafix/files/30datafix_ng_busybox? If it is not there or empty, uninstall datafix app and reinstall it. from google play. Then run the app and check again please.

And your first three thanks are in the pocket :P
[Galaxy S I9000 Themes and Apps] dusselwussel:
Is there and not empty.. reinstalled, too. Still the same.
[Galaxy S I9000 Themes and Apps] Zatta:
Can you confirm /system/etc/init.d/30datafix_ng_busybox there but it is an empty file? Or did I misunderstood something?

What ROM are you using?

What happens if you manually copy /datadata/by.zatta.datafix/files/datafix_ng_busybox to /system/etc/init.d/30datafix_ng_busybox and set permissions accordingly?

Can you PM your email adress to me, so that I can sent you an beta version for the app that will show up on the market shortly, if everyting is working out as it should?
[Galaxy S I9000 Themes and Apps] dusselwussel:
The file exists and is NOT empty.

When trying to copy the file, I get an error: "su error: could not create target file". May this could be the reason?

ROM: 9.0.0-galaxysmtd
[Galaxy S I9000 Themes and Apps] Zatta:
It depends on how you are trying to copy the file. I will prepare a new apk for you, with some more debugging info going into the debugging file but not today. I'll sent it to you tomorrow by mail if you can pm me your gmail adress.

One more time, to get things straight:

a: in /system/etc/init.d there is a file 30datafix_ng_busybox. This one is empty

b: in /datadata/by.zatta.datafix/files there is a file datafix_ng_busybox. This one is NOT empty

c: you have actually rebooted with the file in place

d: after that reboot nothing has changed.
[Galaxy S I9000 Themes and Apps] dusselwussel:
a: correct

b: correct

c: see a+b, yes

d: correct

already sent you my email :) good night
[Galaxy S I9000 Themes and Apps] Zatta:
Thanks, I've received your email, i was only checking xda pm.

Another request, can you try again to install without reboot and, this part of important, exit the app with the exit button that says dump logcat? Ofcourse when debugging is enabled.

Afte leaving the app the debug file should contain a piece of logcat.

Taptalked u see .. əəs n pəʞlɐʇdɐʇ
[Galaxy S I9000 Themes and Apps] dusselwussel:
> exit the app with the exit button that says dump logcat

How to do that? And where can I found the debug file then?
[Galaxy S I9000 Themes and Apps] Zatta:
If you have enabled debugging in the settings of the app, close the app and reopen it. Choose the install button and then choose install without reboot. Then go back to the main screen of the app and next to the install button there is the exit button. press that, you will get a pop-up with the message "exit-dumb logcat".

The file can then be found on the root of your sd card, it will be between 2 and three mb's big. It is important to do all those steps exaclty as I said because only then the logcat will have usefull information (everything the app does by script is in there then).

I didn't sent an updated app because last night I found a fault in the version I sent Ledaa and I didn't have the time to fix it yet. Nightshift @ sea.