[Android Software/Hacking General [Developers Only]] robertogl:
Hi

I post my aroma-config. My problem is that the installer works, but when it has to launch the updater-script, it doesn't: the window with the installation logs is empty and it says to me that the installation is ended (but no modifications are made). It seems that the updater-script is not even launched (in the updater the first line is 'ui_print("-> Initialising....");' but i don't see that during the 'installation'...)

Don't look too much to the things written in the aroma-config (for example name of the mod etc..), i took the file from the guide and i'm changing right now ;)

And i've tried to change the 'update-binary-installer' with a file that i know for sure is working, without success.

Thanks :mad:

########################################################## AROMA CONFIG ##########################################################

ini_set("force_colorspace","rgba");

##

# Screen Resolution

#

ini_set("dp","5"); #-- XXHDPI ( 1920x1080 / WVGA )

##

# Initializing Information

#

ini_set("rom_name", "Hidden Button Mod");

ini_set("rom_version", "NF9");

ini_set("rom_author", "robertogl");

ini_set("rom_device", "I9505");

ini_set("rom_date", "30/07/2014");

##

# Show Simple Splash

#

splash(

#-- Duration 5000ms / 5 seconds

5000,

#-- <AROMA Resource Dir>/SPLASH.png

"SPLASH"

);

##

# Show Animated Splash

#

anisplash(

# #-- Number of Loop

4,

#-- Frame [ Image, duration in millisecond ]

"anim/a1", 30,

"anim/a2", 30,

"anim/a3", 30,

"anim/a4", 30,

"anim/a5", 30,

"anim/a6", 30

);

##

# Font Selection

#

fontresload( "0", "ttf/Roboto-Regular.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 while Installing ROM",

#-- Icon:

"@default",

#-- Will be saved in /tmp/aroma/lang.prop

"lang.prop",

"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 nell'installazione", 0, #-- selected.0 = 8

"Hebrew", "ברוכים הבאים להתקנה", 0, #-- selected.0 = 9

"Germany", "Willkommen bei Installer", 0 #-- selected.0 = 10

);

##

# SET LANGUAGE & FONT FAMILY

#

if prop("lang.prop","selected.0")=="1" then

loadlang("langs/en.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" ); #-- "0" = Small Font ( Look at Fonts & UNICODE Demo Below )

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" ); #-- "1" = Big Font

endif;

if prop("lang.prop","selected.0")=="2" then

loadlang("langs/id.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="3" then

loadlang("langs/es.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="4" then

loadlang("langs/cn.lang");

fontresload( "0", "ttf/DroidSansFallback.ttf;ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="5" then

loadlang("langs/ar.lang");

fontresload( "0", "ttf/DroidSansArabic.ttf;ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/DroidSansArabic.ttf;ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="6" then

loadlang("langs/fr.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="7" then

loadlang("langs/ru.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="8" then

loadlang("langs/it.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="9" then

loadlang("langs/he.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

if prop("lang.prop","selected.0")=="10" then

loadlang("langs/de.lang");

fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );

fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );

endif;

##

# SELECT THEME

#

selectbox(

#-- Title

"<~themes.title>",

#-- Sub Title

"<~themes.desc>",

#-- Icon:

"@personalize",

#-- Will be saved in /tmp/aroma/theme.prop

"theme.prop",

"Generic", "Unthemed AROMA Installer", 1, #-- selected.0 = 1

"MIUI Theme", "MIUI Theme by mickey-r & amarullz", 0, #-- selected.0 = 2

"NXT Theme", "NXT Theme by Pranav Pandey", 0, #-- selected.0 = 3

"NextGen Theme", "NextGen Theme by amarullz edit by Ayush", 0, #-- selected.0 = 4

"Sense Theme", "HTC Sense Theme by amarullz", 0, #-- selected.0 = 5

"Honami Theme", "Xperia i1 Theme by Ayush", 0 #-- selected.0 = 6

);

##

# SET THEME

#

if prop("theme.prop","selected.0")=="2" then

theme("miui");

endif;

if prop("theme.prop","selected.0")=="3" then

theme("xNXT");

endif;

if prop("theme.prop","selected.0")=="4" then

theme("NextGen");

endif;

if prop("theme.prop","selected.0")=="5" then

theme("sense");

endif;

if prop("theme.prop","selected.0")=="6" then

theme("i1");

endif;

##

# 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>.\n\n"+

"<~welcome.text2>\n\n"+

" <~welcome.version>\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+

" <~welcome.codename>\t\t: <b><#selectbg_g> </#></b>\n"+

" <~welcome.updated>\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"<~welcome.next>",

#-- Icon

"@welcome"

);

##

# LICENSE

#

##

# MAIN MENU- INSTALLER n MISC

#

menubox(

#-- Title

"Button Mod",

#-- Sub Title

"Please select from the Menu Below to Modify the required features",

#-- Icon

"@apps",

#-- Will be saved in /tmp/aroma/menu.prop

"menu.prop",

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#

# TITLE | SUBTITLE | Item Icons #

#-------------------------+-----------------------------------------------------------+---------------#

"Custom Installation", "Install Mod - RECOMMENDED", "@install", #-- selected = 1

"Restore previous SysteUI.apk", "Restore SystemUI.apk", "@agreement", #-- selected = 3

"Quit Install", "Leaving the installation :(", "@install" #-- selected = 4

);

##

# CHANGELOG DISPLAY

#

if prop("menu.prop","selected")=="3" then

#-- TextDialog

textdialog(

#-- Title

"YOUR ROM NAME Changelog",

#-- Text

resread("changelog.txt"),

#-- Custom OK Button Text (Optional)

"Close"

);

#-- Back to Menu ( 2 Wizard UI to Back )

back("1");

endif;

##

# QUIT INSTALLER

#

if prop("menu.prop","selected")=="4" then

#-- Exit

if

confirm(

#-- Title

"Exit",

#-- Text

"Are you sure want to exit the Installer?",

#-- Icon (Optional)

"@alert"

)=="yes"

then

#-- Exit

exit("");

endif;

endif;

##

# Select Type of Install

#

if prop("menu.prop","selected")=="1" then

##

# Sub Window 1

#

selectbox(

#-- Title

"TITLE 1",

#-- Sub Title

"SUB TITLE 1",

#-- Icon:

"icons/install",

#-- Will be saved in /tmp/aroma/window1.prop

"window1.prop",

#----------------------------------[ Selectbox With Groups ]-----------------------------------#

# TITLE | SUBTITLE | Initial Value #

#------------------+-----------------------------------------------------------+---------------#

"Select One", "", 2, #-- Group 1. key = "selected.1"

"Power Button", "OPTION 1 DESCRIPTION", 1, #-- selected.1 = 1

"Home Button", "OPTION 2 DESCRIPTION", 0 #-- selected.1 = 2

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#

);

# Installation UI

ini_set("text_next", "Install Now");

ini_set("icon_next", "@installbutton");

viewbox(

#-- Title

"Ready to Install",

#-- Text

"ROM is ready to be installed.\n\n"+

"Press <b>Install ROM</b> to begin the installation.\n\n"+

"To review or change any of your installation settings, press <b>Back</b>.\n\n"+

"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(

"YOUR ROM NAME™ Installation",

getvar("rom_name") + "\n" +

"Please wait while this Mod blows up your device :P" +

"",

"icons/install"

);

ini_set("text_next", "Finish");

ini_set("icon_next", "@finish");

checkviewbox(

#-- Title

"Installation Completed",

#-- Text

"<#selectbg_g><b>Congrats...</b></#>\n\n"+

"<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n",

#-- Icon

"@welcome",

#-- Checkbox Text

"Reboot your device now.",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)

"0",

#-- 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"); - Reboot if anything finished

# reboot("now"); - Reboot Directly

# reboot("disable"); - If you set reboot("onfinish") before, use this command to revert it.

#

reboot("onfinish");

endif;