[Galaxy S II Android Development] Troubadour666:
Hi all

again, i try to make universal tool for normal/dualbooter users, with aroma option to flash in dualboot or not.

i have made a Univ-VRthemeFlasher.ZIP with vrtheming of /preload/ , /framework/ , /data/ and /system/ too which i add in installtheme.sh if needed.

to use, simply extract VRtheme zip you will find for your rom, extract it and drag&drop all folders in my Univ-VRthemeFlasher.ZIP, i mean, data,preload and system folder and if vrtheme structure exist too, drag&drop it too at same place. When you will launch my Univ-VRthemeFlasher.ZIP , aroma ask you if you manage PRELOAD or not (so DUALBOOT).

i upload 4 aroma themes and mods for 5.7 here :

http://d-h.st/users/skorpion/?fld_id=32497#files

aroma-MS3_5.7_S4toggles_BlueGingerPlus.zip

aroma-MS3_5.7_4toggles_BlueGingerPlus.zip

in attachment, my flasher to test (AROMA inspired from NeatROM, thanks [MENTION=3690986]_Sale_[/MENTION])

the code :

updater-script :

unmount("/system");
unmount("/cache");
unmount("/preload");
ui_print(" Please wait... mounting partition and flashing...");
run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p7", "/cache");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "2" then
package_extract_dir("preload/symlink/system/app", "/data/sec_data");
set_perm_recursive(0, 0, 0755, 0644, "/data/sec_data");
package_extract_file("dbtools/symlink_dualboot", "/tmp/create_preload_symlinks");
endif;
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "1" then
run_program("/sbin/mount", "/dev/block/mmcblk0p12", "/preload");
package_extract_dir("preload", "/preload");
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
package_extract_file("dbtools/symlink_preload", "/tmp/create_preload_symlinks");
endif;
set_perm(0, 0, 0777, "/tmp/create_preload_symlinks");
run_program("/tmp/create_preload_symlinks");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
ui_print(" Please wait... vrtheming if needed...");
run_program("/sbin/rm", "-rf", "/sdcard/vrtheme/");
package_extract_dir("vrtheme", "/sdcard/vrtheme");
package_extract_file("dbtools/installtheme.sh", "/sdcard/vrtheme/installtheme.sh");
if file_getprop("/tmp/aroma-data/installtype.prop","selected.1") == "2" then
package_extract_file("dbtools/dbinstalltheme.sh", "/sdcard/vrtheme/installtheme.sh");
endif;
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
delete("/tmp/symlink_dualboot");
delete("/tmp/symlink_preload");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
run_program("/sbin/umount", "/cache");
run_program("/sbin/umount", "/preload");

I can add an option in aroma to manage lidroid-res.apk and LidroidSettings.apk if needed when we switch from s4/23t mods:

[COLOR="Red"]aroma-config:[/COLOR]
selectbox(
"Lidroid managment",
"",
"@icon.apps",
"lidroid.prop",

"Lidroid managment","",2,
"Delete lidroid-res.apk and LidroidSettings.apk","",0,
"Keep them in rom","",1
);
[COLOR="Red"]updater-script:[/COLOR]
if file_getprop("/tmp/aroma-data/lidroid.prop","selected.1") == "1" then
delete("/system/framework/lidroid-res.apk");
delete("/preload/symlink/system/app/LidroidSettings.apk");
delete("/system/app/LidroidSettings.apk");
endif;

anw , AromaII in attachments manage lidroid stuff :)

i went to try on my 1rst NeatRom 5.7 (dualboot mod) , aromaII i made from MS3_5.7_4toggles_BlueGingerPlus.zip , and i flash it as a test over NR_5.7_4_toggles_no_reboot.zip i pushed some two days ago.

my test worked fine.

I think MORPH flasher can be ported on this way too.

thanks. (free to use for a new thread)