[Galaxy Tab 2 7" Android Development] Tsjoklat:
Ive optimized the patch I made for updater-script:

--- updater-script.orig	2014-04-05 21:08:05.000000000 +0200
+++ updater-script	2014-08-26 23:54:46.240750755 +0200
@@ -26,23 +26,25 @@
run_program("/tmp/cleaner.sh");
package_extract_dir("system", "/system");
ui_print("- Set permissions");
-set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
-set_perm_recursive(0, 0, 0755, 0644, "/system/etc/wifi");
-set_perm(0, 0, 0644, "/system/etc/wifi/wpa_supplicant.conf");
-set_perm(0, 0, 0644, "/system/etc/powervr.ini");
-set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
-set_perm_recursive(0, 0, 0755, 0644, "/system/lib/hw");
-set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
-set_perm(0, 0, 0755, "/system/lib/drm");
-set_perm(0, 0, 0755, "/system/lib/egl");
-set_perm(0, 0, 0755, "/system/lib/soundfx");
-set_perm(0, 0, 0755, "/system/lib/ssl");
-set_perm_recursive(0, 0, 0755, 0644, "/system/vendor");
-set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
-set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
-set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/lib");
-set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/lib/egl");
-set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/lib/hw");
+set_metadata("/system/bin/dock_kbd_attach", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/bin/geomagneticd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/bin/gpsd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/bin/orientationd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/etc/powervr.ini", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata_recursive("/system/etc/wifi", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata_recursive("/system/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata_recursive("/system/vendor/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:pvrsrvinit_exec:s0");
+set_metadata("/system/vendor/bin", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/bin/pvrsrvctl_SGX540_120", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/firmware/BCM4330.hcd", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/firmware/ducati-m3.bin", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:firmware_ducati:s0");
+set_metadata_recursive("/system/vendor/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata_recursive("/system/vendor/lib/drm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/lib/drm/libdrmwvmplugin.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/lib/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
+set_metadata("/system/vendor/lib/hw", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
ui_print("- Running final installer");
set_perm(0, 0, 0755, "/tmp/installer.sh");
run_program("/tmp/installer.sh");