assert(getprop("ro.product.device") == "epic4gtouch" || getprop("ro.build.product") == "epic4gtouch" || 
       getprop("ro.product.device") == "GT-I9100" || getprop("ro.build.product") == "GT-I9100" || 
       getprop("ro.product.device") == "GT-I9100M" || getprop("ro.build.product") == "GT-I9100M" || 
       getprop("ro.product.device") == "GT-I9100T" || getprop("ro.build.product") == "GT-I9100T" || 
       getprop("ro.product.device") == "SPH-D710" || getprop("ro.build.product") == "SPH-D710");
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);
unmount("/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/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("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/libjackpal-androidterm3.so", "ecaeb903c230d76e6becedc058fc61b518e9d60b", "/system/lib/hw/alsa.default.so", "72db7c75dca91ed3c63a088c2937c182cd3ec72d", "/system/lib/hw/audio.primary.exynos4.so", "ee6cbbff22edf8a77e4513afc6f693fcbdad45c6", "/system/lib/hw/audio_policy.exynos4.so", "0cdb593deee27ac163ea3939a1b8455e855d8302", "/system/lib/hw/gralloc.exynos4.so", "0668cfb22acafcb9c46bebbc8d97eb174544d255", "/system/lib/hw/hwcomposer.exynos4.so", "ac17860f53f6406388b027bf40c647ca7b4da4a5", "/system/lib/hw/vendor-camera.exynos4.so", "30177b4459ac60cfdc7ebf7d8cf4b8171203d0ff", "/system/lib/hw/gps.exynos4.so", "6d0b04f3fcfbd7c33e73463ad617cf29b494d3ac", "/system/lib/hw/lights.SPH-D710.so", "0a43a992ce890957eceffdf47c45020055f225e0", "/system/lib/hw/audio.primary.default.so", "8cb860caf62cf06e7906f5065d3b66360f968310", "/system/lib/hw/gralloc.default.so", "1c3a966b6cd1e7e96b8a63b06c66bb7748efc95b", "/system/lib/hw/lights.goldfish.so", "b6b801ecd7a3347bfcbe01d3ec4e31bcaf6e362f", "/system/lib/hw/sensors.goldfish.so", "97c5c483fa6db897d2226e75dbd7d0920d14cc10", "/system/lib/hw/sensors.exynos4.so", "f746aee4208299b3b840d8c43c2b4e3ba7f3ae4e", "/system/lib/hw/audio.a2dp.default.so", "dd3734d0b81741b6250960d1dcf1e2867ab74e9e", "/system/lib/hw/gps.goldfish.so", "bc4269d1f7f7ca88491867afd26b3a5631dd0bf7", "/system/lib/hw/camera.exynos4.so", "91707efbe08313a1505288ed21b8a75598c87feb", "/system/lib/hw/audio_policy.default.so", "65fce790b05b821ce917855a80c278c1c877df07", "/system/lib/hw/camera.goldfish.so", "dd8acf91aead9ee14ed6438345a0d8b840147cf6", "/system/lib/libsec-ril40.so", "04292a036369c82492fae50665847da4f8920c81", "/system/lib/libsecril-client.so", "e0081b11690df1d9ba1038db87cd2d3ed1eb1eb1", "/system/lib/lib_Samsung_Acoustic_Module_Llite.so", "268d47dd7d384715672c6797e1e1bd07ac65a305", "/system/lib/lib_Samsung_Resampler.so", "f6c9242f9a66beaad87a2ea12c79ef9387e2f17b", "/system/lib/lib_Samsung_Sound_Booster.so", "0678d36c7bc6ea2003107f219f968a464cf098ca", "/system/lib/libasound.so", "165fd276c61f38867979b5e16ea7dab5487a3496", "/system/lib/liblvvefs.so", "4043b0ab6f3afafd40d5f384e6dedd4b53fa9f26", "/system/lib/libmediayamaha.so", "8b8f7785766d19bae01a6136e0ee37f2fef44231", "/system/lib/libmediayamaha_tuning_jni.so", "06ea99f190ec46edf270a836b74318d6a6438023", "/system/lib/libmediayamaha_jni.so", "4a22fd9e68c6d9655e5957981f6a3a9590cee53b", "/system/lib/libmediayamahaservice.so", "c7370430e49b8968c7c3a067408cdb6f76a0d383", "/system/lib/libsamsungAcousticeq.so", "291073afefd4bf82130ecf6234992837ca3774c3", "/system/lib/libsamsungSoundbooster.so", "c5a4947f28b13937513dc2028744602f41ec9fd6", "/system/lib/libyamahasrc.so", "60d12c1ce078e49c96d8b04a9d3a13b33d45f497", "/system/lib/egl/libEGL_mali.so", "ecc7118d008ee356889748ab5942dd7d8add5f26", "/system/lib/egl/libGLESv1_CM_mali.so", "0b800fcfa8242f55f8f71787ddc492b318f42144", "/system/lib/egl/libGLESv2_mali.so", "30e3c8660defca00d42977858f2a077b2e050022", "/system/lib/egl/egl.cfg", "ea22932b5c513ada9bc801557f098d065aaa8bca", "/system/lib/egl/libGLES_android.so", "2efda98abdd889d1f26bf2e2b4a39af5e57a2114", "/system/lib/libion.so", "57759459c585c06a39ea32da3d3f8869955e2b47", "/system/lib/libMali.so", "654753ad9a008f2e8185ac3d2c561887dceca89a", "/system/lib/libUMP.so", "002ea2d88b8ef1ad109d355ac45657a85e02a058", "/system/lib/libcec.so", "757c9c0df9d775fec8afe68537fd05442838e3ff", "/system/lib/libfimc.so", "3b30c3a6c63d2063131931964efd0cd2d1fa80bb", "/system/lib/libddc.so", "423c76269e5617c5554128de4f84d8ad40d172f6", "/system/lib/libhdmi.so", "47dce793005f3de8a1bc878cdecb41dcbcc7706f", "/system/lib/libedid.so", "1a762d6f2d368da59f60c48d819dc7ea45384f67", "/system/lib/libhdmiclient.so", "3a820898f67964533efdeed28ed69090d225e5a0", "/system/lib/libtvoutinterface.so", "02b4c9a10973e74f5a7eea430b795108662aaa3c", "/system/lib/libTVOut.so", "7ad118f557d11618737592ab1efc74644daf1c9a", "/system/lib/libtvout_jni.so", "ddb2924325bee30bb0f3ec6e23f1772fa95be74a", "/system/lib/libcaps.so", "460777d6cabbc0ff9d59d5f944b5ed7e3a4a2ef8", "/system/lib/libtvoutservice.so", "28d8adfab232d47d8198a0258a1a81a9733dd891", "/system/lib/libakm.so", "45a6d966a5736a746bad014a5aeae48291173762", "/system/lib/libWiMAXNative.so", "9c7cb4c6f202fb74dc5f5a12671baa586923c066", "/system/lib/libSECmWiMAXcAPI.so", "18866d5056f970c0f8e602406f842562b09de9a3", "/system/lib/libQmageDecoder.so", "1d35b4374a99be413e3149e493f7ff065fdfd7fa", "/system/lib/libz.so", "e3e134b46b35b2f67dc4cb3e0c1b1b92e9aa61d6", "/system/lib/libdl.so", "0346c82c99191ad4b256f26503d30fe8249022d7", "/system/lib/libstlport.so", "c7fcaaf2b53bb2e5939961b698cc4b4ce40ae783", "/system/lib/libexpat.so", "4c2a6d7758b55db99a7c9d72dd7ccf6cbf39caae", "/system/lib/libcrypto.so", "8a6cd00e8e871aa175af0d3dbb1853b333907301", "/system/lib/libjni_latinime.so", "79ae26b885b5fc25f4c5ae60258893b9b70cee23", "/system/lib/libc.so", "acae9252ba6847f4f6c0602da4d0f058fdd78e7b", "/system/lib/libstdc++.so", "984d61928aa3e25f554e49fd3d7aecc1c8535980", "/system/lib/libgabi++.so", "1903d2396f065d39915f6d8248c57717eb381130", "/system/lib/libssl.so", "b056e84af442f7aa38d17b6d960c80dd2ac75530", "/system/lib/libiprouteutil.so", "d42129899ad4eb0c237b124cd80dcb95f862a1de", "/system/lib/libnetlink.so", "e926eeeafe0a828ff2f16947b93af60117b8ea50", "/system/lib/libc_malloc_debug_leak.so", "a03bb7acc9a70c2a20c45b4fefba48b3a33565d6", "/system/lib/libc_malloc_debug_qemu.so", "e00eeb55c64a366e55032fa70fd414b28b47aaba", "/system/lib/libm.so", "6c3098a82449e9c6ba0b57d66aa149d49eed64dc", "/system/lib/libthread_db.so", "b073f0919e45d780c7eb9425245a6af3eb932bd5", "/system/lib/libext2_com_err.so", "1a16bab42cc3100b585820f16979af6d6f5d27b8", "/system/lib/libext2_uuid.so", "3678e46ab059c4d90df0c5406527ba887950fa8f", "/system/lib/libext2_e2p.so", "c9d38879d98e0cc6615f8e77e8accd0f33d7704b", "/system/lib/libext2_profile.so", "2af3e96042e2cb6217f6d9f4d7e79525dc1bd99e", "/system/lib/libvorbisidec.so", "50789d07b0e3f61c35fe91d9f85f224dd97e1974", "/system/lib/libstagefright_amrnb_common.so", "505d5eba14f2e2b79c8c93e4c365e0bda18ee128", "/system/lib/libstagefright_enc_common.so", "59ca0f70ef2ed90c7d0129c1076f740d69b52d20", "/system/lib/libstagefright_avc_common.so", "eda7c5f7a6acd4a2e76f0597eea8cd62fef669ee", "/system/lib/libext4_utils.so", "eab3aab690c1f497e24e9e3f1990c32e507c609e", "/system/lib/libctest.so", "8fa800ebb0beff3f63b1b7196dec53a5f3918308", "/system/lib/libpagemap.so", "5d269eee4b0081f0852fc66b16943a1491a39b7f", "/system/lib/libpng.so", "74fc03d6f89e5bfa942bf52800a4050813952124", "/system/lib/libsurfaceflinger_client.so", "12ba180d276b44d96e23f91c3d328f6ffdeed0eb", "/system/lib/libspeexresampler.so", "9ee1120bbd77287fdb239b7a75102a2839583c53", "/system/lib/libncurses.so", "50e1ac5c9e4a6e48a7da267c64f0955d04f0466a", "/system/lib/liblzo.so", "34556100fc9dc380686f9bb6d2572880eb69db05", "/system/lib/libext2_blkid.so", "b547b0905614226ddc3b13c5e8556c1069daed20", "/system/lib/liblog.so", "b2dc2dd4836909d94be3d1236428bf956c180992", "/system/lib/libicuuc.so", "bdd8311a08f2a87b903887622f9d7a49f0dd5767", "/system/lib/libETC1.so", "706c55d53ed44d2ac828798bb775acb42c1c054f", "/system/lib/libglib.so", "1ad5a8062bf8099b15ecd95f6b4b3898aea3f12f", "/system/lib/libclcore.bc", "a1e2610fdc0c2ef151248092fa32be807d1b983d", "/system/lib/libs5pjpeg.so", "b709ca6f891984bc069b2e079afd6dbcefdf70be", "/system/lib/libcutils.so", "456746f95510c7ef7cc142f4d4d3caf4064f4e4f", "/system/lib/libxml2.so", "8c4477ec7c3f8dc673080631c8a70de873deba08", "/system/lib/libext2fs.so", "40c4056cef2b0baec78b6b8f308c43d4b98d3455", "/system/lib/libutils.so", "a8ee0b4a4534cfac1650c916edc801dd703d5b95", "/system/lib/libwpa_client.so", "919f20fa1f87575731102aaf10660d51bd6a9076", "/system/lib/libnetutils.so", "1c62520718f6492452023cde67240f942d3301ff", "/system/lib/libhardware.so", "2fc977cbb0520f81f38bde5fb978b6d7752c5e5a", "/system/lib/libjpeg.so", "e8221e2aab5e6ffe73b188fe8dc9ae4b7ae5b5bd", "/system/lib/libstagefright_yuv.so", "0cb8aeb88b9072492dc179e91b99c3e0e7ae4eef", "/system/lib/libusbhost.so", "2bd0c1d2eb6f30c0522eee69854961a7e2af5387", "/system/lib/libnfc_ndef.so", "8f21c1ea42d7c60c24a686020620a6da98de7cdf", "/system/lib/libbluedroid.so", "160ffd57339abc771836432cd8f7d83574b4822b", "/system/lib/libdbus.so", "418a608f0b58e14b7e2bcf7f4b3800f0ef887c7a", "/system/lib/libeffects.so", "84127618587b1cb5decd6b1457cb78de48af8dd2", "/system/lib/libsysutils.so", "026cb88f9723ee0f5d5166a76dab6444bf8e9591", "/system/lib/libdiskconfig.so", "228d7e04fe211797fc18de397e78351367288c76", "/system/lib/libpower.so", "3aac3d7e8fb47b82ebc1d84736a65874e0937b84", "/system/lib/libwebrtc_audio_preprocessing.so", "4740fb8a9c61bc2907afc3f17b35bca775cb30c9", "/system/lib/soundfx/libbundlewrapper.so", "d7f9dc9cf5c5e073baa7f2f38363d61f0781a24b", "/system/lib/soundfx/libcyanogen-dsp.so", "76da44288091ff633f6182540c0ed66f6e883310", "/system/lib/soundfx/libreverbwrapper.so", "11323bb83b6d2ce7fabdbddd9d54068049665086", "/system/lib/soundfx/libvisualizer.so", "86eaaa8d2e6ff6b7d99943074b39c83acd08417b", "/system/lib/soundfx/libaudiopreprocessing.so", "4ad755520d041a30cc2461847ff90e24fd2bc79f", "/system/lib/libicui18n.so", "68dc66ecfd74d1ead95d5f03a2462d198be94776", "/system/lib/libbluetooth.so", "c592a5908b23eeb9cec7f32d81cd0526f96016e1", "/system/lib/libbcinfo.so", "0a037972561df248b8f00cbe295b6d43c19927d9", "/system/lib/libbinder.so", "5bd205907c274a1233cf1a5015c9ab0e13bd4596", "/system/lib/libemoji.so", "429a00bc063e38f205db9650a00a052b586a0bf6", "/system/lib/libsonivox.so", "12926250dec6ada0bd2309d28aa798e863ec2358", "/system/lib/libsqlite.so", "d23d6f5edc5841d693c173cbcc38191f4e69650d", "/system/lib/libharfbuzz.so", "b24f502adf145cb3ab209069a3f1c9bad2975599", "/system/lib/libttspico.so", "1c1ef1798e9a73040d1dc8fa9fe01cc50919a7ac", "/system/lib/libSEC_OMX_Resourcemanager.so", "0f69bdebf23b92aa02afe3dbf0eb4f19ca5719ad", "/system/lib/libhwconverter.so", "398e14cc6e93ecc36462090e356e785df1a0c5b3", "/system/lib/libdrm1.so", "665fcd739d188ff2adf7a57a711db116e7e60395", "/system/lib/libGLESv2_dbg.so", "b42cb60812e43c9b57fa1a885fcaee851602dd09", "/system/lib/libhardware_legacy.so", "3525a11b99279ec6307d0f53b9becacff4085990", "/system/lib/libnativehelper.so", "2af052f6fc42e81595fe3c0039915b5a3999072e", "/system/lib/libbtio.so", "6a0ae49412d5ce9ef43e8403cd875ca8ebeb65b1", "/system/lib/libpowermanager.so", "2b85ab209e30a0a469a427ecd394b53d494f243f", "/system/lib/libfimg.so", "4f4c75f46e9636e0021b3ce77312d7fd101ade13", "/system/lib/libsqlite_jni.so", "9f8c33d035c69ce5a5801fe86ae314805aabba35", "/system/lib/libmtp.so", "0569cade5b60b1188b2216b339f3c6fecb1a61c0", "/system/lib/libstagefright_foundation.so", "32bfd0f6ed806addc17353dc28e3f077e88c8ba2", "/system/lib/libdrmframework.so", "6e2ae4de31260d9b60053a3bbb4c82b9c4d8cc84", "/system/lib/libdefcontainer_jni.so", "7539565fa253b2cf2324274da7de0d8f54855b28", "/system/lib/libril.so", "e9d0b7247b9f8da114513aec51a536116c48cb95", "/system/lib/libSEC_OMX_Core.so", "91ae89f8bef942a50ce7be6a86db496da26fd1ea", "/system/lib/libcsc.so", "6278de68328eed39b066cf47ef7ad26fcaf6115d", "/system/lib/libdrm1_jni.so", "7d3ca0a4237d75cc9b1ab975b33ad6146bdc8eaa", "/system/lib/libexif.so", "5f12e52431864fd35b981892cd4017c2bd4ce7cc", "/system/lib/libEGL.so", "df23a6799f82c10ce14f85d91ed262150d4494ed", "/system/lib/libpixelflinger.so", "283d16d58347d502597f8b67bacb5854542efc31", "/system/lib/libbluetoothd.so", "908ebca4a30623230944494d5cee6fdc5c8e9748", "/system/lib/libGLESv1_CM.so", "a52756f5a63c9827632587d025ee28f67739bd97", "/system/lib/bluez-plugin/bluetooth-health.so", "3bc80bc73394931405893bbc0134efc11004a0ed", "/system/lib/bluez-plugin/audio.so", "ef4e0b58840f01f8ddeef746ed9edad90ec9ec6d", "/system/lib/bluez-plugin/input.so", "aa91b82bc9dd37e3f8dce19699eec2ffb02e7c9b", "/system/lib/bluez-plugin/network.so", "b873d663ecbc966ffc9bbcdd36bed0f1790a7272", "/system/lib/libreference-ril.so", "0ecd95819ed4d3312af3cd50b9ebcbfcdda768c2", "/system/lib/libskia.so", "5924521696231fb3ee69ba854039fe6fd9e80265", "/system/lib/libGLESv2.so", "a7bd75e38581f3379aa9c19b76aeea18f0f339ec", "/system/lib/libdvm.so", "ac18acec7ab1908e69f1faf86d09291f162384f8", "/system/lib/libui.so", "bc1db41b390dc98073194f7145b5decc6d3ce245", "/system/lib/libjni_mosaic.so", "95e8b9718130f904c6c67622a119ae63b0e00421", "/system/lib/libgui.so", "3ae1ababb1ddadb9551f5a8541c3e5a873842cfd", "/system/lib/omx/libOMX.SEC.AVC.Decoder.so", "494e4b90183d6398232f54c4c04230b82f9075df", "/system/lib/omx/libOMX.SEC.AVC.Encoder.so", "74d2e0e4c46a40ffa7970292c3d7b101cc19ebbd", "/system/lib/omx/libOMX.SEC.M4V.Encoder.so", "52917c2153d9f7c32db8e84934094d6bbfb6e384", "/system/lib/omx/libOMX.SEC.WMV.Decoder.so", "927d2edc9f0777613b76cb02e70c9302542c277b", "/system/lib/omx/libOMX.SEC.M4V.Decoder.so", "4458037fcceb1a204d4415211b409bb0438a537f", "/system/lib/libstagefrighthw.so", "9ee21114efae02bd83543f9cac9986ca518b461b", "/system/lib/libhwui.so", "dfcc6b7951e6b966bc4cbdb8e2562edcf61265de", "/system/lib/libcamera_client.so", "8a57728360fe833275edbcca0aac982f70802034", "/system/lib/libsensorservice.so", "f46a5d608a9efa0e744e98415771fab359c45892", "/system/lib/libinput.so", "3c858124c3630aab086fbfd2624746ba6abbf91d", "/system/lib/libmedia.so", "ff1c895e744630d938d3af524d7d4062c75c9012", "/system/lib/libstagefright_omx.so", "ad4d3b9b5bc37d6d06c9a2c315c80cc031e8c610", "/system/lib/libaudioflinger.so", "48cd6296816de4ff2f11cde1b3f12fe83c25b2f0", "/system/lib/libcameraservice.so", "d6b4b0c51e3b3d9546de031d3640e6aca7b4d8d7", "/system/lib/libSR_AudioIn.so", "ea427ebc299a3243fcdcf1a5b08c16f5cbc7da46", "/system/lib/librtp_jni.so", "a66c28f154cee716533907de0ec29704eeb7c386", "/system/lib/libsrec_jni.so", "dbb95d649d457c63a6da8ab87983c47f217e1758", "/system/lib/libstagefright_soft_aacdec.so", "e3a366e1c6d3a630f61d08b6afcbc40266ea3132", "/system/lib/libchromium_net.so", "161ac15106147dd7c629650c1b86b7191402f0c9", "/system/lib/libandroid_runtime.so", "d556534340c623b661d4337b3e94e79ef61453cb", "/system/lib/libstagefright_soft_amrdec.so", "bc469440c204d82843d6e433b4bb1a02ca4bc2d7", "/system/lib/libstagefright.so", "ba41ff764f6517a48ffe721c51e641e110a0fc9d", "/system/lib/libttscompat.so", "ed53e2915fdd35544fd3524eb1b63e9782be311c", "/system/lib/libsurfaceflinger.so", "a8085a7a7c367af5b65de1fbd20e4ef1de866ba4", "/system/lib/drm/libfwdlockengine.so", "be9f2e0ae54f5c71aa7a988d4ebbb67b0deccabf", "/system/lib/libandroid.so", "3411ce966c66d640f86216055163fc0ad0896e23", "/system/lib/libFFTEm.so", "df173bebb7300156b94087d5aa6f6896fd0bec1d", "/system/lib/libaudioeffect_jni.so", "d1937172e8c83044ad2b4204b475aa3991049eec", "/system/lib/libdrmframework_jni.so", "4efaa314bb454ecf8accedfd4d9fd4b0341fdd1d", "/system/lib/libjnigraphics.so", "5d60fd973c074e190fb120eb0f357040c5e9d2d3", "/system/lib/libsoundpool.so", "9f82354c307f3f5567e01902bff516b2d3936e93", "/system/lib/libstagefright_soft_h264dec.so", "aa1f4ebc97b08cc33550a3098c4c1a28cd5a8572", "/system/lib/libmediaplayerservice.so", "b8aebb2011af12a49c6f5a69951a1ef0d39e1ffc", "/system/lib/libmedia_jni.so", "b7bf86384782c6add6ba8472e2664d7766dc0cc6", "/system/lib/libstagefright_soft_g711dec.so", "bfeeb8478f1ccb059b4a181a2b8d77b932d0ae49", "/system/lib/libstagefright_soft_mp3dec.so", "3a4370f3fba012a0166bf7e79bf8bb621f5288a1", "/system/lib/libstagefright_soft_mpeg4dec.so", "c740297a3c642d559e0cfa721c297e1ff6f2815a", "/system/lib/libstagefright_soft_vorbisdec.so", "915579f18173c508c93b141fddce0e3d5bed3eac", "/system/lib/libstagefright_soft_vpxdec.so", "ba8abbed00d0eac0664acb22be96b81195f99674", "/system/lib/libvideoeditorplayer.so", "3312fac0bbf93fc89d674bc54c55935e28a80a0a", "/system/lib/libwilhelm.so", "2e725524918f30a1d748a4c42037f4236a28bdcd", "/system/lib/libfilterfw.so", "b8aa368186afecac3d818623638e67a410d77ac5", "/system/lib/libbcc.so.sha1", "e7cb69e4585dca56a24ea5412e185866e1c31bbd", "/system/lib/libwebcore.so", "1c0df7841f0eb8c067b736618fdab73159263cf6", "/system/lib/libsystem_server.so", "b32b3bd61c950befce3eca547029201f11731c66", "/system/lib/libbcc.so", "134bb6782ff79252d25594ea04439e2bdbdfe1f8", "/system/lib/libOpenMAXAL.so", "fd8d6e6ff65517590b42ce29e8f30d372812e72e", "/system/lib/libRS.so", "61d4db42a16a4a12a5f1e8f0fcc7c9e8efcf4837", "/system/lib/libvideoeditor_jni.so", "c47919d9b6682e6b65ac711f6a2561e12648e8fb", "/system/lib/libOpenSLES.so", "61c1b735a0ebbbec925e71f803fa6f67a1fbbcb3", "/system/lib/libandroid_servers.so", "7ed97ca9af9f70dafd89242d48f0d9a9ae645610", "/system/lib/libfilterpack_imageproc.so", "9f209b403b68a09fa849fac5a98816cf95da8270", "/system/lib/librs_jni.so", "acafa28f0732ae1e57dfd74e52992face6477dc9", "/system/lib/libvariablespeed.so", "f57c070cf55f1bc3c47039493efe5eebfaf92b65");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
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);
assert(package_extract_file("kernel", "/tmp/kernel"),
       write_raw_image("/tmp/kernel", "/dev/block/mmcblk0p5"),
       delete("/tmp/kernel"));
show_progress(0.100000, 0);
unmount("/system");
