[NEED HELP] Creating updater-script and including BcmCP.img - Android Q&A, Help & Troubleshooting

Hi guys! This is my new post so I'll introduce myself. My name is Ignacio from Argentina and I'm a newbie ROM developer.
I started my first custom ROM project for the Samsung GT-B5510L two weeks ago, and despite I could flash my first zip file based on a stock ROM, I could not make work the modem. The zip file contained:
< META-INF/ - system/ - boot.img - installbusybox >
I took META-INF folder and installbusybox script from another ROM (with the owner permissions) and the ROM worked, except the modem. Here there is the updater-script lines:
show_progress(0.1, 0);
mount("rfs", "EMMC", "/dev/block/stl19", "/system");
delete_recursive("/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
package_extract_dir("system", "/system");
ui_print("Installing System Files");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
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("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/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("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/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");
show_progress(0.1, 10);
set_perm(0, 0, 0777, "/system/bin/a2sd");
set_perm(0, 0, 0777, "/system/etc/init.d/00banner");
set_perm(0, 0, 0777, "/system/etc/init.d/01sysctl");
set_perm(0, 0, 0777, "/system/etc/init.d/02firstboot");
set_perm(0, 0, 0777, "/system/etc/init.d/04apps2sd");
set_perm(0, 0, 0777, "/system/etc/init.d/99complete");
set_perm(0, 0, 0777, "/system/bin/launcha2sd");
set_perm(0, 0, 0777, "/system/bin/starta2sd");
set_perm(0, 0, 0777, "/system/bin/jita2sd");
set_perm(0, 0, 0777, "/system/bin/chka2sd");
set_perm(0, 0, 0777, "/system/bin/zipalign");
set_perm(0, 0, 0777, "/system/bin/sysinit");
set_perm(0, 0, 0777, "/system/bin/busybox.a2sd");
set_perm(0, 0, 0644, "/system/bin/apps2sd.hlp");
set_perm(0, 0, 0777, "/system/xbin/a2sd");
set_perm(0, 0, 0777, "/system/bin/dtinstall");
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");
set_perm (0, 0, 0777, "/system/bin/a2sd");
set_perm (0, 0, 0777, "/system/etc/init.d/99complete");
set_perm (0, 0, 0777, "/system/bin/launcha2sd");
set_perm (0, 0, 0777, "/system/bin/starta2sd");
set_perm (0, 0, 0777, "/system/bin/chka2sd");
set_perm (0, 0, 0777, "/system/bin/zipalign");
set_perm (0, 0, 0777, "/system/bin/sysinit");
set_perm (0, 0, 0777, "/system/bin/bash");
set_perm (0, 0, 0777, "/system/bin/busybox.a2sd");
set_perm (0, 0, 0644, "/system/bin/apps2sd.hlp");
set_perm (0, 0, 0777, "/system/bin/dtinstall");
set_perm (0, 0, 0777, "/data/dtinstall.launch");
set_perm (0, 0, 0777, "/system/bin/e2fsck");
set_perm (0, 0, 0777, "/system/bin/tune2fs");
set_perm (0, 0, 0777, "/system/etc/init.d/dtapp");
set_perm (0, 0, 0777, "/system/bin/fix_permissions");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
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.2, 0);
show_progress(0.2, 10);
unmount("/system");
Click to expand...
Click to collapse
I used dsixda Android Kitchen (v0.223-2-gcbde6e4) to deodex, zipaligne, add root permissions, install busybox, cook it and sign it.
I flashed it with Clock Work Mode Recovery (with previous wipes) and it worked, but as I said, I could not make the modem work.
Now I have started the project from the begining and took all the files from the stock ROM. "META-INF" from the CSC, "boot.img" & "system" from the PDA, and "BcmCP.img" from the PHONE (which I think it's the modem).
The stock updater-script contains the following lines:
assert(getprop("ro.product.device") == "GT-S5360" ||
getprop("ro.build.product") == "GT-S5360" ||
getprop("ro.product.device") == "GT-S5360B" ||
getprop("ro.build.product") == "GT-S5360B" ||
getprop("ro.product.device") == "GT-S5360L" ||
getprop("ro.build.product") == "GT-S5360L" ||
getprop("ro.product.device") == "GT-S5830" ||
getprop("ro.build.product") == "GT-S5830" ||
getprop("ro.product.device") == "GT-S5570" ||
getprop("ro.build.product") == "GT-S5570" ||
getprop("ro.product.device") == "GT-S5670" ||
getprop("ro.product.product") == "GT-S5670"||
getprop("ro.product.device") == "GT-B5510" ||
getprop("ro.build.product") == "GT-B5510" ||
getprop("ro.product.device") == "GT-B5510B" ||
getprop("ro.build.product") == "GT-B5510B" ||
getprop("ro.product.device") == "GT-B5510L" ||
getprop("ro.build.product") == "GT-B5510L" ||
getprop("ro.product.device") == "GT-S5360T" ||
getprop("ro.build.product") == "GT-S5360T" ||
getprop("ro.product.device") == "GT-S5363" ||
getprop("ro.build.product") == "GT-S5363" ||
getprop("ro.product.device") == "GT-S5369" ||
getprop("ro.build.product") == "GT-S5369" ||
getprop("ro.product.device") == "GT-S5570I" ||
getprop("ro.build.product") == "GT-S5570I" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-B7510" ||
getprop("ro.product.product") == "GT-B7510"
);
show_progress(0.100000, 0);
show_progress(0.500000, 0);
# format("MTD", "system");
# mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
# unmount("/system");
Click to expand...
Click to collapse
I asked myself if you could help me to add the necessary lines to have a clean updater-script, and also include the "BcmCP.img" in the ROM to make the modem work properly. Thank you very much, and sorry if I sound a bit rude, my english is not so good x)
Regards!
Ignacio

nachovallejos said:
Hi guys! This is my new post so I'll introduce myself. My name is Ignacio from Argentina and I'm a newbie ROM developer.
I started my first custom ROM project for the Samsung GT-B5510L two weeks ago, and despite I could flash my first zip file based on a stock ROM, I could not make work the modem. The zip file contained:
< META-INF/ - system/ - boot.img - installbusybox >
I took META-INF folder and installbusybox script from another ROM (with the owner permissions) and the ROM worked, except the modem. Here there is the updater-script lines:
I used dsixda Android Kitchen (v0.223-2-gcbde6e4) to deodex, zipaligne, add root permissions, install busybox, cook it and sign it.
I flashed it with Clock Work Mode Recovery (with previous wipes) and it worked, but as I said, I could not make the modem work.
Now I have started the project from the begining and took all the files from the stock ROM. "META-INF" from the CSC, "boot.img" & "system" from the PDA, and "BcmCP.img" from the PHONE (which I think it's the modem).
The stock updater-script contains the following lines:
I asked myself if you could help me to add the necessary lines to have a clean updater-script, and also include the "BcmCP.img" in the ROM to make the modem work properly. Thank you very much, and sorry if I sound a bit rude, my english is not so good x)
Regards!
Ignacio
Click to expand...
Click to collapse
Amigo busca un archivo que se llama aams, ese es el modem o baseband
Sent from my HTC One X using xda app-developers app

Related

[Q][SoLvEd] ROM made from kitchen won't flash

Hi all!
I made an EVO 3D GSM rom(zip rom),using dsixda's Android Kitchen.
Kitchen thread:http://forum.xda-developers.com/showthread.php?t=633246
But when I was flashing this zip file with recovery, an error occured.
Error message is something like this:
Code:
Installing: /sdcard/rom.zip
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/rom.zip
(Status 0)
Installation aborted.
System environment:
dsixda's Android Kitchen
Cygwin, Java 6 SDK
Windows XP Pro / Windows 7 Pro
I followed the kitchen's instruction with the following steps:
zipaligne apks,
add updater-script to rom,
sign rom. (I did not even add root permission nor deodex apks.)
Then the kitchen generated a zip file.
I renamed it with "rom.zip", put it into sdcard and flashed it.
...
Then error occured:
Code:
Installing: /sdcard/rom.zip
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/rom.zip
(Status 0)
Installation aborted.
More details:
system.img and boot.img are taken from shipped RUU rom,
recovery version: 4EXT Recovery 2.27,
device unlocked and s-off.
Any guys could help me with it?
Thank you very!
=====================================================
Get it solved(in a compromising way).
After searching forum for hours, I found these two threads:
http://forum.xda-developers.com/showthread.php?t=1197315
http://forum.xda-developers.com/showthread.php?t=1437936
Then I guess there is sth wrong with update-binary.
So I copied a working update-binary file from other evo 3d rom.
And I modified udpater-script for some syntax changes.
Then it worked.
udpater-script code:
Code:
#Updater-script
#For HTC EVO 3D
show_progress(0.500000, 0);
ui_print("-Checking Model ID");
assert(getprop("ro.product.device") == "shooteru" || getprop("ro.build.product") == "shooteru" || getprop("ro.product.board") == "shooteru");
ui_print("-Success!");
ui_print("-Model ID - HTC shooter");
ui_print("-Ok to proceed");
ui_print("Now flashing ROM");
ui_print("Please be patient");
ui_print("1st boot may take a few minutes");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
show_progress(0.500000, 40);
ui_print("-Writing Data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
package_extract_dir("data", "/data");
ui_print("-Formatting System as EXT4");
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
ui_print("-Writing System");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
package_extract_dir("system", "/system");
show_progress(0.400000, 0);
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("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("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/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, 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, 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, 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);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print("-Cleaning up");
ui_print("-Formatting Cache");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p24");
ui_print("-Deleting Dalvik-Cache");
delete_recursive("/data/dalvik-cache");
delete("/data/.battery-calibrated");
delete_recursive("/data/data/com.noshufou.su");
delete_recursive("/data/system/appusagestats");
delete_recursive("/data/system/dropbox");
delete_recursive("/data/system/usagestats");
show_progress(0.100000, 0);
ui_print(" ");
ui_print("-Flashing Complete");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("-Please ensure you");
ui_print("-complete at least 1 full boot");
ui_print("-prior to flashing any themes");
ui_print(" ");
show_progress(0.100000, 0);
ui_print(" ");
unmount("/data");
unmount("/system");
This script is mainly written by someone else, I just modified it with some minor changes.
And I wanna say THANKS to the author, though I don't know who you are.
Thanks man

Updater script....

Please can some one help make a simple updater script rather than this basic one, if you could add a few UI_print and I will add the custom text.
I would be so greatful as I keep getting error 6...
show_progress(0, 0);
ifelse is_mounted /system/ == /system/ unmount /system/
ifelse is_mounted /data/ == /data/ unmount /data/
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
delete("/data/local");
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");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
run_program("/sbin/tune2fs", "-m", "0", "/dev/block/mmcblk0p22");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/boot-cache");
show_progress(0.700000, 50);
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/bugreport");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/chownto");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/nandread");
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/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/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("mksh", "/system/bin/sh");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 1000, 04750, "/system/bin/iptables");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06755, "/system/bin/reboot");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(0, 1000, 04750, "/system/bin/tc");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(0, 0, 0644, "/system/etc/bluetooth/a2dp_avrcp.conf");
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(1000, 1000, 0555, "/system/etc/init.qcom.sdio.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-r0-ri30.4a/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rn30-ri30.5/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rp30-ri30.5/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, 0644, "/system/build.prop");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/pre-init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/pre-init.d");
delete("/system/bin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
package_extract_dir("setup", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp");
run_program("/tmp/virtuous-setup_rom");
delete("/tmp/virtuous-setup_rom");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(10.000000, 1);
unmount("/system");
unmount("/data");
Sent from my HTC Sensation using xda premium
The script looks ok, but the is_mount syntax isn't necessary.
How did you create the update script, using what tool?
If it was notepad++ then do this
after you write down the whole script
Press ctrl+H (it opens the search window)
then select the find tab
In the lower left corner there should be search mode tick "extended"
In Find what type "\r\n" and click find next
it should find many of these in your update script
next select the replace tab and then replace it with "\n"
select replace all and then save your file as updater-script without any file extension i.e (*.*)
that's all
the reason you couldn't use your updater script was because of the "carriage return" line code in windows (\r\n) while unix uses LF (line feed code) for it's text
google these terms for more info.
Notepad++ - Unix code
Herpderp Defy.
nail16 said:
The script looks ok, but the is_mount syntax isn't necessary.
How did you create the update script, using what tool?
If it was notepad++ then do this
after you write down the whole script
Press ctrl+H (it opens the search window)
then select the find tab
In the lower left corner there should be search mode tick "extended"
In Find what type "\r\n" and click find next
it should find many of these in your update script
next select the replace tab and then replace it with "\n"
select replace all and then save your file as updater-script without any file extension i.e (*.*)
that's all
the reason you couldn't use your updater script was because of the "carriage return" line code in windows (\r\n) while unix uses LF (line feed code) for it's text
google these terms for more info.
Click to expand...
Click to collapse
It was the converted script from the kitchen. I want to make a better visual with some express install pop ups for 4ext but don't know how. Can some one convert this into one that's used in custom roms that unpacks system and data accordingly with all perms rather than that momping script?
Thanks guys
Sent from my HTC Sensation using xda premium
leejames55 said:
It was the converted script from the kitchen. I want to make a better visual with some express install pop ups for 4ext but don't know how. Can some one convert this into one that's used in custom roms that unpacks system and data accordingly with all perms rather than that momping script?
Thanks guys
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
You could try Aroma installer
Greets!
mDroidd said:
You could try Aroma installer
Greets!
Click to expand...
Click to collapse
Don't know how to use lol
Sent from my HTC Sensation using xda premium
leejames55 said:
Don't know how to use lol
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
Not so hard to learn ; the UI is already built, the updater_script stays the same, just the aroma-config which controls the UI must be modified, I am sure that if you read the original program couple of times, you will get the hang of it.

[HELP] Error (Status 7) - Porting A ROM to Wildfire

Hi,
I already posted this in Wildfire Forums but did not get any solution so reposting here please help me...
I am a newbie in porting ROMS. Just started with one. But while flashing the ROM i'm getting Status 7 error.
I took RazoDroid ROM which is for Galaxy Fit and SplashMod ROM of Wildfire.
The following are the steps i followed while porting which were guided from here.
1.Extracted boot.img and replaced the kernel from SplashMOD.
2.From the ramdisk changed to init.buzz.rc
3.Repacked kernel.
4.Replaced the following folders/files from SpashMOD
Code:
/system/lib/modules/
/system/lib/hw/
/system/usr/keylayout/
/system/usr/keychars/
/system/etc/vold.fstab
/system/etc/wifi/
/system/etc/ppp/
5.In updater-script changed following lines
Code:
format("ext4", "EMMC", "/dev/block/stl12");
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
to
Code:
format("yaffs2", "MTD", "system");
mount("yaffs2", "MTD", "system", "/system");
5.Rebuilt the ROM and signed.
6. Flashed using ClockworkMOD v5.0.2 i got the following error
Code:
Assert Failed
write_raw_image("/tmp/boot.img", "boot")
Can anyone please tell me what is the problem?
Else the procedure itself is wrong or the ROM can not be ported?
Please help me...
Please anyone help me out in porting....
what could be the problem...
is there anything wrong in porting samsung roms to wildfire... or need to do some more tweaking with the files???
please help me out....
i think it's problem on your updater script because i'm getting some problem when i enter on android development
cips gokhle said:
i think it's problem on your updater script because i'm getting some problem when i enter on android development
Click to expand...
Click to collapse
Thanks for the reply...
The error part i.e., writing boot.img script part is same as in the SpashMOD ROM.
So what could be the error...
I'm posting the whole updater-script.
Code:
ui_print(" ");
ui_print("Installing BuzzDroid v2.3");
ui_print(" ");
show_progress(0.100000, 0);
ui_print("Format System to MTD FS");
format("yaffs2", "MTD", "system");
ui_print("Mounting System...");
mount("yaffs2", "MTD", "system", "/system");
show_progress(0.100000, 0);
show_progress(0.500000, 40);
ui_print("Installing System...");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/smd");
symlink("dumpstate", "/system/bin/dumpmesg");
symlink("bootanimation", "/system/bin/samsungani");
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, 0755, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0755, "/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, 0777, "/system/bin/a2sd");
set_perm(0, 0, 0777, "/system/rtc/init.d/S95allinone");
set_perm(0, 0, 0777, "/system/etc/init.d/00banner");
set_perm(0, 0, 0777, "/system/etc/init.d/01sysctl");
set_perm(0, 0, 0777, "/system/etc/init.d/02firstboot");
set_perm(0, 0, 0777, "/system/etc/init.d/03mountsd");
set_perm(0, 0, 0777, "/system/etc/init.d/04apps2sd");
set_perm(0, 0, 0777, "/system/etc/init.d/99complete");
set_perm(0, 0, 0777, "/system/bin/launcha2sd");
set_perm(0, 0, 0777, "/system/bin/starta2sd");
set_perm(0, 0, 0777, "/system/bin/jita2sd");
set_perm(0, 0, 0777, "/system/bin/chka2sd");
set_perm(0, 0, 0777, "/system/bin/zipalign");
set_perm(0, 0, 0777, "/system/bin/sysinit");
set_perm(0, 0, 0777, "/system/bin/busybox.a2sd");
set_perm(0, 0, 0644, "/system/bin/apps2sd.hlp");
set_perm(0, 0, 0777, "/system/xbin/a2sd");
set_perm(0, 0, 0777, "/system/bin/dtinstall");
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, 0755, "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
set_perm(0, 1000, 0755, "/system/xbin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
ui_print("Installing Boot...");
[COLOR=Red]assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));[/COLOR]
show_progress(0.2, 10);
show_progress(0.100000, 0);
ui_print(" ");
ui_print("Installation Completed!!!!");
ui_print(" ");
ui_print("Enjoy...");
ui_print(" ");
unmount("/system");
ui_print("Done.");
ui_print("bye ");
ui_print("BuzzDroid 2.3");
Can anyone please go thru the script and point me the error please...
I have successfully installed the ROM.
Problem was with the size of ramdisk having extra lib files so deleted them and now the ROM gets installed perfectly.
Now the problem is its not booting up. Got stuck at htc Splash Screen (about 20mins) and no logcat tooo
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How can i solve this...??? Anyone please help???

[Q] Symlink error with cwm while flashing my cutsom rom

Hello
i made my custom rom and root it !
I’ve flashed before and worked
know when i unpacked it with dsixda kitchen and repack it i had symlink error !!
here is my updater script + l the last rom before i packed it didnt work too !! l
ui_print("--------Xperian V1--------");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("Xperian Rom V1");
ui_print(" ");
ui_print("By Abo Hani");
ui_print(" ");
ui_print("Bugs Report on xda account by pm");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("dont forget to press thanks");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" fb/abo.hani9999");
ui_print("fb/thinkandroid");
assert(getprop("ro.product.device") == "LT26i" || getprop("ro.build.product") == "LT26i" ||
getprop("ro.product.device") == "nozomi" || getprop("ro.build.product") == "nozomi");
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p12", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/vmstat");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/ctrlaltdel");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/lsusb");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/umount");
set_perm_recursive(0, 0, 0755, 0644, "/system");
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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
show_progress(0.2, 10);
unmount("/system");
package_extract_file("boot.img", "/dev/block/mmcblk0p3");
format("ext4", "EMMC", "/dev/block/mmcblk0p14", "0", "/data");
format("ext4", "EMMC", "/dev/block/mmcblk0p13", "0", "/cache");
Click to expand...
Click to collapse

CHMOD permissions

Strange situation. Have a folder on internal SD, Which will not delete via PC nor ES File explorer.
Theoretically, there shouldn't need be permissions set, as far as I know, when doing an install routine via installer script to internal SD.
Install works fine. I can actually add files to the folder via installer, however, cannot delete the folder or files within. File Explorers show proper permissions as R/W.
Clues?
Code:
#Updater-script Evil Alex Purgatory V2
#For the ACER Iconia A701 Tab
set_progress(0.00);
ui_print("");
ui_print("");
ui_print("=================================");
ui_print(" Evil Alex Roms by Moscow Desire ");
ui_print(" 1st boot may take a while! ");
ui_print(" 1. Boot kann lang dauern! ");
ui_print("=================================");
ui_print("");
ui_print("");
set_progress(0.01);
############################################################
# Mount Partitions
############################################################
ui_print("--- Mounting partitions ---");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/UDA", "/data");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/FLX", "/flex");
mount("vfat", "EMMC", "/dev/fuse /storage/sdcard0", "/sdcard");
############################################################
# Cleaning System
############################################################
ui_print("");
ui_print("");
ui_print("--- Cleaning process ---");
# Delete/Wipe /data partition without sd-card content !!! thx [user=287340]@Vorbeth[/user]
delete_recursive("/system");
if
file_getprop("/tmp/aroma-data/wipe.prop","selected.0") == "2"
then
ui_print("--- Cleaning data ---");
package_extract_file("aroma/scripts/wipe-data.sh", "/tmp/wipe-data.sh");
set_perm(0, 0, 0777, "/tmp/wipe-data.sh");
run_program("/tmp/wipe-data.sh");
delete_recursive("/data/media/Android");
delete_recursive("/data/media/LazyList");
delete_recursive("/data/media/LOST.DIR");
delete_recursive("/data/media/bugreports");
delete_recursive("/data/media/tmp");
else
ui_print("--- Cleaning caches ---");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/resource-cache");
endif;
set_progress(0.10);
############################################################
# 0 Install Stock Rom
############################################################
ui_print(" ");
ui_print("********** Evil Alex INSTALL SYSTEM *************");
ui_print("");
package_extract_dir("system", "/system");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
ui_print(" ");
ui_print("*********** Evil Alex ROM COPY DATA **************");
ui_print(" ");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
[COLOR="Red"] ui_print("*********** Installing Viper4Android **************");
package_extract_dir("aroma/audio", "/sdcard");[/COLOR]
set_progress(0.35);
############################################################
# 1 Install Full Stock Rom
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "1"
then
set_progress(0.35);
ui_print(" ");
ui_print("*********** install Purgatory Mods **************");
ui_print(" ");
ui_print("Install 4Way Reboot Mod");
package_extract_dir("aroma/mods/4Way", "/system");
ui_print("Install Chrome Desktop Mode");
package_extract_dir("aroma/mods/ccl", "/data");
set_perm(1000, 1000, 0755, "/data/local/chrome-command-line");
ui_print("Install GPU Rendering");
package_extract_file("aroma/mods/81GPU_rendering", "/system/etc/init.d/81GPU_rendering");
endif;
############################################################
# 2 Install small Rom and delete Apps
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "2"
then
ui_print(" ");
ui_print("*********** install Purgatory Mods **************");
ui_print(" ");
ui_print("Install 4Way Reboot Mod");
package_extract_dir("aroma/mods/4Way", "/system");
ui_print("Install Chrome Desktop Mode");
package_extract_dir("aroma/mods/ccl", "/data");
set_perm(1000, 1000, 0755, "/data/local/chrome-command-line");
ui_print("Install GPU Rendering Tweak");
package_extract_file("aroma/mods/81GPU_rendering", "/system/etc/init.d/81GPU_rendering");
ui_print(" ");
ui_print("******* Purgatory small Edition *********");
ui_print(" ");
delete_recursive("/system/app/AcerCloud.apk");
delete_recursive("/data/app/Files.apk");
delete_recursive("/system/app/AcerPrint.apk");
delete_recursive("/data/app/AcerEurosport.apk");
delete_recursive("/system/app/AcerRing.apk");
delete_recursive("/system/app/AcerShellData.apk");
package_extract_file("aroma/scripts/change-shell.sh", "/tmp/change-shell.sh");
set_perm(0, 0, 0777, "/tmp/change-shell.sh");
delete_recursive("/data/app/McAfee.apk");
###
delete_recursive("/data/app/7digital.apk");
delete_recursive("/data/app/Acetrax_Movies.apk");
delete_recursive("/data/app/aupeo.apk");
delete_recursive("/data/app/BarcodeScanner.apk");
delete_recursive("/data/app/Books.apk");
delete_recursive("/system/app/clearfi_music.apk");
delete_recursive("/system/app/clearfi_photo.apk");
delete_recursive("/system/app/clearfi_video.apk");
delete_recursive("/data/app/EquiView.apk");
delete_recursive("/data/app/Evernote.apk");
delete_recursive("/data/app/Kindle.apk");
delete_recursive("/data/app/Calendar.apk");
delete_recursive("/system/app/PolarisOfficeForAcer4.0_JB.apk");
delete_recursive("/system/app/libpolarisoffice_tablet_jb.so");
delete_recursive("/system/app/libtfapps-polaris.so");
delete_recursive("/system/app/libtflua-polaris.so");
delete_recursive("/system/app/Gallery2.apk");
delete_recursive("/data/app/TegraZone.apk");
delete_recursive("/data/app/Youtube.apk");
delete_recursive("/data/app/ZinioReader.apk");
delete_recursive("/data/app/ZinioSettingsProvider.apk");
####
delete_recursive("/data/app/Monopoly.apk");
delete_recursive("/data/app/RealRacing2.apk");
delete_recursive("/system/app/Solitaire.apk");
delete_recursive("/system/app/libHardwoodSolitaireIV.so");
delete_recursive("/system/app/libHardwoodSolitaireIVRogue.so");
####
delete_recursive("/data/app/DigitalClockWidget2.apk");
delete_recursive("/data/app/WeatherWidget2.apk");
endif;
set_progress(0.75);
############################################################
# 3 Install Custom Rom delete Stock Apps
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "3"
then
set_progress(0.35);
####Acer Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.1") == "1"
then
ui_print("delete AcerCloud");
delete_recursive("/system/app/AcerCloud.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.2") == "1"
then
ui_print("delete AcerCloud");
delete_recursive("/data/app/AcerEurosport.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.3") == "1"
then
ui_print("delete Acer File Browser");
delete_recursive("/data/app/Files.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.4") == "1"
then
ui_print("delete Acer Print");
delete_recursive("/system/app/AcerPrint.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.5") == "1"
then
ui_print("delete Acer Shell");
delete_recursive("/system/app/AcerRing.apk");
delete_recursive("/system/app/AcerShellData.apk");
package_extract_file("aroma/scripts/change-shell.sh", "/tmp/change-shell.sh");
set_perm(0, 0, 0777, "/tmp/change-shell.sh");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.6") == "1"
then
ui_print("delete McAfee");
delete_recursive("/data/app/McAfee.apk");
endif;
set_progress(0.45);
####Apps Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.1") == "1"
then
ui_print("delete 7digital");
delete_recursive("/data/app/7digital.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.2") == "1"
then
ui_print("delete Acetrax Movies");
delete_recursive("/data/app/Acetrax_Movies.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.3") == "1"
then
ui_print("delete Amazon Kindle");
delete_recursive("/data/app/Kindle.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.4") == "1"
then
ui_print("delete Aupeo");
delete_recursive("/data/app/aupeo.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.5") == "1"
then
ui_print("delete BarcodeScanner");
delete_recursive("/data/app/BarcodeScanner.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.6") == "1"
then
ui_print("delete Google Books");
delete_recursive("/data/app/Books.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.7") == "1"
then
ui_print("delete ClearFi Apps");
delete_recursive("/system/app/clearfi_music.apk");
delete_recursive("/system/app/clearfi_photo.apk");
delete_recursive("/system/app/clearfi_video.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.8") == "1"
then
ui_print("delete EquiView");
delete_recursive("/data/app/EquiView.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.9") == "1"
then
ui_print("delete Evernote");
delete_recursive("/data/app/Evernote.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.10") == "1"
then
ui_print("delete Google Calendar");
delete_recursive("/data/app/Calendar.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.11") == "1"
then
ui_print("delete Polaris Office");
delete_recursive("/system/app/PolarisOfficeForAcer4.0_JB.apk");
delete_recursive("/system/app/libpolarisoffice_tablet_jb.so");
delete_recursive("/system/app/libtfapps-polaris.so");
delete_recursive("/system/app/libtflua-polaris.so");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.12") == "1"
then
ui_print("delete Stock Gallery");
delete_recursive("/system/app/Gallery2.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.13") == "1"
then
ui_print("delete Youtube Appe");
delete_recursive("/data/app/TegraZone.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.14") == "1"
then
ui_print("delete Youtube Appe");
delete_recursive("/data/app/Youtube.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.15") == "1"
then
ui_print("delete Zinio Reader");
delete_recursive("/data/app/ZinioReader.apk");
delete_recursive("/data/app/ZinioSettingsProvider.apk");
endif;
set_progress(0.55);
####Games Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.3.1") == "1"
then
ui_print("delete Monopoly");
delete_recursive("/data/app/Monopoly.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.3.2") == "1"
then
ui_print("delete Real Racing 2");
delete_recursive("/data/app/RealRacing2.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.3.3") == "1"
then
ui_print("delete Solitaire");
delete_recursive("/system/app/Solitaire.apk");
delete_recursive("/system/app/libHardwoodSolitaireIV.so");
delete_recursive("/system/app/libHardwoodSolitaireIVRogue.so");
endif;
####Widget Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.4.1") == "1"
then
ui_print("delete Digital Clock Widget");
delete_recursive("/data/app/Digitalclock2.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.4.2") == "1"
then
ui_print("delete Weather Widget");
delete_recursive("/data/app/Weather2.apk");
endif;
endif;
set_progress(0.75);
############################################################
# 4 Install custom Rom choosed Mods
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "3"
then
if
file_getprop("/tmp/aroma-data/tweaks.prop","item.0.1") == "1"
then
ui_print("Install 4Way Reboot Mod");
package_extract_dir("aroma/mods/4Way", "/system");
endif;
if
file_getprop("/tmp/aroma-data/tweaks.prop","item.0.2") == "1"
then
ui_print("Install Chrome Desktop Mode");
package_extract_dir("aroma/mods/ccl", "/data");
set_perm(1000, 1000, 0755, "/data/local/chrome-command-line");
endif;
if
file_getprop("/tmp/aroma-data/tweaks.prop","item.0.3") == "1"
then
ui_print("Install GPU Rendering Tweak");
package_extract_file("aroma/mods/81GPU_rendering", "/system/etc/init.d/81GPU_rendering");
endif;
endif;
set_progress(0.80);
############################################################
# 5 Install Custom Apps
############################################################
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.1") == "1"
then
ui_print("Install AdAway");
package_extract_dir("Apps/AdAway", "/system/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.2") == "1"
then
ui_print("Install Rootchecker");
package_extract_dir("Apps/RootChecker", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.3") == "1"
then
ui_print("Install Flashplayer");
package_extract_dir("Apps/Flashplayer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.4") == "1"
then
ui_print("Install Quickpic");
package_extract_dir("Apps/Quickpic", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.5") == "1"
then
ui_print("Install Chrome");
package_extract_dir("Apps/Chrome", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.6") == "1"
then
ui_print("Install DroidEdit");
package_extract_dir("Apps/DroidEdit", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.7") == "1"
then
ui_print("Install BBS");
package_extract_dir("Apps/BBS", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.8") == "1"
then
ui_print("Install BSPlayer");
package_extract_dir("Apps/BSPlayer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.9") == "1"
then
ui_print("Install CpuSpy");
package_extract_dir("Apps/CpuSpy", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.10") == "1"
then
ui_print("Install ESExplorer");
package_extract_dir("Apps/ESExplorer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.11") == "1"
then
ui_print("Install K9");
package_extract_dir("Apps/K9", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.12") == "1"
then
ui_print("Install Titanium");
package_extract_dir("Apps/Titanium", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.13") == "1"
then
ui_print("Install RoleTube");
package_extract_dir("Apps/RoleTube", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.14") == "1"
then
ui_print("Install NoteEverything");
package_extract_dir("Apps/NoteEverything", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.15") == "1"
then
ui_print("Install Dolphin");
package_extract_dir("Apps/Dolphin", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.16") == "1"
then
ui_print("Install UncoptExplorer");
package_extract_dir("Apps/UncoptExplorer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.17") == "1"
then
ui_print("Install SonyWalkman");
package_extract_dir("Apps/SonyWalkman", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.18") == "1"
then
ui_print("Install RealCalc");
package_extract_dir("Apps/RealCalc", "/data/app");
endif;
set_progress(0.85);
set_progress(0.90);
############################################################
# 8 Install Launcher
############################################################
ui_print("Launcher");
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.1") == "1"
then
ui_print(" - Stock Launcher");
package_extract_dir("aroma/launchers/stock", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.2") == "1"
then
ui_print(" - Apex Launcher");
package_extract_dir("aroma/launchers/apex", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.3") == "1"
then
ui_print(" - Nova Launcher");
package_extract_dir("aroma/launchers/nova", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.4") == "1"
then
ui_print(" - ADW Launcher");
package_extract_dir("aroma/launchers/adw", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.5") == "1"
then
ui_print(" - GO Launcher HD");
package_extract_dir("aroma/launchers/golhd", "/system");
endif;
set_progress(0.6);
############################################################
# 10 Install Rings
############################################################
ui_print("Acer Ring");
if
file_getprop("/tmp/aroma-data/ring.prop","item.0.1") == "1"
then
ui_print(" - Stock Acer Ring");
package_extract_dir("aroma/Rings/Stock", "/system/app");
endif;
if
file_getprop("/tmp/aroma-data/ring.prop","item.0.2") == "1"
then
ui_print(" - Carbon Ring");
package_extract_dir("aroma/Rings/Carbon", "/system/app");
endif;
if
file_getprop("/tmp/aroma-data/ring.prop","item.0.3") == "1"
then
ui_print(" - Bones Ring");
package_extract_dir("aroma/Rings/Bones", "/system/app");
endif;
############################################################
# Symlink Permission Recovery
############################################################
ui_print("Symlinking ...");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/chownto");
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/r");
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("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("");
ui_print("");
ui_print("--- Creating additional symlinks");
symlink("/system/bin/mksh", "/system/bin/sh");
symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/DroidSans.ttf");
symlink("/system/fonts/Roboto-Bold.ttf","/system/fonts/DroidSans-Bold.ttf");
ui_print("");
ui_print("");
ui_print("--- Installing busybox");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print("");
ui_print("");
ui_print("--- Setting permissions");
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(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(0, 0, 0644, "/system/etc/bluetooth/bdaddr");
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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/fake.txt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0700, "/system/xbin/tcpdump");
set_perm(1000, 1000, 0755, "/system/xbin/sysro");
set_perm(1000, 1000, 0755, "/system/xbin/sysrw");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor");
ui_print("--- End Setting permissions");
set_progress(0.95);
############################################################
# 6 Finish Rom Install
############################################################
ui_print("");
ui_print("");
ui_print("--- Flashing boot img");
package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-name/LNX");
ui_print("");
ui_print("");
ui_print("--- Unmounting partitions");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
ui_print("");
ui_print("");
############################################################
# 7 Flash Firmware
############################################################
if file_getprop("/tmp/aroma-data/firmw.prop","selected.0") == "2" then
ui_print("--- Installing New Firmware");
package_extract_dir("firmware/TouchFw", "/tmp");
set_perm(0, 2000, 0777, "/tmp/atmel-ap");
set_perm(0, 2000, 0777, "/tmp/fw-1386e-22F4");
set_perm(0, 2000, 0777, "/tmp/1386e-config.txt");
run_program("/tmp/atmel-ap","0","1","76","/dev/maXTouch","/tmp/fw-1386e-22F4");
run_program("/tmp/atmel-ap","1","1","76","/tmp/1386e-config.txt","1","/dev/maXTouch");
package_extract_file("firmware/bootloader.blob", "/dev/block/platform/sdhci-tegra.3/by-name/USP");
run_program("/sbin/sleep", "2");
set_progress(1.0);
run_program("/sbin/reboot");
endif;
ui_print("=================================");
ui_print(" Evil Alex Purgatory Installed!");
ui_print(" Buy me some Beers if you like!! ");
ui_print(" Enjoy!! ");
ui_print("=================================");
set_progress(1.0);
guess
Moscow Desire said:
Strange situation. Have a folder on internal SD, Which will not delete via PC nor ES File explorer.
Theoretically, there shouldn't need be permissions set, as far as I know, when doing an install routine via installer script to internal SD.
Install works fine. I can actually add files to the folder via installer, however, cannot delete the folder or files within. File Explorers show proper permissions as R/W.
Clues?
Code:
#Updater-script Evil Alex Purgatory V2
#For the ACER Iconia A701 Tab
set_progress(0.00);
ui_print("");
ui_print("");
ui_print("=================================");
ui_print(" Evil Alex Roms by Moscow Desire ");
ui_print(" 1st boot may take a while! ");
ui_print(" 1. Boot kann lang dauern! ");
ui_print("=================================");
ui_print("");
ui_print("");
set_progress(0.01);
############################################################
# Mount Partitions
############################################################
ui_print("--- Mounting partitions ---");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/UDA", "/data");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/FLX", "/flex");
mount("vfat", "EMMC", "/dev/fuse /storage/sdcard0", "/sdcard");
############################################################
# Cleaning System
############################################################
ui_print("");
ui_print("");
ui_print("--- Cleaning process ---");
# Delete/Wipe /data partition without sd-card content !!! thx [user=287340]@Vorbeth[/user]
delete_recursive("/system");
if
file_getprop("/tmp/aroma-data/wipe.prop","selected.0") == "2"
then
ui_print("--- Cleaning data ---");
package_extract_file("aroma/scripts/wipe-data.sh", "/tmp/wipe-data.sh");
set_perm(0, 0, 0777, "/tmp/wipe-data.sh");
run_program("/tmp/wipe-data.sh");
delete_recursive("/data/media/Android");
delete_recursive("/data/media/LazyList");
delete_recursive("/data/media/LOST.DIR");
delete_recursive("/data/media/bugreports");
delete_recursive("/data/media/tmp");
else
ui_print("--- Cleaning caches ---");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data/resource-cache");
endif;
set_progress(0.10);
############################################################
# 0 Install Stock Rom
############################################################
ui_print(" ");
ui_print("********** Evil Alex INSTALL SYSTEM *************");
ui_print("");
package_extract_dir("system", "/system");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
symlink("/system/xbin/busybox", "/system/bin/busybox");
ui_print(" ");
ui_print("*********** Evil Alex ROM COPY DATA **************");
ui_print(" ");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
[COLOR="Red"] ui_print("*********** Installing Viper4Android **************");
package_extract_dir("aroma/audio", "/sdcard");[/COLOR]
set_progress(0.35);
############################################################
# 1 Install Full Stock Rom
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "1"
then
set_progress(0.35);
ui_print(" ");
ui_print("*********** install Purgatory Mods **************");
ui_print(" ");
ui_print("Install 4Way Reboot Mod");
package_extract_dir("aroma/mods/4Way", "/system");
ui_print("Install Chrome Desktop Mode");
package_extract_dir("aroma/mods/ccl", "/data");
set_perm(1000, 1000, 0755, "/data/local/chrome-command-line");
ui_print("Install GPU Rendering");
package_extract_file("aroma/mods/81GPU_rendering", "/system/etc/init.d/81GPU_rendering");
endif;
############################################################
# 2 Install small Rom and delete Apps
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "2"
then
ui_print(" ");
ui_print("*********** install Purgatory Mods **************");
ui_print(" ");
ui_print("Install 4Way Reboot Mod");
package_extract_dir("aroma/mods/4Way", "/system");
ui_print("Install Chrome Desktop Mode");
package_extract_dir("aroma/mods/ccl", "/data");
set_perm(1000, 1000, 0755, "/data/local/chrome-command-line");
ui_print("Install GPU Rendering Tweak");
package_extract_file("aroma/mods/81GPU_rendering", "/system/etc/init.d/81GPU_rendering");
ui_print(" ");
ui_print("******* Purgatory small Edition *********");
ui_print(" ");
delete_recursive("/system/app/AcerCloud.apk");
delete_recursive("/data/app/Files.apk");
delete_recursive("/system/app/AcerPrint.apk");
delete_recursive("/data/app/AcerEurosport.apk");
delete_recursive("/system/app/AcerRing.apk");
delete_recursive("/system/app/AcerShellData.apk");
package_extract_file("aroma/scripts/change-shell.sh", "/tmp/change-shell.sh");
set_perm(0, 0, 0777, "/tmp/change-shell.sh");
delete_recursive("/data/app/McAfee.apk");
###
delete_recursive("/data/app/7digital.apk");
delete_recursive("/data/app/Acetrax_Movies.apk");
delete_recursive("/data/app/aupeo.apk");
delete_recursive("/data/app/BarcodeScanner.apk");
delete_recursive("/data/app/Books.apk");
delete_recursive("/system/app/clearfi_music.apk");
delete_recursive("/system/app/clearfi_photo.apk");
delete_recursive("/system/app/clearfi_video.apk");
delete_recursive("/data/app/EquiView.apk");
delete_recursive("/data/app/Evernote.apk");
delete_recursive("/data/app/Kindle.apk");
delete_recursive("/data/app/Calendar.apk");
delete_recursive("/system/app/PolarisOfficeForAcer4.0_JB.apk");
delete_recursive("/system/app/libpolarisoffice_tablet_jb.so");
delete_recursive("/system/app/libtfapps-polaris.so");
delete_recursive("/system/app/libtflua-polaris.so");
delete_recursive("/system/app/Gallery2.apk");
delete_recursive("/data/app/TegraZone.apk");
delete_recursive("/data/app/Youtube.apk");
delete_recursive("/data/app/ZinioReader.apk");
delete_recursive("/data/app/ZinioSettingsProvider.apk");
####
delete_recursive("/data/app/Monopoly.apk");
delete_recursive("/data/app/RealRacing2.apk");
delete_recursive("/system/app/Solitaire.apk");
delete_recursive("/system/app/libHardwoodSolitaireIV.so");
delete_recursive("/system/app/libHardwoodSolitaireIVRogue.so");
####
delete_recursive("/data/app/DigitalClockWidget2.apk");
delete_recursive("/data/app/WeatherWidget2.apk");
endif;
set_progress(0.75);
############################################################
# 3 Install Custom Rom delete Stock Apps
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "3"
then
set_progress(0.35);
####Acer Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.1") == "1"
then
ui_print("delete AcerCloud");
delete_recursive("/system/app/AcerCloud.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.2") == "1"
then
ui_print("delete AcerCloud");
delete_recursive("/data/app/AcerEurosport.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.3") == "1"
then
ui_print("delete Acer File Browser");
delete_recursive("/data/app/Files.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.4") == "1"
then
ui_print("delete Acer Print");
delete_recursive("/system/app/AcerPrint.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.5") == "1"
then
ui_print("delete Acer Shell");
delete_recursive("/system/app/AcerRing.apk");
delete_recursive("/system/app/AcerShellData.apk");
package_extract_file("aroma/scripts/change-shell.sh", "/tmp/change-shell.sh");
set_perm(0, 0, 0777, "/tmp/change-shell.sh");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.1.6") == "1"
then
ui_print("delete McAfee");
delete_recursive("/data/app/McAfee.apk");
endif;
set_progress(0.45);
####Apps Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.1") == "1"
then
ui_print("delete 7digital");
delete_recursive("/data/app/7digital.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.2") == "1"
then
ui_print("delete Acetrax Movies");
delete_recursive("/data/app/Acetrax_Movies.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.3") == "1"
then
ui_print("delete Amazon Kindle");
delete_recursive("/data/app/Kindle.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.4") == "1"
then
ui_print("delete Aupeo");
delete_recursive("/data/app/aupeo.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.5") == "1"
then
ui_print("delete BarcodeScanner");
delete_recursive("/data/app/BarcodeScanner.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.6") == "1"
then
ui_print("delete Google Books");
delete_recursive("/data/app/Books.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.7") == "1"
then
ui_print("delete ClearFi Apps");
delete_recursive("/system/app/clearfi_music.apk");
delete_recursive("/system/app/clearfi_photo.apk");
delete_recursive("/system/app/clearfi_video.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.8") == "1"
then
ui_print("delete EquiView");
delete_recursive("/data/app/EquiView.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.9") == "1"
then
ui_print("delete Evernote");
delete_recursive("/data/app/Evernote.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.10") == "1"
then
ui_print("delete Google Calendar");
delete_recursive("/data/app/Calendar.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.11") == "1"
then
ui_print("delete Polaris Office");
delete_recursive("/system/app/PolarisOfficeForAcer4.0_JB.apk");
delete_recursive("/system/app/libpolarisoffice_tablet_jb.so");
delete_recursive("/system/app/libtfapps-polaris.so");
delete_recursive("/system/app/libtflua-polaris.so");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.12") == "1"
then
ui_print("delete Stock Gallery");
delete_recursive("/system/app/Gallery2.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.13") == "1"
then
ui_print("delete Youtube Appe");
delete_recursive("/data/app/TegraZone.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.14") == "1"
then
ui_print("delete Youtube Appe");
delete_recursive("/data/app/Youtube.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.2.15") == "1"
then
ui_print("delete Zinio Reader");
delete_recursive("/data/app/ZinioReader.apk");
delete_recursive("/data/app/ZinioSettingsProvider.apk");
endif;
set_progress(0.55);
####Games Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.3.1") == "1"
then
ui_print("delete Monopoly");
delete_recursive("/data/app/Monopoly.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.3.2") == "1"
then
ui_print("delete Real Racing 2");
delete_recursive("/data/app/RealRacing2.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.3.3") == "1"
then
ui_print("delete Solitaire");
delete_recursive("/system/app/Solitaire.apk");
delete_recursive("/system/app/libHardwoodSolitaireIV.so");
delete_recursive("/system/app/libHardwoodSolitaireIVRogue.so");
endif;
####Widget Deinstall####
if
file_getprop("/tmp/aroma-data/customdel.prop","item.4.1") == "1"
then
ui_print("delete Digital Clock Widget");
delete_recursive("/data/app/Digitalclock2.apk");
endif;
if
file_getprop("/tmp/aroma-data/customdel.prop","item.4.2") == "1"
then
ui_print("delete Weather Widget");
delete_recursive("/data/app/Weather2.apk");
endif;
endif;
set_progress(0.75);
############################################################
# 4 Install custom Rom choosed Mods
############################################################
if
file_getprop("/tmp/aroma-data/typeinst.prop","selected.0") == "3"
then
if
file_getprop("/tmp/aroma-data/tweaks.prop","item.0.1") == "1"
then
ui_print("Install 4Way Reboot Mod");
package_extract_dir("aroma/mods/4Way", "/system");
endif;
if
file_getprop("/tmp/aroma-data/tweaks.prop","item.0.2") == "1"
then
ui_print("Install Chrome Desktop Mode");
package_extract_dir("aroma/mods/ccl", "/data");
set_perm(1000, 1000, 0755, "/data/local/chrome-command-line");
endif;
if
file_getprop("/tmp/aroma-data/tweaks.prop","item.0.3") == "1"
then
ui_print("Install GPU Rendering Tweak");
package_extract_file("aroma/mods/81GPU_rendering", "/system/etc/init.d/81GPU_rendering");
endif;
endif;
set_progress(0.80);
############################################################
# 5 Install Custom Apps
############################################################
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.1") == "1"
then
ui_print("Install AdAway");
package_extract_dir("Apps/AdAway", "/system/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.2") == "1"
then
ui_print("Install Rootchecker");
package_extract_dir("Apps/RootChecker", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.3") == "1"
then
ui_print("Install Flashplayer");
package_extract_dir("Apps/Flashplayer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.4") == "1"
then
ui_print("Install Quickpic");
package_extract_dir("Apps/Quickpic", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.5") == "1"
then
ui_print("Install Chrome");
package_extract_dir("Apps/Chrome", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.6") == "1"
then
ui_print("Install DroidEdit");
package_extract_dir("Apps/DroidEdit", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.7") == "1"
then
ui_print("Install BBS");
package_extract_dir("Apps/BBS", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.8") == "1"
then
ui_print("Install BSPlayer");
package_extract_dir("Apps/BSPlayer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.9") == "1"
then
ui_print("Install CpuSpy");
package_extract_dir("Apps/CpuSpy", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.10") == "1"
then
ui_print("Install ESExplorer");
package_extract_dir("Apps/ESExplorer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.11") == "1"
then
ui_print("Install K9");
package_extract_dir("Apps/K9", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.12") == "1"
then
ui_print("Install Titanium");
package_extract_dir("Apps/Titanium", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.13") == "1"
then
ui_print("Install RoleTube");
package_extract_dir("Apps/RoleTube", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.14") == "1"
then
ui_print("Install NoteEverything");
package_extract_dir("Apps/NoteEverything", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.15") == "1"
then
ui_print("Install Dolphin");
package_extract_dir("Apps/Dolphin", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.16") == "1"
then
ui_print("Install UncoptExplorer");
package_extract_dir("Apps/UncoptExplorer", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.17") == "1"
then
ui_print("Install SonyWalkman");
package_extract_dir("Apps/SonyWalkman", "/data/app");
endif;
if
file_getprop("/tmp/aroma-data/customapp.prop","item.0.18") == "1"
then
ui_print("Install RealCalc");
package_extract_dir("Apps/RealCalc", "/data/app");
endif;
set_progress(0.85);
set_progress(0.90);
############################################################
# 8 Install Launcher
############################################################
ui_print("Launcher");
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.1") == "1"
then
ui_print(" - Stock Launcher");
package_extract_dir("aroma/launchers/stock", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.2") == "1"
then
ui_print(" - Apex Launcher");
package_extract_dir("aroma/launchers/apex", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.3") == "1"
then
ui_print(" - Nova Launcher");
package_extract_dir("aroma/launchers/nova", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.4") == "1"
then
ui_print(" - ADW Launcher");
package_extract_dir("aroma/launchers/adw", "/system");
endif;
if
file_getprop("/tmp/aroma-data/launcher.prop","item.0.5") == "1"
then
ui_print(" - GO Launcher HD");
package_extract_dir("aroma/launchers/golhd", "/system");
endif;
set_progress(0.6);
############################################################
# 10 Install Rings
############################################################
ui_print("Acer Ring");
if
file_getprop("/tmp/aroma-data/ring.prop","item.0.1") == "1"
then
ui_print(" - Stock Acer Ring");
package_extract_dir("aroma/Rings/Stock", "/system/app");
endif;
if
file_getprop("/tmp/aroma-data/ring.prop","item.0.2") == "1"
then
ui_print(" - Carbon Ring");
package_extract_dir("aroma/Rings/Carbon", "/system/app");
endif;
if
file_getprop("/tmp/aroma-data/ring.prop","item.0.3") == "1"
then
ui_print(" - Bones Ring");
package_extract_dir("aroma/Rings/Bones", "/system/app");
endif;
############################################################
# Symlink Permission Recovery
############################################################
ui_print("Symlinking ...");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/chownto");
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/r");
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("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("");
ui_print("");
ui_print("--- Creating additional symlinks");
symlink("/system/bin/mksh", "/system/bin/sh");
symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/DroidSans.ttf");
symlink("/system/fonts/Roboto-Bold.ttf","/system/fonts/DroidSans-Bold.ttf");
ui_print("");
ui_print("");
ui_print("--- Installing busybox");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print("");
ui_print("");
ui_print("--- Setting permissions");
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(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(0, 0, 0644, "/system/etc/bluetooth/bdaddr");
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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/fake.txt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0700, "/system/xbin/tcpdump");
set_perm(1000, 1000, 0755, "/system/xbin/sysro");
set_perm(1000, 1000, 0755, "/system/xbin/sysrw");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor");
ui_print("--- End Setting permissions");
set_progress(0.95);
############################################################
# 6 Finish Rom Install
############################################################
ui_print("");
ui_print("");
ui_print("--- Flashing boot img");
package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-name/LNX");
ui_print("");
ui_print("");
ui_print("--- Unmounting partitions");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
ui_print("");
ui_print("");
############################################################
# 7 Flash Firmware
############################################################
if file_getprop("/tmp/aroma-data/firmw.prop","selected.0") == "2" then
ui_print("--- Installing New Firmware");
package_extract_dir("firmware/TouchFw", "/tmp");
set_perm(0, 2000, 0777, "/tmp/atmel-ap");
set_perm(0, 2000, 0777, "/tmp/fw-1386e-22F4");
set_perm(0, 2000, 0777, "/tmp/1386e-config.txt");
run_program("/tmp/atmel-ap","0","1","76","/dev/maXTouch","/tmp/fw-1386e-22F4");
run_program("/tmp/atmel-ap","1","1","76","/tmp/1386e-config.txt","1","/dev/maXTouch");
package_extract_file("firmware/bootloader.blob", "/dev/block/platform/sdhci-tegra.3/by-name/USP");
run_program("/sbin/sleep", "2");
set_progress(1.0);
run_program("/sbin/reboot");
endif;
ui_print("=================================");
ui_print(" Evil Alex Purgatory Installed!");
ui_print(" Buy me some Beers if you like!! ");
ui_print(" Enjoy!! ");
ui_print("=================================");
set_progress(1.0);
Click to expand...
Click to collapse
try fixing permitions in cwm
Remove your mount of /sdcard
Code:
mount("vfat", "EMMC", "/dev/fuse /storage/sdcard0", "/sdcard");
and reference the /sdcard via /data/media
Code:
ui_print("*********** Installing Viper4Android **************");
package_extract_dir("aroma/audio", "/data/media");

Categories

Resources