Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ini_set("force_colorspace","rgba");
- ini_set("dp","6");
- ini_set("rom_name", "GPE Lollipop Rom, Digitalhigh Edition");
- ini_set("rom_version", "5.0");
- ini_set("rom_author", "Digitalhigh");
- ini_set("rom_device", "HTC M8 VZW");
- splash(
- 3000,
- "One2"
- );
- if sysprop("ro.boot.mid") == "0P6B20000" then
- theme("red");
- endif;
- if sysprop("ro.boot.mid") == "0P6B70000" then
- theme("yellow");
- else
- theme("purple");
- endif;
- fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
- fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
- selectbox(
- "Wipe Options",
- "Please select:",
- "icons/personalize",
- "wipe.prop",
- "Full Wipe","Wipes data and system partitions",0,
- "Dirty Dirty","Wipes system but not data",1,
- "Update only","Uses previous install settings, no wipes.",0
- );
- if prop("wipe.prop","selected.0") !="3" then
- selectbox(
- "Carrier Selection",
- "Please select your carrier/baseband:",
- "icons/personalize",
- "carrier.prop",
- "Verizon","Or variants.",1,
- "Sprint","Or variants",0,
- "GSM/Stock","Near-vanilla experience.",0
- );
- if prop("carrier.prop","selected.0") == "1" then
- theme("red");
- endif;
- if prop("carrier.prop","selected.0") == "2" then
- theme("yellow");
- else
- theme("purple");
- endif;
- ##################Add Apps####################################
- checkbox(
- "Add Apps",
- "Please select which apps you want to add:",
- "icons/apps",
- "addapps.prop",
- "Active Display","",0,
- "AOSP Browser","5.0 Browser, REMOVES CHROME",0,
- "Apollo Music Player","",0,
- "Chronus","Weather and clock widget",0,
- "Dropbox","Cloud Storage",0,
- "GSAM Battery monitor","In-depth battery monitor",0,
- "Greenify","Better battery management for running apps",0,
- "Rom Toolbox Lite","Root file explorer/terminal/App backup-Manager",0
- );
- ##################System Mods2####################################
- checkbox(
- "Update Wifi Firmware",
- "Please select below:",
- "icons/apps",
- "fw.prop",
- "Check here to install lollipop firmware. This is carrier-agnostic.","",1
- );
- ######################################################
- endif;
- ######################################################
- #If selected update only, just restore settings from system
- if prop("wipe.prop","selected.0") == "3" then
- pleasewait("Reading configurations...");
- setvar("rest_status", resexec("scripts/restore.sh"));
- if (getvar("rest_status") != "0") then
- alert(
- "Error",
- "Some files from previous configuration are missing\nPlease perform standard installation",
- "@alert"
- );
- back("1");
- endif;
- endif;
- menubox(
- "GP Rom, Digitalhigh Edition",
- "Ready to install",
- "@info",
- "menu.prop",
- "Install GPE DH Edition","","@install",
- "Abort installation","","@default"
- );
- if prop("menu.prop","selected")=="2"
- then
- exit("");
- endif;
- setvar("retstatus",
- install(
- "Installing",
- "Installing " + ini_get("rom_name") + " " + ini_get("rom_version") +
- "...\nPlease wait until it's finished...",
- "@install")
- );
- #Save installation config
- resexec("scripts/save.sh");
- ini_set("text_next", "Finish");
- if getvar("retstatus")=="0" then
- viewbox(
- "Installation Completed",
- "<#080>Congratulations!!</#>\n\n"+
- ini_get("rom_name") + " " + ini_get("rom_version") + " has been installed successfully.\n\n"+
- "Tap Finish, and Reboot your phone.\n\nThanks.",
- "@info"
- );
- else
- viewbox("Installation Failed","\n\nInstaller Status: "+ getvar("retstatus"),"@alert");
- endif;
- exit("");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement