[HOWTO] Install custom rom WARRANTY SAFE - knox = 0x0 ! (root + adb skills needed) - Galaxy Note 3 General

I already made a hastly "guide" for this yesterday but it got way too few love so far if you ask me, because this should be interesting to more people. So I decided to redo the guide with explaining things more deeply. I also redid the process from "scratch" once more so I can confirm it it safe and does not trip knox flag.
Still, I cant be made resposible if this does not work for you or if you mess up your phone during the process, but its pretty foolproof if you understand everything.
Before you start read the full guide to make sure you understand everything and better ask before you do anything you dont understand.
---
So here it goes:
IMPORTANT: You should either use a custom rom which fits your current stock roms version (MI6,MI7,MJ3,MJ7,etc)
or upgrade to the same stock version as the rom you want to install.
If you need to upgrade then please make sure you do not upgrade the bootloaders in the process as this could render URDLV useless on the new rom version leaving you with a non rooted phone =(
---
NOTE: There is alot of permission fixing needed with this install method. In 99% of the cases, unless otherwise noted, all the files and folders you copy over have to be owned by root:root. Directories need the permission 755 (rwxr-xr-x) and files 644 (rw-r--r--). Only binary files in /system/bin and /system/xbin need 755 permissions. (usually.... so the best thing you can do is to check out the files permissions before you copy over the new files, so you can set them exactly the same... just incase)
0.) Make sure your current roms version is the same as the custom roms version you are trying to install. You will also need to be rooted and be able to handle adb and shell commands. (use RDLV / URDLV method for root without tripping knox - do not install a custom recovery or kernel, or this process will trip knox!!!)
1.)
Extract the custom roms installer zip to your internal or external sd card. It should contain a folder called system - this will be the most important one for the rom "install" - so if i refer to your custom roms system folder, then I mean this one. It would normally just be copied over your existing folder during the rom installation in custom recovery, but since the system is running we cannot just do this - or this guide wouldnt be needed. Deep down in the folder META-INF you will find a file called "updater-script" - open this one up on your computer in a text editor to see what is actually done during the rom installation. Here you will find out if anything needs special permissions too. Like if there are folders your system folder does not yet contain - (for example photoreader has its own folder in system and needs the permissions fixed to what you find in the updater-script).
Just "get familiar" with the folders and files in the custom roms installer zip - if this all means nothing to you you should better not continue with the process! We are only interested in the system folder for now - do not try to install kernel or recovery files or something.
---
2.)
Now we actually start the "installation process":
Copy over the folders your system folder does not yet contain - like the photoreader example from above - and fix the permissions according to what you find in the updater-script.
---
3.)
For this step you need a file explorer which can handle root commands, because doing this with shell is a pain in the ass.
Once you have copied over all the "new" folders from your custom rom, we now copy over all the files in the "system/lib" folder from your custom rom to the /system/lib directory to ensure we got all the libs the rom needs.
This has to be done without overwriting any existing files - this is where the file explorer comes in. They usually have an option to skip the copy process if the file already exists. If you do this with shell you would have to type "n" and enter like 100 times.
If you just copy and overwrite existing files in this directory then you will break things and probably will get a bootloop and need to reflash with odin. (I tried it hehe - libc.so couldnt be fully copied over and then the device wouldnt boot anymore)
Fix permissions to root:root and 755 for directories and 644 for files inside the lib directory.
---
4.)
Repeat the process from 4.) with /system/bin and /system/xbin folder if they are included in your custom roms installer zip. Do not overwrite existing files and this time the files need to have root:root and 755 permission to be runnable.
---
5.)
Copy over the others.xml file from system/csc if it exists to your system and fix permissions. This file includes some modifications like sub-symbols on stock keyboard etc. So if you want the full rom experience you will need this file. Leave the other csc files untouched, just the others.xml is interesting. Fix permissions obviously.
---
6.)
Copy over the missing files from system/etc and system/etc/init.d if they exist in your custom rom. I think you could just copy over and overwrite the whole system/etc folder if you make sure you fix the permissions correctly afterwards, but I just copied over the missing files so far. (rest was identical anyway)
There is one file you most likely "want" to overwrite with the version of your custom rom: system/etc/install-recovery.sh - this file usually starts the su daemon for SuperUser and could be customized to also run init.d scripts or do other things.
---
7.)
If you did not reboot the device yet, do it now.
Once its fully booted make sure you did everything above: new folders, missing libs, others.xml in csc, etc folder.
If all this is done, we can now go on to the system apps.
For this you need to be connected over adb shell.
Run "stop" in the shell - this will stop the systemui and allows you to modify system apps without the phone suddenly rebooting or something.
---
8.)
Still in adb browse into the system/app folder of your extracted custom rom.
Now we gonna delete everything in /system/app to make it clean. So run " rm /system/app/* " to remove everything in that folder.
Right after it finishes, we copy over all the apps from the new rom. So run " cp * /system/app/ " to copy over all the files. (you must be inside the right folder for this!!!!)
After the copy is done fix permissions to root:root and 644 for all the files!
9.)
Repeat the process from step 8.) with the system/framework folder from your custom roms directory.
---
10.)
Delete the dalvik cache by running " rm -r /data/dalvik-cache ".
Youre done! Reboot the phone by issuing "reboot" through shell and your new rom should be booting up.
---
If you have done everything correctly you should basically have the same experience as if you had installed the rom through a custom recovery. It boils down to copying all the files by hand rather than relying on the zip installer - its the price you pay if you want to retain your warranty and have a custom rom. Maybe a tool or something could be created to ease up the process. You probably could just use "Flash Gordon" as long as you leave out the lib files (these are the only files I couldnt overwrite on the running device without crash so far) but I'm not sure if it can handle aroma installer scripts. Probably not, so you will end up messing up things more than you want.
With this install method you will have a "clean" install of the custom rom. Whats left maybe is to find out which lib's are actually not used since they tend to be kinda big and you could save some space by deleting. But we got plenty of space anyway... so who cares.
Hope this one gets some more love hehe - I was pretty exited when I was done with my first manual rom installation when I checked out knox and it was indeed still at 0x0.
If you have any questions or enhancements or so for this method then shoot.

Perfect work your method is wonderful but its hard for not prof. people if we can make it like script it will be greet :good::good::good:

Hi.
Great guide! Lots of work I assume...
Thanks.
No FC? No random reboot?
Regards

robert1968 said:
Hi.
Great guide! Lots of work I assume...
Thanks.
No FC? No random reboot?
Regards
Click to expand...
Click to collapse
none so far. Although I need to investigate further to make sure everything is running without problems.
There are some errors in logcat, but I think they come from the rom itself and the modifications, rather than the install method.
And yea - its a bit much work, but if you want to retain warranty you gotta go this way for now.
ADD: The errors I'm getting in logcat are only minor as it seems so far - they are most likely caused by a: errors in the files itself b: me having run bloat_remove script and deleting all sorts of other system apps that were bloatware c: xposed + xprivacy and other modules running. No force closes or reboots or other error messages so far.
When I did this process the first time I did not delete everything in /system/app and /system/framework before copying over the contents of the custom rom. But instead just copied over the apps and deleted all odex files inside the folders afterwards. This left some "orphan" files as I later found out with titanium backup - those were showing as deinstalled apps with orphan data - but Titanium could only delete the data not the apps itself, so I had to manually find out the corresponding apks. To save this hustle just delete the everything in /system/apps and /system/framework before you copy over the new data - as I described above.
I did not do a factory reset after all this - maybe I should do that just to make sure. (well yea actually I really should.. meh)

So I did a factory reset with most bloatware deinstalled, then I had some fc's with the phone app during boot. It was most likely caused by some apps missing that need to run at least once to set everything up after a factory rest.
Then I just copied over all the apps (including bloatware) once more and did another factory reset and everything worked fine then.
Afterwards I just ran the bloatware removal script again and will now remove the leftover bloatware.
Everything is working fine.
ADD:
If someone tells me how I could make the file copy process without overwriting anything (android is missing the "yes" command to automize the file copy confirmations) then I could write a script for this I'm sure.
Should be simple to do I guess, maybe I find something myself, but if anyone knows pls say so.

so did anyone else here have the balls to do it yet? =)
(its so quiet so far.. sigh I really thought people would be liking this ... too complicated or is your warranty already gone? hehe)

zroice said:
so did anyone else here have the balls to do it yet? =)
(its so quiet so far.. sigh I really thought people would be liking this ... too complicated or is your warranty already gone? hehe)
Click to expand...
Click to collapse
Already tripped my KNOX otherwise I would have defo tried it. Seems like a good fix/alternative, Kudos man
EDIT: Altho saying that, I might try it when I get home from work, just too see for myself and then maybe claim a lost phone on my insurance hahaha KNOX Free then eh

I was thinking of giving this a try to get Wicked v3 on my Galaxy Note 3.
Question 1:
looking through the updater-script, I'm seeing other steps besides file copies and permission setting..most notably I'm seeing dozens of commands (/system/bin/cat, system/bin/chmod, /system/bin/chown, etc) symlinked to toolbox (and others symlinked to busybox).
Should I manually recreate these symlinks as well?
Question 2:
How about other steps I see in the scripts? Anything I should absolutely not do? Most notably, I see him call some other scripts from this script, any reason I should avoid giving those a try? I guess I should probably inspect what these scripts do, it looks like they are just used to install the theme.
Question 3:
If I screw up and render my phone unbootable, I'm assuming I can still boot into download mode and use odin to reflash system.ext4 using the tar.md5 file I used to to install RDLV. Is this correct?
For your convenience, should you be curious, here are the contents of updater-script:
Code:
ui_print("@ DEVIANT DEVELOPMENT ");
ui_print("@ WICKED Note 3");
ui_print(" ");
ui_print(" ");
unmount("/system");
ui_print("Hacking files on the phone");
if
file_getprop("/tmp/aroma/install.prop","selected") == "1"
then
set_progress(0.10);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
ui_print("Wiping cache and dalvik cache.....");
delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/dalvik/dalvik-cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/sdcard/LOST.DIR");
delete_recursive("/sdcard/.android_secure");
ui_print("Unleashing the evil.....");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
endif;
#
if
file_getprop("/tmp/aroma/install.prop","selected") == "2"
then
set_progress(0.10);
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
ui_print("Wiping cache and dalvik cache.....");
delete_recursive("/cache");
delete_recursive("/dalvik/dalvik-cache");
delete_recursive("/data/dalvik-cache");
endif;
# Install
if
file_getprop("/tmp/aroma/install.prop","selected") == "1"
then
set_progress(0.30);
ui_print("Symlinking alot of crap.....");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
"/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
"/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
"/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
"/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
"/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
"/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
"/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
"/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
"/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
"/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
"/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
"/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
"/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
"/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
"/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
"/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find",
"/system/xbin/flash_lock", "/system/xbin/flash_unlock",
"/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
"/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fsync",
"/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
"/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
"/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
"/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
"/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
"/system/xbin/install", "/system/xbin/iostat", "/system/xbin/ip",
"/system/xbin/kill", "/system/xbin/killall", "/system/xbin/killall5",
"/system/xbin/length", "/system/xbin/less", "/system/xbin/ln",
"/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
"/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
"/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
"/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
"/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
"/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
"/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
"/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
"/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
"/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
"/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
"/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
"/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
"/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/pmap",
"/system/xbin/poweroff", "/system/xbin/printenv", "/system/xbin/printf",
"/system/xbin/ps", "/system/xbin/pstree", "/system/xbin/pwd",
"/system/xbin/pwdx", "/system/xbin/rdev", "/system/xbin/readlink",
"/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset",
"/system/xbin/resize", "/system/xbin/rev", "/system/xbin/rm",
"/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
"/system/xbin/run-parts", "/system/xbin/rx", "/system/xbin/sed",
"/system/xbin/seq", "/system/xbin/setconsole", "/system/xbin/setserial",
"/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
"/system/xbin/sha256sum", "/system/xbin/sha512sum",
"/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
"/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
"/system/xbin/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
"/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
"/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
"/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
"/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
"/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
"/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
"/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
"/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
"/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
"/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
"/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
"/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
"/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
"/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
"/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
"/system/xbin/zcat");
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/lsof");
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/playback");
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/touch");
symlink("toolbox", "/system/bin/touchinput");
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("dumpstate", "/system/bin/dumpcrash");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
ui_print("Fixing permissions.....");
set_progress(0.50);
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0755, "/system/etc/install-recovery.sh");
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(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.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(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
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, 0755, "/system/bin/restorecon");
set_perm (0, 0, 0755, "/system/xbin/restorecon");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/daemonsu");
set_perm(0, 0, 06755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 0, 0644, "/system/etc/.has_su_daemon");
set_perm(0, 0, 0644, "/system/etc/.installed_su_daemon");
set_perm(0, 0, 0644, "/system/lib/libdummy.so");
symlink("/system/xbin/su", "/system/bin/su");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_progress(0.50);
ui_print("Flashing kernel.....");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p14"),
delete("/tmp/boot.img"));
endif;
if
(file_getprop("/tmp/aroma/install.prop","selected") == "1" || file_getprop("/tmp/aroma/install.prop","selected") == "2")
then
set_progress(0.80);
ui_print(" Selected Theme");
if file_getprop("/tmp/aroma/theme.prop","selected.1") == "1"
then
ui_print("@ Installing Stock Theme");
package_extract_dir("evil/Theme/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/theme.prop","selected.1") == "2"
then
ui_print("@ Installing White Theme");
package_extract_dir("evil/Theme/White", "/system");
endif;
ui_print(" Music App");
if file_getprop("/tmp/aroma/music.prop","selected.1") == "1"
then
ui_print("@ Installing Samsung music app");
package_extract_dir("evil/Music/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/music.prop","selected.1") == "2"
then
ui_print("@ Installing Apollo music app");
package_extract_dir("evil/Music/Apollo", "/system");
endif;
if file_getprop("/tmp/aroma/music.prop","selected.1") == "3"
then
ui_print("@ Installing Fusion music app");
package_extract_dir("evil/Music/Fusion", "/system");
endif;
if file_getprop("/tmp/aroma/music.prop","selected.1") == "4"
then
ui_print("@ Installing Sony music app");
package_extract_dir("evil/Music/Sony", "/system");
endif;
ui_print(" Selected Boot Animations");
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "1"
then
ui_print("@ Installing Stock Boot up");
package_extract_dir("evil/Boot/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "2"
then
ui_print("@ Installing Xray Boot up");
package_extract_dir("evil/Boot/Xray", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "3"
then
ui_print("@ Installing H.R. Giger Boot up");
package_extract_dir("evil/Boot/Giger", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "4"
then
ui_print("@ Installing Hater Boot up");
package_extract_dir("evil/Boot/Hater", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "5"
then
ui_print("@ Installing Fire Boot up");
package_extract_dir("evil/Boot/Fire", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.2") == "1"
then
ui_print("@ Installing Stock Shutdown");
package_extract_dir("evil/Shut/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.2") == "2"
then
ui_print("@ Installing Wicked Eye Shutdown");
package_extract_dir("evil/Shut/Eye", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.2") == "3"
then
ui_print("@ Installing Stay Deviant Shutdown");
package_extract_dir("evil/Shut/Stay", "/system");
endif;
ui_print(" Installing Add-ons");
if
file_getprop("/tmp/aroma/add.prop","item.1.1") == "1"
then
ui_print("@ MotoX Camera");
package_extract_dir("evil/Add/Moto", "/system");
endif;
if
file_getprop("/tmp/aroma/add.prop","item.1.2") == "1"
then
ui_print("@ GE Camera");
package_extract_dir("evil/Add/GE", "/system");
endif;
if
file_getprop("/tmp/aroma/add.prop","item.1.3") == "1"
then
ui_print("@ Focal Camera");
package_extract_dir("evil/Add/Focal", "/data");
endif;
ui_print("Installing Selected Apps ...");
if
file_getprop("/tmp/aroma/bloat.prop","item.1.1") == "1"
then
ui_print("@ Blomberg");
package_extract_dir("evil/Bloat/Bloom", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.2") == "1"
then
ui_print("@ Blurp");
package_extract_dir("evil/Bloat/Blurp", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.3") == "1"
then
ui_print("@ ChatOn");
package_extract_dir("evil/Bloat/Chat", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.4") == "1"
then
ui_print("@ Evernote");
package_extract_dir("evil/Bloat/Evernote", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.5") == "1"
then
ui_print("@ Flipboard");
package_extract_dir("evil/Bloat/Flip", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.6") == "1"
then
ui_print("@ Games");
package_extract_dir("evil/Bloat/Game", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.7") == "1"
then
ui_print("@ Travel");
package_extract_dir("evil/Bloat/Travel", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.8") == "1"
then
ui_print("@ Yahoo");
package_extract_dir("evil/Bloat/Yahoo", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.1") == "1"
then
ui_print("@ Access");
package_extract_dir("evil/Tmobile/Access", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.2") == "1"
then
ui_print("@ Highlight");
package_extract_dir("evil/Tmobile/Highlight", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.3") == "1"
then
ui_print("@ ID");
package_extract_dir("evil/Tmobile/Id", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.4") == "1"
then
ui_print("@ Tv");
package_extract_dir("evil/Tmobile/Tv", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.5") == "1"
then
ui_print("@ Voice");
package_extract_dir("evil/Tmobile/Voice", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.1") == "1"
then
ui_print("@ Group Play ");
package_extract_dir("evil/System/Group", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.2") == "1"
then
ui_print("@ SHealth");
package_extract_dir("evil/System/Shealth", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.3") == "1"
then
ui_print("@ Story Album ");
package_extract_dir("evil/System/Story", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.4") == "1"
then
ui_print("@ WatchOn ");
package_extract_dir("evil/System/Watch", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.5") == "1"
then
ui_print("@ Samsung Hub ");
package_extract_dir("evil/System/Samsung", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.6") == "1"
then
ui_print("@ Print ");
package_extract_dir("evil/System/Print", "/system");
endif;
ui_print(" Selected Animations");
# Animation
if
file_getprop("/tmp/aroma/ani.prop","selected.1") == "1"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Stock Animations");
package_extract_dir("evil/Ani/Stock/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding Files");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.1") == "2"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Aosp Animations");
package_extract_dir("evil/Ani/Aosp/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding Files");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.1") == "3"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Folding Animations");
package_extract_dir("evil/Ani/Fold/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding Files");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.2") == "1"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Wicked Speed");
package_extract_dir("evil/Ani/Wicked/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding More Speed");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.2") == "2"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Wicked on Crack");
package_extract_dir("evil/Ani/Crack/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Smoking Crack");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
endif;
unmount("/system");
unmount("/cache");
unmount("/data");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("@ First boot will take longer! ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("@ Let the phone sit 5 mins then reboot and enjoy ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("@ Donations are appreciated! ");
ui_print(" ");
ui_print(" ");
set_progress(1);

gygelly said:
I was thinking of giving this a try to get Wicked v3 on my Galaxy Note 3.
Question 1:
looking through the updater-script, I'm seeing other steps besides file copies and permission setting..most notably I'm seeing dozens of commands (/system/bin/cat, system/bin/chmod, /system/bin/chown, etc) symlinked to toolbox (and others symlinked to busybox).
Should I manually recreate these symlinks as well?
Question 2:
How about other steps I see in the scripts? Anything I should absolutely not do? Most notably, I see him call some other scripts from this script, any reason I should avoid giving those a try? I guess I should probably inspect what these scripts do, it looks like they are just used to install the theme.
Question 3:
If I screw up and render my phone unbootable, I'm assuming I can still boot into download mode and use odin to reflash system.ext4 using the tar.md5 file I used to to install RDLV. Is this correct?
For your convenience, should you be curious, here are the contents of updater-script:
Code:
ui_print("@ DEVIANT DEVELOPMENT ");
ui_print("@ WICKED Note 3");
ui_print(" ");
ui_print(" ");
unmount("/system");
ui_print("Hacking files on the phone");
if
file_getprop("/tmp/aroma/install.prop","selected") == "1"
then
set_progress(0.10);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
ui_print("Wiping cache and dalvik cache.....");
delete_recursive("/system");
delete_recursive("/cache");
delete_recursive("/dalvik/dalvik-cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/sdcard/LOST.DIR");
delete_recursive("/sdcard/.android_secure");
ui_print("Unleashing the evil.....");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
endif;
#
if
file_getprop("/tmp/aroma/install.prop","selected") == "2"
then
set_progress(0.10);
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
ui_print("Wiping cache and dalvik cache.....");
delete_recursive("/cache");
delete_recursive("/dalvik/dalvik-cache");
delete_recursive("/data/dalvik-cache");
endif;
# Install
if
file_getprop("/tmp/aroma/install.prop","selected") == "1"
then
set_progress(0.30);
ui_print("Symlinking alot of crap.....");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
"/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
"/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
"/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
"/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
"/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
"/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
"/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
"/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
"/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
"/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
"/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
"/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
"/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
"/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
"/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
"/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find",
"/system/xbin/flash_lock", "/system/xbin/flash_unlock",
"/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
"/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fsync",
"/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
"/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
"/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
"/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
"/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
"/system/xbin/install", "/system/xbin/iostat", "/system/xbin/ip",
"/system/xbin/kill", "/system/xbin/killall", "/system/xbin/killall5",
"/system/xbin/length", "/system/xbin/less", "/system/xbin/ln",
"/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
"/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
"/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
"/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
"/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
"/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
"/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
"/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
"/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
"/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
"/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
"/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
"/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
"/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/pmap",
"/system/xbin/poweroff", "/system/xbin/printenv", "/system/xbin/printf",
"/system/xbin/ps", "/system/xbin/pstree", "/system/xbin/pwd",
"/system/xbin/pwdx", "/system/xbin/rdev", "/system/xbin/readlink",
"/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset",
"/system/xbin/resize", "/system/xbin/rev", "/system/xbin/rm",
"/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
"/system/xbin/run-parts", "/system/xbin/rx", "/system/xbin/sed",
"/system/xbin/seq", "/system/xbin/setconsole", "/system/xbin/setserial",
"/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
"/system/xbin/sha256sum", "/system/xbin/sha512sum",
"/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
"/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
"/system/xbin/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
"/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
"/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
"/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
"/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
"/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
"/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
"/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
"/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
"/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
"/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
"/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
"/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
"/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
"/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
"/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
"/system/xbin/zcat");
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/lsof");
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/playback");
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/touch");
symlink("toolbox", "/system/bin/touchinput");
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("dumpstate", "/system/bin/dumpcrash");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
ui_print("Fixing permissions.....");
set_progress(0.50);
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0755, "/system/etc/install-recovery.sh");
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(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.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(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
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, 0755, "/system/bin/restorecon");
set_perm (0, 0, 0755, "/system/xbin/restorecon");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/daemonsu");
set_perm(0, 0, 06755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 0, 0644, "/system/etc/.has_su_daemon");
set_perm(0, 0, 0644, "/system/etc/.installed_su_daemon");
set_perm(0, 0, 0644, "/system/lib/libdummy.so");
symlink("/system/xbin/su", "/system/bin/su");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_progress(0.50);
ui_print("Flashing kernel.....");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p14"),
delete("/tmp/boot.img"));
endif;
if
(file_getprop("/tmp/aroma/install.prop","selected") == "1" || file_getprop("/tmp/aroma/install.prop","selected") == "2")
then
set_progress(0.80);
ui_print(" Selected Theme");
if file_getprop("/tmp/aroma/theme.prop","selected.1") == "1"
then
ui_print("@ Installing Stock Theme");
package_extract_dir("evil/Theme/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/theme.prop","selected.1") == "2"
then
ui_print("@ Installing White Theme");
package_extract_dir("evil/Theme/White", "/system");
endif;
ui_print(" Music App");
if file_getprop("/tmp/aroma/music.prop","selected.1") == "1"
then
ui_print("@ Installing Samsung music app");
package_extract_dir("evil/Music/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/music.prop","selected.1") == "2"
then
ui_print("@ Installing Apollo music app");
package_extract_dir("evil/Music/Apollo", "/system");
endif;
if file_getprop("/tmp/aroma/music.prop","selected.1") == "3"
then
ui_print("@ Installing Fusion music app");
package_extract_dir("evil/Music/Fusion", "/system");
endif;
if file_getprop("/tmp/aroma/music.prop","selected.1") == "4"
then
ui_print("@ Installing Sony music app");
package_extract_dir("evil/Music/Sony", "/system");
endif;
ui_print(" Selected Boot Animations");
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "1"
then
ui_print("@ Installing Stock Boot up");
package_extract_dir("evil/Boot/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "2"
then
ui_print("@ Installing Xray Boot up");
package_extract_dir("evil/Boot/Xray", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "3"
then
ui_print("@ Installing H.R. Giger Boot up");
package_extract_dir("evil/Boot/Giger", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "4"
then
ui_print("@ Installing Hater Boot up");
package_extract_dir("evil/Boot/Hater", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.1") == "5"
then
ui_print("@ Installing Fire Boot up");
package_extract_dir("evil/Boot/Fire", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.2") == "1"
then
ui_print("@ Installing Stock Shutdown");
package_extract_dir("evil/Shut/Stock", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.2") == "2"
then
ui_print("@ Installing Wicked Eye Shutdown");
package_extract_dir("evil/Shut/Eye", "/system");
endif;
if file_getprop("/tmp/aroma/boot.prop","selected.2") == "3"
then
ui_print("@ Installing Stay Deviant Shutdown");
package_extract_dir("evil/Shut/Stay", "/system");
endif;
ui_print(" Installing Add-ons");
if
file_getprop("/tmp/aroma/add.prop","item.1.1") == "1"
then
ui_print("@ MotoX Camera");
package_extract_dir("evil/Add/Moto", "/system");
endif;
if
file_getprop("/tmp/aroma/add.prop","item.1.2") == "1"
then
ui_print("@ GE Camera");
package_extract_dir("evil/Add/GE", "/system");
endif;
if
file_getprop("/tmp/aroma/add.prop","item.1.3") == "1"
then
ui_print("@ Focal Camera");
package_extract_dir("evil/Add/Focal", "/data");
endif;
ui_print("Installing Selected Apps ...");
if
file_getprop("/tmp/aroma/bloat.prop","item.1.1") == "1"
then
ui_print("@ Blomberg");
package_extract_dir("evil/Bloat/Bloom", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.2") == "1"
then
ui_print("@ Blurp");
package_extract_dir("evil/Bloat/Blurp", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.3") == "1"
then
ui_print("@ ChatOn");
package_extract_dir("evil/Bloat/Chat", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.4") == "1"
then
ui_print("@ Evernote");
package_extract_dir("evil/Bloat/Evernote", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.5") == "1"
then
ui_print("@ Flipboard");
package_extract_dir("evil/Bloat/Flip", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.6") == "1"
then
ui_print("@ Games");
package_extract_dir("evil/Bloat/Game", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.7") == "1"
then
ui_print("@ Travel");
package_extract_dir("evil/Bloat/Travel", "/system");
endif;
if
file_getprop("/tmp/aroma/bloat.prop","item.1.8") == "1"
then
ui_print("@ Yahoo");
package_extract_dir("evil/Bloat/Yahoo", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.1") == "1"
then
ui_print("@ Access");
package_extract_dir("evil/Tmobile/Access", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.2") == "1"
then
ui_print("@ Highlight");
package_extract_dir("evil/Tmobile/Highlight", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.3") == "1"
then
ui_print("@ ID");
package_extract_dir("evil/Tmobile/Id", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.4") == "1"
then
ui_print("@ Tv");
package_extract_dir("evil/Tmobile/Tv", "/system");
endif;
if
file_getprop("/tmp/aroma/tmobile.prop","item.1.5") == "1"
then
ui_print("@ Voice");
package_extract_dir("evil/Tmobile/Voice", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.1") == "1"
then
ui_print("@ Group Play ");
package_extract_dir("evil/System/Group", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.2") == "1"
then
ui_print("@ SHealth");
package_extract_dir("evil/System/Shealth", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.3") == "1"
then
ui_print("@ Story Album ");
package_extract_dir("evil/System/Story", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.4") == "1"
then
ui_print("@ WatchOn ");
package_extract_dir("evil/System/Watch", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.5") == "1"
then
ui_print("@ Samsung Hub ");
package_extract_dir("evil/System/Samsung", "/system");
endif;
if
file_getprop("/tmp/aroma/system.prop","item.1.6") == "1"
then
ui_print("@ Print ");
package_extract_dir("evil/System/Print", "/system");
endif;
ui_print(" Selected Animations");
# Animation
if
file_getprop("/tmp/aroma/ani.prop","selected.1") == "1"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Stock Animations");
package_extract_dir("evil/Ani/Stock/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding Files");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.1") == "2"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Aosp Animations");
package_extract_dir("evil/Ani/Aosp/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding Files");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.1") == "3"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Folding Animations");
package_extract_dir("evil/Ani/Fold/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding Files");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.2") == "1"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Wicked Speed");
package_extract_dir("evil/Ani/Wicked/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Adding More Speed");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
if
file_getprop("/tmp/aroma/ani.prop","selected.2") == "2"
then
run_program("/sbin/busybox", "mount", "/system");
ui_print("@ Wicked on Crack");
package_extract_dir("evil/Ani/Crack/vrtheme", "/sdcard/vrtheme");
set_perm(0, 0, 0755, "/sdcard/vrtheme/installtheme.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zip");
set_perm(0, 0, 0755, "/sdcard/vrtheme/cleanup.sh");
set_perm(0, 0, 0755, "/sdcard/vrtheme/zipalign");
ui_print(" Smoking Crack");
run_program("/sdcard/vrtheme/installtheme.sh");
run_program("/sdcard/vrtheme/cleanup.sh");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
endif;
endif;
unmount("/system");
unmount("/cache");
unmount("/data");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("@ First boot will take longer! ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("@ Let the phone sit 5 mins then reboot and enjoy ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("@ Donations are appreciated! ");
ui_print(" ");
ui_print(" ");
set_progress(1);
Click to expand...
Click to collapse
well 1st it installs busybox which can be done by hand (copy over the busybox binary to /system/xbin and run " busybox --install /system/xbin/ ") or which already be installed if you did root with RDLV.
2nd the toolbox: Should already be symlinked on stock rom. Just leave the stuff that is already there.
3rd the additional scripts. Well look through them and see what they do, they usually install mods or themes etc. If you want their functionality you will need to mimic those scripts or just run them if they are sh scripts (make sure the file structure is how the script expects it though).
What I did was to compare folders and see what was missing or was changed in the rom installation. (compare the file sizes in a file explorer etc. if youre unsure).
Basically just mimic the stuff that is necessary.
--
Since we are not working on the kernel and/or recovery I'm sure download mode will always work so that you can go back to where you started. (just reflash the odin file rdlv created - but it needs to be the full not the csc version obviously).
I had to reflash 2 times so far which taught me: Do not try to overwrite lib files which are currently in use. Do delete all files in /system/app and /system/framework before you copy over the new files if you are starting from an odexed rom - because else you might get the orphan apks without odex which are not present in the custom rom you are trying to install.
For first try I can suggest X-Note 5 installation - apart from the photoreader installation its pretty straight forward as described in the guide.

I'll be real brave now I think:
I want to use simplistic framework and it only supports mj6 fully - but I'm on mj7 alrdy.
So I downloaded slim version of the stock mj6 and I will change the system.apks and the framework to the mj6 ones.
I expect it to work, maybe ill also change build.prop to get the correct info, but apart from that ill leave everything as it is.
But will have to factory reset afterwards just to be safe.. sigh once more. But then I'll hopefully have the ability to use simplistic framework, xposed + wanam together for maximum customization.
--
If it doesnt work ill just have to reflash with odin..
---
ADD1: So far I just changed the framework files to mj6 and deleted dalvik cache. And copied over simplistic framework. Booted up fine, lets see if it fully works now.
UPDATE: Although I'm getting no errors simplistic is not working so I will have to downgrade full to mj6 i think. Not sure if I gonna try odin downgrade though... could trip knox altough i actually doubt it as long as i only flash system img.

Oh my god u are a hero
Would be nice if you could write a script or smth
I dont dare doing so many steps where a single fail you brick my phone :b
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app

Killberty said:
Oh my god u are a hero
Would be nice if you could write a script or smth
I dont dare doing so many steps where a single fail you brick my phone :b
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app
Click to expand...
Click to collapse
I think he is still playing with a lot of it before script writing etc, but no doubt it is a very clever workaround... I'm surprised not many people have noticed this yet?

radicalisto said:
I think he is still playing with a lot of it before script writing etc, but no doubt it is a very clever workaround... I'm surprised not many people have noticed this yet?
Click to expand...
Click to collapse
Yeah what a great pity...
I am quite new to android, never used adb - i felt like the bawwws when i used cygwin to make URDLV work on dmj7 (packed a tar.md5)
So i want that script -wouldnt it be possible to do all the steps from your pc via adb?
I mean just stop system ui and copy and set permissions recursively? Works in my head
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app

Killberty said:
Yeah what a great pity...
I am quite new to android, never used adb - i felt like the bawwws when i used cygwin to make URDLV work on dmj7 (packed a tar.md5)
So i want that script -wouldnt it be possible to do all the steps from your pc via adb?
I mean just stop system ui and copy and set permissions recursively? Works in my head
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app
Click to expand...
Click to collapse
yea would work. What would be needed though is a way to mimic the linux "yes" command. Unfortunately busybox does not have it. It's used to automatically confirm on user requests. So if you want to copy over all the libs without overwriting (to avoid crash) you would need to use the cp -i for interactive option, which asks before overwriting files, and "yes n|cp * /system/lib" would simply say no whenever there are file conflicts. This is why I said this step needs to be done with a file explorer, because else its a pain in the ass to type "n" and enter a 100 times. And if you want to do this in a script it has to work without user interaction anyway.
So find me a "yes" binary or some script that mimics that and maybe I can make a custom rom installer script.
But I'm also still fiddling around with things. To see which libaries are actually in use while the system runs without systemui (after you run "stop" in terminal or over adb).
I actually could overwrite quite alot of the libs without problems, but when I once copied over the whole folder it would render the device unbootable and I had to reflash with odin. (this happened because the file transfer was cut off mid transfer when some important libary got overwritten it seems.. but it also means that even with fked up libaries, where my phone wouldnt even show boot animation anymore, I could just odin back to stock and everything was fine again)
---
Other thought: could the updater-binary be used to run the updater-script directly? But it would need tweaking i think, even if you can run the updater-binary I have no clue how you could call it from the zip itself. How does cwm etc do it? Their processes should be able to run on the system too, but then you need to be careful about the lib overwriting.
---
What also would help is to have adb in stock recovery or something so we can actually manipulate the whole system. (but most libs are not changed anyway if you use the same base rom)

sorry for multi posting but it gets ugly otherwise..
found out which libs run if you stop systemui:
Code:
/system/lib/D13QS_libchromatix_imx135_preview.so
/system/lib/hw/gralloc.msm8974.so
/system/lib/libc.so
/system/lib/liblog.so
/system/lib/libm.so
/system/lib/libnetutils.so
/system/lib/libsecril-client.so
/system/lib/libselinux.so
/system/lib/libstdc++.so
/system/vendor/lib/libQSEEComAPI.so
/system/vendor/lib/libdiag.so
those need to be deleted from the lib folder of your custom rom youre trying to install and then it can be all copied over - ill test it and report back =)...

Just for my understanding, those libs that run when u stop sysui - those are the same in custom and stock roms?
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app

Killberty said:
Just for my understanding, those libs that run when u stop sysui - those are the same in custom and stock roms?
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app
Click to expand...
Click to collapse
well, cannot be guaranteed, but in most cases they should be the same (as long as you have the same base as the rom youre trying to install)
I did a comparison of file size of my stock mj7 libs vs those from xnote 5 (on those that still ran i mean) and they were all the same.
Ill copy over the whole libary folder minus those on top now and then report back.

zroice said:
well, cannot be guaranteed, but in most cases they should be the same (as long as you have the same base as the rom youre trying to install)
I did a comparison of file size of my stock mj7 libs vs those from xnote 5 (on those that still ran i mean) and they were all the same.
Ill copy over the whole libary folder minus those on top now and then report back.
Click to expand...
Click to collapse
So you can just write a script which copies all apart from those.
If you need ideas or brainstorming i am your man highly intersted in this and i wanna help
hit 'thanks' if i helped you
SM-N9005 DMJ7 0x0
XDA Developers 4 premium app

aww im dumb - forgot to leave out libc.so - it wasnt shown when I ran "lsof" to find out the necessary files.. sigh. (but i had this happen to me before, so i shouldve known lol..) back to odin..... argh.
Really need adb over recovery sigh =(

so when also leaving out libc.so (alrdy added it to the list on top) I can copy the whole lib folder.
--
might do a script when i got time, but if you delete those libs you can basically just copy over the whole rom i think, but this needs testing and to be honest im quite fed up with flashing for now hehe..

Related

converting update-script to updater-script.

long story short, I'm trying to convert the update-script from my rom into updater-script. I learned the syntax by looking at other updater-scripts but I still do have one problem left.
Mounting and copying some files from rom.zip directly to sd-ext. This because rom is too big for desire classic standard /system and I store on sd-ext some pngs.
On update-script I use this command copy_dir PACKAGE:data SDEXT:
and this copies data folder to root of sd-ext.
now on updater-script i tried several methods to mount sd-ext but none worked:
I tried.
1. mount("MTD", "sdext", "/sdext");
package_extract_dir("data", "/sdext");
does not copy to sd-ext
2. mount("MTD", "sdext", "/sdext");
package_extract_dir("sdext", "/sdext");
renamed the folder inside the rom from data to sdext
nogo
Leedroid suggested me to use
mount("ext3", "MMC", "/dev/block/mmcblk0p2", "/sdext");
but the i have a problem, since users can have an ext2/3/4 partition and i force mount it as ext3.Forcing formating user partition into ext3 is not an option
any help is very appreciated
Thank You
P.S. sorry that i started this thread in development forum but seems to me this a development question and issue
P.S.2 i tried to mount /data and copy there the files and then on 1st boot a2sd script from init.d move them to sd-ext. problem is as you probably figured it out it moves only /data/app leaving alot of c*** on /data and I don't feel comfortable editing the a2sd script since i will surly do more bad that good.
oh good its useful
I don't think you can reference "sdext" in mount because it does not belong to MTD (I suspect).
How about using this. Not specifying file system.
Code:
mount("MMC", "/dev/block/mmcblk0p2", "/sd-ext");
If it's partition 2 you're after that is.
Daelyn said:
I don't think you can reference "sdext" in mount because it does not belong to MTD (I suspect).
How about using this. Not specifying file system.
Code:
mount("MMC", "/dev/block/mmcblk0p2", "/sd-ext");
If it's partition 2 you're after that is.
Click to expand...
Click to collapse
thanks i'll give it a shot.
LE: no, it still not working
hei, there's a simply fix !
run_program("/sbin/mkdir", "/sd-ext");
run_program("/sbin/mount", "-t", "ext2", "/dev/block/mmcblk0p2", "/sd-ext");
package_extract_dir("sdext", "/sd-ext");
Always pull the recovery.log (adb pull /tmp/recovery.log) to see why it wasn't working, if you use the v3 CW rec. its simply cause its missing the directory in the ramdisk and its why you have to create it before you can actually mount it.
roalex said:
hei, there's a simply fix !
run_program("/sbin/mkdir", "/sd-ext");
run_program("/sbin/mount", "-t", "ext2", "/dev/block/mmcblk0p2", "/sd-ext");
package_extract_dir("sdext", "/sd-ext");
Click to expand...
Click to collapse
thanks but, this solution implies that I know what EXT type the user has, which I don't, can be ext2 /3 /4
baadnewz said:
thanks but, this solution always implies that I know what EXT type the user has, which I don't, can be ext2 /3 /4
Click to expand...
Click to collapse
try with "auto" in place of "ext2", also could try to simply run the mkdir part, then use the normal mount syntax,
run_program("/sbin/mkdir", "/sd-ext");
mount("MTD", "sdext", "/sd-ext");
For amonra:
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
found this to work np
Ahh! Stupid of me. Of course one would have to create the /sd-ext dir first
roalex said:
try with "auto" in place of "ext2", also could try to simply run the mkdir part, then use the normal mount syntax,
run_program("/sbin/mkdir", "/sd-ext");
mount("MTD", "sdext", "/sd-ext");
For amonra:
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
found this to work np
Click to expand...
Click to collapse
Edify has a "weird" syntax. "," instead of spaces inside one " ... " run_programm call....
I already searched for edify syntax but didn't find something. Thats strange because google explains almost everything of android in great detail.
If someone has a link for a syntax explanation it would be nice. I still don't get what X and Y in "showprogress(X, Y)" does.
Apart from that i wonder if a variable from a script run through "run_program("scriptname.sh")" (<<< does that work) can be "echoed" with ui_print.
mh have you solved your problem?
i have a simular problem. I want to add A2SD support to my ROM. The kernel seams to be setup correctly, busybox works, init.d folder support is there, i have done everything right i think. But
1. the files from sd-ext/app_s folder are not installed and
2. installed apps from marked are not stored in the ext partition.
I really think there is something wrong with the Updater-script because there is no where the sd-ext partition mounted or my sd-ext files extracted to the sd-ext partition.
HandyBesitzer said:
mh have you solved your problem?
i have a simular problem. I want to add A2SD support to my ROM. The kernel seams to be setup correctly, busybox works, init.d folder support is there, i have done everything right i think. But
1. the files from sd-ext/app_s folder are not installed and
2. installed apps from marked are not stored in the ext partition.
I really think there is something wrong with the Updater-script because there is no where the sd-ext partition mounted or my sd-ext files extracted to the sd-ext partition.
Click to expand...
Click to collapse
to mount the ext4 file partition ( sd_ext ) this is the command
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
mh it still doesn't work. I have the youtube.apk in the sd-ext/app_s folder. But after flashing it's not installed.
Code:
ui_print("");
ui_print("");
ui_print(" __ __ ____ __ ");
ui_print(" / \ | |\ | / \ | | | ");
ui_print("| __ | | \ || __ | |-< ");
ui_print(" \__/ | | \| \__/ | | \ ");
ui_print(" __ |--- __ ___ /| ");
ui_print(" / \ | |\ | / \ | / | ");
ui_print(" \ \ | | \ | \ \ |-- /__|_ ");
ui_print(" \__/ |____ | \| \__/ |___ | ");
ui_print("------------------------------------------------");
ui_print(" GingerSense 4 v0.6.2.1");
ui_print("");
ui_print(" von Handy Besitzer ");
ui_print("");
ui_print("Starten..");
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/system");
ui_print("Installieren..");
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("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
ui_print("Symlink..");
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/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("Berechtigungen..");
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, 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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/bash");
symlink("/system/xbin/bash", "/system/bin/sh");
ui_print("Busybox..");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print("Root..");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
ui_print("A2SD");
run_program("/data/dtinstall.launch");
delete("/system/bin/dtinstall");
delete("/data/dtinstall.launch");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
package_extract_dir("sd-ext", "/sd-ext");
package_extract_file("move_cache_sd", "/tmp/move_cache_sd");
set_perm(0, 0, 0777, "/tmp/move_cache_sd");
run_program("/tmp/move_cache_sd");
ui_print("Kernel..");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
ui_print("Beenden..");
unmount("/system");
unmount("/data");

[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.

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?

Twrp error: 6

Hello xda
So today i just wanted to make a flashable update zip, so, i have the zip archive with 2 folders, one is the META-INF, the other one is system, (the system folder is empty!)
And now, when i flash the zip in twrp, i'm getting:
Updater process ended with ERROR: 6
My update-script looks like this:
HTML:
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print("- Mounting...")
mount("ext4", "MTD", "system", "/system");
ui_print("- Installing...");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("- Done, Enjoy!");
The only thing what i wanna do is that the /system gets mounted, then, the system should install, and then, /system should be unmounted.
Can someone help me? I have a HTC One M8 and TWRP 3.0.0.1. Thanks.
Line 2 is missing a semi-colon at the end. Just figured that out myself.
@KevYoshi;65657737
Maybe it is bad End Of Line conversion. Please look this yt tutorial https://youtu.be/Za9H7TgeZ50
mew1033 said:
Line 2 is missing a semi-colon at the end. Just figured that out myself.
Click to expand...
Click to collapse
Oh, i see, Thanks i will try again later
The assert line is missing in the final updater-script.
Should be:
Code:
assert(getprop("ro.product.device") == "angler" || getprop("ro.build.product") == "angler" || getprop("ro.product.name") == "angler" ||
abort("This package is for \"angler\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
But instead is:
Code:
abort("This package is for \"angler\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
The first line is missing.
@KevYoshi, if all else fails, see if either of the following threads, at least, provides you with some kind of solution to the annoying "TWRP Error: 6".
TWRP error :6 by andy21304
updater-script error 6 in twrp 2.8.7.0 by zwiebug
I wish you the best of luck!
"Live Long and Prosper..."
~Ambassador S'chn T'gai Spock
Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
I have lg g3 d855 and today i try 3 different room and whit every room i get error 6
where is mistake?
assert(getprop("ro.product.device") == "g3,d855" || getprop("ro.build.product") == "g3,d855" || getprop("ro.product.device") == "g3,d855" || getprop("ro.build.product") == "g3,d855" || abort("E3004: This package is for device: g3,d855; this device is " + getprop("ro.product.device") + ".");
assert(g3,d855.verify_baseband("21C:MPSS.DI.2.0.1.C1.13.2-00002") == "1");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print(" ");
ui_print("Flashing System..");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
Click to expand...
Click to collapse
Code:
ui_print("Mod : Lenovo File Manager");
ui_print("By : AbhayRuparel");
ui_print("Status : Mouting system");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
ui_print("Status : Adding filemanger ported");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/FileBrowser/FileBrowser.apk");
unmount("/system");
ui_print("Status : Done");
ui_print("Message : Reboot Mobile");
can anyone tell me why im getting error 6?
Hello xda,
I have about the same issue with my Zenfone3 (ze520kl)
I tried to flash lineage-14.1-20170408-Z017 with TWRP but got an error 7. (it said that my phone is a ze520kl and not Z017)
After some research, i found that the "assert" lines can be deleted.
The problem is that now that the error 7 isn't here anymore, there goes the error 6.
Here is the original code:
HTML:
(!less_than_int(1491664861, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Sat Apr 8 23:21:01 CST 2017) over newer build (" + getprop("ro.build.date") + ").");
assert(getprop("ro.product.device") == "ze520kl" || getprop("ro.build.product") == "Z017" || getprop("ro.product.device") == "ASUS_Z017D_1" || getprop("ro.build.product") == "ASUS_Z017D_1" || abort("E3004: This package is for device: Z017,ASUS_Z017D_1; this device is " + getprop("ro.product.device") + ";" +getprop("ro.build.product") "."););
ui_print("Target: asus/lineage_Z017/Z017:7.1.1/NOF27B/dfeb25c1ec:userdebug/test-keys");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
The lines I deleted were these ones:
HTML:
(!less_than_int(1491664861, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Sat Apr 8 23:21:01 CST 2017) over newer build (" + getprop("ro.build.date") + ").");
assert(getprop("ro.product.device") == "ze520kl" || getprop("ro.build.product") == "Z017" || getprop("ro.product.device") == "ASUS_Z017D_1" || getprop("ro.build.product") == "ASUS_Z017D_1" || abort("E3004: This package is for device: Z017,ASUS_Z017D_1; this device is " + getprop("ro.product.device") + ";" +getprop("ro.build.product") "."););
Do you guys have an idea on how to flash it properly?
Or eventually get rid of the error 6?
Post-scriptum: After my first try, I got the phone in a bootloop and TWRP says that there is no OS.
I tried to flash with several ROMs but no one got passed the error 7 or 6 in TWRP.
The version of TWRP I have is 3.0.2-0
Hello!
I faced with this issue too. Can anybody help me to solve? Here is the sricpt:
ui_print("****Enabling F2FS ...****");
ui_print("Extracting flashing tools...");
package_extract_dir("tools", "/tmp");
set_progress(0.2);
ui_print("Enabling F2FS...");
set_metadata_recursive("/tmp/f2fs.sh", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0777);
run_program("/tmp/f2fs.sh");
set_progress(0.6);
ui_print("F2FS enabled!");
set_progress(1.0);
Thanks in advance!
lenovo k5 flash rom 8.0
i am french
i have error 6
i have twrp recovery and custom rom 7.1.2 in external sdcard and i don't have a primary rom
help me please
tristan7700 said:
i am french
i have error 6
i have twrp recovery and custom rom 7.1.2 in external sdcard and i don't have a primary rom
help me please
Click to expand...
Click to collapse
Same for me
Twrp Error 6 (3.0.2.0) Need Urgent Help!!!
ui_print("******************************************");
ui_print("____________Micromax_Q346_Bolt____________");
ui_print("_________Project_Speed_mini_v.0.5 ________");
ui_print("******************************************");
set_progress(1.000000);
show_progress(0.500000, 0);
ui_print("format to partition /system...");
unmount("/system");
format("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");
ui_print("Unpacking system...");
package_extract_dir("system", "/system");
ui_print("Creating symlinks...");
symlink("/data/local/media/vbc_eq", "/system/vendor/firmware/vbc_eq");
symlink("/lib/modules/autotst.ko", "/system/lib/modules/autotst.ko");
symlink("/lib/modules/gator.ko", "/system/lib/modules/gator.ko");
symlink("/lib/modules/mmc_test.ko", "/system/lib/modules/mmc_test.ko");
symlink("/lib/modules/sprdwl.ko", "/system/lib/modules/sprdwl.ko");
symlink("/lib/modules/trout_fm.ko", "/system/lib/modules/trout_fm.ko");
symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");
symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");
symlink("/system/lib/libjni_jpegutil.so", "/system/app/Camera2/lib/arm/libjni_jpegutil.so");
symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");
symlink("/system/lib/libjni_tinyplanet.so", "/system/app/Camera2/lib/arm/libjni_tinyplanet.so");
symlink("/system/lib/libprintspooler_jni.so", "/system/app/PrintSpooler/lib/arm/libprintspooler_jni.so");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("app_process32", "/system/bin/app_process");
symlink("dalvikvm32", "/system/bin/dalvikvm");
symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
symlink("toolbox", "/system/bin/cat", "/system/bin/chcon",
"/system/bin/chmod", "/system/bin/chown", "/system/bin/clear",
"/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
"/system/bin/du", "/system/bin/getenforce", "/system/bin/getevent",
"/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep",
"/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig",
"/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl",
"/system/bin/ionice", "/system/bin/kill", "/system/bin/ln",
"/system/bin/load_policy", "/system/bin/log", "/system/bin/ls",
"/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",
"/system/bin/mkdir", "/system/bin/mknod", "/system/bin/mkswap",
"/system/bin/mount", "/system/bin/mv", "/system/bin/nandread",
"/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/nohup",
"/system/bin/notify", "/system/bin/printenv", "/system/bin/prlimit",
"/system/bin/ps", "/system/bin/readlink", "/system/bin/renice",
"/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/runcon",
"/system/bin/schedtop", "/system/bin/sendevent",
"/system/bin/setenforce", "/system/bin/setprop",
"/system/bin/setsebool", "/system/bin/sleep", "/system/bin/smd",
"/system/bin/start", "/system/bin/stop", "/system/bin/swapoff",
"/system/bin/swapon", "/system/bin/sync", "/system/bin/top",
"/system/bin/touch", "/system/bin/umount", "/system/bin/uptime",
"/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
ui_print("Set permissing...");
set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/bin/app_process32", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:zygote_exec:s0");
set_metadata("/system/bin/batterysrv", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:batterysrv_exec:s0");
set_metadata("/system/bin/bootanimation", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:bootanim_exec:s0");
set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:clatd_exec:s0");
set_metadata("/system/bin/cp_diskserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:cp_diskserver_exec:s0");
set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:debuggerd_exec:s0");
set_metadata("/system/bin/dex2oat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dex2oat_exec:s0");
set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dhcp_exec:s0");
set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dnsmasq_exec:s0");
set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:drmserver_exec:s0");
set_metadata("/system/bin/dumpstate", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dumpstate_exec:s0");
set_metadata("/system/bin/engpc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:engpc_exec:s0");
set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:hostapd_exec:s0");
set_metadata("/system/bin/install-recovery.sh", "uid", 0, "gid", 0, "mode", 0750, "capabilities", 0x0, "selabel", "ubject_r:install_recovery_exec:s0");
Please fix this script.!!!!Thanks in advance.
hi everyone, i know this thread is old but still useful for others who are experiencing same problem today so im gonna share you guys how to fix this one..
make sure to check your updater-script for errors, if you think there is no error then do the ff:
you need:
winrar or zip or 7z or similar...
1.) read the first comment by @mew1033 --- if you are still in trouble, then,
2.) search in the internet for a patch.zip <-- this .zip is usually a bug fix for a certain device. lets say the patch is called fix_fingerprint_goodix_santoni.zip or fpc_fix.zip etc...
open the patch.zip and extract the update-binary (located in META-INF / com / google / android / update-binary)
open your zip (META-INF / com / google / android / * to be exact) and replace it with the one you extracted, then try to flash.
note:
when opening your zip and make some changes to it, be sure to use the default settings of the archiver or else it wont be recognized with your twrp recovery.
Goodluck and happy flashing!
Error 6 /e/ OS
Hello,
excuse me in advance for my English, I use a translator.
I have a problem with the installation of /e/ OS on a Samsung A3 2016 I have the error message 6 that appears, I tried everything that was said, unfortunately nothing has changed ... If you can help me please, here is the code:
this device is " + getprop("ro.product.device") + ".");
ui_print("Target: samsung/lineage_a3xeltexx/a3xeltexx:8.1.0/OPM7.181205.001/a7cf732ec7:userdebug/dev-keys");
ifelse(is_mounted("/system"), unmount("/system");
ui_print(" ");
ui_print(" Thanks for installing ");
ui_print(" Source code available on GitHub : @Exynos7580 ");
ui_print(" ");
ui_print(" --> Maintainer: danwood76 ");
ui_print(" --> Device: Samsung Galaxy A3 2016 ");
ui_print(" ");
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/13540000.dwmmc0/by-name/BOOT");
show_progress(0.200000, 10);
set_progress(1.000000);
Thank you in advance for your help!
Hello,
i got TWRP Error 6
Code:
mount("yaffs2","MTD","system", "/system");
package_extract_dir() {
local entry outfile;
for entry in $(unzip -l "$ZIPFILE" 2>/dev/null | tail -n+4 | grep -v '/$' | grep -o " $1.*$" | cut -c2-); do
outfile="$(echo "$entry" | sed "s|${1}|${2}|")";
mkdir -p "$(dirname "$outfile")";
unzip -o "$ZIPFILE" "$entry" -p > "$outfile";
done;
}
unmount("/system");
ui_print("done");
ui_print("");
ui_print("[email protected]");
can you help me out?
007fred62 said:
Hello,
i got TWRP Error 6
Code:
mount("yaffs2","MTD","system", "/system");
package_extract_dir() {
local entry outfile;
for entry in $(unzip -l "$ZIPFILE" 2>/dev/null | tail -n+4 | grep -v '/$' | grep -o " $1.*$" | cut -c2-); do
outfile="$(echo "$entry" | sed "s|${1}|${2}|")";
mkdir -p "$(dirname "$outfile")";
unzip -o "$ZIPFILE" "$entry" -p > "$outfile";
done;
}
unmount("/system");
ui_print("done");
ui_print("");
ui_print("[email protected]");
can you help me out?
Click to expand...
Click to collapse
Your script is a mix of EDIFY script and SHELL script. That cannot work.
ui_print("#############");
ui_print("####MIUI#####");
ui_print("#############");
ui_print("###DEBLOAT###");
ui_print("#############");
ui_print("###ENGAGE!###");
ui_print("#############");
ui_print(" ");
ui_print("...Mounting System...");
ui_print(" ");
ui_print("------------------");
ui_print("ReMove Dual Apps Data folders v0.0.1");
ui_print("------------------");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
delete_recursive("/system/app/AiAsstVision");
delete_recursive("/system/app/AnalyticsCore");
delete_recursive("/system/app/BTProductionLineTool");
delete_recursive("/system/app/BasicDreams");
delete_recursive("/system/app/BookmarkProvider");
delete_recursive("/system/app/BuiltInPrintService");
delete_recursive("/system/app/Calculator");
delete_recursive("/system/app/CatchLog");
delete_recursive("/system/app/CloudService");
delete_recursive("/system/app/Cit");
delete_recursive("/system/app/CloudPrint2");
delete_recursive("/system/app/EasterEgg");
delete_recursive("/system/app/Email");
delete_recursive("/system/app/FM");
delete_recursive("/system/app/GooglePrintRecommendationService");
delete_recursive("/system/app/GoogleTTS");
delete_recursive("/system/app/GuardProvider");
delete_recursive("/system/app/Health");
delete_recursive("/system/app/HtmlViewer");
delete_recursive("/system/app/Joyose");
delete_recursive("/system/app/KSICibaEngine");
delete_recursive("/system/app/Lens");
delete_recursive("/system/app/mi_connect_service");
delete_recursive("/system/app/MiCloudSync");
delete_recursive("/system/app/MiDrive");
delete_recursive("/system/app/MarkupGoogle");
delete_recursive("/system/app/MiLinkService");
delete_recursive("/system/app/MiPlayClient");
delete_recursive("/system/app/MiRadio");
delete_recursive("/system/app/MiuiBugReport");
delete_recursive("/system/app/MiuiContentCatcher");
delete_recursive("/system/app/MiuiDaemon");
delete_recursive("/system/app/MiuiAccessibility");
delete_recursive("/system/app/MiuiScreenRecorder");
delete_recursive("/system/app/MiuiSuperMarket");
delete_recursive("/system/app/MiuiVideoGlobal");
delete_recursive("/system/app/NextPay");
delete_recursive("/system/app/PartnerBookmarksProvider");
delete_recursive("/system/app/PaymentService");
delete_recursive("/system/app/PrintRecommendationService");
delete_recursive("/system/app/PrintSpooler");
delete_recursive("/system/app/Protips");
delete_recursive("/system/app/slaservice");
delete_recursive("/system/app/SoterService
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/VsimCore
delete_recursive("/system/app/XMCloudEngine");
delete_recursive("/system/app/YellowPage");
delete_recursive("/system/app/YouDaoEngine");
delete_recursive("/system/app/greenguard");
delete_recursive("/system/app/lens");
delete_recursive("/system/app/mi_connect_service");
delete_recursive("/system/app/wps_lite");
delete_recursive("/system/app/Zman");
delete_recursive("/system/data-app/");
delete_recursive("/system/data-app/BaiduIME");
delete_recursive("/system/data-app/Email");
delete_recursive("/system/data-app/MiFinance");
delete_recursive("/system/data-app/MiMobileNoti");
delete_recursive("/system/data-app/MiShop");
delete_recursive("/system/data-app/XiaomiSpeechEngine");
delete_recursive("/system/data-app/cn.wps.moffice_eng");
delete_recursive("/system/data-app/com.eg.android.AlipayGphone");
delete_recursive("/system/data-app/com.taobao.taobao");
delete_recursive("/system/data-app/com.xunmeng.pinduoduo");
delete_recursive("/system/priv-app/BATestApp");
delete_recursive("/system/priv-app/CleanMaster");
delete_recursive("/system/priv-app/DynamicSystemInstallationService");
delete_recursive("/system/priv-app/GoogleFeedback");
delete_recursive("/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/priv-app/HotwordEnrollmentOKGoogleWCD9340");
delete_recursive("/system/priv-app/HotwordEnrollmentXGoogleWCD9340");
delete_recursive("/system/priv-app/MiMoverGlobal");
delete_recursive("/system/priv-app/MiRecycle");
delete_recursive("/system/priv-app/MiService");
delete_recursive("/system/priv-app/MiShare");
delete_recursive("/system/priv-app/PersonalAssistant");
delete_recursive("/system/priv-app/QuickSearchBox");
delete_recursive("/system/priv-app/Updater");
delete_recursive("/system/priv-app/Velvet");
delete_recursive("/system/priv-app/VpnDialogs");
delete_recursive("/system/priv-app/WellbeingPrebuilt");
delete_recursive("/system/priv-app/YellowPage");
delete_recursive("/system/product/app/GoogleLocationHistory");
delete_recursive("/system/product/app/GoogleTTS");
delete_recursive("/system/product/app/SoundPickerPrebuilt");
delete_recursive("/system/product/app/SoundPickerGoogle");
delete_recursive("/system/product/app/TrichomeLibrary");
delete_recursive("/system/product/app/uceShimService");
delete_recursive("/system/product/app/xdivert");
delete_recursive("/system/product/priv-app/AndroidAutoStrub");
delete_recursive("/system/product/priv-app/CarrierServices");
delete_recursive("/system/product/priv-app/GoogleAssistant");
delete_recursive("/system/product/priv-app/GoogleFeedback");
delete_recursive("/system/product/priv-app/HotwordEnrollmentOKGoogleHE");
delete_recursive("/system/product/priv-app/HotwordEnrollmentXGoogleHEX");
delete_recursive("/system/product/priv-app/Launcher3QuickStep");
delete_recursive("/system/product/priv-app/Velvet");
delete_recursive("/system/vendor/app/CneApp");
delete_recursive("/system/vendor/app/aiasst_service");
delete_recursive("/system/vendor/data-app/");
delete_recursive("/system/vendor/data-app/SmartHome");
delete_recursive("/system/vendor/data-app/aiasst_service");
delete_recursive("/system/vendor/data-app/wps-lite");
# Removals COMPLETE
run_program("/sbin/busybox", "umount", "/system");
ui_print("Done!");
Please fix this script.!!!!Thanks in advance.

Categories

Resources