[Galaxy Note GT-N7000 Themes and Apps] tkari4:
Finally we've got a stable Aroma!

All credits to amarullz ! :good: Original Thread: http://xdaforums.com/showthread.php?t=1461712

The attached file includes the files only for N7000 with Jelly Bean Rom.

I just share my knowledge, trying help to anyone who can not get it work!

There are already some threads how to make the first steps, so do not start from the beginning.

First the easy use.... (nothing complex) ;)

1.) Rom Information

# Initializing Rom Information

ini_set("rom_name", "Your Rom Name");
ini_set("rom_version", "Your Rom Version");
ini_set("rom_author", "Your Name");
ini_set("rom_device", "Device");
ini_set("rom_date", "Release Datum");

Fill out with your Rom information..

result:

2.) How to use checkbox ( Checkbox to enable multiple selection)

# STEP 1 - How to use checkbox

checkbox("","<b>Add your selection title here</b>","@alert","checkbox.prop",
"Select what you want", "", 2, # <- Group the items with this line
"<b>Check 1</b>", "This is the first selectable item", 0, # Add items to select, <b> and </b> = bold text
"<b>Check 2</b>", "This is the second selectable item", 1, # First "Item Name" Second "Description"
"<b>Check 3</b>", "This is the third selectable item", 0, # 0, at the end = not selected to install (default)
"<b>Check 4</b>", "This is the fourth selectable item", 1, # 1, at the end = selected to install (default)
"<b>Check 5</b>", "This is the fifth selectable item", 1, # On one screen you can put about 7 items without scrolling
"<b>Check 6</b>", "This is the sixth selectable item", 0, # You can use any .prop name (checkbox.prop it's only sample)
"<b>Check 7</b>", "This is the seventh selectable item", 0); # Last line must be closed with: );

The second line it's important: "Select what you want", "", 2, Must group the items, then they can be called in the updater-script with item.1.1 to item.1.7

result:

updater-script:

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.1") == "1"
then
ui_print("Check 1");
package_extract_dir("sample/check1/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.2") == "1"
then
ui_print("Check 2");
package_extract_dir("sample/check2/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.3") == "1"
then
ui_print("Check 3");
package_extract_dir("sample/check3/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.4") == "1"
then
ui_print("Check 4");
package_extract_dir("sample/check4/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.5") == "1"
then
ui_print("Check 5");
package_extract_dir("sample/check5/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.6") == "1"
then
ui_print("Check 6");
package_extract_dir("sample/check6/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.7") == "1"
then
ui_print("Check 7");
package_extract_dir("sample/check7/system", "/system");
ui_print("Done");
endif;

If in checkbox.prop first item selected, then make something..

if file_getprop("/tmp/aroma-data/checkbox.prop", "item.1.7") == "1" then

copy file, copy folder, delete file, delete folder...

The query must be closed with: endif;

Never use the same .prop name in the aroma-config!

So, I used checkbox.prop in the first selection, so for the next 7 apps use for example checkbox1.prop

3.) How to use selectbox ( Only one item can be selected)

# STEP 2 - How to use selectbox

selectbox("","<b>Add your selection title here</b>","@alert","selectbox.prop",
"Select what you want", "", 2, # <- Group the items with this line
"<b>Select 1</b>", "This is the first selectable item", 0, # Add items to select, <b> and </b> = bold text
"<b>Select 2</b>", "This is the second selectable item", 0, # First "Item Name" Second "Description"
"<b>Select 3</b>", "This is the third selectable item", 0, # 0, at the end = not selected to install (default)
"<b>Select 4</b>", "This is the fourth selectable item", 0, # 1, at the end = selected to install (default)
"<b>Select 5</b>", "This is the fifth selectable item", 1, # On one screen you can put about 7 items without scrolling
"<b>Select 6</b>", "This is the sixth selectable item", 0, # You can use any .prop name (selectbox.prop it's only sample)
"<b>Select 7</b>", "This is the seventh selectable item", 0); # Last line must be closed with: );

The second line it's important: "Select what you want", "", 2, Must group the items, then they can be called in the updater-script with selected.1

(if the items aren't grouped in selectbox, then selected.0 must be used)

If you are using selectbox, then set only one item as default, or you can deselect all.

1 = will be installed by default

0 = by default, it will not be installed

result:

updater-script:

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "1"
then
ui_print("Select 1");
package_extract_dir("sample/select1/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "2"
then
ui_print("Select 2");
package_extract_dir("sample/select2/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "3"
then
ui_print("Select 3");
package_extract_dir("sample/select3/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "4"
then
ui_print("Select 4");
package_extract_dir("sample/select4/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "5"
then
ui_print("Select 5");
package_extract_dir("sample/select5/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "6"
then
ui_print("Select 6");
package_extract_dir("sample/select6/system", "/system");
ui_print("Done");
endif;

if
file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "7"
then
ui_print("Select 7");
package_extract_dir("sample/select7/system", "/system");
ui_print("Done");
endif;

As you can see selectbox it's a little different...

if file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "1" then

selected.1 it's the same for every item and only the item number must be given after == 1, 2, 3, etc..

So for the seventh item: (Select 7)

if file_getprop("/tmp/aroma-data/selectbox.prop", "selected.1") == "7" then

4.) Install Warning

# STEP 3 - Install Warning

viewbox(
"Ready to Install",

"The wizard is ready to begin installation.\n\n"+
"Press <b>Next</b> to begin the installation.\n\n"+
"If you want to review or change any of your installation settings, press <b>Back</b>. Press Menu Key -> Quit Installation to exit the wizard.",

"@install"
);

result:

5.) Installation

Because the last screen is coming you can set the Next button text to Exit..

ini_set("text_next", "Exit");

# STEP 4 - Installation

setvar("retstatus",
install(

"Installing",

"<b>"+ini_get("rom_name")+"</b> are being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

"@install",

"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Exit to continue."
)
);

result:

If you can't see text in the window, then you have an error in the updater script.

Save the log and find it.

and finally, the install log can be saved

Install the attached aroma-simple-template.zip from CWM recovery.

Won't modify anything, only writes text on your screen.