[Galaxy S 4 i9505 Original Android Development] Dennys_Santos:
gharrington

My device is GT-i9500 and the package "3Minit_Framework_2.0.1_MEA_MD5_50E307D5E691ADEC29B75F1A9633ED1D" to work on my latest ROM "GT-I9500_WanamLite.XXUBMEA.V1.3.NO-WIPE", I had to make the following changes:

file: META-INF\com\google\androidupdater-script

ui_print("");
show_progress(1.000000, 0);
ui_print("++++++++++++++++++++++++++++");
ui_print("Samsung Galaxy SIV");
ui_print("++++++++++++++++++++++++++++");
ui_print("3Minit Framework v2.0");
ui_print("++++++++++++++++++++++++++++");
ui_print("Developed by Gary Harrington");
ui_print("++++++++++++++++++++++++++++");
ui_print("For Deodexed roms only");
ui_print("++++++++++++++++++++++++++++");

ui_print("Wiping Cache ...");
ui_print("++++++++++++++++++++++++++++");
mount("ext4", "EMMC", "/dev/block/mmcblk0p19", "/cache");
delete_recursive("/cache");

ui_print("Wiping Dalvik Cache ...");
ui_print("++++++++++++++++++++++++++++");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/data");
delete_recursive("/data/dalvik-cache");

set_progress(0.300000);
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
ui_print("Removing old files ...");
ui_print("++++++++++++++++++++++++++++");
delete("/system/app/SecLauncher3.apk");
delete("/system/app/SystemUI.apk");
delete("/system/app/threeminitsettings.apk");
delete("/system/app/SecSettings.apk");
delete("/system/framework/android.policy.jar");

ui_print("Flashing ...");
ui_print("++++++++++++++++++++++++++++");
package_extract_dir("system", "/system");
set_progress(0.600000);

ui_print("Setting permissions ...");
ui_print("++++++++++++++++++++++++++++");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");

set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");

set_perm(0, 3003, 06755, "/system/bin/ip");
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_pair_devlist.conf");
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, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
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_recursive(0, 0, 0755, 0755, "/system/etc/init.d");

unmount("/system");
set_progress(1.000000);
show_progress(1.000000, 0);
ui_print("Framework Installed.. Please Reboot");

I hope you find it useful.

-----

You could put the options "EXPORT and IMPORT" settings made in "3minit Settings" application, this would facilitate the sharing of modifications made by users.

Thanks for the great work.