[Galaxy S I9000 Android Development] WiwiPouPou:
Wiwi's Scripts and Addons

Just to be safer, do a nandroid backup before using these packages !

Hi all, i would like to share some little things i use after each update / geeking in /system from phone.

Report any issue, but remember to backup, wipe cache and dalvik cache before !

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

Just a little addon (credits to wesgarner and creators of zipalign) :

A CWM package to add Zipalign at boot, as it is on Darky's and Doc's Roms...

Thanks to Zach, i took 70zipalign script from his kernel package, i've just added zipalign bin in /system/bin (it was missing) !

Tested on my SGS, no issue.

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

TEST

I share too a test-package to "minimalize" MIUI, as Boz did before !

It removes a lot of system apps (which i don't use), feel free to remove lines if you want to keep some of them ! Tested too on my device, no issue since 2 weeks.

Here is the code (feel free to mod it too ! I use it on my own system, look at yours before, init.d folder can be different !!) :

ui_print("WiwiPouPou - Minimalizer Script");
ui_print("");
ui_print("");
ui_print("Starting Script... ");
unmount("/system");
show_progress(0.500000, 0);
mount("yaffs2", "MTD", "system", "/system");
show_progress(0.500000, 40);
ui_print("Cleaning /system/etc/init.d");
delete("/system/etc/init.d/89system_tweak");
delete("/system/etc/init.d/90screenstate_scaling");
delete("/system/etc/init.d/04modules");
ui_print("Deleting some /system apps...");
delete("/system/app/Email.apk");
delete("/system/app/Gmail.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maxthon.apk");
delete("/system/app/Miui-ROM-Downloader.apk");
delete("/system/app/YouTube.apk");
delete("/system/app/CloudService.apk");
delete("/system/app/Swype.apk");
delete("/system/app/VisualizationWallpapers.apk");
delete("/system/app/Protips.apk");
delete("/system/app/install_flash_player.apk");
ui_print("Repairing System Permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/gps.xml");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/apply_firewall");
set_perm(0, 0, 06755, "/system/xbin/apply_theme");
set_perm(0, 0, 06755, "/system/xbin/dumplog");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/mv2sd");
set_perm(0, 0, 06755, "/system/xbin/ota");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
unmount("/system");

Credit goes to a lot of people ! ^^ I've just mixed some little things...

And i'm not responsible if something goes wrong !