[HD2 Android Q&A, Help & Troubleshooting and Genera] -pixelfreak-:
re

the new sripts -> install okay -> but constant reboots

ui_print("");
ui_print(" ");
ui_print("PIXELDROID LAST EDITION HD2 ROM ");
ui_print(" Rom Updater ");
ui_print("");
set_progress(0.1);
ui_print(" ");

################### Tmous

if
file_getprop("/tmp/aroma-data/rom.prop","selected.1") == "1"
then
show_progress(0.90, 50);

mount("MTD", "userdata", "/data");
mount("MTD", "system", "/system");

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "1"
then
ui_print("@- Installiert Pixelfreak fw");
delete("/data/framework/framework-res.apk");
package_extract_dir("accu/pixelfreak/framework", "/data/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "2"
then
ui_print("@- Installiert Cyrcle fw");
delete("/data/framework/framework-res.apk");
package_extract_dir("accu/cyrcle/framework", "/data/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "3"
then
ui_print("@- Installiert Elegancia Glas fw");
delete("/data/framework/framework-res.apk");
package_extract_dir("accu/Elegancia_glas/framework", "/data/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "4"
then
ui_print("@- Installiert Elegancia Speedo fw");
delete("/data/framework/framework-res.apk");
package_extract_dir("accu/Elegancia_blue_speedo/framework", "/data/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "5"
then
ui_print("@- Installiert Stock fw");
delete("/data/framework/framework-res.apk");
package_extract_dir("accu/stock/framework", "/data/framework");
endif;

#################### EU

else

run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");

set_progress(0.5);

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "1"
then
ui_print("@- Installiert Pixelfreak fw");
delete("/sd-ext/framework/framework-res.apk");
package_extract_dir("accu/pixelfreak/framework", "/sd-ext/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "2"
then
ui_print("@- Installiert Cyrcle fw");
delete("/sd-ext/framework/framework-res.apk");
package_extract_dir("accu/Cyrcle/framework", "/sd-ext/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "3"
then
ui_print("@- Installiert Elegancia Glas fw");
delete("/sd-ext/framework/framework-res.apk");
package_extract_dir("accu/Elegancia_glas/framework", "/sd-ext/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "4"
then
ui_print("@- Installiert Elegancia Speedo fw");
delete("/sd-ext/framework/framework-res.apk");
package_extract_dir("accu/Elegancia_blue_speedo/framework", "/sd-ext/framework");
endif;

if file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "5"
then
ui_print("@- Installiert Stock fw");
delete("/sd-ext/framework/framework-res.apk");
package_extract_dir("accu/stock/framework", "/sd-ext/framework");
endif;

endif;

unmount("/system");
unmount("/data");
unmount("/sd-ext");
ui_print(" ");
ui_print(" ");
ui_print("@FERTIG...");

########### Calibrate Touchscreen weiter
calibrate("1.1041","26","1.1616","16","yes");
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");

########## Setzt Splashscreen fuer 5 seconds ( 1000 = 1 sec )
splash(5000, "sample");
anisplash(5, "splash/a1", 30, "splash/a2", 30, "splash/a3", 30, "splash/a4", 30, "splash/a5", 30, "splash/a6", 30, "splash/a7", 30, "splash/a8", 30, "splash/a9", 30, "splash/a10", 30, "splash/a11", 30, "splash/a12", 30, "splash/a13", 30, "splash/a14", 30, "splash/a15", 30, "splash/a16", 30, "splash/a17", 30, "splash/a18", 30, "splash/a19", 30, "splash/a20", 30, "splash/a21", 30, "splash/a22", 30);

########### installations theme
theme("black_blue");

########### installationssprache
selectbox(
#-- Title
"Sprache/language",

#-- Sub Title
"Installations-Sprache/Install-language:",

#-- 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", 0, #-- selected.0 = 1
"Deutsch", "Willkommen im Installer", 1 #-- selected.0 = 2
#--------[ 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/de.lang");
fontresload( "0", "ttf/DroidSans.ttf", "12" );
fontresload( "1", "ttf/DroidSans.ttf", "18" );
endif;

########### autor und name
ini_set("rom_name", "PIXELDROID");
ini_set("rom_version", "LAST EDITION UPDATER");
ini_set("rom_author", "PIXELFREAK");
ini_set("rom_device", "HTC HD2");
ini_set("rom_date", "JUNI 2012");

########## erster Screen/beschreibung
viewbox(
#-- Title
"<~gestalter>",

#-- Text
"<~designupdate><b>\n\n"+
#-- Get Config Value
ini_get("rom_name")+
"</b> <b>"+ini_get("rom_version")+"</b>.\n\n\n"+

" THEME\t: <b><#selectbg_g>"+ini_get("rom_name")+"</#></b>\n"+
" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" DEVELOPER\t: <b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+
" UPDATED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"<~text_next>",

#-- Icon
"@welcome"
);

########## modell wählen
selectbox(
"<~selectromsetup>",
"<~pleaseselectromsetupbelow>",
"icons/install",
"rom.prop",

"<~pleasepickyourrom>","",2,
"<~tmobileusa>",
"<~installrominnand>",0,
"<~eurominstall>",
"<~installromonsdext>",1
);

########## dateien einfügen
selectbox(
"Customs Options",
"",
"@personalize",
"theme.prop",

"framwork Theme",	"",	2, #-- Group 1. key = "selected.1"
"Pixeldroid framework",	"<~1>", 1, #-- selected.1 = 1
"Cyrcle framework",	"<~2>", 0, #-- selected.1 = 2
"Elegancia Glas framework", "<~3>", 0, #-- selected.1 = 3
"Elegancia Speedo framework",	"<~4>", 0, #-- selected.1 = 4
"Stock framework",	"<~5>", 0 #-- selected.1 = 5

);

########## installation beginnt
ini_set("text_next", "<~installnow>");

viewbox(
"<~readytoinstall>",
"<~press> <b><~installnow2></b> <~tobegintheinstallation>\n\n",
"@install"
);

########## installations status
ini_set("text_next", "<~text_next>");

setvar("retstatus",
install(
"<~Installiert>",

"<b>"+ini_get("rom_name")+"</b> <~wirdinstalliert>\n\n"+
"<~eswirdinstalliert> <b>"+ini_get("rom_name")+
"</b>. <~diesdauert>.",

"@install",

"<~fertiginstalliert> <b>"+ini_get("rom_name")+
"</b>.<~weiterumfortzufahren>."
)
);

########## installation abgeschlossen
ini_set("text_next", "<~fine>");

checkviewbox(
"<~installationkomplett>",
"<#selectbg_g><b>Congratulation...</b></#>\n\n"+
"<b>"+ini_get("rom_name")+"</b> <~erfolgreichinstalliert>\n\n"+
"Installer Status: "+getvar("retstatus")+"\n\n",
"@welcome",
"<~neustart>",
"1",
"reboot_it"
);

if
getvar("reboot_it")=="1"
then
reboot("onfinish");
endif;