[Q] What's wrong with this updater-script? - General Questions and Answers

Hi,
Can someone check what's wrong with this updater-script? Everytime I try to flash the ROM it gives me a status 7 error and tells me that the error is at Setting Permissions ..
Code:
ui_print(" -> Installing nDroid");
unmount("/system");
ui_print(" -> Mounting System");
run_program("/sbin/mount", "-t", "auto", "/system");
ui_print(" -> Mounting Data");
run_program("/sbin/mount", "-t", "auto", "/data");
ui_print(" -> Mounting Cache");
run_program("/sbin/mount", "-t", "auto", "/cache");
ui_print(" -> Wiping System");
delete_recursive("/system");
##WIPELINE1##ui_print(" -> Wiping Data");
##WIPELINE1##package_extract_file("tmp/safewipe.sh", "/tmp/safewipe.sh");
##WIPELINE1##package_extract_file("tmp/bash", "/tmp/bash");
##WIPELINE1##set_perm(0, 0, 0777, "/tmp/safewipe.sh");
##WIPELINE1##set_perm(0, 0, 0777, "/tmp/bash");
##WIPELINE1##run_program("/tmp/safewipe.sh");
##WIPELINE2##ui_print(" -> Wiping Cache");
##WIPELINE2##delete_recursive("/cache");
ui_print(" -> Extracting System");
package_extract_dir("system", "/system");
ui_print(" -> Symlinking");
symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
symlink("mksh", "/system/bin/sh");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("toolbox", "/system/bin/chcon");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/clear");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/cp");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/du");
symlink("toolbox", "/system/bin/getenforce");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/getsebool");
symlink("toolbox", "/system/bin/grep");
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/load_policy");
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/restorecon");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/runcon");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setenforce");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/setsebool");
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 Permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/bin/app_process");
set_perm(0, 2000, 0755, "/system/bin/bintvoutservice");
set_perm(0, 2000, 0755, "/system/bin/bootanimation");
set_perm(0, 2000, 0755, "/system/bin/bugreport");
set_perm(0, 2000, 0755, "/system/bin/clatd");
set_perm(0, 2000, 0755, "/system/bin/connfwexe");
set_perm(0, 2000, 0755, "/system/bin/createsystemfile");
set_perm(0, 2000, 0755, "/system/bin/debuggerd");
set_perm(0, 2000, 0755, "/system/bin/dnsmasq");
set_perm(0, 2000, 0755, "/system/bin/drmserver");
set_perm(0, 2000, 0755, "/system/bin/dumpstate");
set_perm(0, 2000, 0755, "/system/bin/dumpsys");
set_perm(0, 2000, 0755, "/system/bin/hostapd");
set_perm(0, 2000, 0755, "/system/bin/icd");
set_perm(0, 2000, 0755, "/system/bin/immvibed");
set_perm(0, 2000, 0755, "/system/bin/installd");
set_perm(0, 2000, 0755, "/system/bin/insthk");
set_perm(0, 2000, 0755, "/system/bin/ipruleset");
set_perm(0, 2000, 0755, "/system/bin/keystore");
set_perm(0, 2000, 0755, "/system/bin/logwrapper");
set_perm(0, 2000, 0755, "/system/bin/mcDriverDaemon");
set_perm(0, 2000, 0755, "/system/bin/mdnsd");
set_perm(0, 2000, 0755, "/system/bin/mediaserver");
set_perm(0, 2000, 0755, "/system/bin/mksh");
set_perm(0, 2000, 0755, "/system/bin/mtpd");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 2000, 0755, "/system/bin/netd");
set_perm(0, 2000, 0755, "/system/bin/npsmobex");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 0755, "/system/bin/pppd");
set_perm(0, 2000, 0755, "/system/bin/prepare_param.sh");
set_perm(0, 2000, 0755, "/system/bin/racoon");
set_perm(0, 2000, 0755, "/system/bin/rild");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(0, 2000, 0755, "/system/bin/samsungpowersoundplay");
set_perm(0, 2000, 0755, "/system/bin/scranton_RD");
set_perm(0, 2000, 0755, "/system/bin/sdcard");
set_perm(0, 2000, 0755, "/system/bin/secure_storage_daemon");
set_perm(0, 2000, 0755, "/system/bin/servicemanager");
set_perm(0, 2000, 0755, "/system/bin/smdexe");
set_perm(0, 2000, 0755, "/system/bin/surfaceflinger");
set_perm(0, 2000, 0755, "/system/bin/vold");
set_perm(0, 2000, 0755, "/system/bin/wpa_supplicant");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/etc");
set_perm(0, 2000, 0755, "/system/vendor/etc/nxp");
set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/BargeIn");
set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/mVoIP");
set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/mVoIPFMC");
set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/mVoIPSec");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/drm");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm(0, 2000, 0755, "/system/vendor/lib/mediadrm");
set_perm(0, 2000, 0755, "/system/vendor/media");
set_perm(0, 2000, 0755, "/system/vendor/pittpatt");
set_perm(0, 2000, 0755, "/system/vendor/pittpatt/models");
set_perm(0, 2000, 0755, "/system/vendor/pittpatt/models/detection");
set_perm(0, 2000, 0755, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7");
set_perm(0, 2000, 0755, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6");
set_perm(0, 2000, 0755, "/system/vendor/pittpatt/models/recognition");
set_perm(0, 2000, 06755, "/system/xbin/debuggerd");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/daemonsu");
run_program("/system/xbin/su", "--install");
set_perm(0, 0, 06755, "/system/bin/.ext/.su");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" -> Unpacking Kernel");
package_extract_file("_nDroid/boeffla/boot.img", "/dev/block/mmcblk0p5");
ui_print(" -> Installation Successfull");
set_progress(1.0);
Any help is appreciated. Thanks in advance.

Bump!

Related

Status 6 error

trying to make my own update.zip file but it keeps giving me the status 6 error. i now its a sytax error and i need to figure out what it is . i just want to see if anyone can help me with this or else show me what to use to edit the "updater-script" file.
This is what i have so far:
ui_print("The Scoot Custom Sensation UI");
show_progress(0.500000, 0);
ui_print("Mounting Data Partition Stuff...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
ui_print("Writing Data Stuff...");
package_extract_dir("data", "/data");
ui_print("Mounting System Partition Stuff...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
ui_print("Writing System Stuff...");
package_extract_dir("system", "/system");
ui_print("Doing Permission Stuff...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/data/com.android.providers.contacts/files");
set_perm(0, 2000, 0775, "/system/bin/iptables");
set_perm_recursive(1002, 1002, 0775, 0440, "/system/etc/bluez");
set_perm(0, 0, 0644, "/system/bin/profile");
set_perm(0, 0, 0775, "/system/etc/bluez");
set_perm(1000, 1000, 0755, "/system/bin/bash");
set_perm(1000, 1000, 0755, "/system/bin/nano");
set_perm(1000, 1000, 0755, "/system/bin/sysro");
set_perm(1000, 1000, 0755, "/system/bin/sysrw");
set_perm(1000, 1000, 0755, "/system/xbin/openvpn");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 2000, 06755, "/system/bin/reboot");
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/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(0, 3004, 02755, "/system/bin/ping");
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(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(1000, 1000, 0755, "/system/xbin/openvpn");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm(0, 0, 04755, "/system/bin/sh");
set_perm_recursive(1000, 1000, 0771, 0644, "/system/mnt");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm (0, 0, 0777, "/system/etc/init.d/95modules");
set_perm (0, 0, 0777, "/system/etc/init.d/97zipalign");
set_perm (0, 0, 0777, "/system/etc/init.d/99complete");
unmount("/system");
unmount("/data");
ui_print("It is Time!!");
show_progress(0.100000, 0);
any help at all would be appreciated
PS: this update.zip is for a system UI update for sense 3.5 i dont know if that helps

[ROM 5/26] - Stock Rooted De-Odexed RUU 1.85.502.3 based / CWM Install!

This is a stock rooted ROM based on AT&T RUU 1.85.502.3. You may use this ROM to do as choose. Feel free to use as base for your own work.
DISCLAIMER
You and you alone take responsibility for any issues that may arise when you flash this ROM. I tested it briefly and it seemed to function fine. If you have a problem post it in the thread!
Just like any new technology this ROM could have issues. Be prepared to RUU back to stock! Post anything you find!
Prerequisites
Must be Unlocked and have CWM installed!
Must be on AT&T 1.85.502.3 RUU! You can test it on older RUU's and report results! It may work depending on how much kernel changes are between the two. It also may not work! So if you are not on 1.85 then be prepared to RUU back to the RUU you are on!
I failed to properly implement ROOT so you need to flash Chainfire's Root package right after ROM! My bad. Did not catch that until upload finished. Will fix it later....
Make a Nandroid back up before installing!
Important Notes
This ROM will wipe Data!
AS of now flashing a boot.img causes soft brick so I left it out until someone smarter than me can figure it out. This is also why you need to be on 1.85 RUU. So the kernel matches the modules.
I broke root so you will need to flash root from HERE
Thanks to Chainfire. Full root app thread here: http://forum.xda-developers.com/showthread.php?t=1538053 <-Please go thank this thread for the root tool!
Wiper App seems to crash now and then. Not sure why. Will figure it out later. But I think it may be permissions related. I also think that is the app causing the multi-tasking issues so I may just remove it and test. If you do so then please post results!
Install Instructions
Place ROM and Root ZIPS on storage
Reboot to Recovery
Make a Nandroid back up before installing!
Flash ROM
Flash Root
Reboot
Profit!
MD5
98ABDA67D135C883E2A826C0C19ACA7D
DOWNLOAD!
Please Thank this thread. If you like whats going on so far please consider donating so I can pay my Verizon Early Term Fee
​
Addon's
Three Button Mod
Removes the silly three buttons and maps the Task Key to Menu.
Long press Home Key to bring up Task switch.
Flash in recovery. No need to wipe anything. You will get Android is updating when it boots back up! This is normal!
Original credits to sk08 for the mod and dkirchik for sending me the files.
Click to expand...
Click to collapse
Tiffany84 said:
All YA!!!!
Click to expand...
Click to collapse
Damn I didnt even get second post, lol
scrosler said:
As the name implies... Fully stock rooted deodexed ROM uploading now!
Will post back in a minute when its done....
Click to expand...
Click to collapse
I will wait up for this!!! LOL Thank You!!!
ok, now i'm ****ing confused. i thought we had to wait until s-off or whatever before flashing would work. sigh...time to google more on "s-off"
sweet man, i cant wait to see your script!
.... <3 no homo lol but I had a total bill and Ted moment seeing this.
Sent from my HTC One X using xda premium
scrosler said:
Damn I didnt even get second post, lol
Click to expand...
Click to collapse
I'm quick. U wasn't responding so I had to come see what you were doing
Debloat would be nice hehe
chaosjh said:
ok, now i'm ****ing confused. i thought we had to wait until s-off or whatever before flashing would work. sigh...time to google more on "s-off"
Click to expand...
Click to collapse
U can flash roms, just can't flash radios, bootloaders and stuff like that
Can i flash this to Rogers? I dont have supercid (but i can do it if need be)
EDIT: Need to be more patient till upload is finished with instructions
XsMagical said:
sweet man, i cant wait to see your script!
Click to expand...
Click to collapse
Instead of waiting I will just post it for you because I know you are working on some isht too....
Formats data and system.... Unzips, creates sym links... unmounts
I had it format data because CWM will not work right when you selelct it in the menu.
It doesnt flash boot.img because we are not S-OFF.
Code:
ui_print(" Stock Rooted 1.85.502.3");
ui_print("");
ui_print(" Please visit Scott's ROMS at");
ui_print(" www.scottsroms.com");
ui_print("");
ui_print(" Installing...");
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p35");
format("ext4", "EMMC", "/dev/block/mmcblk0p33");
mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/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/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");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.1, 10);
show_progress(0.2, 0);
unmount("/system");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("Done!");
scrosler said:
Instead of waiting I will just post it for you because I know you are working on some isht too....
Code:
ui_print(" Stock Rooted 1.85.502.3");
ui_print("");
ui_print(" Please visit Scott's ROMS at");
ui_print(" www.scottsroms.com");
ui_print("");
ui_print(" Installing...");
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p35");
format("ext4", "EMMC", "/dev/block/mmcblk0p33");
mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/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/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");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.1, 10);
show_progress(0.2, 0);
unmount("/system");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("Done!");
Click to expand...
Click to collapse
See good stuff going on in this forum.
I figure I'd be the odd one out to ask this.. would the 3 dot mod key remap possibly work with this?
Sent from my HTC One X using xda premium
scrosler said:
Instead of waiting I will just post it for you because I know you are working on some isht too....
Formats data and system.... Unzips, creates sym links... unmounts
I had it format data because CWM will not work right when you selelct it in the menu.
It doesnt flash boot.img because we are not S-OFF.
Code:
ui_print(" Stock Rooted 1.85.502.3");
ui_print("");
ui_print(" Please visit Scott's ROMS at");
ui_print(" www.scottsroms.com");
ui_print("");
ui_print(" Installing...");
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p35");
format("ext4", "EMMC", "/dev/block/mmcblk0p33");
mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/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/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");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.1, 10);
show_progress(0.2, 0);
unmount("/system");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("Done!");
Click to expand...
Click to collapse
thanks bro, im going to try this right now!
Hi Scott can you post the method to get the 1.85 radio as well?
zguy
zguy30 said:
Hi Scott can you post the method to get the 1.85 radio as well?
zguy
Click to expand...
Click to collapse
if you changed your cid, relock your phone, flash the new ruu, unlock the phone, push recovery and flash the rom or root. The ruu will flash all the new radios.
XsMagical said:
if you changed your cid, relock your phone, flash the new ruu, unlock the phone, push recovery and flash the rom or root. The ruu will flash all the new radios.
Click to expand...
Click to collapse
Yep, thats exactly what I did!
Great thanks guys will give it a try also will your clean dev rom work with 1.85?
zguy
---------- Post added at 03:55 AM ---------- Previous post was at 03:52 AM ----------
I get everything except push recovery you mean stock recovery through the HBOOT menu, CWM or fastboot command line
zguy30
zguy30 said:
Great thanks guys will give it a try also will your clean dev rom work with 1.85?
zguy
---------- Post added at 03:55 AM ---------- Previous post was at 03:52 AM ----------
I get everything except push recovery you mean stock recovery through the HBOOT menu, CWM or fastboot command line
zguy30
Click to expand...
Click to collapse
Not sure about Dev edition....
I dont understand your question?
Files up!

set_perm: some changed failed

I am trying to flash a zip file, but i get this stupid error: "set_perm: some changed failed.."
This is the updater-script
Code:
#
#assert device check, check build.prop for following info
#
ui_print("Checking device. If flashing fails at this point");
ui_print("you don't have a One S with an S4 SoC");
ui_print("");
ui_print("");
assert(getprop("ro.product.device") == "ville" || getprop("ro.product.board") == "MSM8960");
show_progress(0.1, 0);
ui_print("Hi! Please wait a bit as we install zenROM+");
ui_print("(You can make a coffee while we're doing this)");
ui_print("");
ui_print("");
ui_print("********************************************");
ui_print("zenROM+ 1.00 by usaff22");
ui_print("with Android 4.1.1 Sense 4+");
ui_print("");
ui_print("");
#
#Clears data, cache and system folders
#
ui_print("Clearing your system, data and cache folders");
# format("ext4", "EMMC", "/dev/block/mmcblk0p33");
# lets try something else
format("ext4", "EMMC", "/dev/block/mmcblk0p33", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system");
delete_recursive("/data");
run_program("/xbin/busybox", "mount", "/cache");
delete_recursive("/cache");
ui_print("Ok, done. Now we're really installing it");
#
#Kernel Disable Write-Protect
#
package_extract_dir("extras", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp");
run_program("/sbin/busybox", "mount", "/system");
run_program("/tmp/addinitd");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
unmount("/system");
delete_recursive("/tmp");
#
#Installing ROM
#
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
delete("/data/data/recovery/radio_checksum");
delete_recursive("/data/data/com.htc.flashliteplugin/lib/ /data/data/com.htc.picasa");
# format("ext4 EMMC /system/ 0", "MTD", "system");
# lets try something else
format("ext4", "EMMC", "/dev/block/mmcblk0p33", "0", "/system");
mount("ext4 EMMC /system/ 0", "MTD", "system", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("libwiperjni_v02.so", "/system/lib/libwiperjni.so");
symlink("libxt_v02.so", "/system/lib/libxt_native.so");
symlink("mksh", "/system/bin/sh");
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/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("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");
symlink("wiperiface_v02.so", "/system/bin/wiperiface");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 1000, 0750, "/system/bin/iptables");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(0, 1000, 0750, "/system/bin/tc");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(1000, 3003, 0640, "/system/etc/gps.conf");
set_perm(0, 0, 0400, "/system/etc/hsml.key");
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, 0, 0755, 0644, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-r0-ri30.4a-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rn30-ri30.5-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rp30-ri30.5-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.100000, 0);
#
#Preparing and running Skin FOTA
#
package_extract_file("fotaBoot", "/data/system/fotaBoot");
package_extract_file("skin_fota", "/tmp/skin_fota");
set_perm(0, 0, 06755, "/tmp/skin_fota");
run_program("/tmp/skin_fota");
#
#Extracting boot.img, finishing up
#
package_extract_file("boot.img", "/dev/block/mmcblk0p21");
unmount("/system");
unmount("/data");
#
# Further comments
#
ui_print("");
ui_print("********************************************");
ui_print("");
ui_print("Don't forget to flash boot.img in fastboot,");
ui_print("or the device won't boot!");
ui_print("Questions? Post on my thread on xda or PM me.");
ui_print("Done. Enjoy!");
When the error is given while flashing the zip, after it i flash the boot.img and the phone boots. But i think the permissions are not right.
Is there somebody who will help me.

[Q] Clockworkmod Status (0) wrong or corript updater-script

Hello friends from the best adroid forum that ever exist, i post you from Mexico, my problem is about the installation of my own custom ROM for my Alcatel OT 890, i follow all the steps for cooking ROM in the tutorial for Kitchen from dsixda.
What happened?
As i told you, i was creating my own ROM but when i was determinate to install it with CWM an error appeared me, the error was "status (0)", looking for in forums in XDA developers they said that the error is because something is wrong with the script to mount the ROM, i check and verify and according to me, the scripts were right, in fact i guess the "format" for the updater script are right but inside the file (updater-script) is the problem. This is all the line from my updater-script, maybe you should know whats are the mistakes of lines. Please help me, i saw here that someone had the same problem and you help him , this is my last chance to be an expert kitchener LOL.
Thanks
show_progress(0.200000, 10);
format("ext4", "EMMC", "/dev/block/mmcblk0p16");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
format("ext4", "EMMC", "/dev/block/mmcblk0p17");
show_progress(0.200000, 20);
package_extract_dir("system", "/system");
show_progress(0.200000, 30);
symlink("/system/media/bootsamsungloop.qmg", "/system/media/bootsamsung.qmg");
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/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/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("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/umount");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("busybox", "/system/xbin/[ /system/xbin/[[ /system/xbin/dc /system/xbin/dd /system/xbin/cp /system/xbin/df");
symlink("busybox", "/system/xbin/ed /system/xbin/du /system/xbin/id /system/xbin/ip /system/xbin/ln /system/xbin/ls /system/xbin/mv");
symlink("busybox", "/system/xbin/od /system/xbin/ps /system/xbin/rm /system/xbin/sh /system/xbin/tr /system/xbin/vi /system/xbin/wc");
symlink("busybox", "/system/xbin/arp /system/xbin/ash /system/xbin/awk /system/xbin/cal /system/xbin/cat /system/xbin/cmp /system/xbin/cut");
symlink("busybox", "/system/xbin/env /system/xbin/pwd /system/xbin/sed /system/xbin/seq /system/xbin/tac /system/xbin/tar /system/xbin/tee");
symlink("busybox", "/system/xbin/top /system/xbin/tty /system/xbin/yes /system/xbin/catv /system/xbin/date /system/xbin/cpio /system/xbin/diff");
symlink("busybox", "/system/xbin/echo /system/xbin/dnsd /system/xbin/find /system/xbin/expr /system/xbin/fold /system/xbin/free /system/xbin/head");
symlink("busybox", "/system/xbin/grep /system/xbin/gzip /system/xbin/kill /system/xbin/less /system/xbin/lzop /system/xbin/more /system/xbin/nice");
symlink("busybox", "/system/xbin/ntpd /system/xbin/ping /system/xbin/rdev /system/xbin/tail /system/xbin/sort /system/xbin/test /system/xbin/tftp");
symlink("busybox", "/system/xbin/stat /system/xbin/time /system/xbin/stty /system/xbin/sync /system/xbin/true /system/xbin/uniq /system/xbin/wget");
symlink("busybox", "/system/xbin/zcat /system/xbin/uudecode /system/xbin/dos2unix /system/xbin/uuencode /system/xbin/dirname /system/xbin/killall");
symlink("busybox", "/system/xbin/unix2dos /system/xbin/brctl /system/xbin/chgrp /system/xbin/chmod /system/xbin/chown /system/xbin/clear");
symlink("busybox", "/system/xbin/cksum /system/xbin/bzcat /system/xbin/bzip2 /system/xbin/dmesg /system/xbin/egrep /system/xbin/false");
symlink("busybox", "/system/xbin/fdisk /system/xbin/fgrep /system/xbin/fuser /system/xbin/lsmod /system/xbin/lspci /system/xbin/lsusb");
symlink("busybox", "/system/xbin/mkdir /system/xbin/mknod /system/xbin/mount /system/xbin/nohup /system/xbin/patch /system/xbin/pgrep");
symlink("busybox", "/system/xbin/pidof /system/xbin/pkill /system/xbin/reset /system/xbin/rmdir /system/xbin/rmmod /system/xbin/route");
symlink("busybox", "/system/xbin/sleep( /system/xbin/split /system/xbin/touch /system/xbin/uname /system/xbin/unzip /system/xbin/watch);");
symlink("busybox", "/system/xbin/which /system/xbin/xargs /system/xbin/freeramdisk /system/xbin/sha1sum /system/xbin/traceroute");
symlink("busybox", "/system/xbin/modprobe /system/xbin/losetup /system/xbin/killall5 /system/xbin/strings /system/xbin/chroot");
symlink("busybox", "/system/xbin/mkfs.ext2 /system/xbin/depmod /system/xbin/devmem /system/xbin/swapoff /system/xbin/lzopcat");
symlink("busybox", "/system/xbin/getopt /system/xbin/mountpoint /system/xbin/netstat /system/xbin/gunzip /system/xbin/insmod");
symlink("busybox", "/system/xbin/length /system/xbin/md5sum /system/xbin/sha256sum /system/xbin/mke2fs /system/xbin/mkfifo");
symlink("busybox", "/system/xbin/mktemp /system/xbin/mkswap /system/xbin/tune2fs /system/xbin/ifconfig /system/xbin/nslookup");
symlink("busybox", "/system/xbin/sha512sum /system/xbin/printf /system/xbin/renice /system/xbin/hexdump /system/xbin/setsid");
symlink("busybox", "/system/xbin/telnet /system/xbin/swapon /system/xbin/sysctl /system/xbin/umount /system/xbin/unlzop");
symlink("busybox", "/system/xbin/uptime /system/xbin/usleep( /system/xbin/whoami /system/xbin/printenv /system/xbin/run-parts);");
symlink("busybox", "/system/xbin/bbconfig /system/xbin/readlink /system/xbin/install /system/xbin/basename /system/xbin/realpath");
symlink("busybox", "/system/xbin/bunzip2");
symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 50);
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/bash");
symlink("/system/xbin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm_recursive(0, 0, 0755, 0755, "/system/usr");
set_perm(0, 2000, 0755, "/system/etc/bluetooth");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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, 0644, "/system/lib/modules");
set_perm(0, 2000, 0755, "/system/bin/mm-audio-acdb-test");
set_perm(0, 2000, 0755, "/system/bin/mm-audio-alsa-test");
set_perm(0, 2000, 0755, "/system/bin/mm-venc-omx-test720p");
set_perm(0, 2000, 0755, "/system/bin/mm-video-encdrv-test");
set_perm(0, 0, 0755, "/data/tune2fs");
set_perm(0, 0, 0755, "/data/journaldisable");
set_perm(0, 0, 0644, "/system/etc/hosts");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
run_program("/sbin/busybox", "sh", "/data/journaldisable");
show_progress(0.200000, 60);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
show_progress(0.200000, 70);
package_extract_file("fix_permissions", "/tmp/fix_permissions");
set_perm(0, 0, 0777, "/tmp/fix_permissions");
run_program("/tmp/fix_permissions");
delete("/tmp/tmp/fix_permissions");
show_progress(0.200000, 80);
show_progress(1.000000, 0);
unmount("/system");
unmount("/data");
m44nu33l said:
Hello friends from the best adroid forum that ever exist, i post you from Mexico, my problem is about the installation of my own custom ROM for my Alcatel OT 890, i follow all the steps for cooking ROM in the tutorial for Kitchen from dsixda.
What happened?
As i told you, i was creating my own ROM but when i was determinate to install it with CWM an error appeared me, the error was "status (0)", looking for in forums in XDA developers they said that the error is because something is wrong with the script to mount the ROM, i check and verify and according to me, the scripts were right, in fact i guess the "format" for the updater script are right but inside the file (updater-script) is the problem. This is all the line from my updater-script, maybe you should know whats are the mistakes of lines. Please help me, i saw here that someone had the same problem and you help him , this is my last chance to be an expert kitchener LOL.
Thanks
show_progress(0.200000, 10);
format("ext4", "EMMC", "/dev/block/mmcblk0p16");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
format("ext4", "EMMC", "/dev/block/mmcblk0p17");
show_progress(0.200000, 20);
package_extract_dir("system", "/system");
show_progress(0.200000, 30);
symlink("/system/media/bootsamsungloop.qmg", "/system/media/bootsamsung.qmg");
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/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/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("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/umount");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("busybox", "/system/xbin/[ /system/xbin/[[ /system/xbin/dc /system/xbin/dd /system/xbin/cp /system/xbin/df");
symlink("busybox", "/system/xbin/ed /system/xbin/du /system/xbin/id /system/xbin/ip /system/xbin/ln /system/xbin/ls /system/xbin/mv");
symlink("busybox", "/system/xbin/od /system/xbin/ps /system/xbin/rm /system/xbin/sh /system/xbin/tr /system/xbin/vi /system/xbin/wc");
symlink("busybox", "/system/xbin/arp /system/xbin/ash /system/xbin/awk /system/xbin/cal /system/xbin/cat /system/xbin/cmp /system/xbin/cut");
symlink("busybox", "/system/xbin/env /system/xbin/pwd /system/xbin/sed /system/xbin/seq /system/xbin/tac /system/xbin/tar /system/xbin/tee");
symlink("busybox", "/system/xbin/top /system/xbin/tty /system/xbin/yes /system/xbin/catv /system/xbin/date /system/xbin/cpio /system/xbin/diff");
symlink("busybox", "/system/xbin/echo /system/xbin/dnsd /system/xbin/find /system/xbin/expr /system/xbin/fold /system/xbin/free /system/xbin/head");
symlink("busybox", "/system/xbin/grep /system/xbin/gzip /system/xbin/kill /system/xbin/less /system/xbin/lzop /system/xbin/more /system/xbin/nice");
symlink("busybox", "/system/xbin/ntpd /system/xbin/ping /system/xbin/rdev /system/xbin/tail /system/xbin/sort /system/xbin/test /system/xbin/tftp");
symlink("busybox", "/system/xbin/stat /system/xbin/time /system/xbin/stty /system/xbin/sync /system/xbin/true /system/xbin/uniq /system/xbin/wget");
symlink("busybox", "/system/xbin/zcat /system/xbin/uudecode /system/xbin/dos2unix /system/xbin/uuencode /system/xbin/dirname /system/xbin/killall");
symlink("busybox", "/system/xbin/unix2dos /system/xbin/brctl /system/xbin/chgrp /system/xbin/chmod /system/xbin/chown /system/xbin/clear");
symlink("busybox", "/system/xbin/cksum /system/xbin/bzcat /system/xbin/bzip2 /system/xbin/dmesg /system/xbin/egrep /system/xbin/false");
symlink("busybox", "/system/xbin/fdisk /system/xbin/fgrep /system/xbin/fuser /system/xbin/lsmod /system/xbin/lspci /system/xbin/lsusb");
symlink("busybox", "/system/xbin/mkdir /system/xbin/mknod /system/xbin/mount /system/xbin/nohup /system/xbin/patch /system/xbin/pgrep");
symlink("busybox", "/system/xbin/pidof /system/xbin/pkill /system/xbin/reset /system/xbin/rmdir /system/xbin/rmmod /system/xbin/route");
symlink("busybox", "/system/xbin/sleep( /system/xbin/split /system/xbin/touch /system/xbin/uname /system/xbin/unzip /system/xbin/watch);");
symlink("busybox", "/system/xbin/which /system/xbin/xargs /system/xbin/freeramdisk /system/xbin/sha1sum /system/xbin/traceroute");
symlink("busybox", "/system/xbin/modprobe /system/xbin/losetup /system/xbin/killall5 /system/xbin/strings /system/xbin/chroot");
symlink("busybox", "/system/xbin/mkfs.ext2 /system/xbin/depmod /system/xbin/devmem /system/xbin/swapoff /system/xbin/lzopcat");
symlink("busybox", "/system/xbin/getopt /system/xbin/mountpoint /system/xbin/netstat /system/xbin/gunzip /system/xbin/insmod");
symlink("busybox", "/system/xbin/length /system/xbin/md5sum /system/xbin/sha256sum /system/xbin/mke2fs /system/xbin/mkfifo");
symlink("busybox", "/system/xbin/mktemp /system/xbin/mkswap /system/xbin/tune2fs /system/xbin/ifconfig /system/xbin/nslookup");
symlink("busybox", "/system/xbin/sha512sum /system/xbin/printf /system/xbin/renice /system/xbin/hexdump /system/xbin/setsid");
symlink("busybox", "/system/xbin/telnet /system/xbin/swapon /system/xbin/sysctl /system/xbin/umount /system/xbin/unlzop");
symlink("busybox", "/system/xbin/uptime /system/xbin/usleep( /system/xbin/whoami /system/xbin/printenv /system/xbin/run-parts);");
symlink("busybox", "/system/xbin/bbconfig /system/xbin/readlink /system/xbin/install /system/xbin/basename /system/xbin/realpath");
symlink("busybox", "/system/xbin/bunzip2");
symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 50);
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/bash");
symlink("/system/xbin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm_recursive(0, 0, 0755, 0755, "/system/usr");
set_perm(0, 2000, 0755, "/system/etc/bluetooth");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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, 0644, "/system/lib/modules");
set_perm(0, 2000, 0755, "/system/bin/mm-audio-acdb-test");
set_perm(0, 2000, 0755, "/system/bin/mm-audio-alsa-test");
set_perm(0, 2000, 0755, "/system/bin/mm-venc-omx-test720p");
set_perm(0, 2000, 0755, "/system/bin/mm-video-encdrv-test");
set_perm(0, 0, 0755, "/data/tune2fs");
set_perm(0, 0, 0755, "/data/journaldisable");
set_perm(0, 0, 0644, "/system/etc/hosts");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
run_program("/sbin/busybox", "sh", "/data/journaldisable");
show_progress(0.200000, 60);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
show_progress(0.200000, 70);
package_extract_file("fix_permissions", "/tmp/fix_permissions");
set_perm(0, 0, 0777, "/tmp/fix_permissions");
run_program("/tmp/fix_permissions");
delete("/tmp/tmp/fix_permissions");
show_progress(0.200000, 80);
show_progress(1.000000, 0);
unmount("/system");
unmount("/data");
Click to expand...
Click to collapse
Did you include a kernel because if you didnt,you need to delete these lines:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
Click Thanks if i helped!!!!:fingers-crossed:

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?

Categories

Resources