[MOD]AROMA Installer Polish language - Android Software/Hacking General [Developers Only]

Hello, guys! As I can see there a lot of Polish people (like me) I decided to make Polish language for your favourite AROMA Installer.
DOWNLOAD HERE!
Instructions:
Download file from the link above
Don't change its name
Paste it into META-INF/com/google/android/aroma/langs
Open aroma-config file in text editor (Notepad++ recommended)
Find language selection section
Copy the last position and edit it, so it will look like that (REMOVE COMA IN NEW ONE, ADD IN PREVIOUS! CHANGE NUMBERS!):
Code:
"German", "Willkommen bei Installer", 0, #-- selected.0 = 10
"Polish", "Witamy w instalatorze!", 0 #-- selected.0 = 11
Now find last if prop:
Code:
if prop("lang.prop","selected.0")=="xyz" then
loadlang("langs/xyz.lang");
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
endif;
...copy it, and mod it so it will look like that:
Code:
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;
Code:
if prop("lang.prop","selected.0")=="11" then
loadlang("langs/pl.lang");
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
endif;
Save the aroma-config file.
Finally your aroma-config should look like this (edited language section is shown here):
Code:
#---------------------------------[ Selectbox Without Group ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#
"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 Chinese","?????????", 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 installer", 0, #-- selected.0 = 8
"Hebrew", "?????????", 0, #-- selected.0 = 9
"German", "Willkommen bei Installer", 0, #-- selected.0 = 10
"Polish", "Witamy w instalatorze!", 0 #-- selected.0 = 11
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
##
# 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" ); #-- Use sets of font (Font Family)
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" ); #-- Use sets of font (Font Family)
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;
if prop("lang.prop","selected.0")=="11" then
loadlang("langs/pl.lang");
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
endif;
Done. Now you can enjoy Polish language in your AROMA Installer.
AROMA Installer Original Thread HERE
Big thanks to amarullz! His awesome AROMA is one of the most amazing miracles in Android world!

Related

[Q]My first updater-scipt can't copy file. Can you help me :(

My first updater-scipt can't copy file. Can you help me
i running this script on CWM5
This is my file --> http://www.mediafire.com/?n3pit1jilrrw4w1
This is my updater-script code :
Code:
ui_print("Adobe flash player - CWM");
ui_print("***Installing Files");
run_program("/sbin/mount", "/data");
package_extract_dir("data", "/data");
ui_print("***Setting Permissions");
set_perm (0, 0, 0644, "/data/app/com.adobe.flashplayer_111102059_11.1.102.59.apk");
set_perm (0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libflashplayer.so");
set_perm (0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libstagefright_froyo.so");
set_perm (0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libstagefright_honeycomb.so");
set_perm (0, 0, 0644, "/data/data/com.adobe.flashplayer/lib/libysshared.so");
unmount("/data");
ui_print("***Completed Reboot your phone***");
(i'm noob eng)

Synatx Error in Updater-Script Aroma 3.00b

So I am trying some new code, but status 6 is really becoming a pain in the neck...can someone tell me where the problem is?
my code is-->
Code:
ui_print("-----------------------------");
ui_print("- UltraRom 6b -");
ui_print("- L9 Version! -");
ui_print("- By: -");
ui_print("- UltraRoboto -");
ui_print("-----------------------------");
package_extract_file("boot760.img", "/tmp/boot760.img");
set_perm(0, 0, 0777, "/tmp/boot760.img");
package_extract_file("boot769.img", "/tmp/boot769.img");
set_perm(0, 0, 0777, "/tmp/boot769.img");
# checking boot.img
ui_print("Verifying boot images...");
if
sha1_check(read_file("/tmp/boot760.img")) == "51d9cf62ee5dc560755262f026cd521a94cf3173";
then
ui_print("...OK...");
delete("/tmp/boot760.img");
else
ui_print("File corruption is present, aborting install..");
abort("Please download this zip again...");
endif;
if
sha1_check(read_file("/tmp/boot769.img")) == "46c5be87777034d922f995c31a3d2fcf0941cb8b";
then
ui_print("...OK...");
delete("/tmp/boot769.img");
else
ui_print("File corruption is present, aborting install..");
abort("Please download this zip again...");
endif;
package_extract_file("ice769-recovery.img", "/tmp/ice769-recovery.img");
set_perm(0, 0, 0777, "/tmp/ice769-recovery.img");
# checking ice769-recovery.img
ui_print("Verifying recovery images...");
if
sha1_check(read_file("/tmp/ice769-recovery.img")) == "8d8f0d35b7f128a2aacbc180b4e438238294d0d2";
then
ui_print("...OK...");
delete("/tmp/ice769-recovery.img");
else
ui_print("File corruption is present, aborting install..");
abort("Please download this zip again...");
endif;
ui_print("");
ui_print("Installing...");
######### system
ui_print("Wiping SYSTEM");
run_program("/sbin/busybox", "umount", "/system");
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
ui_print("Extracting SYSTEM ");
ui_print("please wait...");
package_extract_dir("system", "/system");
#
ui_print("Installing Busybox & Linking Tools");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
ui_print("Setting Permission...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(1000, 1005, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0700, "/system/bootstrap");
set_perm(0, 0, 0755, "/system/bin/e2fsck");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 3004, 02755, "/system/bin/ping6");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/firstboot.sh");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(0, 0, 0644, "/system/etc/bluetooth/block_avrcp_toggle.conf");
set_perm(1002, 1002, 0640, "/system/etc/bluetooth/did.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/input.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/network.conf");
set_perm(1000, 1015, 0644, "/system/etc/apns-conf.xml");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm_recursive(0, 0, 0711, 06755, "/system/bin/.ext");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
#Erase Data Prompt and Extract files
###########################################################################
if file_getprop("/tmp/aroma/data.prop", "selected.1") == "1" then
ui_print("Removing Data");
run_program("/sbin/busybox", "mount", "/data");
delete_recursive("/data");
else
######### clean dc
ui_print("Clearing dalvik");
run_program("/sbin/busybox", "mount", "/data");
delete_recursive("/data/dalvik-cache");
######### apps
ui_print("Installing your requested apps");
if file_getprop("/tmp/aroma/option.prop", "item.1.1") == "1" then
if file_getprop("/tmp/datacheck.prop", "holotheme") == "yes" then
run_program("/tmp/aroma/remove.sh", "HoloLightTheme");
run_program("/tmp/aroma/remove.sh", "om.gnexushd.apollo.holoCM");
endif;
package_extract_file("system/apps/bootup/com.gnexushd.apollo.holoCM.apk", "/data/app/com.gnexushd.apollo.holoCM.apk");
set_perm(1000, 1000, 0644, "/data/app/com.gnexushd.apollo.holoCM.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.2") == "1" then
if file_getprop("/tmp/datacheck.prop", "gravity") == "yes" then
delete_recursive("data/data/com.ceco.gm2.gravitybox");
run_program("/tmp/aroma/remove.sh", "ceco.gm2.gravitybox");
endif;
package_extract_file("system/apps/bootup/com.ceco.gm2.gravitybox-1.apk", "/data/app/com.ceco.gm2.gravitybox-1.apk");
set_perm(1000, 1000, 0644, "/data/app/com.ceco.gm2.gravitybox-1.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.3") == "1" then
if file_getprop("/tmp/datacheck.prop", "xposed") == "yes" then
run_program("/tmp/aroma/remove.sh", "de.robv.android.xposed.installer");
delete_recursive("data/data/de.robv.android.xposed.installer");
endif;
package_extract_file("system/apps/bootup/de.robv.android.xposed.installer-1.apk", "/data/app/de.robv.android.xposed.installer-1.apk");
set_perm(1000, 1000, 0644, "/data/app/de.robv.android.xposed.installer-1.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.4") == "1" then
if file_getprop("/tmp/datacheck.prop", "flash") == "yes" then
run_program("/tmp/aroma/remove.sh", "flash_player");
run_program("/tmp/aroma/remove.sh", "adobe.flashplayer");
endif;
package_extract_file("system/apps/bootup/com.adobe.flashplayer.apk", "/data/app/com.adobe.flashplayer.apk");
set_perm(1000, 1000, 0644, "/data/app/com.adobe.flashplayer.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.5") == "1" then
if file_getprop("/tmp/datacheck.prop", "ma.wanam") == "yes" then
run_program("/tmp/aroma/remove.sh", "wanam.youtubeadaway");
delete_recursive("data/data/ma.wanam.youtubeadaway");
endif;
package_extract_file("system/apps/bootup/ma.wanam.youtubeadaway-1.apk", "/data/app/ma.wanam.youtubeadaway-1.apk");
set_perm(1000, 1000, 0644, "/data/app/ma.wanam.youtubeadaway-1.apk");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.6") == "0" then
delete("/system/app/monsterui.apk");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.7") == "0" then
delete("/system/app/acdisplay.apk");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.8") == "0" then
delete("/system/app/LockScreen3.apk");
delete("/system/app/LockScreen3.odex");
endif;
##############################################################################
#Music
if file_getprop("/tmp/aroma/system-option.prop", "item.1.1") == "0" then
delete("/system/app/Apollo.apk");
delete("/system/app/Apollo.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.2") == "0" then
delete("/system/app/MusicPlayer.apk");
delete("/system/app/MusicPlayer.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.3") == "0" then
delete("/system/app/com.google.android.music.apk");
delete("/system/app/com.google.android.music.odex");
endif;
#############################################################################
#Launcher
if file_getprop("/tmp/aroma/system-option.prop", "item.2.1") == "0" then
delete("/system/app/com.ksmobile.launcher-1.apk");
delete("/system/app/com.ksmobile.launcher-1.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.2.2") == "0" then
delete("/system/app/com.google.android.launcher.apk");
delete("/system/app/com.google.android.launcher.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.2.3") == "0" then
delete("/system/app/ginlemon.flowerfree-2.apk");
delete("/system/app/ginlemon.flowerfree-2.odex");
if file_getprop("/tmp/aroma/system-option.prop", "item.2.4") == "0" then
delete("/system/app/Action.Launcher.3.apk");
delete("/system/app/Action.Launcher.3.odex");
endif;
######################################################################
#Messaging
if file_getprop("/tmp/aroma/system-message.prop", "item.1.1") == "0" then
delete("/system/app/com.textra.apk");
endif;
if file_getprop("/tmp/aroma/system-message.prop", "item.1.2") == "0" then
delete("/system/app/com.google.android.apps.messaging.apk");
endif;
######################################################################
#Keyboard
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "1" then
package_extract_dir("LG_Keyboard", "/system/app");
delete("/system/app/com.google.android.inputmethod.latin.apk");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "3" then
delete("/system/app/com.google.android.inputmethod.latin.apk");
delete("/system/lib/libjni_unbundled_latinimegoogle.so");
run_program("/tmp/aroma/remove.sh", "google.android.inputmethod.latin");
package_extract_file("Shafta_Keyboard/libjni_unbundled_latinimegoogle.so", "/system/lib/libjni_unbundled_latinimegoogle.so");
package_extract_file("Shafta_Keyboard/Shafta123CreamSandwich6.0.apk", "/system/app/Shafta123CreamSandwich6.0.apk");
package_extract_file("Shafta_Keyboard/Shafta123CreamSandwich6.0.odex", "/system/app/Shafta123CreamSandwich6.0.odex");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "4" then
delete("/system/app/com.google.android.inputmethod.latin.apk");
delete("/system/lib/libjni_unbundled_latinimegoogle.so");
run_program("/tmp/aroma/remove.sh", "google.android.inputmethod.latin");
package_extract_file("Shafta_Keyboard/libjni_unbundled_latinimegoogle.so", "/system/lib/libjni_unbundled_latinimegoogle.so");
package_extract_file("Shafta_Keyboard/ShaftaAppleSauceICS6.0.apk", "/system/app/ShaftaAppleSauceICS6.0.apk");
package_extract_file("Shafta_Keyboard/ShaftaAppleSauceICS6.0.odex", "/system/app/ShaftaAppleSauceICS6.0.odex");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "5" then
delete("/system/app/com.google.android.inputmethod.latin.apk");
delete("/system/lib/libjni_unbundled_latinimegoogle.so");
run_program("/tmp/aroma/remove.sh", "google.android.inputmethod.latin");
package_extract_file("Shafta_Keyboard/libjni_unbundled_latinimegoogle.so", "/system/lib/libjni_unbundled_latinimegoogle.so");
package_extract_file("Shafta_Keyboard/ShaftaLemon6.0.apk", "/system/app/ShaftaLemon6.0.apk");
package_extract_file("Shafta_Keyboard/ShaftaLemon6.0.odex", "/system/app/ShaftaLemon6.0.odex");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
#####################################################################
#2nd-init Recovery
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "1" then
package_extract_file("recovery/twrp/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "2" then
package_extract_file("recovery/cwmtouch/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "3" then
package_extract_file("recovery/cwmreg/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "4" then
package_extract_file("recovery/philzcwm/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
#####################################################################
#2nd-init Rom
if file_getprop("/tmp/aroma/init.prop", "selected.1") == "2" then
if file_getprop("/tmp/aroma/swap.prop", "selected.1") == "2" then
delete("/system/etc/init.d/69swap");
endif;
# installing required files
package_extract_dir("regular", "/system");
delete("/system/bootstrap/boot.tar");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0644, "/system/etc/vold.fstab");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
else
delete("/system/etc/init.d/69swap");
endif;
#####################################################################
#Model
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "1" then
package_extract_dir("model/P760", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "2" then
package_extract_dir("model/P765", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "3" then
package_extract_dir("model/P768", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "4" then
package_extract_dir("model/P769", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
delete("/system/app/FmRadio.apk");
ui_print("Uploading Boot Image...");
package_extract_file("boot769.img", "/dev/block/mmcblk0p3");
else
ui_print("Uploading Boot Image...");
package_extract_file("boot760.img", "/dev/block/mmcblk0p3");
endif;
#############################
if file_getprop("/tmp/aroma/loader.prop", "selected.1") == "2" then
ui_print("Installing ICE Recovery");
package_extract_file("ice769-recovery.img", "/dev/block/mmcblk0p4");
endif;
######################################################
if file_getprop("/tmp/aroma/init.prop", "selected.1") == "1" then
run_program("/tmp/aroma/move2sd.sh");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
#############################################
ui_print(" Clearing cache");
delete_recursive("/cache");
unmount("/data");
unmount("/cache");
unmount("/system");
ui_print("Install Complete");
ui_print("");
ui_print("Enjoy!");
ui_print("");
And the error is here-->
Code:
AROMA INSTALLER version 3.00
(c) 2013-2015 by amarullz.com
ROM Name : UltraRom
ROM Version : 6b
ROM Author : UltraRoboto
Device : L9 Variants
Start at : Mon Oct 26 00:32:12 2015
installing samsung updater extensions
line 390 col 1: syntax error, unexpected $end
1 parse errors
Installer Error (Status 6)
End at : Mon Oct 26 00:32:12 2015
any help?

Updater Script CM12 F1

Updater Script I am using for flashing...For CM12 but returns with error 6
++ assert(getprop("ro.build.product") == "F1f" || getprop("ro.product.device") == "F1f" || getprop("ro.build.product") == "f1f" || getprop("ro.product.device") == "f1f" || abort("This package is for device: F1f; this device is " + getprop("ro.product.device") + ".");ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
Sorry I'm not knowledged with android port but I've found this, don't know if this is help you or not:
https://forum.xda-developers.com/showthread.php?t=2066565

unable flash lineageOS rom in my ONEPLUS ONE . ERROR 6

here i am uploading my updater-script .
pls provide fixes.
assert(getprop("ro.product.device") == "bacon" || getprop("ro.build.product") == "bacon" || getprop("ro.product.device") == "A0001" || getprop("ro.build.product") == "A0001" || abort("E3004: This package is for device: bacon,A0001; this device is " + getprop("ro.product.device") + ".");
assert(bacon.verify_trustzone("TZ.BF.2.0-2.0.0123","TZ.BF.2.0-2.0.0134","TZ.BF.2.0-2.0.0137") == "1");
assert(bacon.verify_fs_type() == "1");
ui_print("Target: oneplus/bacon/A0001:6.0.1/MHC19Q/ZNH2KAS1KN:user/release-keys");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
THAT IS IT.. PLS HELP
dhruvopo said:
here i am uploading my updater-script .
pls provide fixes.
THAT IS IT.. PLS HELP
Click to expand...
Click to collapse
Wipe everything except internal storage,then flash.
Mr.Ak said:
Wipe everything except internal storage,then flash.
Click to expand...
Click to collapse
U mean to say... Wipe cache/dalvik?
dhruvopo said:
U mean to say... Wipe cache/dalvik?
Click to expand...
Click to collapse
No,I meant what I said in a post above yours.

TWRP: Error 11 (wrong categorie sorry)

Goodday Everyone/Hello!
I'm trying to make a CyanogenMod 12 port rom to my device called "Samsung Galaxy Grand Prime VE SM-G531F"
But it shows me while flashing:
"Updater process ended with signal: 11"
What can be the problem? Here's my updater-script file's code:
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/soc.2/by-name/SYSTEM", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/platform/soc.2/by-name/USER", "/data", "");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
block_image_update("/dev/block/platform/soc.2/by-name/SYSTEM", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/soc.2/by-name/SYSTEM", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/soc.2/by-name/KERNEL");
show_progress(0.200000, 10);

Categories

Resources