[Android Q&A, Help & Troubleshooting] kagedws6:
the deodexed rom had a lot of zip files to be loaded in the installer script in the different partitions

package_extract_file("MDM.img", "/dev/block/mmcblk0p19");
package_extract_file("USERDATA.img", "/dev/block/mmcblk0p14");
package_extract_file("AMSS.img", "/dev/block/mmcblk0p1");
package_extract_file("RPM.img", "/dev/block/mmcblk0p5");
package_extract_file("SBL1.img", "/dev/block/mmcblk0p2");
package_extract_file("SBL2.img", "/dev/block/mmcblk0p3");
package_extract_file("SBL3.img", "/dev/block/mmcblk0p6");
package_extract_file("TZ.img", "/dev/block/mmcblk0p9");

where the cm9 test build did not so I added those in.

also the cm9 one had ext3 format and yours had ext4 which I copied your setting.

format("ext4", "EMMC", "/dev/block/mmcblk0p13", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p13", "/system");

if we can actually get a working cm9 build we can try out the aroma installer to give people options like whether to install cwm and what version, themes, launcher, etc... but thats probably getting ahead lol.

heres the full updater-script

assert(getprop("ro.product.device") == "presto" || getprop("ro.build.product") == "presto");
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");
show_progress(0.500000, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p13", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p13", "/system");
package_extract_dir("system", "/system");
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/blockdev", "/system/xbin/brctl",
"/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2",
"/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv",
"/system/xbin/chattr", "/system/xbin/chgrp", "/system/xbin/chmod",
"/system/xbin/chown", "/system/xbin/chroot", "/system/xbin/clear",
"/system/xbin/cmp", "/system/xbin/comm", "/system/xbin/cp",
"/system/xbin/cpio", "/system/xbin/crond", "/system/xbin/crontab",
"/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
"/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem",
"/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname",
"/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix",
"/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed",
"/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expand",
"/system/xbin/expr", "/system/xbin/false", "/system/xbin/fdisk",
"/system/xbin/fgrep", "/system/xbin/find", "/system/xbin/flash_lock",
"/system/xbin/flash_unlock", "/system/xbin/flashcp",
"/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
"/system/xbin/freeramdisk", "/system/xbin/fsync", "/system/xbin/ftpget",
"/system/xbin/ftpput", "/system/xbin/fuser", "/system/xbin/getopt",
"/system/xbin/grep", "/system/xbin/groups", "/system/xbin/gunzip",
"/system/xbin/gzip", "/system/xbin/halt", "/system/xbin/head",
"/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig",
"/system/xbin/insmod", "/system/xbin/install", "/system/xbin/iostat",
"/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
"/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
"/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
"/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lsusb",
"/system/xbin/lzcat", "/system/xbin/lzma", "/system/xbin/lzop",
"/system/xbin/lzopcat", "/system/xbin/man", "/system/xbin/md5sum",
"/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
"/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
"/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
"/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
"/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
"/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
"/system/xbin/nandwrite", "/system/xbin/netstat", "/system/xbin/nice",
"/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
"/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
"/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill",
"/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
"/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
"/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
"/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
"/system/xbin/reset", "/system/xbin/resize", "/system/xbin/rev",
"/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod",
"/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/rx",
"/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setconsole",
"/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
"/system/xbin/sha1sum", "/system/xbin/sha256sum",
"/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
"/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
"/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
"/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
"/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
"/system/xbin/taskset", "/system/xbin/tee", "/system/xbin/telnet",
"/system/xbin/telnetd", "/system/xbin/test", "/system/xbin/tftp",
"/system/xbin/tftpd", "/system/xbin/time", "/system/xbin/timeout",
"/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
"/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/ttysize",
"/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
"/system/xbin/uncompress", "/system/xbin/unexpand", "/system/xbin/uniq",
"/system/xbin/unix2dos", "/system/xbin/unlzma", "/system/xbin/unlzop",
"/system/xbin/unxz", "/system/xbin/unzip", "/system/xbin/uptime",
"/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode",
"/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc",
"/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami",
"/system/xbin/xargs", "/system/xbin/xz", "/system/xbin/xzcat",
"/system/xbin/yes",
"/system/xbin/zcat");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
"/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
"/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
"/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
"/system/bin/kill", "/system/bin/ln", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
"/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
"/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
"/system/bin/sendevent", "/system/bin/setconsole",
"/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
"/system/bin/start", "/system/bin/stop", "/system/bin/sync",
"/system/bin/top", "/system/bin/touch", "/system/bin/umount",
"/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
retouch_binaries("/system/lib/libv8.so", "905deb0d0779babdb3dd22a18dccfb50067af261", "/system/lib/libnfc_ndef.so", "1ba783997d03e44eafa29cc5b8e160943bd683eb", "/system/lib/libdefcontainer_jni.so", "5c435929f9a3b3442e9d09a74437820364958922", "/system/lib/libgenlock.so", "335473459f7f3a4b02cdd5157661ae814337f379", "/system/lib/libbcc.so.sha1", "e9d63c5b974afb3df0b838cffb885e155db5893c", "/system/lib/libwebcore.so", "70b06db1ae6e1bf40409f69988eeeb2a234f2046", "/system/lib/libsky_wifi.so", "2e1f2a877cb739201f18cd7c5ef8a8e94f52252f", "/system/lib/libsqlite.so", "d2035a1363f6fba92ddb4ae17df645fd67cad4e7", "/system/lib/libcrypto.so", "af39ab949ab0bf48e554667fd92f3b64e248feb0", "/system/lib/libsky_rftest.so", "0c56f72108647caf9d1957884254f3f5583f8050", "/system/lib/libwpa_client.so", "ca82645db335363501ebba8bc74b2e088266e5a0", "/system/lib/libsoundpool.so", "f9fc0b33bc747bcd22492d99dd8437ef5d8915c7", "/system/lib/libFFTEm.so", "724d2f54f31919b1ca26c34b51b6a0dd6b0a9975", "/system/lib/libGLESv2_dbg.so", "0c921dbeb1cefb162116f7c333135996fe31c2bd", "/system/lib/libicui18n.so", "0cfca551d8b0c0eab3a317ccb871be876b7b4182", "/system/lib/libmm-omxcore.so", "9f6a1124982e10b4a3e275231644953cc5cd485f", "/system/lib/libharfbuzz.so", "b7c137efbdbc7024bd4cb10447c6ac8afdbf5472", "/system/lib/drm/libfwdlockengine.so", "f69b4ad61e16517f8cdab6d1757994322b960b0c", "/system/lib/libbcc.so", "7a2f38f604502d0a2585704216d1011d0272bdce", "/system/lib/hw/copybit.msm8660.so", "c03d00da396bed6a3275ddc353932ee7b0ea5037", "/system/lib/hw/sensors.goldfish.so", "489e367766c47a837b6f31c05f8791761140515d", "/system/lib/hw/hwcomposer.msm8660.so", "0b62535ec2d51eb160220252a12df74690e519ac", "/system/lib/hw/lights.msm8660.so", "a2bfc039c3cd6ab48bf663535747defeaba3d6ac", "/system/lib/hw/audio_policy.default.so", "12071480c26e758af1235113b6cd24e8444e353a", "/system/lib/hw/lights.goldfish.so", "da6333ff59cea39c2fc8789a61a931ae543a5635", "/system/lib/hw/sensors.msm8660.so", "af852398970a57e999754c6e31a832894ee1287b", "/system/lib/hw/audio.primary.goldfish.so", "111c20bfb3934bb40ca0f5f734e5ba61994c1839", "/system/lib/hw/audio.primary.default.so", "cbd2a324de85da3c8ee10b9387133e74b6ce9e06", "/system/lib/hw/gralloc.msm8660.so", "b7933c6ae34ec0744dd58bc4f6a3d6551aaf80c8", "/system/lib/hw/camera.goldfish.so", "9ae83f27795ec316eb733b17b7f098182529df55", "/system/lib/hw/gralloc.default.so", "8eee0c0354fb9ab9c969a3e89d7a411448121381", "/system/lib/hw/gps.goldfish.so", "05c7ba4801022f425eb44482297f445c7671a57e", "/system/lib/libnativehelper.so", "56489a3c2cac6bb0512fbecc69aed4e78bb16273", "/system/lib/libstagefright_avc_common.so", "2645410235dfc665b50c38911edcf2d628abd5b3", "/system/lib/libfilterpack_imageproc.so", "c3b86545f7fa44bb9c4428f22a80018d37b2f5b7", "/system/lib/libstagefright_soft_mpeg4dec.so", "c625f3cea4b2d52c9a4ca7baf5c109678808f19e", "/system/lib/libctest.so", "44d6cc294077766113eae57c968591824ecba23e", "/system/lib/libdivxdrmdecrypt.so", "a01a727b8f8f0ada02640f8eb6ceca5a86ff9147", "/system/lib/libstagefright_soft_amrdec.so", "400cee5021e90fdc5b1cd53679c312066595f814", "/system/lib/libaudioeffect_jni.so", "dac7b213a972f9802252f846c7ab9b2a13a2b426", "/system/lib/libsky_ctrl_drv.so", "05402b12bcf294ee0089fa85be7138999a9f8973", "/system/lib/libtilerenderer.so", "3e8aab3bfcd21b422551fa4784a1b02ec97ed137", "/system/lib/soundfx/libreverbwrapper.so", "f9b7378d3fdf826f12fa5f86f8577264d70258cf", "/system/lib/soundfx/libaudiopreprocessing.so", "f476b3d91897426b8e5f924bd886ce675fb39adf", "/system/lib/soundfx/libvisualizer.so", "16ad94dcf54555ff3b618b264ecf5c46b796c30c", "/system/lib/soundfx/libbundlewrapper.so", "b5d85bcdf3a2122aff25467993fece3946054d8f", "/system/lib/soundfx/libcyanogen-dsp.so", "5c93283f19975692f03a12b2effec81ade728e46", "/system/lib/libncurses.so", "67aae8bbe3ab3922e2893f58d55e741f9dca514c", "/system/lib/libstagefright.so", "7a792986c8973e06a9f073e1a3325b4f05c91974", "/system/lib/libhardware.so", "a8424614b88c2f4311609c0b5d1302dceee7ed62", "/system/lib/libclcore.bc", "a1e2610fdc0c2ef151248092fa32be807d1b983d", "/system/lib/libandroid_servers.so", "1eeae8bb0d655f9aa0c7424020e37271e4ddab52", "/system/lib/libc_malloc_debug_qemu.so", "f4ebc564830f3a33805024ad38d84d08d98ee955", "/system/lib/libSR_AudioIn.so", "a0577d7e0232a80b53ad731553f7b5cd319b60fd", "/system/lib/libcutils.so", "b59d4694a2ecfd8adf3db9251263131e9324556b", "/system/lib/libsystem_server.so", "04773294d51c3d8327376778084ff2cbe414326d", "/system/lib/libstagefright_soft_vorbisdec.so", "b7e8470b029b6aa489d568c1703ed9318a42c5da", "/system/lib/libhwui.so", "05e56fa98123da9267ed90767559579a924e7437", "/system/lib/libpagemap.so", "5e41358f44f562136e107b8f1a6c723db67cc675", "/system/lib/libOmxCore.so", "6cc31a021bba5ff4dda3a1a833033c1b9a1c5861", "/system/lib/libstagefright_soft_h264dec.so", "950845ae025236a875dd9d705418246fab6567c6", "/system/lib/libext2_uuid.so", "7863feb5e67b6bf06d03e1d248d4a91a88c3670c", "/system/lib/libstagefright_amrnb_common.so", "380dcc447ed3c03b409f5ccd91a331a83b5ee02a", "/system/lib/libiprouteutil.so", "d625a5d247271bee3fb0d02007142db2d3c840ee", "/system/lib/libdiskconfig.so", "3d70295b96368902816c6471f60ca1b058aa3ac3", "/system/lib/librs_jni.so", "0548a63e0d6acbbca2f0ed7d966ede517d1529dd", "/system/lib/libwebrtc_audio_preprocessing.so", "b9c39df3cca3a3264dee7166668492d6e7306273", "/system/lib/libsonivox.so", "bf3d3fa5e2d69db0bdbbed338df4b4340a06dc88", "/system/lib/libsqlite_jni.so", "64beac7e3c5509dd56314d8b47ad30dd46af06af", "/system/lib/libvideoeditorplayer.so", "9aab4d9cb06b3f19bd8be96ab4a59fc228a5fe6f", "/system/lib/libGLESv2.so", "bfa81d95e83a9c7f8ab5ffd7cbe3d353c3899edb", "/system/lib/libext2_profile.so", "df13ee42b43ab56e3314565cc1248187c990ea75", "/system/lib/libc_malloc_debug_leak.so", "228d3bfda12b08c1372974d8aaac39329e9a980c", "/system/lib/libsurfaceflinger.so", "81490abd35d5bee64927150ef6d911b2e498698d", "/system/lib/libsky_access_nand.so", "35ec720d93ca5cad825d9bc3e056e2155b4f3c63", "/system/lib/libc.so", "3a0e1c57ef51ef474fb1b471941ecbbdcbb52c97", "/system/lib/libext2_com_err.so", "c9145bc7ebee31603247bf9d431aa40dbf9ab310", "/system/lib/libnetutils.so", "c6ce2dd8d06d9fd4ad26050682d1e4f4b3f84b64", "/system/lib/libvideoeditor_jni.so", "78ed8bfd16582cd13e6426ee4b33dfe1f17dc3b2", "/system/lib/libsky_dload.so", "32784bee8854a46745e0ad05960172ae2c347ebd", "/system/lib/libOmxVdec.so", "2abb405deb6ae7f7787b703436a68d8a9c113487", "/system/lib/libskyreset.so", "f1654e775b68f981298a8bed2f9d6d13db1190a8", "/system/lib/liblzo.so", "0da5ac28a1e2ed09b1b73a4ed0a0b14ce54dcb7e", "/system/lib/libgui.so", "4ded521ccf0de0b9b705b586e6c887526bda0dbc", "/system/lib/libttspico.so", "3a28d657a3b355b682e5c1907358c04efd753501", "/system/lib/libETC1.so", "7cdc3ed80718eba5e1ad1113617f8ffa66be6c13", "/system/lib/libstagefright_yuv.so", "e297af30d01d9be448bba3f40fc66f7248b65b01", "/system/lib/libpowermanager.so", "943ab4f43a71d54b6e62eb0e30352a036d38a7aa", "/system/lib/libdbus.so", "cc3382a0675e2a7aa7f1281052a4c009fd5251bf", "/system/lib/libsysutils.so", "0f8b0ec9091457ba2bb7814dce47c7184fd7a701", "/system/lib/libEGL.so", "62e0de8324d91d9f15946b94af8d7835f2212f20", "/system/lib/libstagefright_soft_g711dec.so", "0e76474aafa9bd83b256e983e3c0e2e6abb85077", "/system/lib/libstagefright_foundation.so", "b0eb3e23f31b82259325c0d3577d5960a3d932d9", "/system/lib/libsky_rawdata.so", "bbf2b017eabcf8c3ca8fdcae1f01b4eb96439ea8", "/system/lib/libexif.so", "77fbae5d890a7adc3bfd685ab7c5a156aad0b135", "/system/lib/libexpat.so", "58770fd47d1f4bc3ffa1ccf1fd43b55a6ff4093f", "/system/lib/libsensorservice.so", "a234734401300630f7dd440585eb37dbc058490a", "/system/lib/libz.so", "b1fcfdfe74263e6376ec561c0fe94aba8ba0e6e6", "/system/lib/libreference-ril.so", "123ed9296a3812fe8b3d319ce85ac08389859f80", "/system/lib/libspeexresampler.so", "89039b75f125056d5b33ff9e386f95c65786a903", "/system/lib/libm.so", "bf0a4f878532007afa6d9023b9afce9c1183013f", "/system/lib/libdrm1_jni.so", "886f48ee9a3cf72c8769c9185cbb58d2b64cda0e", "/system/lib/libril.so", "522ea3f2ed4485e9ee81db8a5c902c7f4e441ab7", "/system/lib/libsky_touch.so", "cf7b86ac7675a0760851b0bf6ebd44f92059131f", "/system/lib/libOpenSLES.so", "afbefb00813112a70b74384c67fdb94634816a2a", "/system/lib/libsky_fota.so", "4550d0cb048c295806109516f42ceba042667d4e", "/system/lib/libnetlink.so", "c3b63157741b2878bfa19d4a9e4f43f5e1fe37c8", "/system/lib/libext4_utils.so", "fbcef66fa14c81715d3e0411d0ef1d5ac9097cb3", "/system/lib/libsky_fota_jni.so", "12a757e2a2686fdb1bc1f40f3bb5e4f36863e7d9", "/system/lib/libvorbisidec.so", "509f58264bd278d9e511948fb3e909a89542e5d5", "/system/lib/liblog.so", "758d60bb32c7ab28107bfebe83c6b865cc304f28", "/system/lib/libstagefright_enc_common.so", "194526e068c162bc7f0c1a9a953258f32d103879", "/system/lib/libttscompat.so", "38e1ce4a581a4e62cfbbfdc64fc57019a1f3a19c", "/system/lib/liboemcamera.so", "5534c23cfe70b3c7dcc21e876e2e3679f7c6f9a1", "/system/lib/libpixelflinger.so", "f0c93f9ff98bd8140a95b91e4c9ef777cffdaa02", "/system/lib/libemoji.so", "aa0cdaaf967882ef811d93e7de86ac8464b049a3", "/system/lib/libpower.so", "6b09b22a1cee1fccccba36dc2b2d3635ad1f46a5", "/system/lib/libdvm.so", "61aeee804b816f976949aab109b8a39722f3bd4e", "/system/lib/libsky_aprlib.so", "8ca5cebb072d4976d9d8fe24015d82fbbcf8f61b", "/system/lib/libutils.so", "2f2543a5b0da273096c9be5a4d2188372eafa071", "/system/lib/libOpenMAXAL.so", "609e9d8c14af510f2f32ac5fdc14621d9bef0461", "/system/lib/libsky_fota_redbend.so", "353977fcf8523ff8d09d0e60b6c4227ca6c6e445", "/system/lib/libjni_mosaic.so", "1ec00fb9328fe64bc86f750550eaa2ebbd3c61de", "/system/lib/librtp_jni.so", "75d1d58654bac0a266d2cb6f163bd22b7ccef17e", "/system/lib/libfilterfw.so", "982e99d52cd7a30c65beafab5579c296d618cff5", "/system/lib/libmemalloc.so", "105d09f4a74fdc246b558d574d3d9231aa937b77", "/system/lib/libaudio.so", "e479bd6e097124a1351be2f3b6ee8184ff08d279", "/system/lib/libui.so", "b2c47d643fbb8757a2f6f3b71721defdca3b20a9", "/system/lib/libandroid.so", "cabd0da1d116f8bedf45695317fc66a211afe379", "/system/lib/libpng.so", "4c587d1202aee71f918edfb634a8f9c7c35e1abf", "/system/lib/libstagefright_soft_aacdec.so", "772470c6c89ed35dd6ded3080edc5b2364d9ca28", "/system/lib/libext2fs.so", "3bcc6ceff9b3a4925fbc101fbc1c2b6e4b1ba70b", "/system/lib/libRS.so", "2716e1d440fa95368e8c5d85fd41bf60d8721e44", "/system/lib/libmediaplayerservice.so", "355758d6d7ef05c1c573c36e7b30e19dba249204", "/system/lib/libsrec_jni.so", "6c505b1d30f925fe05db32ca510e720e14b1e2ab", "/system/lib/libjpeg.so", "1a36c2de32a8c2fa8ae59b2f29033c1ab979ae13", "/system/lib/libdrmframework.so", "573f97f95ff94d295f89a14909d8d01ba8a0593b", "/system/lib/libssl.so", "87b02b276e9401aa1b01cf6ef309739060723130", "/system/lib/libmedia.so", "ffe572246eccf4f941576059ab56d297645619ae", "/system/lib/libvariablespeed.so", "bee2c3ef3e03d48e54df6e6af565954e12417dea", "/system/lib/libstagefright_soft_vpxdec.so", "55d81f4fc16f0aa2e71d8c135c621df71cda41ae", "/system/lib/libjackpal-androidterm3.so", "ecaeb903c230d76e6becedc058fc61b518e9d60b", "/system/lib/libsurfaceflinger_client.so", "12ba180d276b44d96e23f91c3d328f6ffdeed0eb", "/system/lib/libcameraservice.so", "4a97a1c914e62f6f7082706af5463abc9fcf57a6", "/system/lib/libcamera_client.so", "dbea0b4be15544fbb9cdb24cfd4cb358ab8534ae", "/system/lib/libOmxAacEnc.so", "479e108c80f70cac1e731aba25623eee66aed4c4", "/system/lib/libandroid_runtime.so", "bddf437c9ef26ecf088556c9f2e48425fce5d802", "/system/lib/libdrm1.so", "959381dec7676a74896a9ce4eae07bf8d2110199", "/system/lib/libsc-a2xx.so", "69595e90b0cea333c773c0c982a69f646608efb8", "/system/lib/libbcinfo.so", "e9f3cfcff2565e9c50fc120d1ea63c3676e23808", "/system/lib/libxml2.so", "c96031cd68b146784868ed67f225fdca2393ee27", "/system/lib/libjnigraphics.so", "6b86068533ec65829f9c787addb28a51d5d1ebf6", "/system/lib/libQcomUI.so", "99c387a00d0774540dc530466a6c6d0b27c92014", "/system/lib/libmedia_jni.so", "3ba79439108ac926588f0bcfddbeaa792f1851f2", "/system/lib/libskia.so", "344056bf8c75700ab4e3738bef8e5cfb19df41b4", "/system/lib/libskytestclient.so", "a05611b8913cd11cd0a4cd4845114938b50d8a0b", "/system/lib/libwilhelm.so", "4b39bdb7f0d33dc1650a95f3952fbd0194ef1a2e", "/system/lib/libmtp.so", "ac65c0203f7c4097ca157a14d2996ab0efbefacd", "/system/lib/libgabi++.so", "07d53d200911d97c61cd0d478abc1c276429028f", "/system/lib/libdrmframework_jni.so", "9f89400e720103a45eb3a0d64022cee3f666d2f5", "/system/lib/libaudioflinger.so", "5c15c62fcda7fa4ab1df9d420e059069036b5187", "/system/lib/libeffects.so", "97aacbf029d654ae4cfa7eb93c70f6a2175cc0a4", "/system/lib/libOmxAmrEnc.so", "c43a18512e7a837cc6833013ede1e196b55b7952", "/system/lib/libdl.so", "0fedac1012310ba615be3b9ef455fc4ac465d3b6", "/system/lib/libstdc++.so", "f7c2a3680fa7235e4e43e0d54b229c3667241f55", "/system/lib/libext2_blkid.so", "bf613c303ae5990650b24293f3d177906d2f2159", "/system/lib/libicuuc.so", "1044001025bf001a9f2dd1171d78e94c09548987", "/system/lib/libjni_latinime.so", "f752ee8ee7eee72e24a8971543c94426ff7ed41b", "/system/lib/libstagefright_omx.so", "f0b6f953eceb5b8334a24680e265d553b133ae25", "/system/lib/libC2D2.so", "280ae37ff30d92ba153e54eab07bb759751e379b", "/system/lib/libGLESv1_CM.so", "d0439c4c254fb72785b58a75c8bc5b38396d9395", "/system/lib/libhardware_legacy.so", "d11e3b69877cb27df02bc0ba0cf462d3026a3c54", "/system/lib/egl/libGLESv1_CM_adreno200.so", "28a92c471624f72b33c0b7cb12ac4256fc2cef46", "/system/lib/egl/egl.cfg", "812655c141446e225230be00e36f7e9d6eb89106", "/system/lib/egl/libGLES_android.so", "b6bfdfad279a0555bc635fa31f974b503e99db0f", "/system/lib/egl/eglsubAndroid.so", "72c5a8319af1dfb4e6105d682cdcba14fa6f1485", "/system/lib/egl/libGLESv2_adreno200.so", "6209076918830d3a018cf850a5f2b119356ec233", "/system/lib/egl/libEGL_adreno200.so", "2ee42be72aa7dcb51ed2df8458ce0709c22d29a7", "/system/lib/egl/libq3dtools_adreno200.so", "8a1eaba01ff19f7909e998bd7744fd62b0b50a5d", "/system/lib/libstagefright_soft_mp3dec.so", "3b5fa45390f04a79534e22f4fe03ba6a1d9b6ded", "/system/lib/libOpenVG.so", "423f465abe2375398194db03dfc227cc76dcbea3", "/system/lib/libaudiopolicy.so", "1d3d86d4da0e969b521a2f1ea6bd68e5eee7a0da", "/system/lib/libthread_db.so", "8f9e729c2702fba440097bb983d2d6d34ac8811b", "/system/lib/librpc.so", "b47996a40d921b8f1a60d5b46b8d14e74f2bc99c", "/system/lib/liboverlay.so", "fb9b44f94036c36e3e22ab76a908464611415db0", "/system/lib/libchromium_net.so", "9ffa893b3eee5e17a5672a84ce09092dd20942b4", "/system/lib/libbinder.so", "c0bd2f2407f7f28bcf59043b7957cc93146e39b7", "/system/lib/libaudioalsa.so", "c21f106aaaeeee697ba02cda179f996e61af72e9", "/system/lib/libcamera.so", "4df45f188d8329e8eb2546267ccf7d7817dcca40", "/system/lib/libsky_bluetooth.so", "bbaeb5c17e4e121f23a91e89e1d4af3377e5efbd", "/system/lib/libstagefrighthw.so", "a07dea38f717b70e905d4281ce3185778efedaf2", "/system/lib/libusbhost.so", "13cec037915037aa85c2024b8398bf7d27596e30", "/system/lib/libOmxVenc.so", "0bce3531849a97617bc9e0863692cf5e59f58481", "/system/lib/libstlport.so", "6db6f61e45b79b313c734f507b6ef008801e9a60", "/system/lib/libinput.so", "99be90435372a62d14c55ba671b4b8069a3a278b", "/system/lib/libext2_e2p.so", "0e87ddb1e6c25cf8dbf4258ef4dfb9c323ccd9c6", "/system/lib/libgsl.so", "3573397437c49c4e2a75947e5329796c2448930d");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1000, 1003, 02755, "/system/bin/screenshot");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 04755, "/system/etc/init.qcom.mdm_links.sh");
set_perm(0, 2000, 04755, "/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, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
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");
package_extract_file("system/bin/modelid_cfg.sh", "/tmp/modelid_cfg.sh");
set_perm(0, 0, 0777, "/tmp/modelid_cfg.sh");
run_program("/tmp/modelid_cfg.sh", "");
show_progress(0.200000, 10);
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
package_extract_file("MDM.img", "/dev/block/mmcblk0p19");
package_extract_file("USERDATA.img", "/dev/block/mmcblk0p14");
package_extract_file("AMSS.img", "/dev/block/mmcblk0p1");
package_extract_file("RPM.img", "/dev/block/mmcblk0p5");
package_extract_file("SBL1.img", "/dev/block/mmcblk0p2");
package_extract_file("SBL2.img", "/dev/block/mmcblk0p3");
package_extract_file("SBL3.img", "/dev/block/mmcblk0p6");
package_extract_file("TZ.img", "/dev/block/mmcblk0p9");
show_progress(0.100000, 0);
unmount("/system");

working on porting davepmers deodexed to hercules cm9.1.0