[Android Software/Hacking General [Developers Only]] nkk71:
I think you missed the option vs checkbox thing, doing this on the browser so excuse any mistakes

(and I usually prefer more descriptive options when I do get a chance), so probably something like:

form(
"AUDIO",
"MAKE YOUR CHOICES AND CONTINUE BY PRESSING <b>'NEXT'</b>...",
"@none",
"audio.prop",
#
"MAIN_SOUNDS","WHICH UI SOUNDS DO YOU WANT TO USE?","","group",
"LG","LG SOUNDS","ALL LG V20 UI SOUNDS","select",
"MIUI","MIUI SOUNDS","ALL MIUI V8 UI SOUNDS","select",
"HTC","HTC SOUNDS","ALL HTC 10 UI SOUNDS","select",
"SONY","SONY XPERIA SOUNDS","ALL XPERIA XZ UI SOUNDS","select",
"PIXEL","GOOGLE PIXEL SOUNDS","ALL PIXEL XL UI SOUNDS","select.selected",
"DEFAULT","DEFAULT","KEEPS THE DEFAULT UI SOUNDS","select",

"group2","DO YOU WANT MORE SOUNDS?","","group",
"add_LG","LG SOUNDS","ALL LG V20 RINGTONES, ALARMS AND NOTIFICATIONS","check.checked",
"add_MIUI","MIUI SOUNDS","ALL MIUI V8 RINGTONES, ALARMS AND NOTIFICATIONS","check.checked",
"add_HTC","HTC SOUNDS","ALL HTC 10 RINGTONES, ALARMS AND NOTIFICATIONS","check.checked",
"add_SONY","SONY SOUNDS","ALL XPERIA XZ RINGTONES, ALARMS AND NOTIFICATIONS","check.checked",
"add_GOOGLE","GOOGLE SOUNDS","ALL PIXEL XL RINGTONES, ALARMS AND NOTIFICATIONS","check.checked",

"AUDIO_QUALITY","WHAT ABOUT THE AUDIO QUALITY?","","group",
"OPTIMIZED","OPTIMIZED","USING SONY ENHANCEMENTS","select",
"DEFAULT","DEFAULT","USING ONLY THE INJECTED PROP SETTINGS","select.selected"
);

# Main Sounds
if file_getprop("/tmp/aroma-data/audio.prop","MAIN_SOUNDS") == "LG" then
...
endif;

if file_getprop("/tmp/aroma-data/audio.prop","MAIN_SOUNDS") == "MIUI" then
...
endif;

if file_getprop("/tmp/aroma-data/audio.prop","MAIN_SOUNDS") == "HTC" then
...
endif;

if file_getprop("/tmp/aroma-data/audio.prop","MAIN_SOUNDS") == "SONY" then
...
endif;

if file_getprop("/tmp/aroma-data/audio.prop","MAIN_SOUNDS") == "PIXEL" then
...
endif;

if file_getprop("/tmp/aroma-data/audio.prop","MAIN_SOUNDS") == "DEFAULT" then
...
endif;

# Additional Sounds
if file_getprop("/tmp/aroma-data/audio.prop","add_LG") == "1" then
...
endif;
if file_getprop("/tmp/aroma-data/audio.prop","add_MIUI") == "1" then
...
endif;
if file_getprop("/tmp/aroma-data/audio.prop","add_HTC") == "1" then
...
endif;
if file_getprop("/tmp/aroma-data/audio.prop","add_SONY") == "1" then
...
endif;
if file_getprop("/tmp/aroma-data/audio.prop","add_GOOGLE") == "1" then
...
endif;

# Audio Quality
if file_getprop("/tmp/aroma-data/audio.prop","AUDIO_QUALITY") == "OPTIMIZED" then
...
endif;

if file_getprop("/tmp/aroma-data/audio.prop","AUDIO_QUALITY") == "DEFAULT" then
...
endif;

You can stick with chkN and optM, but for

optM,

you do file_getprop("/tmp/aroma-data/audio.prop",<name of group>) == "optM"

and for

chkN,

you do file_getprop("/tmp/aroma-data/audio.prop","chkN") == "1"

[MENTION=4756773]Miustone[/MENTION]

I just ran the above aroma-config, here's the output:

/tmp/aroma # cat audio.prop
add_LG=0
add_MIUI=1
add_HTC=1
add_SONY=1
add_GOOGLE=0
MAIN_SOUNDS=MIUI
AUDIO_QUALITY=DEFAULT

then I changed my mind :p, and went back because I wanted Optimized Audio:

/tmp/aroma # cat audio.prop
add_LG=0
add_MIUI=1
add_HTC=1
add_SONY=1
add_GOOGLE=0
MAIN_SOUNDS=MIUI
AUDIO_QUALITY=OPTIMIZED