[Q] Sprint LG G2 Error Flashing Pac-Man 4.4.2 - PAC Q&A

I have the Sprint LG G2 LS980ZV8 running 4.2.2 with kernel version 3.4.0 (all stock). A few months ago I followed some guides for rooting my phone. During the process, I ended up flashing loki and twrp 2.6.3.2. This is as far as I've gotten because shortly afterwards I received an OTA update (it's still pending). For fear of losing root access, I postponed the update indefinitely. I've waited to see if anyone would post a root option under the new update but it seems just flashing a ROM such as pac-man would be easier (or at least quicker).
Now, while following goldflame09's guide, I have downloaded all the necessary files to the appropriate locations, but after factory resetting my phone and trying to extract the .zip file, it says "error executing updater binary in zip" then immediately fails. I have to restore my previous data/system/boot/cache before the phone will successfully system reboot; otherwise, I can only tinker around in TWRP.
I thought maybe updating TWRP to 2.7.0 might solve the issue, but I am new to this so it seemed smarter to ask for advice before meddling around on my own. Does anyone know why I got the "error executing updater binary in zip" message, and if so, how can I avoid this error and continue flashing the ROM?

Could you type the whole error log or screenshot it (from another phone?)
There might be a bootloader or baseband mandatory update needed. Whole log will help to figure it out

bud77 said:
Could you type the whole error log or screenshot it (from another phone?)
There might be a bootloader or baseband mandatory update needed. Whole log will help to figure it out
Click to expand...
Click to collapse
Here is the complete log. Let me know if you can't read it.

ForceClosed said:
Here is the complete log. Let me know if you can't read it.
Click to expand...
Click to collapse
Good news, its not related to bootloader/baseband
Bad news, there is several explanation to this issue :
1) corrupted file
2) wrong file (meaning, you didn't download the file for your device)
3) others (which we will see later if it does not work)
For Sprint LG G2, download from here http://pacman.basketbuild.com/index.php?dir=main/ls980/nightly/
You will also find the sprint version thread there http://forum.xda-developers.com/showthread.php?t=2669074
Hope this helps

bud77 said:
Good news, its not related to bootloader/baseband
Bad news, there is several explanation to this issue :
1) corrupted file
2) wrong file (meaning, you didn't download the file for your device)
3) others (which we will see later if it does not work)
For Sprint LG G2, download from here http://pacman.basketbuild.com/index.php?dir=main/ls980/nightly/
You will also find the sprint version thread there http://forum.xda-developers.com/showthread.php?t=2669074
Hope this helps
Click to expand...
Click to collapse
Thanks for the good news. As for the bad news, I've tried both the 3/24 and 3/25 version, but neither get past that error. Should I try an older version or is there something better to try?

ForceClosed said:
Thanks for the good news. As for the bad news, I've tried both the 3/24 and 3/25 version, but neither get past that error. Should I try an older version or is there something better to try?
Click to expand...
Click to collapse
3 things came to my mind
1) your TWRP version. Current is 2.7.X.X (well, at least for my nexus5, but usually, it follows on all devices)
2) check the MD5 of the files you downloaded (with a file explorer or such) and compare the the MD5 on the basketbuild
24/03 : 6cb7acfcc6bdad65ebe3348eb958253c
25/03 : d106f8685e3fea9dfe46012aca662d6a
3) If none of the above works, yes, try a much older version
Also 4), can you unzip the rom, extract the updater script (located at META-INF\com\google\android), and paste it here

bud77 said:
3 things came to my mind
1) your TWRP version. Current is 2.7.X.X (well, at least for my nexus5, but usually, it follows on all devices)
2) check the MD5 of the files you downloaded (with a file explorer or such) and compare the the MD5 on the basketbuild
24/03 : 6cb7acfcc6bdad65ebe3348eb958253c
25/03 : d106f8685e3fea9dfe46012aca662d6a
3) If none of the above works, yes, try a much older version
Also 4), can you unzip the rom, extract the updater script (located at META-INF\com\google\android), and paste it here
Click to expand...
Click to collapse
I checked the MD5 sum and it returned the same hash, so the files seems to be fine.
I've also got the updater script you asked for:
assert(getprop("ro.product.device") == "ls980" || getprop("ro.build.product") == "ls980" ||
getprop("ro.product.device") == "g2" || getprop("ro.build.product") == "g2" ||
getprop("ro.product.device") == "galbi" || getprop("ro.build.product") == "galbi" || abort("This package is for \"ls980,g2,galbi\" devices; this is a \"" + getprop("ro.product.device") + "\".");
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);
ui_print("#############################################");
ui_print("# #");
ui_print("#______ ___ _____ ___ ___ ___ _ _ #");
ui_print("#| ___ \ / _ \ / __ \| \/ | / _ \ | \ | |#");
ui_print("#| |_/ // /_\ \| / \/| . . |/ /_\ \| \| |#");
ui_print("#| __/ | _ || | | |\/| || _ || . ` |#");
ui_print("#| | | | | || \__/\| | | || | | || |\ |#");
ui_print("#\_| \_| |_/ \____/\_| |_/\_| |_/\_| \_/#");
ui_print("# ______ _____ ___ ___ _____ #");
ui_print("# | ___ \| _ || \/ |/ ___| #");
ui_print("# | |_/ /| | | || . . |\ `--. #");
ui_print("# | / | | | || |\/| | `--. \ #");
ui_print("# | |\ \ \ \_/ /| | | |/\__/ / #");
ui_print("# \_| \_| \___/ \_| |_/\____/ #");
ui_print("# #");
ui_print("# #");
ui_print("#############################################");
ui_print("Device: ls980");
ui_print("#############################################");
ui_print("Formatting system");
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");
ui_print("Extracting system files...");
package_extract_dir("system", "/system");
ui_print("Making symlinks");
symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
symlink("../xbin/su", "/system/bin/su");
symlink("/data/misc/audio/wcd9320_anc.bin", "/system/etc/firmware/wcd9320/wcd9320_anc.bin");
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("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/vendor/etc", "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/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/vendor/lib/drm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/drm/libdrmwvmplugin.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/hw", "uid", 0, "gid", 2000, "mode", 0755, "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);
ui_print("Thanks for choosing PAC-MAN ROMS");
ui_print("Enjoy PAC-man now");
package_extract_file("boot.img", "/tmp/boot.img");
assert(run_program("/system/bin/loki.sh") == 0);
delete("/system/bin/loki.sh");
unmount("/system");
Finally, regarding my TWRP version, I have been having difficulty here. I've searched around and have found people suggest goomanager for flashing the recovery, but it does not show me an update for TWRP. The TWRP manager app also does not have an updated version for my phone, so apparently I have the most current version possible. However, when searching the official TWRP website they have a link for version 2.7.0.0 for Sprint ls980. I downloaded the zip file, as well as an img, but due to my computer illiteracy I don't know what to do next.
Here is what the official TWRP website says to do: "Download the above file and place it in /sdcard on your device. Using adb shell or terminal emulator:
su
dd if=/sdcard/recoveryfilename.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
Make certain that you get this command right. Typing the wrong number could result in a brick!"
Now I used adb commands to flash the original img on my phone and it worked fine, so I repeated the same steps except I used the new img file in the command line. This didn't work, and I didn't want to try the instructions above unless I knew exactly what I was doing. I'm sorry for being such a noob; I'm trying to learn as much as possible on my own, but the chance of harming my phone worries me.
Should I continue trying to update to the newest TWRP version, or is there anything else you can suggest?

I've checked the script, and nothing seems to be wrong with it
For TWRP, try to use a "toolbox" if you're not confortable with adb
Did you try an older build ? It seems there is issues since 23th

bud77 said:
I've checked the script, and nothing seems to be wrong with it
For TWRP, try to use a "toolbox" if you're not confortable with adb
Did you try an older build ? It seems there is issues since 23th
Click to expand...
Click to collapse
Still getting the error message. I've tried 3/21 and 3/17 as well as 3/24 and 3/25 from before. They all result in the same error.
As for TWRP, I have tried numerous toolboxes such as goomanager, flashify, TWRP manager, and rom manager lite. None of them say I have a newer version available for my device even though the official TWRP website has 2.7.0.0 specifically for Sprint USA ls980. Updating the recovery is the last thing I can think of, but it seems I need to manually update it, which is risky according to various sources (such as the previous post).
I'll poke my head around some TWRP forums to see if anyone can help me update the recovery.
Thanks for all the help so far.

Ok for anyone following this, I have a quick question. Everything is telling me I have to manually update/flash TWRP. The best way to do this is by following the shell command dd if=/sdcard/recoveryfilename.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
My question is in regards to the of= command. Am I supposed to type that exact path, or am I supposed to type something specific to my phone in the "by-name" or any other folders in the path?
EDIT: nevermind I just searched my files and found that exact path.

ForceClosed said:
Ok for anyone following this, I have a quick question. Everything is telling me I have to manually update/flash TWRP. The best way to do this is by following the shell command dd if=/sdcard/recoveryfilename.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
My question is in regards to the of= command. Am I supposed to type that exact path, or am I supposed to type something specific to my phone in the "by-name" or any other folders in the path?
EDIT: nevermind I just searched my files and found that exact path.
Click to expand...
Click to collapse
Not sure if you are aware of it, so I'd better tell
To flash recovery, your device MUST be in bootloader mode for the toolbox to work (usually "vol up" (or down, it depends on devices) + power buttons when phone is shutdown)
If you flash it "the hard way" by typing command, take care, it's case sensitive

bud77 said:
Not sure if you are aware of it, so I'd better tell
To flash recovery, your device MUST be in bootloader mode for the toolbox to work (usually "vol up" (or down, it depends on devices) + power buttons when phone is shutdown)
If you flash it "the hard way" by typing command, take care, it's case sensitive
Click to expand...
Click to collapse
Thanks for the tip. Loki didnt unlock my bootloader completely, so I cannot boot into bootloader, only recovery or system. The vol down + power takes me to recovery automatically. I'll try to manually flash the img on Monday if nothing else comes up over the weekend.

ForceClosed said:
Thanks for the tip. Loki didnt unlock my bootloader completely, so I cannot boot into bootloader, only recovery or system
Click to expand...
Click to collapse
This may explain why toolbox don't work
For the flash, you can also forget ADB, since it also requires phone to be in bootloader mode
I'm not familiar with G2 at all, but isn't there any other root method than "loki" ?
I forgot to mention, but you can also post in the PAC man G2 thread, a dev might know the issue

bud77 said:
This may explain why toolbox don't work
For the flash, you can also forget ADB, since it also requires phone to be in bootloader mode
I'm not familiar with G2 at all, but isn't there any other root method than "loki" ?
I forgot to mention, but you can also post in the PAC man G2 thread, a dev might know the issue
Click to expand...
Click to collapse
Hmm, ADB has worked for me before. That's how I flashed the original recovery.img
I followed these commands from droidviews guide:
cd /data/local/tmp
chmod 777 loki_flash
./loki_flash recovery /data/local/tmp/openrecovery-twrp-2.6.3.2-g2xxx.img
exit
adb reboot recovery
The root method I used was "ioroot" but "loki" is like "odin" in that it is supposed to unlock the bootloader. Apparently on an LG device it's only a workaround so it gives you access even tho it's not actually unlocked. From what I've seen in the Pac-man ROM files it flashes with loki also.
Ya I'll post in the dev thread once I get 10+ posts... I'm not allowed to just yet, lol. Still a noob.

ForceClosed said:
Hmm, ADB has worked for me before. That's how I flashed the original recovery.img
I followed these commands from droidviews guide:
cd /data/local/tmp
chmod 777 loki_flash
./loki_flash recovery /data/local/tmp/openrecovery-twrp-2.6.3.2-g2xxx.img
exit
adb reboot recovery
The root method I used was "ioroot" but "loki" is like "odin" in that it is supposed to unlock the bootloader. Apparently on an LG device it's only a workaround so it gives you access even tho it's not actually unlocked. From what I've seen in the Pac-man ROM files it flashes with loki also.
Ya I'll post in the dev thread once I get 10+ posts... I'm not allowed to just yet, lol. Still a noob.
Click to expand...
Click to collapse
If abd works, try : "abd reboot bootloader"
(wait till phone reboots, you should be on a black screen with a droid)
Then, type "fastboot devices"
If you see a character string, it means you can then launch the recovery flash from toolbox
For the 10 post counts, you can spam this post, only 2 to go

bud77 said:
If abd works, try : "abd reboot bootloader"
(wait till phone reboots, you should be on a black screen with a droid)
Then, type "fastboot devices"
If you see a character string, it means you can then launch the recovery flash from toolbox
For the 10 post counts, you can spam this post, only 2 to go
Click to expand...
Click to collapse
"adb reboot bootloader" and "adb reboot-bootloader" both reboot the phone normally. I cannot access bootloader, but the command "adb reboot recovery" takes me to TWRP recovery. Other adb commands such as some shell commands, as well as pull/push work. I think it's because loki allows adb to work, but doesn't fully unlock the bootloader.

Well, I've tried to flash 2.7.0.0 by using the adb if= of= command, but when I try to reboot into recovery it says:
boot certification verify:
certification error
cause: boot certification verify
and then the screen stays black until I hold the power + volume down button for a few seconds, then it finally reboots normally.
I'm going to go out on a limb and say that twrp 2.7 is not compatible on my device. Back to the old version...

Fyi I don't think I saw this in here yet, but 2.7 comes off the twrp website as a zip which is able to be flashed via recovery like any other zip.
Sent from my LG-LS980 using Tapatalk

goldflame09 said:
Fyi I don't think I saw this in here yet, but 2.7 comes off the twrp website as a zip which is able to be flashed via recovery like any other zip.
Sent from my LG-LS980 using Tapatalk
Click to expand...
Click to collapse
Wow! Something so simple it's overlooked. I successfully updated TWRP to 2.7 and then pac-man also worked followed by gapps. I am now running the 3/17 version.
Turns out 2.6.3.2 version of TWRP doesn't work with your ROM on my phone.
Thanks for all the help everyone!

Actually 2.6.3.2 had issues with wiping and flashing any ROM. But make sure you can backup with twrp 2.7. I know for some reason I was having issues with it.
Sent from my LG-LS980 using Tapatalk

Related

Syntax Error???

Guys,
Ive been trying all morning to flash my update but im getting a syntax error (CODE6) and i cant find it, Any help guys?
recovery log....
-- Installing: /sdcard/IC_HoneySense_v.1.4_CM7.zip
mtd: successfully wrote block at 0
I:Set boot command "boot-recovery"
Finding update package...
I:Update location: /sdcard/IC_HoneySense_v.1.4_CM7.zip
Opening update package...
Installing update...
line 9 col 11: syntax error, unexpected STRING, expecting ',' or ')'
1 parse errors
E:Error in /sdcard/IC_HoneySense_v.1.4_CM7.zip
(Status 6)
Installation aborted.
mtd: successfully wrote block at 0
I:Set boot command ""
Click to expand...
Click to collapse
Updater Script...
ui_print("");
ui_print("");
ui_print(" >>> ROM NAME.... <<<");
ui_print("");
ui_print(" >>>> Themed By..... <<<<");
ui_print("");
ui_print(" >>>> Special thanks..... <<<<");
mount("MTD","userdata","/data");
run_program("/sbin/busybox", "mount", "/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/framework_s");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/lib_s");
set_perm_recursive(1000, 1000, 0775, 0644, "/sd-ext/weather");
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("/system/sd/framework_s","/system/framework");
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("/proc/calibration", "/system/etc/calibration");
symlink("toolbox", "/system/bin/chownto", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/ioctl", "/system/bin/log", "/system/bin/nandread", "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setprop", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe", "/system/bin/top");
symlink("/system/xbin/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/freeramdisk", "/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/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/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/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");
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/etc/init.d/dtapp");
set_perm (0, 0, 0777, "/system/bin/fix_permissions");
symlink("dropbear","/system/xbin/dropbearkey");
symlink("dropbear","/system/xbin/dbclient");
symlink("dropbear","/system/xbin/ssh");
delete("/system/etc/resolv.conf");
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");
package_extract_file("MS", "/tmp/MS");
set_perm(0, 0, 0777, "/tmp/MS");
run_program("/tmp/MS");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
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);
ui_print("Done.Crossfingers!");
unmount("/system");
run_program("/sbin/busybox", "umount", "/sd-ext");
unmount("/data");
Click to expand...
Click to collapse
PLEASE MOVE TO Q&A.
Sorry i thought i was there!!!!
Plz can any1 help?
Sent from my HTC Sensation Z710e using XDA App
Same problem here...! I'm trying to do a porting from a Desire ROM to a Nexus One.
Solutions?? :-(
Iperzampem0 said:
Same problem here...! I'm trying to do a porting from a Desire ROM to a Nexus One.
Solutions?? :-(
Click to expand...
Click to collapse
Did you edit the updater script?
Sent via my rooted HTC Sensation.....

k1 possible ICS leak?

There are several files on lenovo's download site for the k1 dated 18-MAY-2012. I downloaded one and the build.prop says it is 4.0.3. So ICS must be getting close. I have a thinkpad, not a k1, so i cannot test it.
http://download.lenovo.com/slates/k1/OTA_TEST/
mandrsn1 said:
There are several files on lenovo's download site for the k1 dated 18-MAY-2012. I downloaded one and the build.prop says it is 4.0.3. So ICS must be getting close. I have a thinkpad, not a k1, so i cannot test it.
http://download.lenovo.com/slates/k1/OTA_TEST/
Click to expand...
Click to collapse
Looks like those are for the Medion lifetab, which is a rebranded varient of the K1. Not sure if the hardware is completely compatible.
http://forums.lenovo.com/t5/IdeaPad...in-Europe-as-Medion-Lifetab-P9516/td-p/719641
http://vschart.com/compare/medion-lifetab-p9514/vs/lenovo-ideapad-k1
http://uk.hardware.info/productinfo/150047/medion-lifetab-p9514-tablet-pc#tab:testresults
Links showing more info. On the Lifetab. Maybe close enough? Anyone possibly try the test os that mandrsn1 mentioned? Could just wait til the vanilla release from Lenovo, but who really knows when that'll be seeings how they pushed the release date back what 4-5 times now?
I am using a Lenovo IdeaPad K1 Wifi+3G. The Medion Honeycomb firmware is working on my device. But it won't boot anymore if I apply the Medion ICS update. Anyway, they have deleted the Honeycomb OTA for Medion Lifetab P9516 from their server.
There are also K1 files dated may 16th but the links appear broken.
Update Script
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-num/p3", "/system");
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
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/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/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");
retouch_binaries("/system/lib/libsmapi.so", "b43b1022966f49679a2b604770b289d7e01bc363", "/system/lib/libc.so", "35c075d036b9ed26f3ec170a205bbca17bc40bc6", "/system/lib/libsurfaceflinger.so", "26e946fb30ae32270a51ad5d6d0eb764707badca", "/system/lib/libemoji.so", "c7b7df787c3212209e1397e84a91536dba78b0da", "/system/lib/libctest.so", "0da66ce370ccefe037291d6bd0668a5c41d40047", "/system/lib/libnvcontrol_jni.so", "151fa58b85134ca4a41bb474d1bfdb01a2adad92", "/system/lib/libETC1.so", "a646346c896789fc4e4302dcb931509ae539a4ba", "/system/lib/libstagefright_soft_aacdec.so", "5b2be22557b04f2ef2805c6b4097cba2c5ad95c7", "/system/lib/libnvaviparserhal.so", "e65d06d05772ba5f81f045907753c1b452bc5792", "/system/lib/libstagefright_soft_vpxdec.so", "74202d7192d3e0d86fc1021e54fc10cf7b73b1ef", "/system/lib/libutils.so", "1c1609ed86565c0eeac02a899a6f8d35af8f46e2", "/system/lib/libnetlink.so", "7f15c7c73c6cf927dfe9778b353906da2dedb665", "/system/lib/libbcinfo.so", "8ddd087a0520f58d66c703464e391605bff63b50", "/system/lib/libmplmpu.so", "6e434d595a46a5d11add7f7a2e2748df855a7a24", "/system/lib/libOpenSLES.so", "9355d1899308fba0f7389873474982c7f29015ab", "/system/lib/libnvddk_2d_v2.so", "01fecbbdfc75057b0ef8c29ead715db87670fb33", "/system/lib/libsensors.base.so", "bdf2a94f5eada0401e1e369acdb2e80f42270fe2", "/system/lib/libnvmm_audio.so", "300328d78d6ca395bba115d82a1f058f36ca6d98", "/system/lib/librtp_jni.so", "8b6cb12c7c0ecc126f42ede16fec0363d7b36877", "/system/lib/libstdc++.so", "a521c2814071da0327412219c75b68f0e8795da4", "/system/lib/libmllite.so", "884929aa0886d364562ca764f2cd8958d7130fda", "/system/lib/libnvavp.so", "f7fa0e7649f035d571c72cfeb1b580b86bc1df86", "/system/lib/libvoicesearch.so", "978da70eb4ba78ef37e8fcd7c66dadba64912107", "/system/lib/libmtp.so", "13990a0f2221b603041b86238353796f12f40f60", "/system/lib/libgabi++.so", "a9f1b458a1a9d94be9db2fbf3866ac3b7d55da06", "/system/lib/libstagefrighthw.so", "c1ad1244a187eddd62e297c9edb6d4e2fffb2082", "/system/lib/libnvmm_image.so", "cb238f3d179555a50cfb65daed0e6dd7e59802e7", "/system/lib/libjni_latinime.so", "439b77f88b6a99e7d5c61b7f74c910445b2eac19", "/system/lib/egl/libGLESv2_tegra.so", "02109cd4df082c28f393b0ff9050ed93e893a541", "/system/lib/egl/libGLESv2_perfhud.so", "bf22eb715ff3c86eeec5163d3c5e1a9fdd70bedf", "/system/lib/egl/libGLES_android.so", "f3421915e0f592c792ebc2a1c1e69df256938027", "/system/lib/egl/egl.cfg", "490b07f24cccb26a3a25daa04372ff9a65210357", "/system/lib/egl/libGLESv1_CM_tegra.so", "1345c9faa6917b39ad2dd1a5b344984159267894", "/system/lib/egl/libEGL_perfhud.so", "70c2adb66884fbb6bfb45c2b6925a3e1c2b93fc8", "/system/lib/egl/libEGL_tegra.so", "a3d0e1ffe82f006877e3acbdade1d3ddb1906f06", "/system/lib/egl/libGLESv1_CM_perfhud.so", "ba0b9bdd9d72fabdc831005fb796a285bd80c7ac", "/system/lib/libfrsdk.so", "6ad2ca8638d63d0f9a3bb58bd95f3591bb46a7e5", "/system/lib/libfilterpack_facedetect.so", "62b6b283e25282eecd1176868849e2e87ac0a491", "/system/lib/libnvhdmi3dplay_jni.so", "bfc3d0dca7d2ed2236f14e2512ebd298649099ea", "/system/lib/libwpa_client.so", "da59fb469d89a82516d59df92bb9aa35391bf4d4", "/system/lib/libnvmm_misc.so", "6b44f8f0730b4634f68e7eba79149c2cfe097206", "/system/lib/libakmd.so", "2e7dd1bcd3da1fb83f35f91ffa4f836c405e6ac9", "/system/lib/libdvm.so", "6757fa5c20f5ac5fafa14f90d6339b662c0aad59", "/system/lib/libnvmm_aviparser.so", "b28dfc1191da6399f877e4373d9aec876dc3b035", "/system/lib/libreference-ril.so", "023bc1ecdb01998cfee90047e9e66705de2be3ec", "/system/lib/libstagefright_soft_h264dec.so", "c7d2c379e6219652c9b99568d478e542b2fda3a1", "/system/lib/libfilterpack_imageproc.so", "13605f14be813bdb646936e523a16a265f052e0c", "/system/lib/libgui.so", "3b8a4be81d27e5f3ae1fae3848b3f415cf4930b9", "/system/lib/libusbhost.so", "6fcf4f0542e64e0f8b36b85a1347988fce4981eb", "/system/lib/libbluetooth.so", "a4dd6a35035d6ea59946654be5f8d3ae7c1685ae", "/system/lib/libandroid.so", "fb7abbd35ed3b67e246f1402d3f707f4941ce099", "/system/lib/libext2_e2p.so", "72c3a7d3da9c812a48341538792e7d1b54bf77b9", "/system/lib/modules/bcm4329.ko", "276a5fc18b8766f78699ab089e273d94cbe58a67", "/system/lib/modules/scsi_wait_scan.ko", "738099703355b42160a1556d97f84212fa39174f", "/system/lib/libeglstreamtexture.so", "1a2650eca3e96a9c0fc3f94511c6667913ccb295", "/system/lib/libsensors.mpl.so", "47a3ac6f3b969f56631552e27f35635bb4b955d0", "/system/lib/libbtio.so", "00e327e63d482c0d31c7dbb50b1929076b7248e8", "/system/lib/libnvmm_video.so", "914ea0c84bc1f9e60b96554f5c49905a3bc73512", "/system/lib/libwebrtc_audio_preprocessing.so", "090da35514579b33bef1783e9e025595272ee1aa", "/system/lib/libext2_uuid.so", "6334bc4974ccf25cf1c1c241afc3fec7526239eb", "/system/lib/libnvwinsys.so", "1f1ccfeff6cf026684288738d8462c9a56651c9d", "/system/lib/libjpeg.so", "7d3d7bef31db7abb75acb5a53eeff6348e7fe913", "/system/lib/libsonivox.so", "0bbfed20603b993e00a1c214b4109f083b416401", "/system/lib/libnvmm_parser.so", "26bdf5a8bc6fd30e406cc014ebff05620111862a", "/system/lib/libbcc.so.sha1", "f45f90b3ec6c6e16e40ad73a4a719af1ae15527b", "/system/lib/libnvodm_imager.so", "a7d74105d49a4a0d094f690f34a555e1b6e1bf49", "/system/lib/libnvmm_camera.so", "4043099cacc37452415ed13b5d235bc0fea181a5", "/system/lib/libandroid_servers.so", "08cbb4e5bf510fd9e4828731bfb4a154c4444c8b", "/system/lib/libfilterfw.so", "cfd15c297dbb230deea70d142e81f780684f3761", "/system/lib/libflint_engine_jni_api.so", "dcca3a1883d840eea560350b477a61e497918f1f", "/system/lib/libthread_db.so", "af961b1707a2a4de575bf653da6b549dc51b2ddb", "/system/lib/hw/audio_policy.tegra.so", "e75a6c60f196b892c62f3e6a8cd51e73c9c95087", "/system/lib/hw/audio.a2dp.default.so", "eae1c972d3a332845974a3752226aa52646b8417", "/system/lib/hw/hwcomposer.tegra.so", "e50a405bd18a21d4f99750862b1e4a1ee41a65e8", "/system/lib/hw/gralloc.default.so", "71fff4c1cc53a777dca7f16d863fc152b0669f61", "/system/lib/hw/audio.primary.default.so", "9941b2d165a8e81460e3b3ca13bea21d7d6cb509", "/system/lib/hw/lights.ventana.so", "a632e5547c41c755da374fd30b91c6f02118fa86", "/system/lib/hw/gralloc.tegra.so", "b42e9dcd05f00ac8f98827f969343af88329b087", "/system/lib/hw/audio.primary.tegra.so", "caf0220f6cbdb871d324b275340fb91b1f0e1123", "/system/lib/hw/audio_policy.default.so", "f4e25305a9b5699338e304b28199e39b9d21a2e0", "/system/lib/hw/sensors.ventana.so", "737dadaef2646baaba123b8a06b35da3035b4ee7", "/system/lib/hw/nfc.tegra.so", "c04f0fdadec8f145c32a33559d983a3da6538511", "/system/lib/hw/camera.tegra.so", "31417e28e1f7fa00ff2db110096985c13d7e641b", "/system/lib/hw/gps.tegra.so", "0bb99faac0dbe54cd2e4ee4343dfc8c71ab611e6", "/system/lib/libstagefright_yuv.so", "5c6b423c5a9df9d5e2b86c5f535de1f3cf085ce4", "/system/lib/libeffects.so", "bbec4344ed7cfb34f9d50f065131500f6cedd292", "/system/lib/libspeexwrapper.so", "6b13c980b87d164277c02b707a61f8f494d09ac7", "/system/lib/libstagefright_soft_mpeg4dec.so", "3616f9f0c82c26d27b6403565a4d85e5aa6557ba", "/system/lib/omxplayer.so", "bc319e7153998abbc68a73e9238f2711f9a8e844", "/system/lib/libcameraservice.so", "78de6148037c43894cf492eeb6a78bf68da502ab", "/system/lib/libskia.so", "773556b3f74397f8c0df252264c7f6818fd2d02b", "/system/lib/libvorbisidec.so", "9f2e2a863937fa4e36021dd2baa459440c45577c", "/system/lib/libnativehelper.so", "7a3b90e701a5097350bc7b3b36698e91296b2f00", "/system/lib/libstagefright_soft_vorbisdec.so", "e33c21e3cb923586da40140505e703890a7dd6ba", "/system/lib/libnvmmlite_video.so", "ae1507b683819aae72a7cb879c8b16ca6aef493f", "/system/lib/libfacelock_jni.so", "8c8b91ffaaa870e5a343a8f2461ad2f618f0102f", "/system/lib/libsensorservice.so", "539863616a077e72a8e3d1cf3d6b87df5fc209e9", "/system/lib/libardrv_dynamic.so", "0e24cbd0639ba850af181cfe5d518381ef4e86f5", "/system/lib/libinput.so", "d378a1d29ba9344cc14e8bde3336ada040e97058", "/system/lib/libdefcontainer_jni.so", "5969d89407c3a828fcee62c4a214f1f2ce99ef2f", "/system/lib/libGLESv2.so", "393cbf84ccd4a7878a5dff9b275812c8f3692116", "/system/lib/libwilhelm.so", "1e731d7e010823af65f72195dc294531ebdf7f24", "/system/lib/libGLESv1_CM.so", "b2a6d5cabcdfbf8d4e64e2a9a65ae7f5c7153554", "/system/lib/libnfc_ndef.so", "50bf64ce797ea7632106a70e28105a661a90b5b6", "/system/lib/libmpl.so", "73d4080f87bc483bbba1e54ee4384036183a8cda", "/system/lib/libinvensense_hal.so", "c2e7eb6460ffb57685bc66df3dedf70343bb6743", "/system/lib/libstagefright_enc_common.so", "b0de49469db0ad0003f20b33031c12ae0afb7260", "/system/lib/libext2_com_err.so", "508866d907b2006583e28bbf75f982afb14da0ba", "/system/lib/libjnigraphics.so", "5125e4c6be320739d67115b8572fd8487162069f", "/system/lib/libnvtvmr.so", "a63392f1d0d4d21f51b9730f69e11842e965fbdc", "/system/lib/libsqlite.so", "cb1ac634ef45a441bb48a9814eb04238bdaac7fb", "/system/lib/libharfbuzz.so", "1750c426b6c0425e31042448bef65b5b184a211d", "/system/lib/libcrypto.so", "66b108807599f0d29f68e1d942887bc486189d33", "/system/lib/libsqlite_jni.so", "db7d85f37512920ec01a9e2d3bdcb0aa21115028", "/system/lib/libcamera_client.so", "5fff50655c8f6a827d79b263875380dd4ce9eb26", "/system/lib/libbinder.so", "bc5d148bb82f8d4516f8f8ea29d5f14a05a006a1", "/system/lib/libstagefright.so", "b9a6d722a3401b6609145c505e0984db92cc8e2f", "/system/lib/libpixelflinger.so", "0758e4f780d2893f0535f2527f93d3a9e41c5b75", "/system/lib/libnvmm_manager.so", "1194f413cf1d78470bb94d3cb726df006eb380c3", "/system/lib/libsystem_server.so", "7724cd7777c49741506ecf0a72ebb88cd4cbeab0", "/system/lib/librs_jni.so", "8889d50de56fea2e9c69b6a87efb76be5c512ea1", "/system/lib/libril.so", "4341646df14f48e222ab02e23492b9e585ecca3c", "/system/lib/libnvmmlite.so", "e12aa6015a5526cf3c49bcde2531ebdb9c743ee5", "/system/lib/libext4_utils.so", "d5b6c7ec212b1c53efe4770bc2034596c385a2ed", "/system/lib/libnvddk_2d.so", "8045625bd59c1d09870ee98e13d92f71f7106136", "/system/lib/libOpenMAXAL.so", "35284131b86b9257cdf7bd28e602c1e7f147b54f", "/system/lib/libpowermanager.so", "3b9adc50ba012ed4557a44c384360525d7b45fb6", "/system/lib/libexif.so", "0d68a01c18ee23b2604e3ee398180650420ae359", "/system/lib/libnvomxilclient.so", "6de4be85d278531a5420a6e8f8859c8ae33d0d99", "/system/lib/libmedia.so", "ab84c21dd55e7d67fce1f899bed6818254ea0825", "/system/lib/libjni_mosaic.so", "2d64446aff425b0397fa6ed7d96a183ee9594e09", "/system/lib/libnvos.so", "0b035761a6cf0591d46532094b0a4c17c44a5e26", "/system/lib/libnvmm_contentpipe.so", "8fc0d8fe683af076a9784d5a01f20a0ab59a1fc1", "/system/lib/libsurfaceflinger_client.so", "bedbc4ee036e2a4f7e6fbdbcef43852e34b8bdab", "/system/lib/libspeexresampler.so", "17aaa6afb5fa4d161d37f308b7dc2389f6133553", "/system/lib/libwebcore.so", "990217ec2b2389bb9aecff3d811a8895e234a885", "/system/lib/libglib.so", "5d886427c25490e31595da6743b85e6985c50fe7", "/system/lib/libm.so", "0f8feae8c1a2240b8acf992ad1319ab0c3318062", "/system/lib/libsoundpool.so", "86c4965ea6d5cd9608e1fa786f7cd1f967b3c872", "/system/lib/libpower.so", "dbc2ea3bb1f348487ee2886eb7213eea5de0c1f2", "/system/lib/libsensors.isl29018.so", "407d0dd3f7fb535c50fd5be4b44fe6e08afef45e", "/system/lib/bluez-plugin/network.so", "dfb4e3c4b9bd6c3748f652d9bd93a1295877059a", "/system/lib/bluez-plugin/audio.so", "4820d45777921abf6ad134d6ad8108ea0a0bf37b", "/system/lib/bluez-plugin/bluetooth-health.so", "9f03c3518eabc79cdd44d08040804ee17254891a", "/system/lib/bluez-plugin/input.so", "fe2a38715ff4504cde53894b1aeb226a836c8515", "/system/lib/libui.so", "84eb7d9f5499ee52c0abca51c8dd1e7b10d3bc51", "/system/lib/libnvtestio.so", "77dcb25c93010c2d8ac9913657b06e2777cb2fbc", "/system/lib/libnvmm_utils.so", "e78bc388e85efa61103189d1365df90bd4aaed7a", "/system/lib/libext2fs.so", "d9483a255d3aefec6d5e7352e4b4628f20e2be24", "/system/lib/libnvmmlite_audio.so", "af711a4587d73ca012d925eab610656d3f9a42bb", "/system/lib/libstagefright_avc_common.so", "fbe8da2d20c25a35e80a72f2a586ce0612f0df57", "/system/lib/libsrec_jni.so", "b5b662a84b86eb5d2c9eb7db447643cd8a740a2b", "/system/lib/libnvomx.so", "974ef44d6c0cfae71cc24b54365cd6f5b679fe90", "/system/lib/libbluedroid.so", "abba80c9f7bbe164c12781ff0bd595c1f0a2287d", "/system/lib/libnvodm_hdmi.so", "6988b8b28bd60e8cdb3bebab3cc908f2246cf49d", "/system/lib/libnvomxadaptor.so", "5b1409833f0d5ede64ae2cade564636edf9c5745", "/system/lib/libdbus.so", "589d76227939eba6a8b5f0c5007a80923acf70b1", "/system/lib/libpicowrapper.so", "b6b0ce5d40b19f6da8a2027f2a8e7987d555bcfb", "/system/lib/libaudioservice.so", "682441a22934686fdb931c95e277a23efefde5ec", "/system/lib/libdrmframework.so", "25da187d88b03f303a3c2086c21342a3c47efac1", "/system/lib/libstagefright_soft_g711dec.so", "9851c11e2c28d1453afb955c6b8de3894629ffc8", "/system/lib/libnvcpud_client.so", "9d8a8119855eea83c647a049ab611cc560a47e5e", "/system/lib/libz.so", "a489a2037ab1d72c824cf3a0548fe9256239d57d", "/system/lib/libnvmm_writer.so", "7808b5aefb804dd6e70a79143e3c844ad700ed38", "/system/lib/libstagefright_foundation.so", "ac291a2d78957c1d9f2d003e3ae38c940a1bdd28", "/system/lib/libhwui.so", "d907ed519a78b34cf447aaac7699f61a21387ef7", "/system/lib/libvideochat_stabilize.so", "f51e325e8fffff591f5525b774d0a1a68a2479a2", "/system/lib/libnvtestresults.so", "621af8929d2cc7b34b857e3c529de6efc888a081", "/system/lib/libnvmm_vc1_video.so", "3e9cfeec29b0c8e0407796365c64e194481d3eb1", "/system/lib/libext2_blkid.so", "e13601dc4d14194e1fed7286afa155fe9d10e239", "/system/lib/libnvmm_msaudio.so", "f021133fe0fbd8d8e03c37f8dd8ac0bc1eeb7300", "/system/lib/libstagefright_soft_amrdec.so", "fe3ea19e8407f3f3b2fcec90c115c0c94ceeef2a", "/system/lib/libnvasfparserhal.so", "645922e939fb53d2f77656a5d90a28bb364560f5", "/system/lib/libhuawei-ril.so", "6c700e83213dce585986fff4ff83e3b84b929d18", "/system/lib/libnvodm_dtvtuner.so", "a1373ca133c4d9695c14f46dc28682ae3b4cd629", "/system/lib/libnetutils.so", "c0585e5ebadcc4f4c0d6b77f0816b620d11659f4", "/system/lib/libicuuc.so", "c26afecef125ca90ab21d5270018c8d03f23656b", "/system/lib/libdrmframework_jni.so", "7648bbb758fb88ec7811fbc2ebdb53815505d34a", "/system/lib/libnvmm.so", "db23867464f594133db43ac2af90a6af26bb4bd9", "/system/lib/libssl.so", "b391c182f4be69d67255d35a7122e03f33be2688", "/system/lib/libvideoeditor_jni.so", "f7b2d7cd1a873ae08eead83181b0d2b73448ee22", "/system/lib/libdrm1.so", "4ddc0419dd6d644ec683d30f25420d7b33c9db71", "/system/lib/libpython2.6.so", "576f3bc50a7efbfcab6b6d99e075c900422839ba", "/system/lib/libclcore.bc", "a1e2610fdc0c2ef151248092fa32be807d1b983d", "/system/lib/libnvdispmgr_d.so", "5d2b27edcbb05740ec6f751f589a12ca30a70062", "/system/lib/libicui18n.so", "a0e525baa550ef4c57a22afe46afee461e8c97b5", "/system/lib/libnvmmlite_utils.so", "2be48806e0a7ccbb9ab899085cc25456861d62ff", "/system/lib/libnvsm.so", "1d894af31cc6e5c58dffe51c3b73077111007c2d", "/system/lib/libnvsystemuiext_jni.so", "61741e29c1acacd657a151b51878972db4fb3e09", "/system/lib/libstagefright_soft_mp3dec.so", "56fc8eaa0947ac04ebd25e2fad6d44a1878aed3b", "/system/lib/libmedia_jni.so", "678132b9798442b29ac6b6aaae90ede55233cdbb", "/system/lib/libmlplatform.so", "6431e014e14d1fbd691fb07087e9999e976bc8f8", "/system/lib/libexpat.so", "5812a8f9f9312ec86309badd170ddc699034fcae", "/system/lib/libdrm1_jni.so", "1fa8cac6a029b2ab09d36e12af9de8af51bc9bba", "/system/lib/libEGL.so", "3d890a4c0cc06d5b5a4969bcedd693d7924fd03e", "/system/lib/libasound.so", "563c09dee7ecafde3e78d401d825247b9fbdfa8d", "/system/lib/soundfx/libdolbymobileeffect.so", "b88da112e81992251df88a1639613f8a7120c5e7", "/system/lib/soundfx/libvisualizer.so", "7681b3ce723e8e3841d756fb670543854c06dd60", "/system/lib/soundfx/libreverbwrapper.so", "1fbb9b6b89e4ebb3397836f3d39d4c9a443452ea", "/system/lib/soundfx/libbundlewrapper.so", "3891fc07470444df5d95114dd1b523a5a137d9fc", "/system/lib/soundfx/libaudiopreprocessing.so", "f3d8b791516df94171adf375224b81731506f1be", "/system/lib/libstagefright_omx.so", "f1990ae6392a7fe876761667e8e2ca75cc438b8f", "/system/lib/libnvrm.so", "68cd216f32c9f0534b5e9fada9a8d221a54dd74f", "/system/lib/libvideochat_jni.so", "6cc4d56b56118c959c65b65724e947de74f05402", "/system/lib/libandroid_runtime.so", "edd08cda2c7b69fc22d2359aaac4f8f7b99f1c9b", "/system/lib/python2.6/lib-dynload/parser.so", "69b10f6d963ed0579f5101d6c79d1eec56f9426d", "/system/lib/python2.6/lib-dynload/binascii.so", "075e0ea2d3e6c82fab5a76594f78538072967a8b", "/system/lib/python2.6/lib-dynload/_fileio.so", "d1c043d926a9dbe93c83c2fbef794158335c5bf8", "/system/lib/python2.6/lib-dynload/_struct.so", "7b9105b4a5c1663e8be4008c92953d521cb3c9dd", "/system/lib/python2.6/lib-dynload/_random.so", "3a744ba783f40b3d8d5c77982a9abd413a28c3c2", "/system/lib/python2.6/lib-dynload/fcntl.so", "afabc0b750e82332be475351475569f67f8267ab", "/system/lib/python2.6/lib-dynload/_weakref.so", "5ff6fbe9e2461587f83c746f4f58f320e5338621", "/system/lib/python2.6/lib-dynload/operator.so", "63ffbd77f921336154843eb905253007a65bf82c", "/system/lib/python2.6/lib-dynload/_collections.so", "59c9ff7c03ea37daa68875f34eaaae94291dd32b", "/system/lib/python2.6/lib-dynload/_socket.so", "7ad9fc4dc21f80d0f92d9a901cf71207a3090b0d", "/system/lib/python2.6/lib-dynload/time.so", "4bfdacbade4eb5cb5ae9c2d7a62ed6438e4362e0", "/system/lib/python2.6/lib-dynload/cmath.so", "191fe31db2a035c19421b24f198569104b9ad7eb", "/system/lib/python2.6/lib-dynload/array.so", "51c871940c444ff562a4a4a6ed44edb78256160c", "/system/lib/python2.6/lib-dynload/_functools.so", "91ce6092facc590a3c16f42e82702a0904b645d3", "/system/lib/python2.6/lib-dynload/strop.so", "49c5ea52b9e5b4bf0e86bb53b73866c735f0e82b", "/system/lib/python2.6/lib-dynload/unicodedata.so", "90eb4841d0d2e000ec60ef3f5d6245021c521d17", "/system/lib/python2.6/lib-dynload/_nvcamera.so", "89744b22b3bbc52b01c810e88bc74b3cd8f92699", "/system/lib/python2.6/lib-dynload/datetime.so", "0defbdf93753e517e425257cf0406d9abd8530ab", "/system/lib/python2.6/lib-dynload/math.so", "8dc25fff032a5df805204bbe6f1be00300ce8dbe", "/system/lib/libgcomm_jni.so", "ea94a30c0dc6bf867395cc0d131e2492d9f80851", "/system/lib/libext2_profile.so", "69b086d0c920ea92e60a4cc4d9ac4056e711a345", "/system/lib/libstlport.so", "2b745b4d15e887d405c34a08d4218992335a9502", "/system/lib/libnvmm_asfparser.so", "1c858000b79ceadfdbfb4d59d722c563bf927a95", "/system/lib/libdiskconfig.so", "4d4ddeaaee09096324b8b830193e2faf56bc9007", "/system/lib/libnvodm_query.so", "493e8ad104a9030830e5d956deed7db9be5d0cb9", "/system/lib/libRS.so", "f1ae2833bf591ce7e6dda4be08bb3f5ed1ec0ae2", "/system/lib/libsysutils.so", "04c4cb3032ddfb01cbac4beac33bddf294bc70ac", "/system/lib/libnvwsi.so", "9d537ed8cc127493134ec6a6d88263995041a0b5", "/system/lib/libchromium_net.so", "3328fbcb174595778a95f4172148279db9000f1f", "/system/lib/libbcc.so", "bce9df0cc2493305688ddcbcd4953b64500315b8", "/system/lib/libhardware.so", "1686f1dccae9fa70ea7dbe5bc33e9cb44e24a1d2", "/system/lib/libiprouteutil.so", "0faeb9e9f8149e6d3ac6ab7b6eaec1ab6ebd8f29", "/system/lib/libnvcpud.so", "ba83c3bf6c053f247c5982a184e270dafd14f4c7", "/system/lib/libstagefright_soft_ddpdec.so", "8b7de994873f600fc79f156ab5772d314dd35263", "/system/lib/libGLESv2_dbg.so", "007c445d1490fd5dd091fc683db8258c25da973a", "/system/lib/libmediaplayerservice.so", "f42da5a0c0b766e109372ad0b17fbdf4ef5ee95c", "/system/lib/libhardware_legacy.so", "cd36fcf23fe3884d9b95b31a3cebc32b649814e1", "/system/lib/libSR_AudioIn.so", "5f62848b61344c095f4761dec6be3204ecdf523e", "/system/lib/libvariablespeed.so", "87685d538c6cc209f3f6e34254ec002e908ffa58", "/system/lib/libtf_crypto_sst.so", "7c836f5e9feeb7d6a7c94c6013ad378245a50aca", "/system/lib/libnvrm_graphics.so", "b8426e0096f0d12f349fd189151969aa76e758cc", "/system/lib/libaudioeffect_jni.so", "5670f6c3bef4caaaf85e68196f6c739fef6d3fe8", "/system/lib/libFFTEm.so", "d9f4fafbb1e06ae89f7ae67c42c2980415b4fd79", "/system/lib/libnvodm_misc.so", "0c4efb280978afe3e64594ce28a82f56da78ebdd", "/system/lib/libcutils.so", "af142e13f3b60bee44305cbe7bc000a96a27d93d", "/system/lib/libnvparser.so", "610cf7c95c63d3911c266fd09edaf6bc09d7cb92", "/system/lib/libvideoeditorplayer.so", "6b1d8922ee8d79f40cdd86b0ac0cbc35a9d19fab", "/system/lib/libbluetoothd.so", "66ae0241084217ecb6e380db1ced610b1a08bd32", "/system/lib/libWVphoneAPI.so", "1ce8599032c622acb9af9acc809b3921311c03ae", "/system/lib/liblog.so", "1fed48d417e9016fb57368061bbfaa814087ba55", "/system/lib/libcgdrv.so", "91e72f2b84359620bcc7e4f137122e71181cf293", "/system/lib/libdl.so", "cfcdfc7d9cdab3affcc3bab44d25dc73bf3a5dc8", "/system/lib/libnvmm_service.so", "76139ff5119497239a4771e7fd0dbb30cf2a730d", "/system/lib/libaudioflinger.so", "0a8c8c88ae0ae72310fb1ce41d7421eda3e9fd19", "/system/lib/libstagefright_amrnb_common.so", "5ad8ceb94d11f7eb20d0cbf38aa21d93dc1b27b3");
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, 1000, 06750, "/system/bin/obexftpd");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(0, 1000, 06750, "/system/bin/sdptool");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(0, 0, 0644, "/system/etc/bluetooth/bdaddr");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.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/firmware/bcm4329");
set_perm(0, 2000, 0755, "/system/vendor/firmware/bcm4330");
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, 0644, "/system/vendor/pittpatt");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-r0-ri30.4a/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rn30-ri30.5/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rp30-ri30.5/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-num/p2");
show_progress(0.100000, 0);
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-num/p7", "/data");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-num/p8", "/data/temp");
delete("/data/media/.apk-link");
set_perm(0, 0, 7755, "/system/xbin/su");
unmount("/data/temp");
unmount("/data");
unmount("/system");
And... So...????????
Is anybody interested in the Android 3.2 OTA for Medion Lifetab P9516? If so, I would upload this file. It will work on your Lenovo IdeaPad K1 (at least it did on mine) and it should give you the build properties you need to flash the ICS OTA on Lenovos' server.
isime13 said:
Is anybody interested in the Android 3.2 OTA for Medion Lifetab P9516? If so, I would upload this file. It will work on your Lenovo IdeaPad K1 (at least it did on mine) and it should give you the build properties you need to flash the ICS OTA on Lenovos' server.
Click to expand...
Click to collapse
Didn't you say in your last post the HC for the medion worked on your K-1 but the ICS updates didn't work? And shouldn't you note that your using the 3G K-1 according to your last post. I believe the build would be differs t than that for the pure Wi Fi K-1.
jfkerekes said:
Didn't you say in your last post the HC for the medion worked on your K-1 but the ICS updates didn't work? And shouldn't you note that your using the 3G K-1 according to your last post. I believe the build would be differs t than that for the pure Wi Fi K-1.
Click to expand...
Click to collapse
Yes. I managed to install the Medion Honeycomb firmware, but the device is stuck at the Lenovo logo after applying the ICS update.
I thought maybe someone else might want to test it, because I don't unterstand why it's not working. Maybe it's just an very early build, Medion said it will release the Medion Lifetab P9516 update at the beginning of July. Another reason might be that the preinstalled apps are missing on the Honeycomb OTA. But I think it shouldn't be a problem whether you use a K1 Wifi oder K1 Wifi+3G. At least I can use the Lenovo US Wifi-only firmware on my K1 Wifi+3G.
Well, I've made a backup script for my device using nvflash, so I can test updates and restore the backup afterwards...
i managed to get a bit further ...I took Khannings ics CWM flashable update zip and ripped out all of the files and started dumping in the files from the international medion rom and managed to get as far as the boot screen wich is nice ....almost has that nexus feel to it then it says LIFETAB .....then it died ....but atleast it got past the lenovo screen
at first it was complaining that the build prop didnt match so i made it match and it installed
Thanks a lot tech5. I've tried quite a lot, but every time after applying the update with CWM and rebooting, my device is stuck at the Lenovo logo.
I am very curious to find out if it is possible to use the Medion firmware on my device, because it isn't yet clear whether the official ICS release for the Lenovo K1 will support the K1 with 3G. And the ICS release from Medion will definitely support 3G.
Could you maybe upload the update.zip you created?
isime13 said:
Yes. I managed to install the Medion Honeycomb firmware, but the device is stuck at the Lenovo logo after applying the ICS update.
I thought maybe someone else might want to test it, because I don't unterstand why it's not working. Maybe it's just an very early build, Medion said it will release the Medion Lifetab P9516 update at the beginning of July. Another reason might be that the preinstalled apps are missing on the Honeycomb OTA. But I think it shouldn't be a problem whether you use a K1 Wifi oder K1 Wifi+3G. At least I can use the Lenovo US Wifi-only firmware on my K1 Wifi+3G.
Well, I've made a backup script for my device using nvflash, so I can test updates and restore the backup afterwards...
Click to expand...
Click to collapse
Either kernel,framework, will cause that
Sent from my Xoom using Xparent Green Tapatalk 2

[HELP][Q]Own Custom ROM Error- Root Problems

Hello Everyone! I hope somebody can help me.
I'm creating a custom ROM for SGY using DXLF1.
Deodexed and Zipaligned.
I already added the bmlunlock, Busybox and the SuperUser
However, some of the Applications don't detect the SuperUser.
I don't know if the error come's from the Updater Script.
Well, here's the code.
Code:
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluez");
set_perm(0, 0, 0755, "/system/etc/bluez");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/gps.xml");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.1, 10);
show_progress(0.2, 0);
ui_print("--flashing boot.img");
package_extract_file("bmlunlock", "bmlunlock");
package_extract_file("boot.img", "boot.img");
set_perm(0, 0, 0755, "bmlunlock");
run_program("bmlunlock");
run_program("/system/bin/dd", "if=boot.img", "of=/dev/block/bml7");
show_progress(0.2, 10);
ui_print("Done flashing boot");
show_progress(0.2, 10);
ui_print("Get ready to unmount");
unmount("/data");
unmount("/system");
unmount("/sdcard");
show_progress(5000, 0);
I hope someone can help me.
I am building a ROM that will have Green Themes and some secrets.
I don't have any problems in APKs and other, just this SuperUser

[HOWTO] Combined emulated storage for the Nexus S (LVM) [NEW CM11: 20150726-NIGHTLY]

Combined emulated storage for the Nexus S (LVM)
UPDATE! NEW CM11 ROM, version: 20150726-NIGHTLY
This is a guide to make your Nexus S use an internal emulated SDcard, and mount it using MTP (just like the Nexus 4 and newer smartphones)!
In order to do that, we have to enable the Logical volume partitioning (LVM) on our rom and recovery, using this great guide. Kudos to @steven676 because without him, this wouldn't be possible.
The end result is this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
in a Nexus S running latest CM11 M12
It’s going to be a long run, so take your time. This is a summary of what we are going to do:
Summary:
TAKE A FULL BACKUP OF EVERYTHING, INCLUDING SDCARD! EVERYTHING WILL BE ERASED! WE ABSOLUTELY NEED A TWRP BACKUP!
Create a modified recovery Use my custom built TWRP recovery, which will recognize the logical volumes and use the internal storage as SDcard
Create the specified logical volumes
Reboot into the recovery, and restore the twrp backup
Modify the updater-script of the ROM you want to use and change the partition directories
Create a modified boot image.
Archive the modified boot image inside the rom .zip
Create a modified framework-res.apk
Archive the modified framework-res.apk inside the ROM .zip
Copy the now-ready ROM .zip inside the mounted storage, and install it
Boot into CM11 with ~13GB data+sdcard combined storage!
Requirements:
My git repository: https://github.com/KreAch3R/crespo-lvm-emulated-storage
LVM repository: https://github.com/steven676/android-lvm-mod
A ROM .zip (CM11-M12)
A kernel boot.img (as of M12, I used stock)(Guru kernel)http://forum.xda-developers.com/nexus-s/development/kernel-guru-t2783561
A custom built TWRP recovery (you can download mine from the Downloads post, or build it yourself)
Android SDK tools configured on your PC (ADB running etc)
Android Image Kitchen
Apktool 2 (setup and ready, using this guide and this file (renamed to apktool.jar).
Basic linux, terminal, adb knowledge
This is my first guide, so any help is appreciated! I have used these steps and they worked for me, but YMMV. I will try to help you as much as I can, but you should be aware that using this guide may brick your phone. Please, be patient, read the guide carefully, take any precautions you want, and of course, I cannot be held responsible for whatever happens to your device. You are following this guide with your own risk (DISCLAIMER). Also, please excuse my wrong terminology, if there is any, and correct any mistakes.
So, if you are ready, let's start!
Instructions
BACKUP, BACKUP, BACKUP!
Backup everything you can, we need a nandroid backup, sdcard backup, etc. Try to imagine you have lost your phone, and backup what you would have missed!
[*]USE MY CUSTOM BUILT TWRP RECOVERY
Or, if you want to modify it yourself folllow the instructions:
If you only want to take an existing build of a recovery and modify it to accept and recognize LVM volumes, but you don't care about the internal media storage depicted as sdcard, follow the steps below:
Unpack the recovery image you want using the Android Image Kitchen
Copy the contents of lvm-bin/ in the lvm repository to lvm/ in the ramdisk folder
Copy devices/crespo/lvm.conf to lvm/etc/lvm.conf in the ramdisk folder
Intergrate the changes from my git files
(NOTE: I think fstab.herring and recovery.fstab should be identical to fstab.herring from boot.img, and twrp.fstab should be the only different, - but it is just a theory, not tested)
Repack
Flash using fastboot
If you want to compile your own TWRP build and make it accept LVM, you have to build TWRP from source using @daxxter 's build flags from this post (c/p here for clarity):
BoardConfig.mk (device_samsung_crespo):
Code:
PRODUCT_COPY_FILES += device/samsung/crespo/twrp.fstab:recovery/root/etc/twrp.fstab
DEVICE_RESOLUTION := 480x800
RECOVERY_SDCARD_ON_DATA := true
RECOVERY_GRAPHICS_USE_LINELENGTH := true
BOARD_HAS_NO_REAL_SDCARD := true
TW_NO_USB_STORAGE := true
TW_INTERNAL_STORAGE_PATH := "/data/media"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
twrp.fstab
Code:
# mount point fstype device
/system ext4 /dev/lvpool/system
/cache yaffs2 cache
/data ext4 /dev/lvpool/userdata
/misc mtd misc
/boot mtd boot
/recovery mtd recovery
/bootloader mtd bootloader
/radio mtd radio
/efs yaffs2 efs flags=display="EFS";backup=1;canbewiped
You also have to include the other modifications needed for LVM, such as the LVM folder and the necessary changes to init.rc. I suppose you can incorporate them in the building process, possibly doing modifications in the crespo tree files, but I didn't build it this way because I didn't think of it at the time, so the process is undocumented. I just built the modified twrp and then used the above process (with apktool) to make the lvm changes. Gross and ugly, I know, but I learn with all of this, too. Next time will be better.
[*]CREATE SPECIFIED LOGICAL VOLUMES
I created 2 logical partitions on the device, on top of the mmcblk0p1, mmcblk0p2, mmcblk0p3 partitions.
LVs:
/dev/lvpool/system 1G
/dev/lvpool/userdata 13.5G
Gracious command sharing by @RappyBMX :
Code:
# adb shell
# /lvm/sbin/lvm pvcreate /dev/block/mmcblk0p1 /dev/block/mmcblk0p2 /dev/block/mmcblk0p3
# /lvm/sbin/lvm vgcreate lvpool /dev/block/mmcblk0p1 /dev/block/mmcblk0p2 /dev/block/mmcblk0p3
# /lvm/sbin/lvm lvcreate -L 1G -n system lvpool
# /lvm/sbin/lvm lvcreate -L 13G -n userdata lvpool
OLD WAY:
Android OS is supposed to only recognize and mount the first two, (/system and /userdata). SDcard is created and symlinked in the /data/media folder, as per official Google examples.
TWRP Recovery, on the other hand, can mount all three of them, and uses the "media" partition as sdcard storage. I had to hack it like that for now, because I could not build the twrp recovery from source, using the correct make-configs (32bit system only here!), and the current crespo recovery can't recognize the emulated storage correctly, at least as far as I could try.
NOTE #2:
The plan is to build a correctly modified twrp for this crespo configuration when I get to my main PC and ditch the /lvpool/media partition. At this point I should mention that /media/ for a recovery-only partition is a terrible name, but I was following the lvm guide to the point, and I didn’t have time to re-do it just for a name change. If you want to change it, also change it in every .fstab file / mount point you find it.
CURRENT WAY:
Android OS is recognizing and mounting /system and /userdata as /data. The SDcard is created and symlinked in the /data/media folder, as per official Google examples.
Steps:
Boot into the recovery you just created (hope it boots)
Use the LVM guide and give the necessary lvm commands to create the logical volumes (ATTENTION! THIS WILL ERASE EVERYTHING!)
Reboot
Advanced format /system to ext4
Advanced format /data (type "yes")
Full Wipe-factory reset
In general, format everything you can to ext4 to make TWRP recognize them. No harm done, as your device is empty.
Now our phone is ready to take our modified rom.zip, once we build it!
[*]ROM UPDATER-SCRIPT
Open the ROM .zip and navigate to the updater-script. Replace the block partitions with the logical ones (I didn’t mess with ‘EMMC’ tag at all). Example, from this:
Code:
mount("ext4", "EMMC", "/dev/block/platform/s3c-sdhci.0/by-name/userdata ", "/data")
To this:
Code:
mount("ext4", "EMMC", "/dev/lvpool/userdata", "/data")
Save the file.
This is an example of a working updater-script file (the one used in my latest LVM-CM11-M12 rom):
Code:
assert(getprop("ro.product.device") == "crespo" ||
getprop("ro.build.product") == "crespo" ||
abort("This package is for device: crespo; this device is " + getprop("ro.product.device") + "."););
mount("ext4", "EMMC", "/dev/lvpool/system", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/lvpool/userdata", "/data");
package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
run_program("/tmp/otasigcheck.sh");
sha1_check(read_file("/tmp/releasekey"),"7241e92725436afc79389d4fc2333a2aa8c20230") && abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
format("ext4", "EMMC", "/dev/lvpool/system", "0", "/system");
mount("ext4", "EMMC", "/dev/lvpool/system", "/system");
package_extract_dir("recovery", "/system");
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("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", "u:object_r:system_file:s0");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "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("/system/etc/install-cm-recovery.sh", "uid", 0, "gid", 0, "mode", 0544, "capabilities", 0x0);
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/recovery-from-boot.p", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0);
set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/vendor/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:gpsd_exec:s0");
set_metadata("/system/vendor/bin", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/bin/pvrsrvinit", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:pvrsrvinit_exec:s0");
set_metadata("/system/vendor/etc", "uid", 0, "gid", 2000, "mode", 0755, "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/egl", "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/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");
show_progress(0.200000, 0);
delete("/system/bin/otasigcheck.sh");
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_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
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", "/tmp/boot.img");write_raw_image("/tmp/boot.img", "boot");
show_progress(0.100000, 0);
unmount("/system");
[*]MODIFY BOOT.IMG
Unpack boot.img
Copy the contents of lvm-bin/ in the git repository to lvm/ in the ramdisk folder.
2)Copy devices/crespo/lvm.conf to lvm/etc/lvm.conf in the ramdisk folder.
Intergrate the changes for the following files: fstab.herring, init.herring.rc, init.herring.usb.rc, default.prop
Repack
[*]UPDATE ROM .ZIP W/ NEW BOOT.IMG
Open the ROM .zip again and drag ‘n’ drop the kernel boot.img inside. It should replace the other one.
[*]MODIFY FRAMEWORK-RES.APK
Extract the .apk from the ROM .zip
Install the framework to apktool [apktool if ...]
Decode the framework-res.apk [apktool d ...]
Intergrate the changes
Build the .apk [apktool b ...]
Open simultaneously the created apk and the unmodified one. Drag ‘n’ drop the changed file from the created one to the unmodified. Save the unmodified file. Be careful to use the now-modified-previously-unmodified .apk from now on.
TIP: DO NOT use spaces in the apktool directories. Keep it simple to avoid errors.
[*]UPDATE ROM .ZIP W/ NEW FRAMEWORK-RES.APK
Open the ROM .zip again, drag ‘n’ drop the new framework-res.apk inside /system/framework, and save the file.
[*]INSTALLATION
Copy the modified ROM .zip inside the mounted USB storage. Install it using the recovery.
[*]BOOT
Let’s hope that everything went as planned and now you are rocking a Nexus S with a ~13GB combined internal storage! MTP should work, too.
Downloads
My TWRP, BOOT, ROM files, if you want to use them (MOVED TO AFH):
AFH LINK IS DOWN WITH NO LOCAL BACKUPS, SORRY
Current Download: CM11-20150726-NIGHTLY ROM (08/2015)
CM11-20150726-NIGHTLY ROM
Here is a CM11-M11 ROM File (11/2014) I found lying around:
CM11-M11-LVM-emulatedSD-guru101.zip
NEW FILE!: custom built 2.8.4.0 TWRP
@daxxter 's custom built TWRP 2.8.0.0 recovery (modifed by me for ext4)
CM11-M9 ROM Files (9/2014)
Mediafire links:
TWRP Recovery
BOOT img
CM11-M9 ROM
So, this is it. I hope I covered all edges, and did not make any mistakes (it is a big guide). Please let me know if something is wrong, or you have any suggestions or advice.
did the partition is compatible with art?can i install much app in art mode?
Hi!
I'm trying to follow your guide but i'm struck with the twrp recovery, i can boot in the twrp but the recovery doesn't mount any partition and i can't lunch the lvm commands from the other thread (i got "permission denied"). So i made successfully to the lvm partitions with the modded clockwork recovery, format the usb storage, copy the twrp backup and the reflash the modded twrp but even after that the twrp recovery won't mount anything and won't find the backup.
I'll attach my twrp img, can you post yours or help me someway?
cshnz said:
did the partition is compatible with art?can i install much app in art mode?
Click to expand...
Click to collapse
I have not tried ART at all, sorry. You can install many apps using the Dalvik runtime, though, just like any other phone.
Zeratul91 said:
Hi!
I'm trying to follow your guide but i'm struck with the twrp recovery, i can boot in the twrp but the recovery doesn't mount any partition and i can't lunch the lvm commands from the other thread (i got "permission denied"). So i made successfully to the lvm partitions with the modded clockwork recovery, format the usb storage, copy the twrp backup and the reflash the modded twrp but even after that the twrp recovery won't mount anything and won't find the backup.
I'll attach my twrp img, can you post yours or help me someway?
Click to expand...
Click to collapse
Hello!
Your twrp.img looks fine! I couldn't understand if you managed to actually create the lvm partitions though. Did you get past this "permission denied" error?
If you are using Linux, try:
Code:
adb kill-server
sudo adb start-server
In Windows try to launch it using administrator privileges
Also, after "adb shell" you can try to "su".
Code:
adb shell
su
If you think you managed to create the lvs successfully, use this command:
Code:
#/lvm/sbin/lvm lvs
to actually see what you have created.
Did you use the same partitions names as the guide? If you changed something, you also change it in all the fstabs, too.
I flashed your recovery, and you are right, no partition is mounted. Re-flashed back to mine and everything works. I can't find any difference though! I will keep searching. For now wait 5 mins for the upload.
I have started uploading my twrp.img, my boot.img and my ROM .zip, to help you test things, I didn't think of that earlier. I will post the links ASAP.
Hello!
Your twrp.img looks fine! I couldn't understand if you managed to actually create the lvm partitions though. Did you get past this "permission denied" error?
If you are using Linux, try:
Code:
adb kill-server
sudo adb start-server
In Windows try to launch it using administrator privileges
Also, after "adb shell" you can try to "su".
Code:
adb shell
su
If you think you managed to create the lvs successfully, use this command:
Code:
#/lvm/sbin/lvm lvs
to actually see what you have created.
Did you use the same partitions names as the guide? If you changed something, you also change it in all the fstabs, too.
I flashed your recovery, and you are right, no partition is mounted. Re-flashed back to mine though and everything works. I can't find any difference though! I will keep searching. For now wait 5 mins for the upload.
I have started uploading my twrp.img, my boot.img and my ROM .zip, to help you test things, I didn't think of that earlier. I will post the links ASAP.
Click to expand...
Click to collapse
I created the partitions with the names and sizes you said using the modded clockwork from the steven676's guide, I lunched #/lvm/sbin/lvm lvs under clockwork and everything was right and i formatted the 1gb media partition as FAT. TWRP wouldn't anything, not even mount the usb storage, and the adb shell would give me "~ # ←[6n" and permission denied with every command
Zeratul91 said:
I created the partitions with the names and sizes you said using the modded clockwork from the steven676's guide, I lunched #/lvm/sbin/lvm lvs under clockwork and everything was right and i formatted the 1gb media partition as FAT. TWRP wouldn't anything, not even mount the usb storage, and the adb shell would give me "~ # ←[6n" and permission denied with every command
Click to expand...
Click to collapse
Let's take this one step at a time. Grab the twrp image from the third post and test it. I can't understand what I forgot to include to the instructions. Testing now.
UPDATE: I think I found the culprit. Are you using Linux or Windows? your "lvm/sbin'lvm" file didn't have executing permissions.
Code:
cd /ramdisk/lvm/sbin
chmod +x lvm
Once I changed that, the twrp recovery worked. I don't know why yours was different from mine, I didn't have to change that.
KreAch3R said:
Let's take this one step at a time. Grab the twrp image from the third post and test it. I can't understand what I forgot to include to the instructions. Testing now.
UPDATE: I think I found the culprit. Are you using Linux or Windows? your "lvm/sbin'lvm" file didn't have executing permissions.
Code:
cd /ramdisk/lvm/sbin
chmod +x lvm
Once I changed that, the twrp recovery worked. I don't know why yours was different from mine, I didn't have to change that.
Click to expand...
Click to collapse
Unfortunately I'm on windows :S
BRB I'm going to try with your files
EDIT
I flashed your twrp, now i can use lvm commands and i created successfully the partitions:
Code:
C:\android-sdk-windows\platform-tools>adb shell
~ # ←[6n/lvm/sbin/lvm lvs
/lvm/sbin/lvm lvs
File descriptor 8 (/dev/__properties__) leaked on lvm invocation. Parent PID 120
: /sbin/sh
File descriptor 9 (socket:[1993]) leaked on lvm invocation. Parent PID 120: /sbi
n/sh
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
media lvpool -wi-ao--- 1.00g
system lvpool -wi-a---- 552.00m
userdata lvpool -wi-a---- 13.00g
Now i should format the 1gb media to fat, but usb storage mount does nothing and i still get "unable to mount" error in the twrp log
Zeratul91 said:
Unfortunately I'm on windows :S
Click to expand...
Click to collapse
I guess Windows created the permission error, then.
Zeratul91 said:
I flashed your twrp, now i can use lvm commands and i created successfully the partitions:
...
Now i should format the 1gb media to fat, but usb storage mount does nothing
Click to expand...
Click to collapse
I don't know if that is going to work in Windows, but try to go to Disk Management, and see if your usb storage is seen. It shouldn't popup a "new removable media" detected, it has to be formatted first.
In Lubuntu, I had to go to the "Disks" program, and locate the usb storage there.
Zeratul91 said:
and i still get "unable to mount" error in the twrp log
Click to expand...
Click to collapse
Unable to mount what? /system or /data?
KreAch3R said:
I guess Windows created the permission error, then.
I don't know if that is going to work in Windows, but try to go to Disk Management, and see if your usb storage is seen. It shouldn't popup a "new removable media" detected, it has to be formatted first.
In Lubuntu, I had to go to the "Disks" program, and locate the usb storage there.
Unable to mount what? /system or /data?
Click to expand...
Click to collapse
Ok i managed to do the trick, i did a manual wipe from twrp then i rebooted the recovery and successfully mounted all the partitions, then I adb pushed your rom and simply flashed it and it booted with the single virtual partition . Now i copying all my stuff back again on the phone and i will try to flash the euroskank build i modded
Zeratul91 said:
Ok i managed to do the trick, i did a manual wipe from twrp then i rebooted the recovery and successfully mounted all the partitions, then I adb pushed your rom and simply flashed it and it booted with the single virtual partition . Now i copying all my stuff back again on the phone and i will try to flash the euroskank build i modded
Click to expand...
Click to collapse
I am glad! Good job.:good: Report back if everything is working correctly (or not ).
KreAch3R said:
I am glad! Good job.:good: Report back if everything is working correctly (or not ).
Click to expand...
Click to collapse
After the flash the rom would boot (the first boot takes very long) but most of the apps like camera crash and the MTP usb is somehow broken... I suppose I also messed up the framework-res.apk mod :crying:...
I attached the modded framework
Zeratul91 said:
After the flash the rom would boot (the first boot takes very long) but most of the apps like camera crash and the MTP usb is somehow broken... I suppose I also messed up the framework-res.apk mod :crying:...
I attached the modded framework
Click to expand...
Click to collapse
I have a working camera and MTP. Does this happen to my ROM, too? If it doesn't, that something is off in your edits. Did you make the appropriate boot changes to the euroskank boot.img? I don't know if the Guru boot .img is compatible.
Please share the unmodified framewok-res.apk from the euroskank build to let me help you. Did you follow the drag 'n' drop procedure?
EDIT The framework-res.apk you attached is not modded:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_usb" android:primary="true" android:allowMassStorage="true" android:maxFileSize="4096" />
KreAch3R said:
I have a working camera and MTP. Does this happen to my ROM, too? If it doesn't, that something is off in your edits. Did you make the appropriate boot changes to the euroskank boot.img? I don't know if the Guru boot .img is compatible.
Please share the unmodified framewok-res.apk from the euroskank build to let me help you. Did you follow the drag 'n' drop procedure?
Click to expand...
Click to collapse
Your rom works fine and guru is compatible (i used your boot.img), I used android multitool to decompile and recompile the apk then i used 7zip to copy androindmanifest.xml and resources.arsc from the old apk to the new
Zeratul91 said:
Your rom works fine and guru is compatible (i used your boot.img), I used android multitool to decompile and recompile the apk then i used 7zip to copy androindmanifest.xml and resources.arsc from the old apk to the new
Click to expand...
Click to collapse
Ah, I see. Android Image Kitchen has a windows version, why don't you try with that, too, to eliminate differences between our setups?
Nevertheless, using your setup (android multitool), try to just copy storage_list.xml from the new apk to the old one, and use this file.
The second attached framework-res.apk is still unmodded:
Code:
<?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_usb" android:primary="true" android:allowMassStorage="true" android:maxFileSize="4096" />
</StorageList>
KreAch3R said:
Ah, I see. Android Image Kitchen has a windows version, why don't you try with that, too, to eliminate differences between our setups?
Nevertheless, using your setup (android multitool), try to just copy storage_list.xml from the new apk to the old one, and use this file.
The second attached framework-res.apk is still unmodded:
Code:
<?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_usb" android:primary="true" android:allowMassStorage="true" android:maxFileSize="4096" />
</StorageList>
Click to expand...
Click to collapse
Sorry I attached the same file, my pc is full of frameworks at this point lol...
I used android image kitchen to mod the twrp img but as you have seen windows is no good to do this kind of stuff :S
BTW seems I made it :good:, I hope no geek reads this:
I opened with 7zip your rom and the untouched euroskank and I drag'n'dropped updater-script, boot.img and storagelist.xml to the latter and... it works!
Zeratul91 said:
Sorry I attached the same file, my pc is full of frameworks at this point lol...
I used android image kitchen to mod the twrp img but as you have seen windows is no good to do this kind of stuff :S
BTW seems I made it :good:, I hope no geek reads this:
I opened with 7zip your rom and the untouched euroskank and I drag'n'dropped updater-script, boot.img and storagelist.xml to the latter and... it works!
Click to expand...
Click to collapse
For reference only, Android Image Kitchen shouldn't be responsible for the "Permissions denied" error, it has to do with the Windows filesystem.
After all, well done! Enjoy your new storage! I will try to start a FAQ from our encounter, and I will include your tip!
I'm on slim rom with ART enabled and this lvm mod was working...now i can enjoying so much apps in ART mode...thanks to dev @steven676 and @KreAch3R for make some magic

[Q] Can't flash any ROMs

I have an i9507 and I've tried twrp and clockwork mod recoveries but every time I try to flash a ROM it says the zip is bad but it happens with every zip I try. Tried different ROMS and tried re-downloading them as well. Nothing seems to work.
I've tried the m10 snapshot of the official cyanogenmod and also the 4.6 paranoid android beta 1. These have been ROMs for the i9505 which have worked before on this device. I re-installed stock touchwiz a while ago with the official firmware. I then used the auto-root method to root my device and flashed twrp with a .tar through odin but ROMS wouldn't flash in recovery so tried flashing cwm through heimdall cmd prompt. Then tried to flash more ROMs but still a no go.
Any ideas on how to fix this?
Cheers
Hello,
you only need to open the file updater-script (in any flashable ZIP under META-INF/com/google/android) and delete any line like the followings:
Code:
assert.getprop
getprop
abort: "This package is for"
And just leave the mount as first line, then save the file and flash ZIP.
This disables the check of the device
Inviato dal mio GT-I9505
Hi
Thanks for the reply.
I tried this and I still get "bad zip".
Any other ideas?
Is there something I can do that will give a better idea of the problem?
kris-adams said:
Hi
Thanks for the reply.
I tried this and I still get "bad zip".
Any other ideas?
Is there something I can do that will give a better idea of the problem?
Click to expand...
Click to collapse
Redownload the ZIP and repeat the procedure. Read also on the net how to write an updater-script, so you could be sure of the modification to it, leave the "mount" line as first.
If you get bad ZIP it's not compressed well (have you decompressed to modify that file and recompressed?) or download is corrupted
Inviato dal mio GT-I9505
558
AntaresOne said:
Redownload the ZIP and repeat the procedure. Read also on the net how to write an updater-script, so you could be sure of the modification to it, leave the "mount" line as first.
If you get bad ZIP it's not compressed well (have you decompressed to modify that file and recompressed?) or download is corrupted
Inviato dal mio GT-I9505
Click to expand...
Click to collapse
I've tried re-downloading the zips and also other ROMs too.
I did decompress the zip and modify the updater-script file then recompress numerous times.
I also tried to do a repair on the zips on my winrar app as well.
Nothing has worked so far. I'll look up how to write the updater-script file and check if I'm doing it right.
Thanks
EDIT - So I decompressed the zip, made sure to delete what this http://en.miui.com/thread-13226-1-1.html told me to delete then reompressed and tried to flash, still the same "bad zip" error.
kris-adams said:
I've tried re-downloading the zips and also other ROMs too.
I did decompress the zip and modify the updater-script file then recompress numerous times.
I also tried to do a repair on the zips on my winrar app as well.
Nothing has worked so far. I'll look up how to write the updater-script file and check if I'm doing it right.
Thanks
EDIT - So I decompressed the zip, made sure to delete what this http://en.miui.com/thread-13226-1-1.html told me to delete then reompressed and tried to flash, still the same "bad zip" error.
Click to expand...
Click to collapse
Don't compress by clicking on the folder->compress, in this way it's normal that it's a bad flashable zip.
Compress by selecting all the files/folders, in this way:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note that not all files/folders are the same in any flashable zip, but the correct procedure is this
AntaresOne said:
Don't compress by clicking on the folder->compress, in this way it's normal that it's a bad flashable zip.
Compress by selecting all the files/folders, in this way:
Note that not all files/folders are the same in any flashable zip, but the correct procedure is this
Click to expand...
Click to collapse
Yep, that's how I've been doing it
kris-adams said:
Yep, that's how I've been doing it
Click to expand...
Click to collapse
Can you paste here your modified updater-script? Between HIDE & CODE tags
Inviato dal mio GT-I9505
AntaresOne said:
Can you paste here your modified updater-script? Between HIDE & CODE tags
Inviato dal mio GT-I9505
Click to expand...
Click to collapse
I don't really know enough to know what you mean by CODE and HIDE tags sorry so I'll just paste the whole thing.
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_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
run_program("/tmp/otasigcheck.sh");
sha1_check(read_file("/tmp/releasekey"),"7241e92725436afc79389d4fc2333a2aa8c20230") && abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
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("recovery", "/system");
package_extract_dir("system", "/system");
symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
symlink("../xbin/su", "/system/bin/su");
symlink("/firmware-mdm/image/acdb.mbn", "/system/etc/firmware/acdb.mbn");
symlink("/firmware-mdm/image/apps.mbn", "/system/etc/firmware/apps.mbn");
symlink("/firmware-mdm/image/dsp1.mbn", "/system/etc/firmware/dsp1.mbn");
symlink("/firmware-mdm/image/dsp2.mbn", "/system/etc/firmware/dsp2.mbn");
symlink("/firmware-mdm/image/dsp3.mbn", "/system/etc/firmware/dsp3.mbn");
symlink("/firmware-mdm/image/efs1.mbn", "/system/etc/firmware/efs1.mbn");
symlink("/firmware-mdm/image/efs2.mbn", "/system/etc/firmware/efs2.mbn");
symlink("/firmware-mdm/image/efs3.mbn", "/system/etc/firmware/efs3.mbn");
symlink("/firmware-mdm/image/mdm_acdb.img", "/system/etc/firmware/mdm_acdb.img");
symlink("/firmware-mdm/image/rpm.mbn", "/system/etc/firmware/rpm.mbn");
symlink("/firmware-mdm/image/sbl1.mbn", "/system/etc/firmware/sbl1.mbn");
symlink("/firmware-mdm/image/sbl2.mbn", "/system/etc/firmware/sbl2.mbn");
symlink("/firmware/image/q6.b00", "/system/etc/firmware/q6.b00");
symlink("/firmware/image/q6.b01", "/system/etc/firmware/q6.b01");
symlink("/firmware/image/q6.b03", "/system/etc/firmware/q6.b03");
symlink("/firmware/image/q6.b04", "/system/etc/firmware/q6.b04");
symlink("/firmware/image/q6.b05", "/system/etc/firmware/q6.b05");
symlink("/firmware/image/q6.b06", "/system/etc/firmware/q6.b06");
symlink("/firmware/image/q6.mdt", "/system/etc/firmware/q6.mdt");
symlink("/firmware/image/tzapps.b00", "/system/etc/firmware/tzapps.b00");
symlink("/firmware/image/tzapps.b01", "/system/etc/firmware/tzapps.b01");
symlink("/firmware/image/tzapps.b02", "/system/etc/firmware/tzapps.b02");
symlink("/firmware/image/tzapps.b03", "/system/etc/firmware/tzapps.b03");
symlink("/firmware/image/tzapps.mdt", "/system/etc/firmware/tzapps.mdt");
symlink("/firmware/image/vidc.b00", "/system/etc/firmware/vidc.b00");
symlink("/firmware/image/vidc.b01", "/system/etc/firmware/vidc.b01");
symlink("/firmware/image/vidc.b02", "/system/etc/firmware/vidc.b02");
symlink("/firmware/image/vidc.b03", "/system/etc/firmware/vidc.b03");
symlink("/firmware/image/vidc.mdt", "/system/etc/firmware/vidc.mdt");
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("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/efsks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:kickstart_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/ks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:kickstart_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/qcks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:kickstart_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("/system/etc/install-cm-recovery.sh", "uid", 0, "gid", 0, "mode", 0544, "capabilities", 0x0);
set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", 0x0, "selabel", "ubject_rpp_system_file:s0");
set_metadata("/system/recovery-from-boot.p", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0);
set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/vendor/etc", "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/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/vendor/lib/drm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/drm/libdrmwvmplugin.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/vendor/lib/mediadrm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/vendor/lib/mediadrm/libwvdrmengine.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);
delete("/system/bin/otasigcheck.sh");
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_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
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", "/tmp/boot.img");
assert(run_program("/sbin/sh", "/system/etc/loki.sh") == 0);
ifelse(is_substring("I337", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("I545", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/cdma/* /system/"));
ifelse(is_substring("I545", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/vzw/* /system/"));
ifelse(is_substring("I545", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox sed -i 's/ro.com.google.clientidbase=android-google/ro.com.google.clientidbase=android-verizon/g' /system/build.prop"));
ifelse(is_substring("L720", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/cdma/* /system/"));
ifelse(is_substring("M919", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("R970", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/cdma/* /system/"));
ifelse(is_substring("I9505", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("I9507", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("I9508", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
unmount("/system");
kris-adams said:
I don't really know enough to know what you mean by CODE and HIDE tags sorry so I'll just paste the whole thing.
Code:
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_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
run_program("/tmp/otasigcheck.sh");
sha1_check(read_file("/tmp/releasekey"),"7241e92725436afc79389d4fc2333a2aa8c20230") && abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
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("recovery", "/system");
package_extract_dir("system", "/system");
symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
symlink("../xbin/su", "/system/bin/su");
symlink("/firmware-mdm/image/acdb.mbn", "/system/etc/firmware/acdb.mbn");
symlink("/firmware-mdm/image/apps.mbn", "/system/etc/firmware/apps.mbn");
symlink("/firmware-mdm/image/dsp1.mbn", "/system/etc/firmware/dsp1.mbn");
symlink("/firmware-mdm/image/dsp2.mbn", "/system/etc/firmware/dsp2.mbn");
symlink("/firmware-mdm/image/dsp3.mbn", "/system/etc/firmware/dsp3.mbn");
symlink("/firmware-mdm/image/efs1.mbn", "/system/etc/firmware/efs1.mbn");
symlink("/firmware-mdm/image/efs2.mbn", "/system/etc/firmware/efs2.mbn");
symlink("/firmware-mdm/image/efs3.mbn", "/system/etc/firmware/efs3.mbn");
symlink("/firmware-mdm/image/mdm_acdb.img", "/system/etc/firmware/mdm_acdb.img");
symlink("/firmware-mdm/image/rpm.mbn", "/system/etc/firmware/rpm.mbn");
symlink("/firmware-mdm/image/sbl1.mbn", "/system/etc/firmware/sbl1.mbn");
symlink("/firmware-mdm/image/sbl2.mbn", "/system/etc/firmware/sbl2.mbn");
symlink("/firmware/image/q6.b00", "/system/etc/firmware/q6.b00");
symlink("/firmware/image/q6.b01", "/system/etc/firmware/q6.b01");
symlink("/firmware/image/q6.b03", "/system/etc/firmware/q6.b03");
symlink("/firmware/image/q6.b04", "/system/etc/firmware/q6.b04");
symlink("/firmware/image/q6.b05", "/system/etc/firmware/q6.b05");
symlink("/firmware/image/q6.b06", "/system/etc/firmware/q6.b06");
symlink("/firmware/image/q6.mdt", "/system/etc/firmware/q6.mdt");
symlink("/firmware/image/tzapps.b00", "/system/etc/firmware/tzapps.b00");
symlink("/firmware/image/tzapps.b01", "/system/etc/firmware/tzapps.b01");
symlink("/firmware/image/tzapps.b02", "/system/etc/firmware/tzapps.b02");
symlink("/firmware/image/tzapps.b03", "/system/etc/firmware/tzapps.b03");
symlink("/firmware/image/tzapps.mdt", "/system/etc/firmware/tzapps.mdt");
symlink("/firmware/image/vidc.b00", "/system/etc/firmware/vidc.b00");
symlink("/firmware/image/vidc.b01", "/system/etc/firmware/vidc.b01");
symlink("/firmware/image/vidc.b02", "/system/etc/firmware/vidc.b02");
symlink("/firmware/image/vidc.b03", "/system/etc/firmware/vidc.b03");
symlink("/firmware/image/vidc.mdt", "/system/etc/firmware/vidc.mdt");
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("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", "u:object_r:system_file:s0");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "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/efsks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:kickstart_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/ks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:kickstart_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/qcks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:kickstart_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("/system/etc/install-cm-recovery.sh", "uid", 0, "gid", 0, "mode", 0544, "capabilities", 0x0);
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/recovery-from-boot.p", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0);
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_recursive("/system/vendor/lib/drm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib/drm/libdrmwvmplugin.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/vendor/lib/egl", "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");
show_progress(0.200000, 0);
delete("/system/bin/otasigcheck.sh");
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_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
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", "/tmp/boot.img");
assert(run_program("/sbin/sh", "/system/etc/loki.sh") == 0);
ifelse(is_substring("I337", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("I545", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/cdma/* /system/"));
ifelse(is_substring("I545", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/vzw/* /system/"));
ifelse(is_substring("I545", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox sed -i 's/ro.com.google.clientidbase=android-google/ro.com.google.clientidbase=android-verizon/g' /system/build.prop"));
ifelse(is_substring("L720", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/cdma/* /system/"));
ifelse(is_substring("M919", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("R970", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/cdma/* /system/"));
ifelse(is_substring("I9505", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("I9507", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
ifelse(is_substring("I9508", getprop("ro.bootloader")), run_program("/sbin/sh", "-c", "busybox cp -R /system/blobs/gsm/* /system/"));
unmount("/system");
Click to expand...
Click to collapse
Do you have an empty line after "unmount("/system");"? It's needed
By the way, your device is officially supported as jflte so you should be able to install without editing anything.
Maybe your recovery version is old? Flash the latest Philz touch and retry without editing the zip
2184
I just tried to flash the recovery you mentioned and it came up with this:
Can’t copy META-INF/com/google/android/update-binary installation aborted
kris-adams said:
I just tried to flash the recovery you mentioned and it came up with this:
Can’t copy META-INF/com/google/android/update-binary installation aborted
Click to expand...
Click to collapse
You can find in the same folder where you found the zip an Odin-flashable .tar.md5 of Philz, use it
Inviato dal mio GT-I9505
Installed philz touch tar file through odin with no problem but still getting the same errors :/
EDIT - I did a clean wipe after installing philz touch through odin and it now works!!! Finally have CM on my phone again
Thanks for the help

Resources