[Galaxy S I9000 Android Development] WiwiPouPou:
Hi all, just 250kb of contribution for community...

What's that sh*t ?!!

Just an Edify update.zip compatible CWM3 (and 2.x), based on Doc's Rom And Darkyy's installers scripts, and that's all !

Does it install something ?

Negative. Just scripting's magic !

What does it do ?

Clear cache

Clear dalvik cache (So first reboot after = 4-8 minutes)

Clearing media databases

Fix permissions

In one operation !

But when this could be useful ??

Using multiple No Wipe Roms per month ^^

Switching between differents themes

Errors with media scanner / Really big and old databases / FCs

Manual modding of system's apk / files without caring of their permissions

Too much Geeking ! =)

Does it will boost my Quadrant Score to 3 000 000 ?

Aim of that update-script is just restoring originals permissions and clearing media db, just the minimum when you done some big changes in /system or when you experiment media scanner errors or weird things (FC...)... If issue is not related to it (bad theme, not signed apk...) it can't do anything else for you !

And that's all ! =) But if your device is buggy, you can try that before reflashing an entire /system...

---------------------

Here is updater-script content :

ui_print(" ");
ui_print("WiwiPouPou - Clean'n'Fix");
ui_print("Based on Doc's Rom And Darkyy's Installers scripts");
ui_print(" ");

ui_print("Mounting...");

mount("MTD", "cache", "/cache");
mount("MTD", "data", "/data");
mount("MTD", "system", "/system");
mount("MTD", "dbdata", "/dbdata");

delete_recursive("/cache");

ui_print("Clearing dalvik-cache");
delete_recursive("/data/dalvik-cache");

ui_print("Clearing media databases");
delete_recursive ("/dbdata/databases/com.android.providers.media");
delete_recursive ("/dbdata/databases/com.cooliris.media");

show_progress(0.100000, 10);
ui_print("Repairing Permissions");
ui_print(" ");
set_perm_recursive(0, 0, 0755, 0644, "system");
set_perm_recursive(0, 2000, 0755, 0755, "system/bin");
set_perm_recursive(0, 0, 0755, 0755, "system/etc");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm_recursive(1002, 1002, 0755, 0440, "system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0777, 0777, "system/etc/init.d");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
run_program("scripts/db");
set_perm(1000, 1010, 0771, "/data/app");
show_progress(1.000000, 0);
show_progress(0.100000, 60);
show_progress(0.100000, 10);
show_progress(1.000000, 0);
unmount("/data");
unmount("/system");
unmount("/dbdata");
unmount("/cache");
ui_print("Finish !");

If it can be useful, and better if someone wants to enhance it... tell me !

I plan to add some others separates cleans scripts, to use when device stuck after boot (bad framework-res.apk, bad init.d script...), good when you don't have a PC with adb close to you...

I say 1.0b cause i've tested it on my i9000 only...

So do a backup before, it's always good !

-------

Added Media databases clear only / Permissions Repair only update.zips for separates process (Does not delete caches - you can do it with CWM)

*Sorry for English