Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # FORCE COLOR
- ini_set("force_colorspace","rgba");
- # ROM/Mod INFORMATION
- ini_set("rom_name", "o7th S5 Edition");
- ini_set("rom_version", "1.4");
- ini_set("rom_author", "kevp75");
- ini_set("rom_device", "Galaxy s4 I337");
- ini_set("rom_date", "8-22-14");
- # THEME
- theme("franzyroy");
- splash(7000, "o7th");
- # FONT
- fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "10" );
- fontresload( "1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "12" );
- # LANGUAGE
- loadlang("langs/en.lang");
- # SHOW ROM/Mod INFORMATION
- viewbox(
- #-- Title
- "<~welcome.title>",
- #-- Text
- "<~welcome.text1> <b>"+
- #-- Get Config Value
- ini_get("rom_name")+
- "</b> <~common.for> <b>"+ini_get("rom_device")+"</b>.nn"+
- "<~welcome.text2>nn"+
- " <~welcome.version>t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>n"+
- " <~welcome.updated>t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>nnn"+
- "<~welcome.next>",
- #-- Icon
- "@welcome"
- );
- # LICENSE
- agreebox(
- #-- Title
- "o7th S5 Edition",
- #-- Subtitle / Description
- "Read Carefully",
- #-- Icon:
- "@license",
- #-- Text Content
- resread("license.txt"),
- #-- Checkbox Text
- "Do you agree??",
- #-- Unchecked Alert Message
- "You've to agree!!"
- );
- menubox(
- "o7th S5 Edition",
- "Install or Not, it's your choice!",
- "@apps",
- "menu.prop",
- "Install", "Install This Rom", "@install",
- "QUIT", "I'm a quitter... get me outta here", "@install"
- );
- if prop("menu.prop", "selected") == "1" then
- # Tweak Selection
- checkbox(
- "Tweaker",
- "Choose Tweaks to Apply:",
- "@personalize",
- "tweaks.prop",
- "Zip-Align Data", "Select to zip-align your installed apps every 3 days", 1,
- "Modify Mounts", "Select to speed up your main partitions", 1,
- "Move Dalvik Cache", "This will move your dalvik-cache to your /cache partition freeing up space for apps", 0,
- "Kevs Tweaks", "Clean Logs, Vaccuum Databases, Tweak Network Speeds, etc...", 1
- );
- # App Selection
- checkbox(
- "App Selection",
- "Please note, that if you do not select an S5 app, the S4 counterpart if any, will be installed instead. And as always, any 3rd party launcher can and probably will make some widgets go haywire",
- "@personalize",
- "apps.prop",
- "S5 AccuWeather Widget", "", 1,
- "S5 Activity Zone", "", 1,
- "S5 Browser", "", 1,
- "S5 Calculator", "", 1,
- "S5 Gallery", "", 1,
- "S5 Group Play", "", 1,
- "S5 Memo", "", 1,
- "S5 Music Player", "", 1,
- "S5 S Note", "", 1,
- "S5 S Planner", "", 1,
- "S5 S Health", "", 1,
- "S5 Smart Remote", "", 1,
- "S5 Translator", "", 1,
- "S5 Video Player", "", 1,
- "S5 Camera", "", 1,
- "ViPER4Android", "Best audio effects out there", 0,
- "XPosed & Wanam", "XPosed Framework installer and Wanam", 0
- );
- # De-Bloater
- menubox(
- "De-Bload This Sucka!",
- "De-Bloating will not remove any apps you have chosen to include.nBut will get rid of the rest.",
- "@apps",
- "debloat.prop",
- #-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
- # TITLE | SUBTITLE | Item Icons #
- #-------------------------+-----------------------------------------------------------+---------------#
- "De-Bloat", "Make me slim", "@install", #-- selected = 1
- "Don't De-Bloat", "Keep me a piggy", "@install" #-- selected = 2
- );
- # Launcher Selection
- selectbox(
- "o7th S5 Edition",
- "Select your default launcher",
- "icons/install",
- "launcher.prop",
- "Select One", "", 2, #-- Group 1. key = "selected.1"
- "Touchwiz", "Default Samsung launcher", 1, #-- selected.1 = 1
- "Nova", "Highly customizable, performance driven launcher", 0, #-- selected.1 = 2
- "Smart Launcher", "Lightweight intuitive launcher", 0, #-- selected.1 = 3
- "Go Launcher EX", "Themable feature packed launcher", 0, #-- selected.1 = 4
- "Google Now", "Google's launcher", 0, #-- selected.1 = 5
- "Themer", "Highly themable launcher", 0 #-- selected.1 = 6
- );
- # Installation UI
- ini_set("text_next", "Install Now");
- ini_set("icon_next", "@installbutton");
- viewbox(
- #-- Title
- "Ready to Install",
- #-- Text
- "Ready to install.nn"+
- "Press <b>Install ROM</b> to begin the installation.nn"+
- "To review or change any of your installation settings, press <b>Back</b>.nn"+
- "Press Menu -> Quit Installation to quit.",
- #-- Icon
- "@install"
- );
- alert( "Alert", "Installation will begin now...");
- endif;
- # INSTALLATION PROCESS
- if prop("menu.prop","selected")== "1" then
- ini_set("text_next", "Next");
- ini_set("icon_next", "@next");
- install(
- "o7th S5 Edition Installing",
- getvar("rom_name") + "n" +
- "Go grab a coffee... this may take awhile." +
- "",
- "icons/install"
- );
- ini_set("text_next", "Finish");
- ini_set("icon_next", "@finish");
- checkviewbox(
- #-- Title
- "Installation Completed",
- #-- Text
- "<#selectbg_g><b>Congrats...</b></#>nn"+
- "<b>"+ini_get("rom_name")+"</b> has been installed.nn",
- #-- Icon
- "@welcome",
- #-- Checkbox Text
- "Reboot your device now.",
- #-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
- "1",
- #-- Save checked value in variable "reboot_it" (Optional)
- "reboot_it"
- );
- endif;
- # Check if reboot checkbox was checked
- if getvar("reboot_it")=="1" then
- reboot("onfinish");
- endif;
- ifelse(file_getprop("/tmp/aroma/menu.prop","selected") == "1",
- (
- ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- ui_print("~ ~");
- ui_print("~ Mine ~");
- ui_print("~ Safestrap KitKat 4.4.2 ~");
- ui_print("~ By kevp75 ~");
- ui_print("~ ~");
- ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- unmount("/system");
- unmount("/cache");
- unmount("/data");
- ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- ui_print("~ Prepping Your System ~");
- ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");
- mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");
- mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
- sleep(1);
- show_progress(0.1, 0);
- ),
- (
- ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- ui_print("~ ~");
- ui_print("~ Mine ~");
- ui_print("~ Safestrap KitKat 4.4.2 ~");
- ui_print("~ By kevp75 ~");
- ui_print("~ ~");
- ui_print("~ QUITTER ~");
- ui_print("~ ~");
- ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- unmount("/system");
- unmount("/cache");
- unmount("/data");
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement