#First Screen - select ROM
selectbox(
"Select Your Rom",
"<Please select Your ROM Choice Below",
"icons/install",
"selectrom.prop",
"Your ROM Choice","",2,
"SOS X",
"install SOS X",1,
"SOS S",
"Install SOS S",0,
"SOS N",
"Install SOS N",0
);
#Second Screen - select "DEX"
selectbox(
"DEODEX or ODEX Files",
"<Please select DEODEX or ODEX Choice Below",
"icons/install",
"deodex.prop",
"DEODEX or ODEX","",2,
"DEODEX",
"install DEODEX Files",1,
"ODEX",
"Install ODEX Files",0
);
# Third Screen - select install type
selectbox(
"Select Rom Setup Type",
"Please select ROM setup type below",
"icons/install",
"type.prop",
"Stock Or Customized Install","",2,
"Custom Install",
"Install only selected packages into your phone",1,
"Default Stock Install",
"Install default stock recommended packages into your phone",0
);
# Fourth Screen - mods.prop for each ROM Type
if
file_getprop("/tmp/aroma-data/selectrom.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/type.prop","selected.1") == "1"
then
checkbox(
"Customized Install",
"Please UnCheck any Applications, Mods, Services which you do not want Install in the list below:",
"icons/personalize",
"mod1.prop",
#1
# Applications:
"Applications","",2,
"Adobe FlashPlayer","Bring the FULL web to your device with Flash Player",1,
"Adobe Reader", "The global standard for reliably viewing and sharing PDF documents",1,
"FBReader", "Free (GPL) e-book reader for Android",1,
#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,
#4
"HTC Applications","",2,
"Friendstream", "Show your friends update via HTC Sense Friendstream", 1,
"News Reader", "RSS Reader with HTC Sense News Widget",1,
);
else
# Default .prop
writetmpfile(
"mod1.prop",
"item.1.1=1\n"+
"item.1.2=1\n"+
"item.1.3=1\n"+
"item.2.1=1\n"+
"item.2.2=1\n"+
"item.3.1=0\n"+
"item.3.2=0\n"+
"item.4.1=1\n"+
"item.4.2=1\n"+
);
endif;
# Fourth Screen - mods.prop for each ROM Type
if
file_getprop("/tmp/aroma-data/selectrom.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/type.prop","selected.1") == "1"
then
checkbox(
"Customized Install",
"Please UnCheck any Applications, Mods, Services which you do not want Install in the list below:",
"icons/personalize",
"mod2.prop",
#1
# Applications:
"Applications","",2,
"Adobe FlashPlayer","Bring the FULL web to your device with Flash Player",1,
"Adobe Reader", "The global standard for reliably viewing and sharing PDF documents",1,
"FBReader", "Free (GPL) e-book reader for Android",1,
#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,
#4
"HTC Applications","",2,
"Friendstream", "Show your friends update via HTC Sense Friendstream", 1,
"News Reader", "RSS Reader with HTC Sense News Widget",1,
);
else
# Default .prop
writetmpfile(
"mod2.prop",
"item.1.1=1\n"+
"item.1.2=1\n"+
"item.1.3=1\n"+
"item.2.1=1\n"+
"item.2.2=1\n"+
"item.3.1=0\n"+
"item.3.2=0\n"+
"item.4.1=1\n"+
"item.4.2=1\n"+
);
endif;
# Fourth Screen - mods.prop for each ROM Type
if
file_getprop("/tmp/aroma-data/selectrom.prop","selected.1") == "3" &&
file_getprop("/tmp/aroma-data/type.prop","selected.1") == "1"
then
checkbox(
"Customized Install",
"Please UnCheck any Applications, Mods, Services which you do not want Install in the list below:",
"icons/personalize",
"mod3.prop",
#1
# Applications:
"Applications","",2,
"Adobe FlashPlayer","Bring the FULL web to your device with Flash Player",1,
"Adobe Reader", "The global standard for reliably viewing and sharing PDF documents",1,
"FBReader", "Free (GPL) e-book reader for Android",1,
#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,
#4
"HTC Applications","",2,
"Friendstream", "Show your friends update via HTC Sense Friendstream", 1,
"News Reader", "RSS Reader with HTC Sense News Widget",1,
);
else
# Default .prop
writetmpfile(
"mod3.prop",
"item.1.1=1\n"+
"item.1.2=1\n"+
"item.1.3=1\n"+
"item.2.1=1\n"+
"item.2.2=1\n"+
"item.3.1=0\n"+
"item.3.2=0\n"+
"item.4.1=1\n"+
"item.4.2=1\n"+
);
endif;
If you want multi language then you'll need to set symbolic links (keys)
# Third Screen - select install type symbolic links (keys) example:
selectbox(
"<~selectromsetuptype>",
"<~pleaseselectromsetuptypebelow>",
"icons/install",
"type.prop",
"<~stockorcustomizeinstall>","",2,
"<~customizeinstall>",
"<~iospiyp>",1,
"<~defaultstockinstall>",
"<~idsrpiyp>",0
);
en.lang (in langs folder)
selectromsetuptype=Select ROM Setup Type
pleaseselectromsetuptypebelow=Please Select ROM Setup Type Below:
stockorcustomizeinstall=Stock Or Customize Install
customizeinstall=Customize Install
iospiyp=Install only selected packages into your phone
defaultstockinstall=Default Stock Install
idsrpiyp=Install default stock recommended packages into your phone
cn.lang (in langs folder) has to be (UTF-8 file to see special letters cn, ar lang)
selectromsetuptype=選擇ROM安裝類型
pleaseselectromsetuptypebelow=請選擇下面的ROM安裝類型:
stockorcustomizeinstall=股票或自定義安裝
customizeinstall=自定義安裝
iospiyp=只有選擇的軟件包安裝到您的手機
defaultstockinstall=安裝默認的股票推薦
idsrpiyp=安裝默認的股票推薦到您的手機
setting up updater.script will be the hardest part to work out
# Deodex files
if
file_getprop("/tmp/aroma-data/selectrom.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/customize.prop","item.1.1") == "1" &&
file_getprop("/tmp/aroma-data/deodex.prop","selected.1") == "1"
then
i##---- Customize Packages
# Applications:
set_progress(0.7);
# app_adobe_flashplayer
if
file_getprop("/tmp/aroma-data/mod1.prop","item.1.1") == "1"
then
ui_print("@ Installing Package: app_adobe_flashplayer");
package_extract_dir("customize/app/deodex/app_adobe_flashplayer", "/data");
endif;
# app_adobe_reader
if
file_getprop("/tmp/aroma-data/mod1.prop","item.1.2") == "1"
then
ui_print("@ Installing Package: app_adobe_reader");
package_extract_dir("customize/app/deodex/app_adobe_reader", "/data");
endif;
# app_fbjreader
if
file_getprop("/tmp/aroma-data/mod1.prop","item.1.3") == "1"
then
ui_print("@ Installing FBReader");
package_extract_dir("customize/app/deodex/app_fbjreader", "/data");
endif;
# app_social_facebook
if
file_getprop("/tmp/aroma-data/mod1.prop","item.2.1") == "1"
then
ui_print("@ Installing Package: app_social_facebook");
package_extract_dir("customize/app/deodex/app_social_facebook", "/data");
endif;
# app_twitter
if
file_getprop("/tmp/aroma-data/mod1.prop","item.2.2") == "1"
then
ui_print("@ Installing Package: app_twitter");
package_extract_dir("customize/app/deodex/app_twitter", "/data");
endif;
# Tools & File Manager
# app_filemanager_estrongs
if
file_getprop("/tmp/aroma-data/mod1.prop","item.3.1") == "1"
then
ui_print("@ Installing Package: app_filemanager_estrongs");
package_extract_dir("customize/app/deodex/app_filemanager_estrongs", "/data");
endif;
# app_tools_backupeverything
if
file_getprop("/tmp/aroma-data/mod1.prop","item.3.2") == "1"
then
ui_print("@ Installing Package: app_tools_backupeverything");
package_extract_dir("customize/app/deodex/app_tools_backupeverything", "/data");
endif;
set_progress(0.9);
# htc_friendstream
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.1") == "1"
then
ui_print("@ Installing Package: htc_friendstream");
package_extract_dir("customize/app/deodex/htc_friendstream", "/data");
endif;
# htc_greader
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.2") == "1"
then
ui_print("@ Installing Package: htc_greader");
package_extract_dir("customize/app/deodex/htc_greader", "/data");
endif;
else
# Odex files
if
file_getprop("/tmp/aroma-data/selectrom.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/type.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/deodex.prop","selected.1") == "2"
then
i##---- Customize Packages
# Applications:
set_progress(0.7);
# app_adobe_flashplayer
if
file_getprop("/tmp/aroma-data/mod1.prop","item.1.1") == "1"
then
ui_print("@ Installing Package: app_adobe_flashplayer");
package_extract_dir("customize/app/odex/app_adobe_flashplayer", "/data");
endif;
# app_adobe_reader
if
file_getprop("/tmp/aroma-data/mod1.prop","item.1.2") == "1"
then
ui_print("@ Installing Package: app_adobe_reader");
package_extract_dir("customize/app/odex/app_adobe_reader", "/data");
endif;
# app_fbjreader
if
file_getprop("/tmp/aroma-data/mod1.prop","item.1.3") == "1"
then
ui_print("@ Installing FBReader");
package_extract_dir("customize/app/odex/app_fbjreader", "/data");
endif;
# app_social_facebook
if
file_getprop("/tmp/aroma-data/mod1.prop","item.2.1") == "1"
then
ui_print("@ Installing Package: app_social_facebook");
package_extract_dir("customize/app/odex/app_social_facebook", "/data");
endif;
# app_twitter
if
file_getprop("/tmp/aroma-data/mod1.prop","item.2.2") == "1"
then
ui_print("@ Installing Package: app_twitter");
package_extract_dir("customize/app/odex/app_twitter", "/data");
endif;
# Tools & File Manager
# app_filemanager_estrongs
if
file_getprop("/tmp/aroma-data/mod1.prop","item.3.1") == "1"
then
ui_print("@ Installing Package: app_filemanager_estrongs");
package_extract_dir("customize/app/odex/app_filemanager_estrongs", "/data");
endif;
# app_tools_backupeverything
if
file_getprop("/tmp/aroma-data/mod1.prop","item.3.2") == "1"
then
ui_print("@ Installing Package: app_tools_backupeverything");
package_extract_dir("customize/app/odex/app_tools_backupeverything", "/data");
endif;
set_progress(0.9);
# htc_friendstream
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.1") == "1"
then
ui_print("@ Installing Package: htc_friendstream");
package_extract_dir("customize/app/odex/htc_friendstream", "/data");
endif;
# htc_greader
if
file_getprop("/tmp/aroma-data/customize.prop","item.4.2") == "1"
then
ui_print("@ Installing Package: htc_greader");
package_extract_dir("customize/app/odex/htc_greader", "/data");
endif;
else
you would need this for each mod mod1 (rom1), mod2, rom2)and mod3 rom3)