[ROM][SGH-T399][STOCK 4.2.2][DEODEXED]Stock Galaxy Light - Samsung Galaxy Light ROMs, Kernels, Recoveries, &

Stock 4.2.2 Deodexed Galaxy Light ROM​
From Stock Firmware​
DO NOT INSTALL, ROM CURRENTLY DOES NOT FLASH
This ROM was built based on ODiN flashable file found here.
With the glory of the ever reliable dsixda Kitchen.
Let's help raise development for this device, I encourage anybody to build ROMs based on this and/or try and learn to make one.
The only thing modified about this ROM is that it is DEODEXED, [highlight]it is not rooted[/highlight].
Want a deodexed rooted stock ROM for Metro version [T399N] look here
[highlight]DISCLAIMER[/highlight]
Code:
It is advised that you have a backup of your device before attempting to flash this or any ROM, also make sure you have a 20%+ battery charge and/or is charging .
I am not responsible if you device gets bricked during or after the process of flashing this.
Links
V1: https://www.androidfilehost.com/?fid=24052804347774930
Directory:
Screenshots
Changelog
Suggestions?

--reserved--

--reserved2--

--reserved3--

is this rom up and working properly? Also can it be flashed through twrp?

Koohara947 said:
is this rom up and working properly? Also can it be flashed through twrp?
Click to expand...
Click to collapse
its stock just without all the bloatware so should work fine, and it can be flashed via TWRP since its a zip file

kireflow90 said:
its stock just without all the bloatware so should work fine, and it can be flashed via TWRP since its a zip file
Click to expand...
Click to collapse
I tried flashing through TWRP and it said error connot mount /preload

Koohara947 said:
I tried flashing through TWRP and it said error connot mount /preload
Click to expand...
Click to collapse
hmm I'm not sure. @AcreaperJB do you know what would cause that?

kireflow90 said:
hmm I'm not sure. @AcreaperJB do you know what would cause that?
Click to expand...
Click to collapse
Yea it did that when I flashed a gapps package recently but the gapps still works lol so I have no idea

Koohara947 said:
I tried flashing through TWRP and it said error connot mount /preload
Click to expand...
Click to collapse
Error is caused by twrp use lastest one for device 2.8.4.0 then it will flash

DJBoxer said:
Error is caused by twrp use lastest one for device 2.8.4.0 then it will flash
Click to expand...
Click to collapse
oh ok nice thankyou for your help . One more thing, can this rom get the ota updates as well?

Koohara947 said:
oh ok nice thankyou for your help . One more thing, can this rom get the ota updates as well?
Click to expand...
Click to collapse
This rom is just a deodexed rom with a stock base (Untouched) so as far OTA i would say yes if it has the complete set of samsung bloat intact. If your looking for custom stock i have tigerlilly my sig is clickable if your on tmo just swap modem then flash.

DJBoxer said:
This rom is just a deodexed rom with a stock base (Untouched) so as far OTA i would say yes if it has the complete set of samsung bloat intact. If your looking for custom stock i have tigerlilly my sig is clickable if your on tmo just swap modem then flash.
Click to expand...
Click to collapse
Yea so i tried installing it and it gave me an error this is what it says "Error executing updater binary in zip '/external_sd/garaltemo_signed_071515_183028.zip" Any idea on how to fix this? Also how would I come by flashing different modem?

Koohara947 said:
Yea so i tried installing it and it gave me an error this is what it says "Error executing updater binary in zip '/external_sd/garaltemo_signed_071515_183028.zip" Any idea on how to fix this?
Click to expand...
Click to collapse
Error executing updater binary in zip '/external_sd/garaltemo_signed_071515_183028.zip means that that the updater script or binary is corrupt im guessing its missing the correct mount paths i`l download it and take a look.

DJBoxer said:
Error executing updater binary in zip '/external_sd/garaltemo_signed_071515_183028.zip means that that the updater script or binary is corrupt im guessing its missing the correct mount paths i`l download it and take a look.
Click to expand...
Click to collapse
Thanks man yea I was thinking maybe its looking for a different device mosel and needs to be changed to the sgh-t399. And sorry for asking again but how do you flash a different modem? If i can I will use your rom

Koohara947 said:
Yea so i tried installing it and it gave me an error this is what it says "Error executing updater binary in zip '/external_sd/garaltemo_signed_071515_183028.zip" Any idea on how to fix this? Also how would I come by flashing different modem?
Click to expand...
Click to collapse
Koohara947 said:
Thanks man yea I was thinking maybe its looking for a different device mosel and needs to be changed to the sgh-t399. And sorry for asking again but how do you flash a different modem? If i can I will use your rom
Click to expand...
Click to collapse
-start Odin.
-Select "phone" and fetch the modem.bin file.
-Only thing checked should be "Auto Reboot"
-Put phone in download mode
-Plug in USB Wait Till You See Device
-hit Start
Let it reboot thats it
The updater script needs editing im looking at it at moment its been made with dsixda which is old and not supported to our device paths are reading mount, "/system") which is wrong should be this mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system"); same with /data and boot img is reading from tmp path so it fail.
I fix it in my next post i add correct script for this rom.
in mine i didnt add modem to rom so it wont overwrite the tmo one you be able to flash it fine just it will say metropcs instead of tmo not tested myself im just assuming it would either that or i do it for both varients easy done.
edit ##
Not going to upload script after further looking at this rom the base is old and i will add a tmo version of tigerlilly with lastest base.

DJBoxer said:
-start Odin.
-Select "phone" and fetch the modem.bin file.
-Only thing checked should be "Auto Reboot"
-Put phone in download mode
-Plug in USB Wait Till You See Device
-hit Start
Let it reboot thats it
The updater script needs editing im looking at it at moment its been made with dsixda which is old and not supported to our device paths are reading mount, "/system") which is wrong should be this mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system"); same with /data and boot img is reading from tmp path so it fail.
I fix it in my next post i add correct script for this rom.
in mine i didnt add modem to rom so it wont overwrite the tmo one you be able to flash it fine just it will say metropcs instead of tmo not tested myself im just assuming it would either that or i do it for both varients easy done.
edit ##
Not going to upload script after further looking at this rom the base is old and i will add a tmo version of tigerlilly with lastest base.
Click to expand...
Click to collapse
May I ask how you built your ROM from source? Been spending hours trying to get right paths for kitchen pre build. Also can you pm the script?

DJBoxer said:
-start Odin.
-Select "phone" and fetch the modem.bin file.
-Only thing checked should be "Auto Reboot"
-Put phone in download mode
-Plug in USB Wait Till You See Device
-hit Start
Let it reboot thats it
The updater script needs editing im looking at it at moment its been made with dsixda which is old and not supported to our device paths are reading mount, "/system") which is wrong should be this mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system"); same with /data and boot img is reading from tmp path so it fail.
I fix it in my next post i add correct script for this rom.
in mine i didnt add modem to rom so it wont overwrite the tmo one you be able to flash it fine just it will say metropcs instead of tmo not tested myself im just assuming it would either that or i do it for both varients easy done.
edit ##
Not going to upload script after further looking at this rom the base is old and i will add a tmo version of tigerlilly with lastest base.
Click to expand...
Click to collapse
Sounds like a plan, thankyou for looking into this for me and for everyone else that was experiencing this issue. I will definitely check out your tmo version of tigerlilly when it is released :laugh:

AcreaperJB said:
May I ask how you built your ROM from source? Been spending hours trying to get right paths for kitchen pre build. Also can you pm the script?
Click to expand...
Click to collapse
yes i will pm paths to you im going out in moment so be in few hours.

I modded your updater script this should work fine change the ui print to suit you i just mended it to be basic.
Code:
ui_print("=======================================");
ui_print("| AcreaperJB 4.2.2 |");
ui_print("=======================================");
ui_print("Lets Begin........");
ui_print("Mounting System...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
unmount("/system");
show_progress(0.500000, 0);
ui_print("Mounting Data.....");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/data");
unmount("/data");
ui_print("Formating System..");
format("ext4", "EMMC", "/dev/block/mmcblk0p20", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
ui_print("Installing Acreaper 4.2.2 System............");
ui_print("Please Wait This Will Take Few Moments..");
package_extract_dir("system", "/system");
symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
symlink("../xbin/su", "/system/bin/su");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
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/chcon",
"/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
"/system/xbin/chroot", "/system/xbin/chvt", "/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/deallocvt", "/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/fbsplash", "/system/xbin/fdisk", "/system/xbin/fgconsole",
"/system/xbin/fgrep", "/system/xbin/find", "/system/xbin/findfs",
"/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/fstrim",
"/system/xbin/fsync", "/system/xbin/ftpget", "/system/xbin/ftpput",
"/system/xbin/fuser", "/system/xbin/getenforce", "/system/xbin/getopt",
"/system/xbin/getsebool", "/system/xbin/grep", "/system/xbin/groups",
"/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
"/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/hwclock",
"/system/xbin/id", "/system/xbin/ifconfig", "/system/xbin/inetd",
"/system/xbin/insmod", "/system/xbin/install", "/system/xbin/ionice",
"/system/xbin/iostat", "/system/xbin/ip", "/system/xbin/kill",
"/system/xbin/killall", "/system/xbin/killall5", "/system/xbin/less",
"/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
"/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lspci",
"/system/xbin/lsusb", "/system/xbin/lzcat", "/system/xbin/lzma",
"/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/man",
"/system/xbin/matchpathcon", "/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/nbd-client", "/system/xbin/netstat", "/system/xbin/nice",
"/system/xbin/nmeter", "/system/xbin/nohup", "/system/xbin/nslookup",
"/system/xbin/ntpd", "/system/xbin/od", "/system/xbin/openvt",
"/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
"/system/xbin/ping", "/system/xbin/pipe_progress", "/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/rdate",
"/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
"/system/xbin/renice", "/system/xbin/reset", "/system/xbin/resize",
"/system/xbin/restorecon", "/system/xbin/rev", "/system/xbin/rm",
"/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
"/system/xbin/run-parts", "/system/xbin/runcon", "/system/xbin/rx",
"/system/xbin/sed", "/system/xbin/selinuxenabled", "/system/xbin/seq",
"/system/xbin/sestatus", "/system/xbin/setconsole",
"/system/xbin/setenforce", "/system/xbin/setfiles",
"/system/xbin/setkeycodes", "/system/xbin/setsebool",
"/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
"/system/xbin/sha1sum", "/system/xbin/sha256sum",
"/system/xbin/sha3sum", "/system/xbin/sha512sum", "/system/xbin/sleep",
"/system/xbin/smemcap", "/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("libGLESv2.so", "/system/lib/libGLESv3.so");
symlink("logcat", "/system/bin/lolcat");
symlink("mksh", "/system/bin/sh");
symlink("mount.exfat", "/system/bin/fsck.exfat",
"/system/bin/mkfs.exfat");
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/mkswap", "/system/bin/mount",
"/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/r", "/system/bin/readlink",
"/system/bin/renice", "/system/bin/restart", "/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/setconsole",
"/system/bin/setenforce", "/system/bin/setfattr", "/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("System Install Complete...................");
ui_print("Setting Up Permissions....................");
set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/bin/app_process", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:zygote_exec:s0");
set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:clatd_exec:s0");
set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:debuggerd_exec:s0");
set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dhcp_exec:s0");
set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dnsmasq_exec:s0");
set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:drmserver_exec:s0");
set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:hostapd_exec:s0");
set_metadata("/system/bin/installd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:installd_exec:s0");
set_metadata("/system/bin/keystore", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:keystore_exec:s0");
set_metadata("/system/bin/mediaserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mediaserver_exec:s0");
set_metadata("/system/bin/mksh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:shell_exec:s0");
set_metadata("/system/bin/mtpd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mtp_exec:s0");
set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/bin/netd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:netd_exec:s0");
set_metadata("/system/bin/ping", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ping_exec:s0");
set_metadata("/system/bin/pppd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ppp_exec:s0");
set_metadata("/system/bin/racoon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:racoon_exec:s0");
set_metadata("/system/bin/rild", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:rild_exec:s0");
set_metadata("/system/bin/run-as", "uid", 0, "gid", 2000, "mode", 0750, "capabilities", 0xc0, "selabel", "u:object_r:runas_exec:s0");
set_metadata("/system/bin/sdcard", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:sdcardd_exec:s0");
set_metadata("/system/bin/servicemanager", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:servicemanager_exec:s0");
set_metadata("/system/bin/surfaceflinger", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:surfaceflinger_exec:s0");
set_metadata("/system/bin/vold", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:vold_exec:s0");
set_metadata("/system/bin/wpa_supplicant", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:wpa_exec:s0");
set_metadata_recursive("/system/etc/dhcpcd", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:dhcp_system_file:s0");
set_metadata("/system/etc/dhcpcd/dhcpcd-run-hooks", "uid", 1014, "gid", 2000, "mode", 0550, "capabilities", 0x0, "selabel", "u:object_r:dhcp_system_file:s0");
set_metadata_recursive("/system/etc/init.d", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/etc/init.d", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", 0x0, "selabel", "u:object_r:ppp_system_file:s0");
set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/vendor/etc", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/etc/audio_effects.conf", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib/hw", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/vendor/lib/mediadrm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib/mediadrm/libwvdrmengine.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/xbin/librank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/xbin/procmem", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/xbin/procrank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/xbin/su", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
ui_print("Permissions Complete............");
ui_print("Installing Boot image");
show_progress(0.200000, 10);
package_extract_file("boot.img", "/dev/block/mmcblk0p9");
show_progress(0.100000, 0);
ui_print("Boot Image Complete.............");
ui_print("Unmounting System...............");
unmount("/system");
ui_print("System Unmounted................");
ui_print("=======================================");
ui_print("| Install Complete |");
ui_print("=======================================");
i added zip file containing script with metadata also binary this should solve flash issues and will work with the up to date twrp 2.8.4.0 if your not going to root remove the su lines personally i add root to my roms and let the user uninstall it.
Any more questions feel free to contact me.
i try me best to help ya.

Related

Help with updater script

Hi, i'm trying to make a RCMix S v1.2 with data2sd in one installation.
after the insllation i do reboot but i get an error in the logcat
Code:
link_image[1967]: 76 could not load needed library 'libstdc++.so' for '/system/bin/sh' (load_library[1109]: Library 'libstdc++.so' not found)CANNOT LINK EXECUTABLE
this is my script:
Code:
mount("MTD","userdata","/data");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
show_progress(0.500000, 0);
package_extract_dir("sdext", "/sd-ext");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/app_s");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/lib_s");
delete("/sd-ext/HtcLockScreen.apk");
package_extract_dir("scripts", "/tmp");
set_perm(0, 0, 0700, "/tmp/data2sdscript.sh");
run_program("/tmp/data2sdscript.sh");
package_extract_dir("sdext", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app_s");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/lib_s");
show_progress(0.100000, 10);
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/etc");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/local");
format("MTD", "system");
mount("MTD", "system", "/system");
# Start checking data partition
# End checking data partition
show_progress(0.100000, 10);
package_extract_dir("system", "/system");
symlink("/sd-ext/app_s/BlackBoard.apk","/system/app/BlackBoard.apk");
symlink("/sd-ext/app_s/HtcLaputa.apk","/system/app/HtcLaputa.apk");
symlink("/sd-ext/app_s/LatinIME.apk","/system/app/LatinIME.apk");
symlink("/sd-ext/app_s/Metal.apk","/system/app/Metal.apk");
symlink("/sd-ext/app_s/Slate.apk","/system/app/Slate.apk");
symlink("/sd-ext/app_s/Wood.apk","/system/app/Wood.apk");
symlink("/sd-ext/lib_s/libAdobeReader.so", "/system/lib/libAdobeReader.so");
symlink("/sd-ext/lib_s/libflashplayer.so", "/system/lib/libflashplayer.so");
symlink("/sd-ext/lib_s/libLaputaEngine.so", "/system/lib/libLaputaEngine.so");
symlink("/sd-ext/lib_s/libnativedocviewer.so", "/system/lib/libnativedocviewer.so");
symlink("/sd-ext/lib_s/libtalk_jni.so", "/system/lib/libtalk_jni.so");
symlink("/sd-ext/lib_s/libwt6docrdr.so", "/system/lib/libwt6docrdr.so");
symlink("/proc/calibration", "/system/etc/calibration");
symlink("/data/etc/hosts","/system/etc/hosts");
symlink("/data/local/bootanimation.zip","/system/customize/resource/bootanimation.zip");
symlink("/data/local/downanimation.zip","/system/customize/resource/downanimation.zip");
symlink("toolbox", "/system/bin/cat","/system/bin/chmod",
"/system/bin/chown","/system/bin/chownto",
"/system/bin/cmp","/system/bin/date",
"/system/bin/dd","/system/bin/df",
"/system/bin/dmesg","/system/bin/getevent",
"/system/bin/getprop","/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/log","/system/bin/ls",
"/system/bin/lsmod","/system/bin/mkdir",
"/system/bin/mount","/system/bin/mv",
"/system/bin/nandread","/system/bin/netstat",
"/system/bin/newfs_msdos","/system/bin/notify",
"/system/bin/printenv","/system/bin/ps",
"/system/bin/renice","/system/bin/rm",
"/system/bin/rmdir","/system/bin/rmmod",
"/system/bin/route","/system/bin/schedtop",
"/system/bin/sendevent","/system/bin/setconsole",
"/system/bin/setprop","/system/bin/sleep",
"/system/bin/smd","/system/bin/start",
"/system/bin/stop","/system/bin/sync",
"/system/bin/top","/system/bin/umount",
"/system/bin/vmstat","/system/bin/watchprops",
"/system/bin/wipe");
symlink("busybox", "/system/xbin/[","/system/xbin/[[","/system/xbin/addgroup",
"/system/xbin/adduser","/system/xbin/adjtimex","/system/xbin/ar",
"/system/xbin/arp","/system/xbin/arping","/system/xbin/ash",
"/system/xbin/awk","/system/xbin/basename","/system/xbin/bbconfig",
"/system/xbin/beep","/system/xbin/blkid","/system/xbin/brctl",
"/system/xbin/bunzip2","/system/xbin/bzcat","/system/xbin/bzip2",
"/system/xbin/cal","/system/xbin/cat","/system/xbin/catv",
"/system/xbin/chat","/system/xbin/chattr","/system/xbin/chgrp",
"/system/xbin/chmod","/system/xbin/chown","/system/xbin/chpasswd",
"/system/xbin/chpst","/system/xbin/chroot","/system/xbin/chrt",
"/system/xbin/chvt","/system/xbin/cksum","/system/xbin/clear",
"/system/xbin/cmp","/system/xbin/comm","/system/xbin/cp",
"/system/xbin/cpio","/system/xbin/crond","/system/xbin/crontab",
"/system/xbin/cryptpw","/system/xbin/cttyhack","/system/xbin/cut",
"/system/xbin/date","/system/xbin/dc","/system/xbin/dd",
"/system/xbin/deallocvt","/system/xbin/delgroup","/system/xbin/deluser",
"/system/xbin/depmod","/system/xbin/devmem","/system/xbin/df",
"/system/xbin/diff","/system/xbin/dirname","/system/xbin/dmesg",
"/system/xbin/dnsd","/system/xbin/dnsdomainname","/system/xbin/dos2unix",
"/system/xbin/du","/system/xbin/dumpkmap","/system/xbin/echo",
"/system/xbin/ed","/system/xbin/egrep","/system/xbin/eject",
"/system/xbin/env","/system/xbin/envdir","/system/xbin/envuidgid",
"/system/xbin/ether-wake","/system/xbin/expand","/system/xbin/expr",
"/system/xbin/fakeidentd","/system/xbin/false","/system/xbin/fbset",
"/system/xbin/fbsplash","/system/xbin/fdflush","/system/xbin/fdformat",
"/system/xbin/fdisk","/system/xbin/fgrep","/system/xbin/find",
"/system/xbin/findfs","/system/xbin/fold","/system/xbin/free",
"/system/xbin/fsck","/system/xbin/fsck.minix","/system/xbin/fsync",
"/system/xbin/ftpd","/system/xbin/ftpget","/system/xbin/ftpput",
"/system/xbin/fuser","/system/xbin/getopt","/system/xbin/getty",
"/system/xbin/grep","/system/xbin/gunzip","/system/xbin/gzip",
"/system/xbin/halt","/system/xbin/hd","/system/xbin/hdparm",
"/system/xbin/head","/system/xbin/hexdump","/system/xbin/hostid",
"/system/xbin/hostname","/system/xbin/httpd","/system/xbin/hush",
"/system/xbin/hwclock","/system/xbin/id","/system/xbin/ifconfig",
"/system/xbin/ifdown","/system/xbin/ifenslave","/system/xbin/ifplugd",
"/system/xbin/ifup","/system/xbin/inetd","/system/xbin/init",
"/system/xbin/insmod","/system/xbin/install","/system/xbin/ionice",
"/system/xbin/ip","/system/xbin/ipaddr","/system/xbin/ipcalc",
"/system/xbin/ipcrm","/system/xbin/ipcs","/system/xbin/iplink",
"/system/xbin/iproute","/system/xbin/iprule","/system/xbin/iptunnel",
"/system/xbin/kbd_mode","/system/xbin/kill","/system/xbin/killall",
"/system/xbin/killall5","/system/xbin/klogd","/system/xbin/last",
"/system/xbin/length","/system/xbin/less","/system/xbin/linux32",
"/system/xbin/linux64","/system/xbin/linuxrc","/system/xbin/ln",
"/system/xbin/loadfont","/system/xbin/loadkmap","/system/xbin/logger",
"/system/xbin/login","/system/xbin/logname","/system/xbin/logread",
"/system/xbin/losetup","/system/xbin/lpd","/system/xbin/lpq",
"/system/xbin/lpr","/system/xbin/ls","/system/xbin/lsattr",
"/system/xbin/lsmod","/system/xbin/lzmacat","/system/xbin/lzop",
"/system/xbin/lzopcat","/system/xbin/makedevs","/system/xbin/makemime",
"/system/xbin/man","/system/xbin/md5sum","/system/xbin/mdev",
"/system/xbin/mesg","/system/xbin/microcom","/system/xbin/mkdir",
"/system/xbin/mkdosfs","/system/xbin/mkfifo","/system/xbin/mkfs.minix",
"/system/xbin/mkfs.vfat","/system/xbin/mknod","/system/xbin/mkpasswd",
"/system/xbin/mkswap","/system/xbin/mktemp","/system/xbin/modprobe",
"/system/xbin/more","/system/xbin/mount","/system/xbin/mountpoint",
"/system/xbin/msh","/system/xbin/mt","/system/xbin/mv","/system/xbin/nameif",
"/system/xbin/nc","/system/xbin/netstat","/system/xbin/nice",
"/system/xbin/nmeter","/system/xbin/nohup","/system/xbin/nslookup",
"/system/xbin/od","/system/xbin/openvt","/system/xbin/passwd",
"/system/xbin/patch","/system/xbin/pgrep","/system/xbin/pidof",
"/system/xbin/ping","/system/xbin/ping6","/system/xbin/pipe_progress",
"/system/xbin/pivot_root","/system/xbin/pkill","/system/xbin/popmaildir",
"/system/xbin/poweroff","/system/xbin/printenv","/system/xbin/printf",
"/system/xbin/ps","/system/xbin/pscan","/system/xbin/pwd","/system/xbin/raidautorun",
"/system/xbin/rdate","/system/xbin/rdev","/system/xbin/readahead",
"/system/xbin/readlink","/system/xbin/readprofile","/system/xbin/realpath",
"/system/xbin/reformime","/system/xbin/renice","/system/xbin/reset",
"/system/xbin/resize","/system/xbin/rm","/system/xbin/rmdir",
"/system/xbin/rmmod","/system/xbin/route","/system/xbin/rtcwake",
"/system/xbin/run-parts","/system/xbin/runlevel","/system/xbin/runsv",
"/system/xbin/runsvdir","/system/xbin/rx","/system/xbin/script",
"/system/xbin/scriptreplay","/system/xbin/sed","/system/xbin/sendmail",
"/system/xbin/seq","/system/xbin/setarch","/system/xbin/setconsole",
"/system/xbin/setfont","/system/xbin/setkeycodes","/system/xbin/setlogcons",
"/system/xbin/setsid","/system/xbin/setuidgid","/system/xbin/sh",
"/system/xbin/sha1sum","/system/xbin/sha256sum","/system/xbin/sha512sum",
"/system/xbin/showkey","/system/xbin/slattach","/system/xbin/sleep",
"/system/xbin/softlimit","/system/xbin/sort","/system/xbin/split",
"/system/xbin/start-stop-daemon","/system/xbin/stat","/system/xbin/strings",
"/system/xbin/stty","/system/xbin/sulogin","/system/xbin/sum",
"/system/xbin/sv","/system/xbin/svlogd","/system/xbin/swapoff",
"/system/xbin/swapon","/system/xbin/switch_root","/system/xbin/sync",
"/system/xbin/sysctl","/system/xbin/syslogd","/system/xbin/tac",
"/system/xbin/tail","/system/xbin/tar","/system/xbin/tcpsvd",
"/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/tty","/system/xbin/ttysize",
"/system/xbin/tunctl","/system/xbin/udpsvd","/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/unzip","/system/xbin/uptime",
"/system/xbin/usleep","/system/xbin/uudecode","/system/xbin/uuencode",
"/system/xbin/vconfig","/system/xbin/vi","/system/xbin/vlock",
"/system/xbin/volname","/system/xbin/watch","/system/xbin/watchdog",
"/system/xbin/wc","/system/xbin/wget","/system/xbin/which",
"/system/xbin/who","/system/xbin/whoami","/system/xbin/xargs",
"/system/xbin/yes","/system/xbin/zcat","/system/xbin/zcip");
show_progress(0.100000, 5);
show_progress(0.100000, 10);
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3003, 06755, "/system/bin/netd");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06755, "/system/bin/reboot");
set_perm(0, 2000, 06755, "/system/bin/run-as");
set_perm(0, 0, 0777, "/system/bin/strt");
set_perm(0, 0, 0777, "/system/bin/ssts");
set_perm(0, 0, 0777, "/system/bin/prio");
set_perm(0, 0, 0777, "/system/bin/camprio");
set_perm(0, 0, 0777, "/system/bin/close");
set_perm(0, 0, 0777, "/system/bin/unionfs");
set_perm(0, 0, 0777, "/system/bin/nano");
set_perm(0, 0, 0777, "/system/bin/sysrw");
set_perm(0, 0, 0777, "/system/bin/sysro");
set_perm(0, 0, 0777, "/system/bin/optmz");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/xbin/sqlite3");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
delete_recursive("/data/data/com.noshufou.android.su");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm(0, 0, 04755, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/sysrw");
set_perm(0, 0, 04755, "/system/bin/fix_permissions");
symlink("/system/xbin/busybox","/system/xbin/bb/ifconfig");
symlink("/system/xbin/busybox","/system/xbin/bb/route");
symlink("/system/bin/bash", "/system/xbin/bash");
set_perm(0, 0, 04755, "/system/xbin/openvpn");
set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm(0, 0, 04755, "/system/bin/bash");
set_perm(0, 0, 04755, "/system/xbin/dropbear");
set_perm(0, 0, 04755, "/system/xbin/flash_image");
set_perm(0, 0, 04755, "/system/xbin/dump_image");
set_perm (0, 0, 0777, "/system/bin/a2sd");
set_perm (0, 0, 0777, "/system/etc/init.d/99complete");
set_perm (0, 0, 0777, "/system/bin/launcha2sd");
set_perm (0, 0, 0777, "/system/bin/starta2sd");
set_perm (0, 0, 0777, "/system/bin/chka2sd");
set_perm (0, 0, 0777, "/system/bin/zipalign");
set_perm (0, 0, 0777, "/system/bin/sysinit");
set_perm (0, 0, 0777, "/system/bin/bash");
set_perm (0, 0, 0777, "/system/bin/busybox.a2sd");
set_perm (0, 0, 0644, "/system/bin/apps2sd.hlp");
set_perm (0, 0, 0777, "/system/bin/dtinstall");
set_perm (0, 0, 0777, "/data/dtinstall.launch");
set_perm (0, 0, 0777, "/system/bin/e2fsck");
set_perm (0, 0, 0777, "/system/bin/tune2fs");
set_perm (0, 0, 0777, "/system/bin/fix_permissions");
symlink("dropbear","/system/xbin/dropbearkey");
symlink("dropbear","/system/xbin/dbclient");
symlink("dropbear","/system/xbin/ssh");
symlink("/data/local/resolv.conf","/system/etc/resolv.conf");
set_perm(0, 0, 0644, "/data/local/resolv.conf");
set_perm(0, 0, 0755, "/data/xbin/set_resolvconf");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
delete("/system/bin/su");
symlink("/system/xbin/su","/system/bin/su");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
ui_print("Writing boot.img ...");
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
assert(package_extract_file("boot.img","/tmp/boot.img"),
write_raw_image("/tmp/boot.img","boot"),
delete("/tmp/boot.img"));
show_progress(10.000000, 1);
unmount("/system");
unmount("/data");
Please help me fix it, THANKS!

Help to recompile an update-script

Hi Guys!
Can anyone help me to recompile this script
Code:
delete_recursive("/system/app");
delete_recursive("/system/framework");
package_extract_dir("system", "/system");
set_perm(0, 0, 04755, "/system/xbin/sqlite3");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/sh");
set_perm(0, 0, 04755, "/system/xbin/busybox");
adding to this (from simplestas) in one script:
Code:
show_progress(0.600000, 3);
package_extract_dir("system", "/system");
set_perm(0, 0, 0777, "/system/bin/pvrsrvinit");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0777, "/system/bootmenu/2nd-init");
delete_recursive("/data/data/com.motorola.Camera");
delete("/system/app/BlurCamera.odex");
show_progress(0.300000, 2);
assert(package_extract_file("CG35.smg", "/tmp/CG35.smg"),
write_raw_image("/tmp/CG35.smg", "/dev/block/mmcblk1p15"),
delete("/tmp/CG35.smg"));
assert(package_extract_file("CG61.smg", "/tmp/CG61.smg"),
write_raw_image("/tmp/CG61.smg", "/dev/block/mmcblk1p12"),
delete("/tmp/CG61.smg"));
show_progress(0.100000, 0);
thanks for any advice!

[Q] Help, trying to modify a updater script

So I am keep on getting Installation Aborted because Im doing something wrong in the updater script
I am trying to add in data/app into a rom.
I already have data/app in the rom zip already with apps in it.
I want all the apps to be installed during the flash of this rom.
this is the code im adding in the middle of nowhere in the updater-script.
Code:
package_extract_dir("data", "/data");
can anyone help me out ?
here is a download link to the updater script im trying to modify.
http://www.mediafire.com/?g8lk25dli08z919
ORIGINAL FULL SCRIPT
Code:
ui_print("Checking Model ID ...");
assert(getprop("ro.product.device") == "ace" || getprop("ro.build.product") == "ace" || getprop("ro.product.board") == "ace");
ui_print("...PASSED");
ui_print(" ");
ui_print("Flashing SCI-MIUI 2.2.10v1.0 ...");
ui_print(" ");
ui_print("formate /system ...");
format("ext4", "EMMC", "/dev/block/mmcblk0p25");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");
ui_print("extracting /system ...");
package_extract_dir("system", "/system");
assert(run_program("/sbin/grep","androidboot.mid=PD9812000","/proc/cmdline") == "0"
&& ui_print("Inspire 4G detected...")
&& delete_recursive("/system/etc/soundimage")
&& package_extract_dir("inspire", "/system")
|| ui_print(" "));
ui_print(" ");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
"/system/xbin/base64", "/system/xbin/basename", "/system/xbin/bbconfig",
"/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/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/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/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/tty", "/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", "/system/bin/cmp",
"/system/bin/date", "/system/bin/dd", "/system/bin/dmesg",
"/system/bin/getevent", "/system/bin/getprop", "/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/log", "/system/bin/lsmod",
"/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",
"/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route",
"/system/bin/schedtop", "/system/bin/sendevent",
"/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
"/system/bin/smd", "/system/bin/start", "/system/bin/stop",
"/system/bin/sync", "/system/bin/top", "/system/bin/uptime",
"/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
symlink("/system/bin/bash", "/system/bin/sh");
symlink("/system/bin/bash", "/system/xbin/sh");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 04755, "/system/bin/sysrw");
set_perm(0, 0, 04755, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/nano");
set_perm(0, 0, 04755, "/system/bin/bash");
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, 0, 06755, "/system/xbin/apply_firewall");
set_perm(0, 0, 06755, "/system/xbin/apply_theme");
set_perm(0, 0, 06755, "/system/xbin/dumplog");
set_perm(0, 0, 06755, "/system/xbin/hcitool");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/mv2sd");
set_perm(0, 0, 06755, "/system/xbin/ota");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
ui_print("flashing boot.img ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p22");
package_extract_file("boot.img", "/tmp/boot.img");
ui_print("extracting LorDMod kernel...");
package_extract_dir("kernel", "/tmp");
ui_print("installing kernel...");
set_perm(0, 0, 0777, "/tmp/dd");
set_perm(0, 0, 0777, "/tmp/mkbootimg.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
ui_print("repack kernel files...");
run_program("/tmp/unpackbootimg", "/tmp/boot.img", "/tmp/");
run_program("/tmp/mkbootimg.sh");
assert(write_raw_image("/tmp/newboot.img", "/dev/block/mmcblk0p22"),
delete("/tmp/boot.img"));
ui_print("wiping /cache ...");
unmount("/cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p27");
ui_print("wiping dalvik-cache ...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
ui_print("FINISHED!");
ui_print("");
ui_print("SCI MIUI successfully installed.");
unmount("/system");
unmount("/data");
ui_print(" ______________________________________________");
ui_print("");
ui_print(" SSSSS CCCCC IIIIIIII");
ui_print(" SSS SSS CCC CC II");
ui_print(" SSS SS CC II");
ui_print(" SSSS CC II");
ui_print(" SSSS CC II");
ui_print(" SS SSS CC II");
ui_print(" SSS SSS CCC CC II");
ui_print(" SSSSS CCCC IIIIIIII");
ui_print("");
ui_print(" ___________________by a user__________________");
ui_print("");
My phone is an Inspire 4G aka Desire HD
Where are you inserting it? You need to mount /data before you can extract files to it; if you look at the script there's a line mounting /system immediately before the package_extract_dir command; you'll need to do a similar thing for the /data partition (you can either copy the mount/unmount pair of commands used for /data further down the script where the dalvik-cache is cleared, or just move that mount command from there to an earlier point in the script instead).
hopscotchjunkie said:
Where are you inserting it? You need to mount /data before you can extract files to it; if you look at the script there's a line mounting /system immediately before the package_extract_dir command; you'll need to do a similar thing for the /data partition (you can either copy the mount/unmount pair of commands used for /data further down the script where the dalvik-cache is cleared, or just move that mount command from there to an earlier point in the script instead).
Click to expand...
Click to collapse
so would this be the code to insert?
Code:
mount("/data")
package_extract_dir("data", "/data");
before
Code:
ui_print("wiping /cache ...");
unmount("/cache");
You need to use the same format as the mount command that's already there (have a look at the command to clear dalvik-cache near the end of the existing script to see what I mean). So, if you just wanted a stand-alone bit to be plugged in anywhere, you would use:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
unmount("/data");
That would work with where you're proposing to put it so it'll mount /data, extract your packages, then unmount it (then a little further on mount it again, clear dalvik-cache, and unmount again).
Edit Or, to keep it tidier, just include your package extract command in the section where /data is already being mounted anyway; so change this existing section:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
to:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
hopscotchjunkie said:
You need to use the same format as the mount command that's already there (have a look at the command to clear dalvik-cache near the end of the existing script to see what I mean). So, if you just wanted a stand-alone bit to be plugged in anywhere, you would use:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
unmount("/data");
That would work with where you're proposing to put it so it'll mount /data, extract your packages, then unmount it (then a little further on mount it again, clear dalvik-cache, and unmount again).
Edit Or, to keep it tidier, just include your package extract command in the section where /data is already being mounted anyway; so change this existing section:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
to:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
Click to expand...
Click to collapse
Ill try that and give you a feed back Thank you for the only one trying to help me out. I really appreciate it.
PS. To moderators, sorry for posting something like this in a phone section of the forum. I posted this in Android q&a but no one was willing to help me.
Sent from my Inspire 4G using XDA App
P00t said:
PS. To moderators, sorry for posting something like this in a phone section of the forum. I posted this in Android q&a but no one was willing to help me.
Click to expand...
Click to collapse
Don't worry about it, it's much friendlier in this neck of the woods anyway.
I just came home and tried what you told me to do, but it was still a failure.
- in the root of the ROM.ZIP, I have data/app folders made with apps(about 30apps in it) in the app folder.
- I used this code u provided me
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
delete_recursive("/data/dalvik-cache");
unmount("/data");
Click to expand...
Click to collapse
-The installion error says..
E: Error in /sdcard/ROM.ZIP
(status 6)
Installation aborted.
Click to expand...
Click to collapse
EDIT: So, I just tested trying to see if the installation abort would still occur if I still used the original script. Yes, installation still aborted. Idk whats wrong. I just added about 30apps in a MIUI Rom.Zip some apps and its causing it to abort.
Hmm... What are you using to edit the script? If you're on Windows I recommend using Notepad++ (because Windows uses a different end-of-line character to Unix, so if you use Notepad or similar it causes problems). If you're already on Mac/*nix you can disregard that.
Also, how are you adding your extra folders to the zip file? That might potentially have something to do with it (e.g. if you're extracting then re-zipping you'd probably need to sign the zip to be able to flash it). I've always used 7zip on Windows to add/remove/edit things in a zip before flashing and it's always worked fine.
//sent from my Desire HD using Tapatalk; all errors entirely intentional.
hopscotchjunkie said:
Hmm... What are you using to edit the script? If you're on Windows I recommend using Notepad++ (because Windows uses a different end-of-line character to Unix, so if you use Notepad or similar it causes problems). If you're already on Mac/*nix you can disregard that.
Also, how are you adding your extra folders to the zip file? That might potentially have something to do with it (e.g. if you're extracting then re-zipping you'd probably need to sign the zip to be able to flash it). I've always used 7zip on Windows to add/remove/edit things in a zip before flashing and it's always worked fine.
//sent from my Desire HD using Tapatalk; all errors entirely intentional.
Click to expand...
Click to collapse
I use notepad+ to edit the script, running on windows 7 64bit.
I just extract all the apks from my phone then just manually add apks to the rom zip. I'll try it out using 7zip.
EDIT: now the problem is...i added all the apks and used the original updater-script, and it worked fine! but when I added in the pacakage extract command in the updater script, installation aborts again. i think its something in the script that wont allow it?
Sent from my HTC Inspire 4G using XDA App
what does the log say? what's the error? the installation can abort for many reasons, if you can be more specific about you problem maybe a solution can be found.

[AROMA][tweak][How To]Only Flash themes, mods and apps without entire rom

Hi all,
Again a thread to tweak
I have the idea to use only part relatives with APPs or THEMEs from an AROMA ROM. the only AROMA ROM i found to make it easy as a tuto is last build V4 from @tokobot (thanks to him)
I found this [ROM][AOKP-4.2.2] TokoRom V4 [AROMA+OTA][ThemeManager][SonySmallApps][19/08/2013] is remarquable to show you what i have done to only use AROMA choice from ZIP ROM to only install APP and THEME from it in a new JBAM 10.1.0 (banished in XDA) i put in my S2 for test this new method today
I edit updater-script from tokorom AROMA ZIP ROM and delete all lines relative with the entire flash ROM process, like formating system partition, extracting system folder from zip to system partition on tel, all usual symlink lines and the flaks of kernel in ZIP ROM.
I only let lines to use AROMA apps and themes choices.
1rst test i give was not good because i mistake when i choose all apks in aroma except google apps and i havent enought space on system partition rom, but this gives me the idea to put all apks and themes from ZIP ROM to data/app folder of rom and let gapps from aroma in their original input, in system/app of rom.
Toko'Gapps in zip rom are 120Mo large and i only have 60Mo available on my system partition, but with some gapps already installed with my 4.3 rom i use i can let them to go to system/app folder in tel , from ZIP ROM during flash process.
Find my extracted AROMA MOD for 4.2 ROM here.
original updater-script :
(RED lines are the code i remove and some blue as demo will be change to ", "/data/app"); in final script.
Code:
ui_print("");
ui_print("####################################");
ui_print(" Welcome to the installation of the Tokorom 8D ");
ui_print("");
show_progress(0.500000, 0);
unmount("/cache");
unmount("/data");
unmount("/system");
[COLOR="Red"]format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");[/COLOR]
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
delete_recursive("/data/dalvik-cache");
[COLOR="Red"]ui_print("Extracting files...");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");[/COLOR]
# Stock theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.1") == "1"
then
ui_print("Installing Stock theme");
package_extract_dir("TokoRom/Themes/stock[COLOR="Blue"]", "/system/app");[/COLOR]
endif;
# Sense theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.2") == "1"
then
ui_print("Installing Sense theme");
package_extract_dir("TokoRom/Themes/sense/app[COLOR="Blue"]", "/system/app");[/COLOR]
package_extract_file("TokoRom/Themes/sense/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# TouchWiz 5 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.3") == "1"
then
ui_print("Installing Touchwiz5 theme");
package_extract_dir("TokoRom/Themes/tw/app", "/system/app");
package_extract_file("TokoRom/Themes/tw/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Xperia theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.4") == "1"
then
ui_print("Installing Xperia theme");
package_extract_dir("TokoRom/Themes/xperia/app", "/system/app");
package_extract_file("TokoRom/Themes/xperia/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Motorola theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.5") == "1"
then
ui_print("Installing Motorola theme");
package_extract_dir("TokoRom/Themes/motorola/app", "/system/app");
package_extract_file("TokoRom/Themes/motorola/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# MIUI theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.6") == "1"
then
ui_print("Installing MIUI theme");
package_extract_dir("TokoRom/Themes/miui/app", "/system/app");
package_extract_file("TokoRom/Themes/miui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Lunar UI
if
file_getprop("/tmp/aroma/theme.prop","item.1.7") == "1"
then
ui_print("Installing Lunar UI");
package_extract_dir("TokoRom/Themes/lunarui/app", "/system/app");
package_extract_file("TokoRom/Themes/lunarui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Ubuntu theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.8") == "1"
then
ui_print("Installing Ubuntu theme");
package_extract_dir("TokoRom/Themes/ubuntu/app", "/system/app");
package_extract_file("TokoRom/Themes/ubuntu/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Windows8 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.9") == "1"
then
ui_print("Installing Windows8 theme");
package_extract_dir("TokoRom/Themes/windows/app", "/system/app");
package_extract_file("TokoRom/Themes/windows/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Chronium theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.10") == "1"
then
ui_print("Installing Chronium theme");
package_extract_dir("TokoRom/Themes/chronium/app", "/system/app");
package_extract_file("TokoRom/Themes/chronium/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# ADW.Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.1") == "1"
then
ui_print("Installing ADW.Launcher");
package_extract_dir("TokoRom/Launcher/adw[COLOR="Blue"]", "/system/app");[/COLOR]
endif;
# Apex Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.2") == "1"
then
ui_print("Installing Apex Launcher");
package_extract_dir("TokoRom/Launcher/apex[COLOR="Blue"]", "/system/app");[/COLOR]
endif;
# Nova Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.3") == "1"
then
ui_print("Installing Nova Launcher");
package_extract_dir("TokoRom/Launcher/nova[COLOR="Blue"]", "/system/app");[/COLOR]
endif;
# ES File Explorer
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.1") == "1"
then
ui_print("Installing ES File Explorer");
package_extract_dir("TokoRom/FileManager/es", "/system/app");
endif;
# Xplore
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.2") == "1"
then
ui_print("Installing Xplore");
package_extract_dir("TokoRom/FileManager/xplore", "/system/app");
endif;
# File Expert
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.3") == "1"
then
ui_print("Installing File Expert");
package_extract_dir("TokoRom/FileManager/fileexpert", "/system/app");
endif;
# Google Music
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.2") == "1"
then
ui_print("Installing Google Music");
package_extract_dir("TokoRom/MusicPlayer/google", "/system/app");
endif;
# AMP Music Player
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.1") == "1"
then
ui_print("Installing Shuttle Music Player");
package_extract_dir("TokoRom/MusicPlayer/amp", "/system/app");
endif;
# Stock Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.1") == "1"
then
ui_print("Installing Stock AOKP Camera");
package_extract_dir("TokoRom/Camera/stock/app", "/system/app");
package_extract_dir("TokoRom/Camera/stock/lib", "/system/lib");
endif;
# Android 4.3 Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.2") == "1"
then
ui_print("Installing Android 4.3 Camera");
package_extract_dir("TokoRom/Camera/mod/app", "/system/app");
endif;
# Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.1") == "1"
then
ui_print("@ Installing Gapps JB");
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/Vending.apk");
package_extract_dir("TokoRom/Google/system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("TokoRom/Google/optional", "/tmp");
package_extract_file("TokoRom/Google/install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
# NO Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.2") == "1"
then
package_extract_dir("TokoRom/Nogapps","/system");
endif;
[COLOR="Red"]ui_print("Symlinking...");
symlink("SegoeWP-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("SegoeWP-Regular.ttf", "/system/fonts/DroidSans.ttf");
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("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
"/system/bin/getevent", "/system/bin/getprop", "/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/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/md5", "/system/bin/mkdir", "/system/bin/mount",
"/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
"/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
"/system/bin/sendevent", "/system/bin/setconsole",
"/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
"/system/bin/start", "/system/bin/stop", "/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("Setting Permission...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
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_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
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_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/beatsbass");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/beatsnormal");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_gec");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_gec_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_gec_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_solo");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_solo_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_studio");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/basimage_ibeats_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_gec");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_gec_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_gec_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_solo");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_solo_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_studio");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/dynimage_ibeats_x");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_beatbox_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_beats_wireless_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_gec");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_gec_bt");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_htc_earbud");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_htc_midtier");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats_solo");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats_solo_v2");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/image_ibeats_v2");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/load_mg_driver");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/load_sony_driver");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/mm-audio-acdb-test");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/mm-audio-native-test");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/pm_snd");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/snd");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/snd8k");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/snd3008");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sony_sysd");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound7x30");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound8x60");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/sound8960");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/spkamp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin/xaplay");
set_perm(0, 0, 0777, "/system/etc/init.d/06removecache");
set_perm(0, 0, 0777, "/system/etc/init.d/64misckernel");
set_perm(0, 0, 0777, "/system/etc/init.d/69removelogger");
set_perm(0, 0, 0777, "/system/etc/init.d/Battery");
set_perm(0, 0, 0777, "/system/etc/init.d/mramllag");
set_perm(0, 0, 0777, "/system/etc/init.d/LoopySmoothness");
set_perm(0, 0, 0777, "/system/etc/init.d/S98CFS");
set_perm(0, 0, 0777, "/system/etc/init.d/Speedy");
set_perm(0, 0, 0777, "/system/etc/init.d/Zipalign");
set_perm(0, 0, 0777, "/system/etc/init.d/Zram");
set_perm(0, 0, 0777, "/system/etc/init.d/sysctl_tweaks");
set_perm(0, 0, 0777, "/system/xbin/zipalign");
set_perm(0, 0, 0777, "/system/bin/boost");
set_perm(0, 0, 0777, "/system/etc/hosts");
set_perm(0, 0, 0777, "/system/etc/sysctl.conf");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 0);
show_progress(0.200000, 10);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
delete("/tmp/boot.img"));[/COLOR]
show_progress(0.100000, 0);
ui_print("Installation Finished");
ui_print("Thank You for choosing the TokoRom");
ui_print("And remember to post your thoughts on the forum :D");
unmount("/system");
final updater-script :
Code:
ui_print("");
ui_print("####################################");
ui_print(" Welcome to the installation of the Tokorom 8D ");
ui_print("");
show_progress(0.500000, 0);
unmount("/cache");
unmount("/data");
unmount("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
delete_recursive("/data/dalvik-cache");
# Stock theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.1") == "1"
then
ui_print("Installing Stock theme");
package_extract_dir("TokoRom/Themes/stock[B][COLOR="Black"]", "/data/app");[/COLOR][/B]
endif;
# Sense theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.2") == "1"
then
ui_print("Installing Sense theme");
package_extract_dir("TokoRom/Themes/sense/app[B][COLOR="Black"]", "/data/app");[/COLOR][/B]
package_extract_file("TokoRom/Themes/sense/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# TouchWiz 5 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.3") == "1"
then
ui_print("Installing Touchwiz5 theme");
package_extract_dir("TokoRom/Themes/tw/app", "/data/app");
package_extract_file("TokoRom/Themes/tw/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Xperia theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.4") == "1"
then
ui_print("Installing Xperia theme");
package_extract_dir("TokoRom/Themes/xperia/app", "/data/app");
package_extract_file("TokoRom/Themes/xperia/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Motorola theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.5") == "1"
then
ui_print("Installing Motorola theme");
package_extract_dir("TokoRom/Themes/motorola/app", "/data/app");
package_extract_file("TokoRom/Themes/motorola/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# MIUI theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.6") == "1"
then
ui_print("Installing MIUI theme");
package_extract_dir("TokoRom/Themes/miui/app", "/data/app");
package_extract_file("TokoRom/Themes/miui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Lunar UI
if
file_getprop("/tmp/aroma/theme.prop","item.1.7") == "1"
then
ui_print("Installing Lunar UI");
package_extract_dir("TokoRom/Themes/lunarui/app", "/data/app");
package_extract_file("TokoRom/Themes/lunarui/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Ubuntu theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.8") == "1"
then
ui_print("Installing Ubuntu theme");
package_extract_dir("TokoRom/Themes/ubuntu/app", "/data/app");
package_extract_file("TokoRom/Themes/ubuntu/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Windows8 theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.9") == "1"
then
ui_print("Installing Windows8 theme");
package_extract_dir("TokoRom/Themes/windows/app", "/data/app");
package_extract_file("TokoRom/Themes/windows/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# Chronium theme
if
file_getprop("/tmp/aroma/theme.prop","item.1.10") == "1"
then
ui_print("Installing Chronium theme");
package_extract_dir("TokoRom/Themes/chronium/app", "/data/app");
package_extract_file("TokoRom/Themes/chronium/build/theme.sh", "/tmp/theme.sh");
set_perm(0, 0, 0777, "/tmp/theme.sh");
run_program("/tmp/theme.sh");
endif;
# ADW.Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.1") == "1"
then
ui_print("Installing ADW.Launcher");
package_extract_dir("TokoRom/Launcher/adw", "/data/app");
endif;
# Apex Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.2") == "1"
then
ui_print("Installing Apex Launcher");
package_extract_dir("TokoRom/Launcher/apex", "/data/app");
endif;
# Nova Launcher
if
file_getprop("/tmp/aroma/launcher.prop","item.1.3") == "1"
then
ui_print("Installing Nova Launcher");
package_extract_dir("TokoRom/Launcher/nova", "/data/app");
endif;
# ES File Explorer
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.1") == "1"
then
ui_print("Installing ES File Explorer");
package_extract_dir("TokoRom/FileManager/es", "/data/app");
endif;
# Xplore
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.2") == "1"
then
ui_print("Installing Xplore");
package_extract_dir("TokoRom/FileManager/xplore", "/data/app");
endif;
# File Expert
if
file_getprop("/tmp/aroma/filemanager.prop","item.1.3") == "1"
then
ui_print("Installing File Expert");
package_extract_dir("TokoRom/FileManager/fileexpert", "/data/app");
endif;
# Google Music
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.2") == "1"
then
ui_print("Installing Google Music");
package_extract_dir("TokoRom/MusicPlayer/google", "/system/app");
endif;
# AMP Music Player
if
file_getprop("/tmp/aroma/musicplayer.prop","item.1.1") == "1"
then
ui_print("Installing Shuttle Music Player");
package_extract_dir("TokoRom/MusicPlayer/amp", "/system/app");
endif;
# Stock Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.1") == "1"
then
ui_print("Installing Stock AOKP Camera");
package_extract_dir("TokoRom/Camera/stock/app", "/system/app");
package_extract_dir("TokoRom/Camera/stock/lib", "/system/lib");
endif;
# Android 4.3 Camera
if
file_getprop("/tmp/aroma/camera.prop","item.1.2") == "1"
then
ui_print("Installing Android 4.3 Camera");
package_extract_dir("TokoRom/Camera/mod/app", "/system/app");
endif;
# Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.1") == "1"
then
ui_print("@ Installing Gapps JB");
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/Vending.apk");
package_extract_dir("TokoRom/Google/system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("TokoRom/Google/optional", "/tmp");
package_extract_file("TokoRom/Google/install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
# NO Gapps
if
file_getprop("/tmp/aroma/gapps.prop","item.1.2") == "1"
then
package_extract_dir("TokoRom/Nogapps","/system");
endif;
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.100000, 0);
ui_print("Installation Finished");
ui_print("Thank You for choosing the TokoRom");
ui_print("And remember to post your thoughts on the forum :D");
unmount("/system");
As its an example of use so i expect you will make a nandoid of your tel befor the try you give after reading this abnormal use of script.
in attachment, updater-script i use to replace in tokorom you can download from original thread. (remove ".txt" before replace in zip)
thanks
EDIT : i have a test with Gapps in AROMA we are talking about and seems that libjni_latinime.so in zip make my AOSP keyboard FCs. FCs stop when i restore only this file from my original in ROM i use.
so i think only this file can ben remove from this aroma before flash too, to avoid same trouble.
thanks a lot :good:
i want this one
i want this one
a new thread with new goodies
great job buddy :good:

[Q] Trouble with rooting GS3 using CM 10.2.1

Hello:
Hoping someone here can help me with this frustrating issue. I have a Tmobile GS3 (stock 4.3 rom) which is giving me all kinds of trouble when I try to install custom rom. I inistally started off using the one click windows installer however I ran into trouble. Apparently the knox software was preventing me from rooting and installing CM on the phone. After doing some google seraches on how to remove knox from the phone I came across this post from this site...
http://forum.xda-developers.com/showthread.php?t=2563955
Following those instructions I was able to root the phone and remove knox from the device and also install TWRP. Tried the one click installer again but still no luck as it would just end up returning me to the stock rom.
At this point I just said ^*&^*& it and I donwloaded the cm 10.2.1 stable d2tmo rom onto my sd card and tried to install it with CWM. I kept getting an error 7 when I do this. A quick google search brings up some pages about what to do with error 7. I tried doing what was listed here....
http://highonandroid.com/android-roms/how-to-fix-status-7-error-with-cwm-recovery-on-rooted-android/
However that still didnt work.
So I take it a step further and replace CWM with TWRP 2.7.0 using Goo Manager. Boot up into TWRP and tried to install the same rom again using TWRP but im still getting an error message TWRP goes so far and gives me the following error...
Error executing updater binary in zip '/external_sd/cm-10.2.1-d2tmo.zip'
Error flashing zip '/external_sd/cm-10.2.1-d2tmo.zip'
Any thoughts/ideas on this? Could this be an issue with CM 10.2.1? Could this have anything to do with how I rooted the phone? Could the fact that I have 2 different recoveries on the phone be causing this now?
Its been a long time since I rooted a phone (Tmobile G1) but damn I dont remember it being this hard.
Thanks in advance...
zack
This section is for i9300 only... Ask a mod to move this thread to move it in appropriate section by reporting it yourself...
Sent from my GT-I9300
Do the MD5 sums match? You may have a corrupt download.
Where did you download the rom?
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Where did you download the rom?
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
I downloaded the rom from the cyanogen mod download page.
Did you check the md5sum? Looking at the error though its probably because that is an older rom and isnt using the newer updater binary so its not compatible with newer recoveries.
Why not use the latest CM builds? If I remember right CM10 was pretty buggy for a lot of people.
If you want to use the old one though, the best option would be to replace the update binary with one from a newer rom. Or you could try to use a much older recovery.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Did you check the md5sum? Looking at the error though its probably because that is an older rom and isnt using the newer updater binary so its not compatible with newer recoveries.
Why not use the latest CM builds? If I remember right CM10 was pretty buggy for a lot of people.
If you want to use the old one though, the best option would be to replace the update binary with one from a newer rom. Or you could try to use a much older recovery.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
Thanks for the quick reply....
I see that there are newer releases for 11.x but I don't see any stable ones. How bad are the milestone snapshots for a day to day use rom? Thats the whole reason I chose 10.2.1 since it was a stable release.
Thanks
zack
Youd probably be better off skimming over the CM based rom threads for that. I dont use CM so I cant really speak of it either way. Just from random posts it seems to me that cm11 has been better than cm10 on this device though. But I wouldnt only go by that if I were you.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Youd probably be better off skimming over the CM based rom threads for that. I dont use CM so I cant really speak of it either way. Just from random posts it seems to me that cm11 has been better than cm10 on this device though. But I wouldnt only go by that if I were you.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
Would you recommend I flash it with the latest version of CWM?
Again this is personal preference. I personally like twrp. Others like cwm better. Both are good recoveries and should suit most of your needs.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Again this is personal preference. I personally like twrp. Others like cwm better. Both are good recoveries and should suit most of your needs.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
Ok well I just tried to flash CM-11-20140210-SNAPSHOT-M3-d2TMO using CWM and im getting an error 7 when flashing it. This is the same issue I had before. Something tells me I need to just start from scratch again on the phone. IE: remove the custom recovery stuff, unroot the phone and perhaps reinstall knox?
Is there an easier way to do this...say just install the stock gs3 rom direct from samsung?
You need to delete the assert lines from the updater script and the signature files.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
You need to delete the assert lines from the updater script and the signature files.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
I've done this before with the updater script but where do I find the signature files?
I think they are in the meta-inf folder. Its 3 files. Cert, manifest, and another. Anytime you unzip and rezip a rom or flashable mod, whether you make changes or not, you have to delete these or itll fail at signature verification. (Or you can try turning off sig verification in recovery, but ive seen mixed reports with that.
Many roms and mods may not be signed to begin with. If those files are not there you don't need to worry about them.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
I think they are in the meta-inf folder. Its 3 files. Cert, manifest, and another. Anytime you unzip and rezip a rom or flashable mod, whether you make changes or not, you have to delete these or itll fail at signature verification. (Or you can try turning off sig verification in recovery, but ive seen mixed reports with that.
Many roms and mods may not be signed to begin with. If those files are not there you don't need to worry about them.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
Ok so I went ahead and edited the file and removed the assert stuff from the beginning to the semi colon like its outlined here.
www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDcQFjAB&url=http%3A%2F%2Fhighonandroid.com%2Fandroid-roms%2Fhow-to-fix-status-7-error-with-cwm-recovery-on-rooted-android%2F&ei=CzNhU9yuMISNyATn24KYCw&usg=AFQjCNHlujQVD8gnxmq7cCrPwwO1D0Ty0w&bvm=bv.65636070,d.aWw
I also removed those 3 files in the meta-inf foder. Rezipped the rom and uploaded to the phone. Tried to install the zip using CWM (latest version) and now I just get an installation aborted. It also shows an android robot with an red exclamation on it.
Save the recovery log to sd. Itll tell you exactly where its failing.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Save the recovery log to sd. Itll tell you exactly where its failing.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
Looks like im getting closer to finding a solution here...
Ok so i wasnt able to find and move the log over to my pc however I was able to show it on the screen via CWM. Heres what im seeing...
I:using data/media/ for /sdcard/0/clockworkmod/.last_install_path.
I:Cant partition non mmcblk device: /devices/platform/msm_sdcc.3/mmc_host/mmc1
Thanks so much for your help so far on this. BTW how can I increase your thank you meter?
Never seen an error like that one. My guess is its not able to format the /system partition before flashing. Check the updater script to see if it looks like its trying mount/unmount the partition before it formats.
You may want to go ahead and try twrp instead of cwm. Ive seen several people say cwm wouldnt flash something but twrp would.
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
Never seen an error like that one. My guess is its not able to format the /system partition before flashing. Check the updater script to see if it looks like its trying mount/unmount the partition before it formats.
You may want to go ahead and try twrp instead of cwm. Ive seen several people say cwm wouldnt flash something but twrp would.
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
No luck with TWRP im getting the following....
error flashing zip '\external_sd\cm-11-20140210-snapshot-m3-d2tmo.zip
updating partition details..
Perhaps it does have something to do with the partition (im assuming its the internal storage on the phone its referring to)
Heres what my updater script shows...
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
set_perm(0, 0, 0644, "/tmp/backuptool.functions");
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
symlink("../xbin/su", "/system/bin/su");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
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/fbsplash", "/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/fstrim", "/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/ionice", "/system/xbin/iostat",
"/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
"/system/xbin/killall5", "/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/nbd-client", "/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/pipe_progress",
"/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/sha3sum",
"/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("libGLESv2.so", "/system/lib/libGLESv3.so");
symlink("logcat", "/system/bin/lolcat");
symlink("mksh", "/system/bin/sh");
symlink("mount.exfat", "/system/bin/fsck.exfat",
"/system/bin/mkfs.exfat");
symlink("pigz", "/system/xbin/unpigz");
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/mkswap", "/system/bin/mount",
"/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/r", "/system/bin/readlink",
"/system/bin/renice", "/system/bin/restart", "/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/setconsole",
"/system/bin/setenforce", "/system/bin/setfattr", "/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");
set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "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_process", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:zygote_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/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:debuggerd_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/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:hostapd_exec:s0");
set_metadata("/system/bin/installd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:installd_exec:s0");
set_metadata("/system/bin/keystore", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:keystore_exec:s0");
set_metadata("/system/bin/mediaserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:mediaserver_exec:s0");
set_metadata("/system/bin/mksh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:shell_exec:s0");
set_metadata("/system/bin/mtpd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:mtp_exec:s0");
set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/bin/netd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:netd_exec:s0");
set_metadata("/system/bin/ping", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_ring_exec:s0");
set_metadata("/system/bin/pppd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_rpp_exec:s0");
set_metadata("/system/bin/racoon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:racoon_exec:s0");
set_metadata("/system/bin/rild", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:rild_exec:s0");
set_metadata("/system/bin/run-as", "uid", 0, "gid", 2000, "mode", 0750, "capabilities", 0xc0, "selabel", "ubject_r:runas_exec:s0");
set_metadata("/system/bin/sdcard", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:sdcardd_exec:s0");
set_metadata("/system/bin/servicemanager", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:servicemanager_exec:s0");
set_metadata("/system/bin/surfaceflinger", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:surfaceflinger_exec:s0");
set_metadata("/system/bin/vold", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:vold_exec:s0");
set_metadata("/system/bin/wpa_supplicant", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:wpa_exec:s0");
set_metadata_recursive("/system/etc/dhcpcd", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:dhcp_system_file:s0");
set_metadata("/system/etc/dhcpcd/dhcpcd-run-hooks", "uid", 1014, "gid", 2000, "mode", 0550, "capabilities", 0x0, "selabel", "ubject_r:dhcp_system_file:s0");
set_metadata_recursive("/system/etc/init.d", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/etc/init.d", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", 0x0, "selabel", "ubject_rpp_system_file:s0");
set_metadata_recursive("/system/vendor", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/etc/audio_effects.conf", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/libbt-vendor.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/xbin/librank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/xbin/procmem", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/xbin/procrank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/xbin/su", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "ubject_r:su_exec:s0");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
set_perm(0, 0, 0644, "/tmp/backuptool.functions");
run_program("/tmp/backuptool.sh", "restore");
delete("/system/bin/backuptool.sh");
delete("/system/bin/backuptool.functions");
show_progress(0.200000, 10);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.100000, 0);
unmount("/system");
Beats me, tbh.
What is the backuptool doing exactly?
Maybe delete the lines at the beginning so that the first line is unmount("system").
Then also delete the lines at the end that use the backuptool. From show_progress(0.200000, 10) to the next show_progress(0.200000, 10).
(Rather than delete, you can just add # at the beginning of the line to comment it out. This way you can easily go back, but itll skip those lines while executing the script.)
Sent from my SGH-T999 using Tapatalk

Categories

Resources