[Android Software/Hacking General [Developers Only]] Smartg2os:
Hi !

Many thanks to amarullz for awesome Aroma products (Installer and File Manager) ! :)

After learning how to use Aroma, I decided to make my own mod using Aroma Installer but I got a problem.

The UI work perfectly, but installation show an empty installation log, nothing is installed and save logs options don't create any file on my sdcard :(

I checked many times my aroma-config script and my updater-script, UNIX formatted (and not WIndows), I tried to replace updater-binary-installer but each time, nothing is installed.

My mod should install selected inverted apps.

DP is set to 3 (HDPI screens) and touchscreen is calibrate for galaxysmtd but calibtool is still alavailable by pressing menu button if you have another device

Note that my aroma and updater scripts are very short ;)

Full zip

META-INF flashable folder, nothing will be installed

Preview of aroma-config

ini_set("dp","3");
calibrate("1.8356","46","1.2338","20");
theme("ics");
fontresload( "0", "ttf/DroidSans.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" );

ini_set("text_next", "Install Now");
checkbox("Choose and install", "Inverted Apps are changed from white background to balck background.\n"+
"Amoled screens consume less battery when they display darker.",
"@personalize",
"choice.prop",

"Many thanks to TeamBacked and xlory", "", 2,
"SMS/MMS", "", 1,
"Google Talk", "", 1,
"Contacts", "", 1,
"GMail", "", 1,
"Email", "", 1,
"Calendar", "", 1,
"Google Plus", "", 1,
"Google Play Store", "", 1,
"Youtube", "", 1,
"Google Play Music", "", 0,
"Google Reader", "RSS feed reader", 0,
"Google Voice", "USA only", 0);

ini_set("text_next", "Next >");
setvar("retstatus",
install(
"Installing",
"Inverted apps are being installed",
"@install",
"Installation ok, press Next to continue"
)
);

ini_set("text_next", "Finish");
checkviewbox("Installation Completed",
"Inverted apps have succesfully been installed",
"@welcome",
"Reboot Now",
"1",
"reboot");
if
getvar("reboot")=="1"
then
reboot("onfinish");
endif;

Preview of updater-script

set_progress(0.00);
ui_print("@ Mounting partitions");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
set_progress(0.10);
if
file_getprop("/tmp/aroma/choice.prop","item.1.1")=="1"
then
ui_print("@ Installing Mms");
package_extract_dir("Mms", "/system/app");
delete("/system/dalvik-cache/system@app@Mms.apk@classes.dex");
ui_print("Mms Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.2")=="1"
then
ui_print("@ Installing Talk");
package_extract_dir("Talk", "/system/app");
delete("/system/dalvik-cache/system@app@Talk.apk@classes.dex");
ui_print("Google Talk Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.3")=="1"
then
ui_print("@ Installing Contacts");
package_extract_dir("Contacts", "/system/app");
delete("/system/dalvik-cache/system@app@Contacts.apk@classes.dex");
ui_print("Contacts Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.4")=="1"
then
ui_print("@ Installing GMail");
ui_print("Cleaning");
delete("/system/app/GMail.apk");
delete("/system/app/Gmail.apk");
delete("/data/app/com.google.android.gm-2.apk);
delete("/data/dalvik-cache/data@app@com.google.android.gm-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.google.android.gm-2.apk@classes.dex");
ui_print("extracting GMail");
package_extract_dir("GMail", "/data/app");
ui_print("GMail Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.5")=="1"
then
ui_print("@ Installing EMail");
package_extract_dir("Email", "/system/app");
delete("/system/dalvik-cache/system@app@Email.apk@classes.dex");
ui_print("EMail Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.6")=="1"
then
ui_print("@ Installing Calendar");
package_extract_dir("Calendar", "/system/app");
delete("/system/dalvik-cache/system@app@Calendar.apk@classes.dex");
ui_print("Calendar Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.7")=="1"
then
ui_print("@ Installing Google Plus");
ui_print("Cleaning");
delete("/system/app/PlusOne.apk");
delete("/data/app/com.google.android.apps.plus-2.apk");
delete("/data/dalvik-cache/data@app@com.google.android.apps.plus-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.google.android.apps.plus-2.apk@classes.dex");
ui_print("extracting Google Plus");
package_extract_dir("PlusOne", "/data/app");
ui_print("Google Plus Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.8")=="1"
then
ui_print("@ Installing Play Store");
ui_print("Cleaning");
delete("/system/app/Vending.apk");
delete("/data/app/com.android.vending-1.apk");
delete("/data/app/com.android.vending-2.apk");
delete("/data/dalvik-cache/data@app@com.android.vending-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.android.vending-2.apk@classes.dex");
ui_print("extracting Play Store");
package_extract_dir("PlayStore", "/system/app");
ui_print("Google Play Store Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.9")=="1"
then
ui_print("@ Installing Youtube");
ui_print("Cleaning");
delete("/system/app/YouTube.apk");
delete("/system/app/Youtube.apk");
delete("/data/app/com.google.android.youtube-2.apk");
delete("/data/dalvik-cache/data@app@com.google.android.youtube-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.google.android.youtube-2.apk@classes.dex");
ui_print("extracting Youtube");
package_extract_dir("Youtube", "/data/app");
ui_print("Youtube Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.10")=="1"
then
ui_print("@ Installing Play Music");
ui_print("Cleaning");
delete("/system/app/Music2.apk);
delete("/data/app/com.google.android.music-2.apk");
delete("/data/dalvik-cache/data@app@com.google.android.music-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.google.android.music-2.apk@classes.dex");
ui_print("extracting Play Music");
package_extract_dir("PlayMusic", "/data/app");
ui_print("Google Play Music Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.11")=="1"
then
ui_print("@ Installing Reader");
ui_print("Cleaning");
delete("/system/app/Reader.apk");
delete("/data/app/com.google.android.apps.reader-2.apk");
delete("/data/dalvik-cache/data@app@com.google.android.apps.reader-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.google.android.apps.reader-2.apk@classes.dex");
ui_print("extracting Reader");
package_extract_dir("Reader", "/data/app");
ui_print("Google Reader Installed");
endif;

if
file_getprop("/tmp/aroma/choice.prop","item.1.12")=="1"
then
ui_print("@ Installing Voice");
ui_print("Cleaning");
delete("/system/app/Voice.apk");
delete("/data/app/com.google.android.apps.googlevoice-2.apk");
delete("/data/dalvik-cache/data@app@com.google.android.apps.googlevoice-1.apk@classes.dex");
delete("/data/dalvik-cache/data@app@com.google.android.apps.googlevoice-2.apk@classes.dex");
ui_print("extracting Voice");
package_extract_dir("Voice", "/data/app");
ui_print("Google Voice Installed");
endif;

set_progress(0.90);

ui_print("unmounting system and data");

unmount("/system");
unmount("/data");

ui_print("@ Finished");
ui_print(" ");
ui_print("everything should be ok! ");

set_progress(1);

Thanks to those who will try to help me :)

PS: Sorry for my bad English