Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ui_print("");
- ui_print("");
- ui_print("");
- ui_print(" _____ ___ ____ _____ __ __ _____");
- ui_print(" | ___| \|____| ___| | |__| |");
- ui_print(" |___ | |____|___ | | | | | |");
- ui_print(" |_____|___/|____|_____|__|_____|__|__|");
- ui_print("");
- ui_print("");
- ui_print("");
- show_progress(0.01, 0);
- ui_print("-- Checking phone ID");
- assert(getprop("ro.product.device") == "d2vzw" || getprop("ro.build.product") == "d2vzw" || getprop("ro.product.board") == "d2vzw");
- ui_print("-- Phone ID: Verizon Samsung Galaxy S3");
- ui_print("-- Preparing SDesign for installation");
- ui_print("");
- # Full Wipe
- if
- file_getprop("/tmp/aroma-data/wipe.prop","selected.0") == "2"
- then
- ui_print("");
- ui_print(".:: Executing Full Wipe");
- set_progress(0.01);
- ui_print("@ Formatting /system");
- format("ext4", "EMMC", "/dev/block/mmcblk0p14");
- set_progress(0.03);
- ui_print("@ Formatting /cache");
- run_program("/sbin/erase_image", "system");
- format("ext4", "EMMC", "/dev/block/mmcblk0p17");
- set_progress(0.05);
- ui_print("@ Formatting /data");
- format("ext4", "EMMC", "/dev/block/mmcblk0p15");
- ui_print(".:: Wipe Complete!");
- mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
- mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
- package_extract_dir("system", "/system");
- # Running user choice settings.
- ui_print(" ");
- ui_print(".:: Installing custom packages");
- # Custom options
- # Color
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.1") == "1"
- then
- ui_print("-- Installing Color");
- package_extract_dir("extras/apps/color", "/system/app");
- endif;
- # All Share Play
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.2") == "1"
- then
- ui_print("-- Installing All Share Play");
- package_extract_dir("extras/apps/asp", "/system/app");
- endif;
- # Kies Air
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.3") == "1"
- then
- ui_print("-- Installing Kies Air");
- package_extract_dir("extras/apps/ka", "/system/app");
- endif;
- # Facebook
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.4") == "1"
- then
- ui_print("-- Installing Facebook");
- package_extract_dir("extras/apps/fb", "/system/app");
- endif;
- # Gmail
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.5") == "1"
- then
- ui_print("-- Installing Gmail");
- package_extract_dir("extras/apps/gmail", "/system/app");
- endif;
- # Twitter
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.6") == "1"
- then
- ui_print("-- Installing Twitter");
- package_extract_dir("extras/apps/twitter", "/system/app");
- endif;
- # Amazon Kindle
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.7") == "1"
- then
- ui_print("-- Installing Amazon Kindle");
- package_extract_dir("extras/apps/ak", "/system/app");
- endif;
- # ICS Messaging
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.8") == "1"
- then
- ui_print("-- Installing ICS Messaging");
- package_extract_dir("extras/apps/mms", "/system/app");
- endif;
- # VPN Client
- if
- file_getprop("/tmp/aroma-data/custom.prop","item.1.9") == "1"
- then
- ui_print("-- Installing VPN Client");
- package_extract_dir("extras/apps/vpn", "/system/app");
- endif;
- # Verizon Navigator
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.10") == "1"
- then
- ui_print("-- Installing Verizon Navigator");
- package_extract_dir("extras/apps/vzn", "/system/app");
- endif;
- # Verizon Apps
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.11") == "1"
- then
- ui_print("-- Installing Verizon Apps");
- package_extract_dir("extras/apps/vza", "/system/app");
- endif;
- # My Verizon
- if
- file_getprop("/tmp/aroma-data/customize.prop","item.1.12") == "1"
- then
- ui_print("-- Installing My Verizon");
- package_extract_dir("extras/apps/mvz", "/system/app");
- endif
- # Apex Launcher
- if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "1"
- then
- ui_print("-- Installing Apex Launcher");
- package_extract_dir("extras/launchers/apex", "/system/app");
- endif;
- # TouchWiz Launcher
- if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "2"
- then
- ui_print("-- Installing TouchWiz Launcher");
- package_extract_dir("extras/launchers/tw56", "/system/app");
- endif;
- # Tw Original S3 Launcher
- if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "3"
- then
- ui_print("-- Installing TouchWiz Launcher");
- package_extract_dir("extras/launchers/tw", "/system/app");
- endif;
- # Tw S3 Launcher Enable Wallpaper Scroll
- if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "4"
- then
- ui_print("-- Installing TouchWiz Launcher");
- package_extract_dir("extras/launchers/twscroll", "/system/app");
- endif;
- # Nova Launcher
- if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "5"
- then
- ui_print("-- Installing Nova Launcher");
- package_extract_dir("extras/launchers/nova", "/system/app");
- endif;
- # Trebuchet Launcher
- if file_getprop("/tmp/aroma/launcher.prop","selected.1") == "6"
- then
- ui_print("-- Installing Trebuchet Launcher");
- package_extract_dir("extras/launchers/trebuchet", "/system/app");
- endif;
- # HomeButtonHack
- if file_getprop("/tmp/aroma/mods.prop","selected.1") == "1"
- then
- ui_print("-- Implementing Home Button Hack");
- package_extract_dir("extras/fwm/lagfix/y", "/system/framework");
- endif;
- # No HomebuttonHack
- if file_getprop("/tmp/aroma/mods.prop","selected.1") == "2"
- then
- package_extract_dir("extras/fwm/lagfix/n", "/system/framework");
- endif;
- # Mute Camera
- if file_getprop("/tmp/aroma/mods.prop","selected.2") == "2"
- then
- ui_print("-- Removing Camera Sound");
- package_extract_file("extras/fwm/camsound/off/Volume.db", "/system/etc/Volume.db");
- endif;
- # Dont Mute Cam
- if file_getprop("/tmp/aroma/mods.prop","selected.2") == "1"
- then
- package_extract_file("extras/fwm/camsound/on/Volume.db", "/system/etc/Volume.db");
- endif;
- # AM PM On
- if file_getprop("/tmp/aroma/mods.prop","selected.3") == "1"
- then
- ui_print("-- Installing AM/PM");
- package_extract_file("extras/fwm/ampm/y/SystemUI.apk", "/system/app/SystemUI.apk");
- endif;
- # AM PM Off
- if file_getprop("/tmp/aroma/mods.prop","selected.3") == "2"
- then
- package_extract_file("extras/fwm/ampm/n/SystemUI.apk", "/system/app/SystemUI.apk");
- endif;
- # Input Notification On
- if file_getprop("/tmp/aroma/mods.prop","selected.4") == "1"
- then
- package_extract_dir("extras/fwm/input/y", "/system/framework");
- endif;
- # Input Notification Off
- if file_getprop("/tmp/aroma/mods.prop","selected.4") == "2"
- then
- ui_print("@ Removing Input Notification");
- delete("/system/framework/services.jar");
- package_extract_dir("extras/fwm/input/n", "/system/framework");
- endif;
- #Sony Bravia Engine
- if
- file_getprop("/tmp/aroma-data/image.prop","selected.1") == "1"
- then
- ui_print("-- Adding Sony Bravia Engine");
- package_extract_dir("extras/bravia", "/system");
- set_perm(0, 0, 0755, "/system/etc/be_photo");
- set_perm(0, 0, 0755, "/system/etc/be_movie");
- endif;
- #Sony XLoud Engine
- if
- file_getprop("/tmp/aroma-data/audio.prop","selected.1") == "1"
- then
- ui_print("-- Adding Sony XLoud Engine");
- package_extract_dir("extras/xloud", "/system");
- endif;
- set_progress(0.20);
- #GPS Configuration for your location
- ui_print("");
- ui_print(".:: Installing custom GPS configuration");
- set_progress(0.30);
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.1") == "1"
- then
- ui_print("-> Asia specific GPS configuration");
- package_extract_dir("extras/gps/asi", "/system");
- endif;
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.2") == "1"
- then
- ui_print("-> Australia specific GPS configuration");
- package_extract_dir("extras/gps/aus", "/system");
- endif;
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.3") == "1"
- then
- ui_print("-> Europe specific GPS configuration");
- package_extract_dir("extras/gps/eur", "/system");
- endif;
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.4") == "1"
- then
- ui_print("-> North America specific GPS configuration");
- package_extract_dir("extras/gps/nam", "/system");
- endif;
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.5") == "1"
- then
- ui_print("-> South America specific GPS configuration");
- package_extract_dir("extras/gps/sam", "/system");
- endif;
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.6") == "1"
- then
- ui_print("-> Oceania specific GPS configuration");
- package_extract_dir("extras/gps/oce", "/system");
- endif;
- if
- file_getprop("/tmp/aroma-data/gpsconf.prop","item.0.7") == "1"
- then
- ui_print("-> Aouth Africa specific GPS configuration");
- package_extract_dir("extras/gps/saf", "/system");
- endif;
- ui_print("");
- ui_print(".:: Symlinking");
- symlink("dumpstate", "/system/bin/dumpcrash");
- symlink("toolbox", "/system/bin/cat");
- symlink("toolbox", "/system/bin/chmod");
- symlink("toolbox", "/system/bin/chown");
- symlink("toolbox", "/system/bin/cmp");
- symlink("debuggerd", "/system/bin/csview");
- symlink("toolbox", "/system/bin/date");
- symlink("toolbox", "/system/bin/dd");
- symlink("toolbox", "/system/bin/df");
- symlink("toolbox", "/system/bin/dmesg");
- symlink("toolbox", "/system/bin/getevent");
- symlink("toolbox", "/system/bin/getprop");
- symlink("toolbox", "/system/bin/hd");
- symlink("toolbox", "/system/bin/id");
- symlink("toolbox", "/system/bin/ifconfig");
- symlink("toolbox", "/system/bin/iftop");
- symlink("toolbox", "/system/bin/insmod");
- symlink("toolbox", "/system/bin/ioctl");
- symlink("toolbox", "/system/bin/ionice");
- symlink("toolbox", "/system/bin/kill");
- symlink("toolbox", "/system/bin/ln");
- symlink("toolbox", "/system/bin/log");
- symlink("toolbox", "/system/bin/ls");
- symlink("toolbox", "/system/bin/lsmod");
- symlink("toolbox", "/system/bin/lsof");
- symlink("toolbox", "/system/bin/mkdir");
- symlink("toolbox", "/system/bin/mount");
- symlink("toolbox", "/system/bin/mv");
- symlink("toolbox", "/system/bin/nandread");
- symlink("toolbox", "/system/bin/netstat");
- symlink("toolbox", "/system/bin/newfs_msdos");
- symlink("toolbox", "/system/bin/notify");
- symlink("toolbox", "/system/bin/printenv");
- symlink("toolbox", "/system/bin/ps");
- symlink("toolbox", "/system/bin/reboot");
- symlink("toolbox", "/system/bin/renice");
- symlink("toolbox", "/system/bin/rm");
- symlink("toolbox", "/system/bin/rmdir");
- symlink("toolbox", "/system/bin/rmmod");
- symlink("toolbox", "/system/bin/route");
- symlink("toolbox", "/system/bin/schedtop");
- symlink("toolbox", "/system/bin/sendevent");
- symlink("toolbox", "/system/bin/setconsole");
- symlink("toolbox", "/system/bin/setprop");
- symlink("mksh", "/system/bin/sh");
- symlink("toolbox", "/system/bin/sleep");
- symlink("toolbox", "/system/bin/smd");
- symlink("toolbox", "/system/bin/start");
- symlink("toolbox", "/system/bin/stop");
- symlink("toolbox", "/system/bin/sync");
- symlink("toolbox", "/system/bin/top");
- symlink("toolbox", "/system/bin/touch");
- symlink("toolbox", "/system/bin/umount");
- symlink("toolbox", "/system/bin/uptime");
- symlink("toolbox", "/system/bin/vmstat");
- symlink("toolbox", "/system/bin/watchprops");
- symlink("toolbox", "/system/bin/wipe");
- ui_print("");
- ui_print(".:: Setting Permissions");
- 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_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_recursive(0, 2000, 0755, 0644, "/system/vendor");
- set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
- set_perm(0, 2000, 0755, "/system/vendor/firmware");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
- set_perm(0, 0, 06755, "/system/xbin/su");
- set_perm(0, 1000, 0755, "/system/bin/busybox");
- symlink("/system/bin/busybox", "/system/xbin/busybox");
- package_extract_file("installbusybox", "/tmp/installbusybox");
- set_perm(0, 0, 0777, "/tmp/installbusybox");
- run_program("/tmp/installbusybox");
- set_perm(0, 0, 0755, "/system/etc/be_movie");
- set_perm(0, 0, 0755, "/system/etc/be_photo");
- show_progress(0.1, 10);
- unmount("/data");
- unmount("/system");
- ui_print("Done");
Advertisement
Add Comment
Please, Sign In to add comment