Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #
- # AROMA Installer - UrDroid Runnymede 1.27.1400.4 ver 2.3
- # (c) 2011-2012 by Ahmad Amarullah
- # amarullz - xda-developers
- # http://www.amarullz.com/
- #
- # Binary Version : 2.00-120414-A7
- # Binary Codename : Dahlia
- #
- # Calibrate Touchscreen
- calibrate("1.1041","26","1.1616","16","yes");
- #--- Code Modify:
- ini_set("customkeycode_up", "115");
- ini_set("customkeycode_down", "114");
- ini_set("customkeycode_select", "231");
- ini_set("customkeycode_menu", "139");
- ini_set("customkeycode_back", "158");
- #--- Uncomment to use custom color scheme: (Dark)
- setcolor("winbg", "#444");
- setcolor("winbg_g", "#222");
- setcolor("textbg", "#333");
- setcolor("textfg", "#fff");
- setcolor("textfg_gray", "#bbb");
- setcolor("controlbg", "#444");
- setcolor("controlbg_g", "#222");
- setcolor("controlfg", "#fff");
- setcolor("selectbg", "#653");
- setcolor("selectbg_g", "#542");
- setcolor("selectfg", "#ffd");
- setcolor("titlebg", "#333");
- setcolor("titlebg_g", "#000");
- setcolor("titlefg", "#fff");
- setcolor("navbg", "#333");
- setcolor("navbg_g", "#222");
- setcolor("border", "#666");
- setcolor("border_g", "#444");
- ##
- # Initializing Rom Information
- ini_set("rom_name", "UrDroid Runnymede 1.27.1400.4 ");
- ini_set("rom_version", "v2.3");
- ini_set("rom_author", "carl1961");
- ini_set("rom_device", "HTC HD2");
- ini_set("rom_date", "April,30, 2012");
- splash(3000, "rom-splash");
- # Show Animated Splash
- #
- anisplash(
- #-- Number of Loop
- 1,
- #-- Frame 1 [ Image, duration in millisecond ]. <AROMA Resource Dir>/splash/a[1..8].png
- "splash/a1", 150,
- "splash/a2", 150,
- "splash/a3", 150,
- "splash/a4", 150,
- "splash/a5", 150,
- "splash/a6", 150,
- "splash/a7", 150,
- "splash/a8", 500
- );
- setvar("sdextsize", getdisksize("/sd-ext","m"));
- #
- # Set Small Font to Support all fonts
- #
- fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)
- ###################################################################################################################
- #
- # SHOW LANGUAGE SELECTION
- #
- selectbox(
- #-- Title
- "Select Language",
- #-- Sub Title
- "Please select installer language that you want to use in this installation test:",
- #-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
- "@default",
- #-- Will be saved in /tmp/aroma/lang.prop
- "lang.prop",
- #---------------------------------[ Selectbox Without Group ]----------------------------------#
- # TITLE | SUBTITLE | Initial Value #
- #------------------+-----------------------------------------------------------+---------------#
- "English", "Welcome to Installer", 1, #-- selected.0 = 1
- "Indonesian", "Selamat datang di Installer", 0, #-- selected.0 = 2
- "Espanol", "Bienvenido al Instalador", 0, #-- selected.0 = 3
- "Simplified Chinesse","欢迎到安装", 0, #-- selected.0 = 4
- "Arabic", "مرحبا بكم في المثبت", 0, #-- selected.0 = 5
- "French", "Bienvenue dans l'installateur", 0, #-- selected.0 = 6
- "Russian", "Добро пожаловать в установщик", 0, #-- selected.0 = 7
- "Italian", "Benvenuti Installer", 0, #-- selected.0 = 8
- "Deutsch", "Welkom bij Installer", 0, #-- selected.0 = 9
- "Polish", "Witaj w instalatorze", 0, #-- selected.0 = 10
- "Serbian", "Dobrodošli u Instaler", 0 #-- selected.0 = 11
- #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
- );
- ##
- # SET LANGUAGE & FONT FAMILY
- #
- if prop("lang.prop","selected.0")=="1" then
- loadlang("langs/en.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )
- fontresload( "1", "ttf/DroidSans.ttf", "18" ); #-- "1" = Big Font
- endif;
- if prop("lang.prop","selected.0")=="2" then
- loadlang("langs/id.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="3" then
- loadlang("langs/es.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="4" then
- loadlang("langs/cn.lang");
- fontresload( "0", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
- fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="5" then
- loadlang("langs/ar.lang");
- fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
- fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="6" then
- loadlang("langs/fr.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="7" then
- loadlang("langs/ru.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="8" then
- loadlang("langs/it.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="9" then
- loadlang("langs/de.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="10" then
- loadlang("langs/pl.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- if prop("lang.prop","selected.0")=="11" then
- loadlang("langs/sr.lang");
- fontresload( "0", "ttf/DroidSans.ttf", "12" );
- fontresload( "1", "ttf/DroidSans.ttf", "18" );
- endif;
- ###################################################################################################################
- #
- # STEP 1 - SELECT THEME
- #
- selectbox(
- #-- Title
- "<~themes.title>",
- #-- Sub Title
- "<~themes.desc>",
- #-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
- "@personalize",
- #-- Will be saved in /tmp/aroma/theme.prop
- "theme.prop",
- #---------------------------------[ Selectbox Without Group ]----------------------------------#
- # TITLE | SUBTITLE | Initial Value #
- #------------------+-----------------------------------------------------------+---------------#
- "Generic", "<~uaromai>", 0, #-- selected.0 = 1
- "MIUI Theme", "<~mtbmaz>", 0, #-- selected.0 = 2
- "ICS Theme", "<~icsbdaz>", 0, #-- selected.0 = 3
- "MIUI 4 Theme", "<~m4icstbazl>", 0, #-- selected.0 = 4
- "Sense Theme", "<~htcstbaz>", 1 #-- selected.0 = 5
- #--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
- );
- ##
- # SET THEME
- #
- #-- Change Info:
- # file_getprop : should use absolute path "/tmp/aroma/theme.prop"
- # prop : just use relative path "theme.prop" will automatically read the "/tmp/aroma/theme.prop"
- #
- if prop("theme.prop","selected.0")=="2" then
- theme("miui");
- endif;
- if prop("theme.prop","selected.0")=="3" then
- theme("ics");
- endif;
- if prop("theme.prop","selected.0")=="4" then
- theme("miui4");
- endif;
- if prop("theme.prop","selected.0")=="5" then
- theme("sense");
- endif;
- ###################################################################################################################
- #
- # STEP 2 - SHOW ROM 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>.\n\n"+
- "<~welcome.text2>\n\n"+
- " <~welcome.version>\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
- " <~welcome.updated>\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+
- "<~welcome.next>",
- #-- Icon
- "@welcome"
- );
- ###################################################################################################################
- #
- # STEP 4 - CHANGELOG
- ##-- Load Chinese/ Arabic Fonts
- fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "12" ); #-- Use sets of font (Font Family)
- fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;ttf/DroidSans.ttf", "18" );
- textbox(
- #-- Title
- "<~changelog.title>",
- #-- Subtitle
- "<~changelog.desc>",
- #-- Icon
- "@update",
- #-- Arg 4
- resread(lang("changelog"));
- );
- # System Info
- #
- #-- Show Please Wait
- selectbox(
- "<~ysystemi>",
- "<~sysystemi>",
- "icons/apps",
- "systeminfo.prop",
- "<~psyesorno>","",2,
- "<~yes>",
- "<~yiwtsmsi>", 0,
- "<~no>",
- "<~nidnwtsmsi>",1
- );
- if
- file_getprop("/tmp/aroma-data/systeminfo.prop","selected.1") == "1"
- then
- pleasewait("<~gsi>");
- #-- Fetch System Information
- setvar(
- #-- Variable Name
- "sysinfo",
- #-- Variable Value
- "<@center><b><~ydsi></b></@>\n\n"+
- "<~model>\t\t\t: <b><#selectbg_g>"+sysprop("ro.product.model")+"</#></b>\n"+
- "<~productname>\t\t\t: <b><#selectbg_g>"+sysprop("ro.product.name")+"</#></b>\n"+
- "<~devicename>\t\t: <b><#selectbg_g>"+sysprop("ro.product.device")+"</#></b>\n"+
- "<~boardname>\t\t: <b><#selectbg_g>"+sysprop("ro.product.board")+"</#></b>\n"+
- "<~manufacturer>\t\t: <b><#selectbg_g>"+sysprop("ro.product.manufacturer")+"</#></b>\n\n"+
- "<~cpu>\t\t\t: <b><#selectbg_g>"+sysprop("ro.product.cpu.abi")+"</#></b>\n"+
- "<~lcddesinty>\t\t: <b><#selectbg_g>"+sysprop("ro.sf.lcd_density")+"</#></b>\n\n"+
- "<~systemsize>\t\t: <b><#selectbg_g>"+getdisksize("/system","m")+" MB</#></b>\n"+
- "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/system","m")+" MB</#></b>\n\n"+
- "<~datasize>\t\t: <b><#selectbg_g>"+getdisksize("/data","m")+" MB</#></b>\n"+
- "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/data","m")+" MB</#></b>\n\n"+
- "(/mnt/sdcard)\t\t: <b><#selectbg_g>"+getdisksize("/mnt/sdcard","m")+" MB</#></b>\n"+
- "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/mnt/sdcard","m")+" MB</#></b>\n\n"+
- "<~sdcardsize>\t\t: <b><#selectbg_g>"+getdisksize("/sdcard","m")+" MB</#></b>\n"+
- "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/sdcard","m")+" MB</#></b>\n\n"+
- "<~sdextsize>\t\t: <b><#selectbg_g>"+getdisksize("/sd-ext","m")+" MB</#></b>\n"+
- "\tFree\t\t: <b><#selectbg_g>"+getdiskfree("/sd-ext","m")+" MB</#></b>\n\n"+
- ""
- );
- #-- Show Textbox
- textbox(
- #-- Title
- "<~ssi>",
- #-- Subtitle
- "<~csinfo>",
- #-- Icon
- "@info",
- #-- Text
- getvar("sysinfo")
- );
- endif;
- selectbox(
- "<~selectromsetup>",
- "<~pleaseselectromsetupbelow>",
- "icons/install",
- "rom.prop",
- "<~pleasepickyourrom>","",2,
- "<~tmobileusa>",
- "<~installrominnand>",0,
- "EU ROM Install",
- "<~installromonsdext>",1
- );
- selectbox(
- "<~selectromsetuptype>",
- "<~pleaseselectromsetuptypebelow>",
- "icons/install",
- "type.prop",
- "<~stockorcustomizeinstall>","",2,
- "<~customizeinstall>",
- "<~iospiyp>",1,
- "<~defaultstockinstall>",
- "<~idsrpiyp>",0
- );
- selectbox(
- "<~pafwbf>?",
- "<~pleaseselect>",
- "icons/install",
- "wipe.prop",
- "<~pleasepickyourwipe>","",2,
- "<~performafullwipeinfo>",
- "<~performafullwipe>",0,
- "<~performnowipeinfo>",
- "<~installwoutwiping>",1
- );
- checkbox(
- "<~chooselastminuteaddons>",
- "<~stoywi>",
- "icons/apps",
- "lastminute.prop",
- "<~slpb>","<~islpb>",0,
- "<~5rowappdrawer>","<~asd5rios4r>",0,
- "<~sonybraviaengine>","<~ipavsts>",0,
- "<~screenon>","<~screenoninfo>",0,
- "<~xloud>","<~xloudinfo>",1,
- "<~stockkeypadlayout>","<~stockkeypadlayoutinfo>",0,
- "<~forzram>","<~forzraminfo>",0,
- "<~appbackupreinstall>","<~appbackupreinstallinfo>",0,
- "<~cachemate>","<~cachemateinfo>",0,
- "<~freespace>","<~freespaceinfo>",0,
- "<~adhoc>","<~adhocinfo>",0,
- "<~powermenu>","<~powermenuinfo>",0,
- "<~soundon>","<~soundoninfo>",0,
- "<~incredicontrol>","<~incredicontrolinfo>",0,
- "<~loopy_smoothness_tweak>","<~loopy_smoothness_tweakinfo>",0,
- "<~sd-booster>","<~sd-boosterinfo>",0,
- "<~dropbox>","<~dropboxinfo>",0,
- "<~romanager>","<~romanagerinfo>",0,
- "<~titaniumbackup>","<~titaniumbackupinfo>",0,
- "<~xda>","<~xdainfo>",0,
- "<~forextswap>","<~forextswapinfo>",0
- );
- checkbox(
- "<~chooseextraaddons>",
- "<~stoywi>",
- "icons/apps",
- "extra.prop",
- "<~miuicamera>","<~miuicamerainfo>",0,
- "<~icscamera>","<~icscamerainfo>",0,
- "<~cartooncamera>","<~cartooncamerainfo>",0,
- "<~icskeyboard>","<~icskeyboardinfo>",0,
- "<~desirecalculator>","<~desirecalculatorinfo>",0,
- "<~sonycalculator>","<~sonycalculatorinfo>",0,
- "<~tango>","<~tangoinfo>",0,
- "<~fileexpert>","<~fileexpertinfo>",0,
- "<~jackpalterm>","<~jackpalterminfo>",0
- );
- selectbox(
- "<~selectbootanimationmod>",
- "<~psbamb>",
- "icons/apps",
- "bootanimation.prop",
- "<~bootanimation>","",2,
- "<~htcbeats>",
- "<~htcbeatsinfo>", 1,
- "<~generichtcquietlybriliant>",
- "<~generichtcquietlybriliantinfo>",0
- );
- selectbox(
- "<~quickmenu>",
- "<~psyquickmenu>",
- "icons/apps",
- "quickmenu.prop",
- "<~selectquickmenu>","",2,
- "<~quickmenustock>",
- "<~quickmenustockinfo>",1,
- "<~quickmenuwhite>",
- "<~quickmenuwhiteinfo>",0,
- "<~quickmenublack>",
- "<~quickmenublackinfo>",0
- );
- # GPS
- selectbox(
- "GPS Configuration",
- "Please select GPS Configuration",
- "icons/apps",
- "gps.prop",
- "Your GPS Location","",2,
- "North America",
- "Living in North America",1,
- "Africa",
- "Living in Africa.",0,
- "Asia",
- "Living in Asia.",0,
- "Europe",
- "Living in Europe.",0,
- "Oceania",
- "Living in Oceania.",0,
- "South America",
- "Living in South America.",0
- );
- selectbox(
- "<~selectcameratype>",
- "<~selectcameratypeinfo>",
- "icons/apps",
- "camera.prop",
- "<~camera>","",2,
- "<~stockcamera>",
- "<~stockcamerainfo>",1,
- "<~htccameraamaze>",
- "<~htccameraamazeinfo>",0,
- "<~htccamera3.0desire>",
- "<~htccamera3.0desireinfo>",0
- );
- selectbox(
- "<~selectkernel>",
- "<~selectkernelinfo>",
- "icons/apps",
- "kernel.prop",
- "<~magldrorclkkernelinstall>","",2,
- "<~fmki>",
- "<~fmkiinfo>",0,
- "<~fcki>",
- "<~fckiinfo>",1
- );
- selectbox(
- "<~selectkernelver>",
- "<~selectkernelverinfo>",
- "icons/apps",
- "kernelver.prop",
- "<~mkv20>","",2,
- "<~fmkv20>",
- "<~fmkv20info>",0,
- "<~fmkv21>",
- "<~fmkv21info>",1
- );
- if
- file_getprop("/tmp/aroma-data/rom.prop","selected.1") == "1" &&
- cmp(getvar("sdextsize"),">","400")
- then
- selectbox(
- "<~taiws>",
- "<~taiwsinfo>",
- "icons/apps",
- "tmoussdext.prop",
- "<~tasi>","",2,
- "<~dnias>",
- "<~dniasinfo>",1,
- "<~ias>",
- "<~iasinfo>",0
- );
- else
- # Default .prop
- writetmpfile(
- "tmoussdext.prop",
- "selected.1=1\n"
- );
- endif;
- if
- file_getprop("/tmp/aroma-data/tmoussdext.prop","selected.1") == "2" &&
- cmp(getvar("sdextsize"),">","400")
- then
- selectbox(
- "<~dcsdext>",
- "<~dcsdextinfo>",
- "icons/apps",
- "dalvik.prop",
- "<~dcinodcosdext>","",2,
- "<~dcinodcosdextinfo>",
- "<~idcosdext>",1,
- "<~dcon>",
- "<~dconinfo>",0
- );
- else
- # Default .prop
- writetmpfile(
- "dalvik.prop",
- "selected.1=2\n"
- );
- endif;
- if
- file_getprop("/tmp/aroma-data/type.prop","selected.1") == "1"
- then
- checkbox(
- "<~customizeinstallation>",
- "<~customizeinstallationinfo>",
- "icons/personalize",
- "customize.prop",
- #1
- # Applications:
- "<~applications>","",2,
- "Adobe FlashPlayer","<~adobeflashPlayerinfo>",1,
- "Adobe Reader", "<~adobereaderinfo>",1,
- "FBReader", "<~fbreaderinfo>",0,
- "GMail", "The Gmail app: push, sync, conversations, integration, search, and more",1,
- "Google Maps", "Navigation, Places, Latitude",1,
- "Google Talk", "Freeware voice over Internet protocol (VoIP) client application offered by Google Inc",1,
- "Gallery3D", "Default AOSP Android Albums Application",0,
- "Picasa", "Picasa Web Albums",1,
- "Plurk", "Plurk Application for Android with HTC Sense",0,
- "Polaris Office", "Mobile Office Solution which let end-users easily read and edit various document formats of PC in mobile environment",1,
- "Voice Dialer", "Control your phone with Voice Actions ",1,
- "QuickLookup", "Small application to search contents on phone or web",1,
- "Android Market", "Google Play, A free market by Google to download free and paid applications",1,
- "Flickr", "To share your photo's online",1,
- "ADFree", "Block ads on your android device",0,
- "VoiceSearch", "Search things on your phone with Voice Actions",1,
- "YouTube", "video-sharing",1,
- "Skype", "Make free voice and video calls to anyone else on Skype",0,
- #2
- "Internet & Social Networking","",2,
- "Facebook", "Share and stay connected with your friends with the Facebook for Android app",1,
- "Twitter", "Follow your interests: instant updates from your friends",1,
- #3
- "Tools & File Manager","",2,
- "EStrong Filemanager","All-in-one File manager, Application manager, Task killer, Dropbox client & ftp client",1,
- "Backup Everything", "Makes it easy to backup/restore your files from your Android",0,
- "Daemon Controller", "Control your CPU, Overclock, Governoor, Voltage an many more",0,
- "FasterFix", "AGPS Server Changer",0,
- "Market Enabler", "Enabling any Market contents by fake location",0,
- "SimToolKit", "Application for Managing the Sim Card",0,
- "DSPManager", "Independent equalizer for the headphone, speaker, and bluetooth.",1,
- "RIL Infos", "Simple RIL Infos Displayer,informations about the installed RIL version.",0,
- #4
- "HTC Applications","",2,
- "Friendstream", "Show your friends update via HTC Sense Friendstream", 1,
- "News Reader", "RSS Reader with HTC Sense News Widget",1,
- "HTC Laputa", "HTC Locations and Navigation Service with HTC Sense Widgets",1,
- "Mail", "Sync your mail accounts, with HTC Sense Mail Widget",1,
- "Notes", "Stunning HTC Notes Application with HTC Sense Notes Widget",1,
- "HTC Recommends", "HTC Sense Recommended Applications",1,
- "HTC Pen", "Pen Service to allow you draw tiny line in note",1,
- "HTC Stock", "HTC Stock applications with HTC Sense Stock Widget",1,
- "HTC Task", "Manage your daily tasks with HTC Task with HTC Sense Task Widget",1,
- "HTC Watch", "Watch movie preview in HTC Watch with HTC Sense Watch Widget",1,
- "HTC Market", "HTC Market 3.4.4",0,
- "HTC MarketUpdater", "HTC Automatically Updates Market",0,
- "HTC Arabic Keyboard","HTC Arabic Keyboard",0,
- "HTC Hebrew Keyboard","HTC Hebrew Keyboard",0,
- "HTC dockmode", "dockmode", 1,
- "HTC androidnote", "android note", 1,
- "HTC appsharing", "appsharing", 1,
- "HTC appwidgetpicker","appwidgetpicker", 1,
- "APP HTC filemanager","htc file manager", 1,
- "htc.idlescreen_sn", "htc idlescreen", 1,
- "HTC callerlocation", "htc caller location", 1,
- "HTC deskclock", "desk clock", 1,
- "HTC downloadproviderui", "download provider ui", 1,
- "Google backup transport", "google backup and transport", 1,
- "HTC backgrounddatawidget", "htc background data widget", 1,
- "HTC connectedmedia", "Htc connected media", 1,
- "HTC datastripwidget", "htc data strip widget", 1,
- "HTC direct", "HTC direct", 1,
- "HTC directdownloadsprovider", "HTC directdownloadsprovider", 1,
- "HTC hubsyncprovider", "htc hub sync provider", 1,
- "HTC painterview", "htc painter view", 1,
- "HTC photowidget", "htc photo widget", 1,
- "HTC powerstripwidget", "htc power strip widget", 1,
- "HTC ringtonetrimmer", "htc ringtone trimmer", 1,
- "HTC ringtonewidget", "htc ringtone widget", 1,
- "HTC screenbrightnesswidget", "htc screen brightness widget", 1,
- "HTC screentimeoutwidget", "htc screen timeout widget", 1,
- "HTC idlescreen_photo", "htc idlescreen photo", 1,
- "HTC intsigcamcard", "htc intsig cam card", 0,
- "HTC mediauploader", "htc media uploader", 1,
- "HTC myhtc", "my htc", 1,
- "HTC onlineassetdetails", "htc online asset details", 0,
- "HTC protips", "htc protips", 1,
- "HTC quicklookup", "htc quick lookup", 1,
- "HTC rss", "htc rss", 1,
- "HTC showme", "htc showme", 1,
- "HTC smartcardservice", "htc smart card service", 0,
- "APP soundhound_freemium", "soundhound freemium", 1,
- "HTC sketcher", "htc sketcher", 1,
- "HTC fmradio", "htc fm radio", 1,
- #5
- "HTC Widgets","",2,
- "Bookmarks Widget", "Your browsing bookmarks widget",1,
- "Calculator Widget", "Calculator on your Home Screen with selectable skins",1,
- "Calendar Widget", "Calendar and Agenda on your Home Screen",1,
- "Contact Widget", "Show your favorite contacts in slick HTC Sense Contact Widgets",1,
- "FM Radio Widget", "Access your FM Radio directly from your Home Screen",1,
- "Music Widget", "Music Player on Home Screen Widget",1,
- "QuickLaunch Widget", "Bliss Home Screen Widget with clock and shortcuts",0,
- "Trends Widget", "Show current trends topic on your Home Screen",0,
- "Genie Widget", "Show News/Weather Widget on Home screen",1,
- #6
- "Live Wallpapers","",2,
- "Magic Smoke Live Wallpaper", "AOSP Magic Smoke Live Wallpaper",1,
- "Mode10 Live Wallpaper", "HTC Bokeh Live Wallpaper",1,
- "Streak Live Wallpaper", "HTC Streak 3D Rotateable Live Wallpaper",1,
- "Visual Live Wallpaper", "AOSP Visualization Live Wallpaper",0,
- "Weather Live Wallpaper", "HTC Current Weather Live Wallpaper",1,
- #7
- "Skins","",2,
- "HTC skins", "BlueSky and Burgundy skins",1
- );
- else
- # Default .prop
- writetmpfile(
- "customize.prop",
- "item.1.1=1\n"+
- "item.1.2=1\n"+
- "item.1.3=0\n"+
- "item.1.4=1\n"+
- "item.1.5=1\n"+
- "item.1.6=1\n"+
- "item.1.7=0\n"+
- "item.1.8=1\n"+
- "item.1.9=0\n"+
- "item.1.10=1\n"+
- "item.1.11=1\n"+
- "item.1.12=1\n"+
- "item.1.13=1\n"+
- "item.1.14=1\n"+
- "item.1.15=0\n"+
- "item.1.16=1\n"+
- "item.1.17=1\n"+
- "item.1.18=0\n"+
- "item.2.1=1\n"+
- "item.2.2=1\n"+
- "item.3.1=1\n"+
- "item.3.2=0\n"+
- "item.3.3=0\n"+
- "item.3.4=0\n"+
- "item.3.5=0\n"+
- "item.3.6=0\n"+
- "item.3.7=1\n"+
- "item.3.8=0\n"+
- "item.4.1=1\n"+
- "item.4.2=1\n"+
- "item.4.3=1\n"+
- "item.4.4=1\n"+
- "item.4.5=1\n"+
- "item.4.6=1\n"+
- "item.4.7=1\n"+
- "item.4.8=1\n"+
- "item.4.9=1\n"+
- "item.4.10=1\n"+
- "item.4.11=0\n"+
- "item.4.12=0\n"+
- "item.4.13=0\n"+
- "item.4.14=0\n"+
- "item.4.15=1\n"+
- "item.4.16=1\n"+
- "item.4.17=1\n"+
- "item.4.18=1\n"+
- "item.4.19=1\n"+
- "item.4.20=1\n"+
- "item.4.21=1\n"+
- "item.4.22=1\n"+
- "item.4.23=1\n"+
- "item.4.24=1\n"+
- "item.4.25=1\n"+
- "item.4.26=1\n"+
- "item.4.27=1\n"+
- "item.4.28=1\n"+
- "item.4.29=1\n"+
- "item.4.30=1\n"+
- "item.4.31=1\n"+
- "item.4.32=1\n"+
- "item.4.33=1\n"+
- "item.4.34=1\n"+
- "item.4.35=1\n"+
- "item.4.36=1\n"+
- "item.4.37=1\n"+
- "item.4.38=1\n"+
- "item.4.39=0\n"+
- "item.4.40=1\n"+
- "item.4.41=1\n"+
- "item.4.42=0\n"+
- "item.4.43=1\n"+
- "item.4.44=1\n"+
- "item.4.45=1\n"+
- "item.4.46=1\n"+
- "item.4.47=0\n"+
- "item.4.48=1\n"+
- "item.4.49=1\n"+
- "item.4.50=1\n"+
- "item.5.1=1\n"+
- "item.5.2=1\n"+
- "item.5.3=1\n"+
- "item.5.4=1\n"+
- "item.5.5=1\n"+
- "item.5.6=1\n"+
- "item.5.7=0\n"+
- "item.5.8=0\n"+
- "item.5.9=1\n"+
- "item.6.1=1\n"+
- "item.6.2=1\n"+
- "item.6.3=1\n"+
- "item.6.4=0\n"+
- "item.6.5=1\n"+
- "item.7.1=1\n"
- );
- endif;
- checkbox(
- "<~chineseaddons>",
- "<~chineseaddonsinfo>",
- "icons/apps",
- "chineseaddon.prop",
- "HTC Widget_RenrenChat.apk","HTC Widget_RenrenChat.apk",0,
- "HTCSinaWeiboWidget.apk","HTCSinaWeiboWidget.apk",0,
- "Renren.apk","Renren.apk",0,
- "Renren_FSPlugin.apk","Renren_FSPlugin.apk",0,
- "Renren_GLRplugin.apk","Renren_GLRplugin.apk",0,
- "Sina_Weibo_FSPlugin.apk","Sina_Weibo_FSPlugin.apk",0,
- "Sina_Weibo_GLRplugin.apk","Sina_Weibo_GLRplugin.apk",0,
- "weibo2.5.0.25_1_1221.apk","weibo2.5.0.25_1_1221.apk",0,
- "chinese_screens","Chinese Stock Background screens",0
- );
- ##
- #
- # Next Screen is Installation UI, So change the next button text to "Install Now"
- #
- ini_set("text_next", "<~installnow>");
- ###################################################################################################################
- #
- # STEP 9 - MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
- #
- viewbox(
- #-- Title
- "<~rti>",
- #-- Text
- "<~twirtbi> \n\n"+
- "<~press> <b><~installnow></b> <~romnameirti> \n\n"+
- "<~iywtrocaoyisp><b><~back></b>. <~pmk> -> <~qitetw>",
- #-- Icon
- "@install"
- );
- ##
- #
- # Next Button in successfull installation should be back to "Next >"
- #
- ini_set("text_next", "<~nnext>");
- #-- Extract sleep to /tmp/aroma/sleep. It will be used in updater-script for testing wait script
- restotmp("exec_demo/sleep","sleep");
- ###################################################################################################################
- #
- # STEP 10 - INSTALLATION PROCESS
- #
- setvar("retstatus",
- install(
- #-- Title
- "<~installing>",
- #-- Installation Process message
- "<~pwwiwi><b>"+ini_get("rom_name")+
- "</b>. <~tmtsm> <~pntc>",
- #-- Installation Icon
- "@install",
- #-- Installation Finish Message
- "<~tiwhsi><b>"+ini_get("rom_name")+
- "</b>. <~pntc>"
- )
- );
- ##
- #
- # Next Button is "Finish"
- #
- ini_set("text_next", "<~finish>");
- ###################################################################################################################
- #
- # STEP 11 - FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
- #
- # You can use return value or "reboot_it" variable to retrive checkbox value
- # Example:
- # if (checkviewbox(....)=="1" then
- # ... checked ...
- # endif;
- #
- checkviewbox(
- #-- Title
- "<~installationcompleted>",
- #-- Text
- "<#selectbg_g><b><~congratulations></b></#>\n\n"+
- "<b>"+ini_get("rom_name")+"</b><~hbioyd>\n\n"+
- "<~installerstatus>"+getvar("retstatus")+"\n\n",
- #-- Icon
- "@welcome",
- #-- Checkbox Text
- "<~rydn>",
- #-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
- "1",
- #-- Save checked value in variable "reboot_it" (Optional)
- "reboot_it"
- );
- ###
- #
- # Check if reboot checkbox was checked
- if
- getvar("reboot_it")=="1"
- then
- #
- # reboot("onfinish"); - Reboot if anything finished
- # reboot("now"); - Reboot Directly
- # reboot("disable"); - If you set reboot("now") before, use this command to revert it.
- #
- reboot("onfinish");
- endif;
- #---- FINISH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement