assert(getprop("ro.product.device") == "galaxys2" || getprop("ro.build.product") == "galaxys2" || 
       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-I9100P" || getprop("ro.build.product") == "GT-I9100P" || 
       getprop("ro.product.device") == "GT-I9100T" || getprop("ro.build.product") == "GT-I9100T");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/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);
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/blkid", "/system/xbin/blockdev",
        "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
        "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
        "/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
        "/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
        "/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
        "/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
        "/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
        "/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
        "/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
        "/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
        "/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
        "/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
        "/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
        "/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find",
        "/system/xbin/flash_lock", "/system/xbin/flash_unlock",
        "/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
        "/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fsync",
        "/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
        "/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
        "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
        "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
        "/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
        "/system/xbin/install", "/system/xbin/iostat", "/system/xbin/ip",
        "/system/xbin/kill", "/system/xbin/killall", "/system/xbin/killall5",
        "/system/xbin/length", "/system/xbin/less", "/system/xbin/ln",
        "/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
        "/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
        "/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
        "/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
        "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
        "/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
        "/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
        "/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
        "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
        "/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
        "/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
        "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
        "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
        "/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/pmap",
        "/system/xbin/poweroff", "/system/xbin/printenv", "/system/xbin/printf",
        "/system/xbin/ps", "/system/xbin/pstree", "/system/xbin/pwd",
        "/system/xbin/pwdx", "/system/xbin/rdev", "/system/xbin/readlink",
        "/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset",
        "/system/xbin/resize", "/system/xbin/rev", "/system/xbin/rm",
        "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
        "/system/xbin/run-parts", "/system/xbin/rx", "/system/xbin/sed",
        "/system/xbin/seq", "/system/xbin/setconsole", "/system/xbin/setserial",
        "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
        "/system/xbin/sha256sum", "/system/xbin/sha512sum",
        "/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
        "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
        "/system/xbin/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
        "/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
        "/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
        "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
        "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
        "/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
        "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
        "/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
        "/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
        "/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
        "/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
        "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
        "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
        "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
        "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
        "/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
        "/system/xbin/zcat");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
        "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
        "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
        "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
        "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
        "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
        "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
        "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
        "/system/bin/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/libsensorservice.so", "fc4e0117bf9ee0bf172dd29349b87d4ef7d0db94", "/system/lib/libbcc.so.sha1", "0378292b4b4846e36ddd48076794229b5b3f70ff", "/system/lib/libaudioflinger.so", "a60ae4e6222c5a543999c104f0eed85b06e44b7e", "/system/lib/libstagefright_soft_g711dec.so", "4c63e789f21dfc1a4a6a5297ff8bf37330ba8886", "/system/lib/libcamera_client.so", "fa0caab849db2e7fa86288969bc40797583d6ee4", "/system/lib/libstagefrighthw.so", "920ec75ae611d3ea54a42b80e47b8bad5b1fad4b", "/system/lib/libstagefright_soft_h264dec.so", "94069485094540216ebe28274fb1be4193279571", "/system/lib/liblog.so", "bf95545d03f2a6be36ccd9bbb6dc783d87267998", "/system/lib/libreference-ril.so", "4d23dc6d1fb4d18e7cf0164a5b704b7158ff9e63", "/system/lib/libdbus.so", "0efa57417bb52583302c4543d08a83533ac9abbd", "/system/lib/omx/libOMX.SEC.AVC.Encoder.so", "2f301896245f2ea1bb79370a122f981f3cd42dcc", "/system/lib/omx/libOMX.SEC.AVC.Decoder.so", "4c65ba69beea508e49690070cf395ad0b96036fa", "/system/lib/omx/libOMX.SEC.M4V.Encoder.so", "8e5a4291ba5ef8417ed154d9331a30aba59e6997", "/system/lib/omx/libOMX.SEC.M4V.Decoder.so", "50bf7da97d45e99cd51929142bf6c8bde6aa1393", "/system/lib/omx/libOMX.SEC.WMV.Decoder.so", "8c429fb99e8d7348626fdd9dd3d9fde45238a8e0", "/system/lib/libmediayamaha.so", "67b6229188f06481ae8ca2ce4b944040e255b119", "/system/lib/libnetlink.so", "9f06fecb825fcd676d4f844d18460eef672db50c", "/system/lib/liblzo.so", "b0d34c6266eab240d32779facc6ed5d088a31e1b", "/system/lib/libandroid_servers.so", "6730290601ba87de3d2608e725f280e3277ba0ad", "/system/lib/libQmageDecoder.so", "f6d1c64f7879f840dabfaaae5b28eeffc0c2757d", "/system/lib/libutils.so", "e439e8ef62efbca49a8fd6ecfe47a53000175d26", "/system/lib/libvideoeditorplayer.so", "aba55b411c14173c1451fde6ff2ab1804d1403ca", "/system/lib/libmedia.so", "2504601ac92a66a0e6bdeda5284dcfb362ca9a95", "/system/lib/libsoundpool.so", "2f22ededd02f5a55e6960ed55461e078f2f993ab", "/system/lib/libicuuc.so", "ad2278da29d248cf0493e2424063f8c35dad4a44", "/system/lib/libttspico.so", "2afa531312a1506f6a9d384fb5708c9eaa790610", "/system/lib/libion.so", "57759459c585c06a39ea32da3d3f8869955e2b47", "/system/lib/libinput.so", "0a9ee8d24e7a62461a319f9be47fefb46eb2f4f3", "/system/lib/libmedia_jni.so", "0a539a26a4ddef210c2c80d64360238256e6f552", "/system/lib/libUMP.so", "eb1fc3e7c553591b26b73f94daeb10caa7cbfb32", "/system/lib/libz.so", "dd2a157c34133bd872879fb34ed6f1d120da1c40", "/system/lib/libjni_latinime.so", "085680777833ede599c6aa76bb6d06c47cbec467", "/system/lib/libmediaplayerservice.so", "64947072446b6850f362b6bc49a0c1aac7b9255b", "/system/lib/libbluetoothd.so", "b4ec6b40e2438254d55bb71f6997fdf18858451e", "/system/lib/libexpat.so", "a5ed2ae146223f20803706a1f1dba3d055f2a221", "/system/lib/libeffects.so", "50b644911c49b8f88602c5ee568168232c49018a", "/system/lib/libsurfaceflinger.so", "e3e96c8771d6ddc029b5a7ca944c229a6c6e1245", "/system/lib/libext2_com_err.so", "0251c8c56142d46bd4b1edc8f0c6da2869ab02b2", "/system/lib/libTVOut.so", "7ad118f557d11618737592ab1efc74644daf1c9a", "/system/lib/libhwconverter.so", "a1c85f126b23e6750ca949122dc5c1995c38e4d3", "/system/lib/libwebrtc_audio_preprocessing.so", "fbb32e41c828b6bc4db1897fbb085fab8210703c", "/system/lib/libsurfaceflinger_client.so", "12ba180d276b44d96e23f91c3d328f6ffdeed0eb", "/system/lib/libdvm.so", "9645c930c39839cde264664022cb8925ef0f65a2", "/system/lib/libvariablespeed.so", "1cf7942c029b96f48695635c4a3158755423ee47", "/system/lib/libgui.so", "da2297a5c47c34be818cf9af04aa30f52ccfb19a", "/system/lib/libncurses.so", "8c12a9cf4d750675e675ab3e0ec76b4625c3f812", "/system/lib/libbinder.so", "ce9e708e9fbe1de4e7643d9582a60c63ad232a65", "/system/lib/libstagefright_amrnb_common.so", "5f7a1c34f4f0c18f52d5bf4a0f5d8e2eda3698d9", "/system/lib/libdrm1.so", "0db7c2ae65ca14c106bb5ec78e277167ae0f60b8", "/system/lib/libmediayamahaservice.so", "2e058055da3c419ac9a5bbcabad46106021bdc03", "/system/lib/libpixelflinger.so", "5a8bf2b4887dba31348f6b2c3bb565d27ed6bdd2", "/system/lib/libnetutils.so", "33a69aca0f47a8917ee8921379a32fe84d64ee6f", "/system/lib/libstagefright_soft_aacdec.so", "3959fdb6eb1e67c85a71c7a0a0a1bbb9edb59c65", "/system/lib/libRS.so", "2b739ca15f42375cd6b50a4dda2b5aa0da3692ca", "/system/lib/libhwui.so", "860f635eae3aac15e7487af21ec64056b2139b03", "/system/lib/libicui18n.so", "05a218d14141a9e919658ab17769641c569254c6", "/system/lib/libhdmiclient.so", "3a820898f67964533efdeed28ed69090d225e5a0", "/system/lib/libdrm1_jni.so", "7f0153944f4c58b8fb087b60edf68ca6983dfbc5", "/system/lib/libiprouteutil.so", "64a0e585f722ecc28cb02db7aa3020cea5f74f5d", "/system/lib/libtvout_jni.so", "249b344b2e800a6a0f56b69d1f4e18117b72b41b", "/system/lib/libSEC_OMX_Core.so", "3826830075ec7d7c9eeb245ae2c6b4134256b6f6", "/system/lib/libdl.so", "884428151127f54629822694b8c4604caaf5dc66", "/system/lib/libhardware_legacy.so", "2d249bda29351cb8826d40591c00f4addfdfca58", "/system/lib/soundfx/libvisualizer.so", "194e7efb6cb876f7005e5739411f6242e56e7c6d", "/system/lib/soundfx/libbundlewrapper.so", "447577ab3ceebf375e7811d7b0315bb7913cb043", "/system/lib/soundfx/libreverbwrapper.so", "3a59ce89f98bf8ed6b9e1b334aa8f65507b519e9", "/system/lib/soundfx/libaudiopreprocessing.so", "81f862c9b19535a354219808a5a479344975a3cc", "/system/lib/soundfx/libcyanogen-dsp.so", "d0b23e31dd0a085476ac4503dd09b92e5c67758e", "/system/lib/libstagefright.so", "5d7753739ad500b07f2a4ef6c91c82938c61328d", "/system/lib/libbtio.so", "c319bb6a745d7745ea7dddd9d32e2b4ef81cffdb", "/system/lib/libwilhelm.so", "588c6c9d2b60917d354ec9ce3007df92058dab2b", "/system/lib/egl/libEGL_mali.so", "0de0a176bb573bd5a7adac9adb765eb86ce363e7", "/system/lib/egl/egl.cfg", "b2d1143e7cd9ff4c0889c94f7caf1cfcc6dccafb", "/system/lib/egl/libGLES_android.so", "2efda98abdd889d1f26bf2e2b4a39af5e57a2114", "/system/lib/egl/libGLESv1_CM_mali.so", "c57856a945316a4d2ace3436b3f73a40b2da840c", "/system/lib/egl/libGLESv2_mali.so", "dd7413200a1306b7a7a8a0b318b8bf39fa60f887", "/system/lib/libmtp.so", "5b5006f0750af6afdbbc769a569fe32a7e333ffc", "/system/lib/libjpeg.so", "286d04891ad28d8757913e5e52631b2dd86d98c5", "/system/lib/libbluetooth.so", "ae3edf7a6996182d8a4ce6360712a193c763ef8d", "/system/lib/libSR_AudioIn.so", "b7953b593d5d8e7f8ef6a404c82333134ae53a33", "/system/lib/libGLESv1_CM.so", "a52756f5a63c9827632587d025ee28f67739bd97", "/system/lib/libsonivox.so", "178fb323cb7031cd2e5957b0fa5b4066f8facfff", "/system/lib/libOpenMAXAL.so", "ba8c981ff136e858183c7f8e8639d1b7e1524cc1", "/system/lib/libedid.so", "1a762d6f2d368da59f60c48d819dc7ea45384f67", "/system/lib/libhdmi.so", "dddd80ed0b10e55b7a39b9aebd8b4755ee220ca6", "/system/lib/libvorbisidec.so", "1e1059775babc8c62b68aa55bbcf0373265b5120", "/system/lib/libstagefright_soft_mp3dec.so", "5892cf91ed95c006b5ce50f00b26c1e17efc5d1e", "/system/lib/libaudioeffect_jni.so", "4b2d53c6738f6881a384848fee4f71f5cf462f2c", "/system/lib/libstagefright_soft_mpeg4dec.so", "e5215346264c436d2b05de32ece9dc83e29a372f", "/system/lib/libmediayamaha_tuning_jni.so", "06ea99f190ec46edf270a836b74318d6a6438023", "/system/lib/libjnigraphics.so", "4f10d733d0732890cfbb7d9b244ff352aeaaad7b", "/system/lib/libext2_uuid.so", "04eb3cc0b653f66d396ced9bc069687a98399406", "/system/lib/libdrmframework_jni.so", "429cdb5bdeac63d207006aab22053396eeaa8da2", "/system/lib/bluez-plugin/bluetooth-health.so", "7186838da84f4bf56d927b9260c56eb48552896d", "/system/lib/bluez-plugin/network.so", "5f3e23efa5c6e882849bd0a938293290707fc6d8", "/system/lib/bluez-plugin/input.so", "3017b813d97813658fc9f98ee160be31d6f1c898", "/system/lib/bluez-plugin/audio.so", "73f1de70db4046da4c63b5e80c4d8d75d6d77668", "/system/lib/libMali.so", "1a6559c90df25d9cb210bbc2511e6bfaef3a1739", "/system/lib/libsndattslib.so", "4fd37511dfb89cd1f228ae8406d29c1ce5a81462", "/system/lib/libbluedroid.so", "f9f3699c82f303950dbefd92ff60a51df2c5007f", "/system/lib/libpng.so", "75f88e3376699a58085209a07e1cf1f8bf6a8af1", "/system/lib/libc_malloc_debug_leak.so", "734440ebf4a9a6f80fc4df4a771e3e043a288687", "/system/lib/libasound.so", "165fd276c61f38867979b5e16ea7dab5487a3496", "/system/lib/libcaps.so", "460777d6cabbc0ff9d59d5f944b5ed7e3a4a2ef8", "/system/lib/libsystem_server.so", "06e876fb978c5626f3560a3431dbdd3b1a8b5956", "/system/lib/libglib.so", "b6e6c3809ced8d206fda82c44a48b0d6628845d8", "/system/lib/libpower.so", "820bc9f6b0be07fc68565545e866aa2648612dce", "/system/lib/libui.so", "dbfc85706b2abae43132af30dc4c5cca0d2bff50", "/system/lib/hw/audio.primary.exynos4.so", "69413e27da4903bd1dd913efb9caff658b519fcc", "/system/lib/hw/hwcomposer.exynos4.so", "73c750780bcd0e8fa9b1520dd57e20591d09b78d", "/system/lib/hw/audio.primary.default.so", "656c57f53e0635d7c145dccf0789723000082c39", "/system/lib/hw/lights.goldfish.so", "0e54499b29afb6c6d63083a74b39d057edd26a2f", "/system/lib/hw/audio_policy.default.so", "911c5a8c0208a82c3616dfa445846e57d40226c3", "/system/lib/hw/lights.exynos4.so", "7d91819236cfa2d646c7fe940968ab09a110f1f6", "/system/lib/hw/camera.exynos4.so", "07f1ac8584d7a49545720555eef1021d761607f0", "/system/lib/hw/audio.a2dp.default.so", "89f3f7b47ac41aa7a855dc69b3efdb544bf61ebf", "/system/lib/hw/gps.exynos4.so", "ba72ef7b35295892a101502fa3b210f354385bc1", "/system/lib/hw/vendor-camera.exynos4.so", "13d8ee7df747c23f4cfbfc3c6a36591a0f7270cb", "/system/lib/hw/audio_policy.exynos4.so", "694d2343ea361318c9e508ad421e9e6c4ba0fff4", "/system/lib/hw/camera.goldfish.so", "a691e2eea737b3e06516172ed95981ddd8e56e73", "/system/lib/hw/sensors.exynos4.so", "1cfe5c8f9fb712891952d893edf5db8bea26baa0", "/system/lib/hw/alsa.default.so", "38049d662aff142108950db32b46dc2fd1a7eb4d", "/system/lib/hw/sensors.goldfish.so", "af044e320c420b6f579f87071be53d5689d611aa", "/system/lib/hw/gralloc.default.so", "a01935d2dc32c164e38fc83b3525d5eda9ebaf70", "/system/lib/hw/gralloc.exynos4.so", "d7e9c5e30f67077abab278ec31a0c32d0caed95c", "/system/lib/hw/gps.goldfish.so", "87178e8cabdf39916873cfcb878c3cceeca82c99", "/system/lib/libusbhost.so", "730e08e8b2681e1e2afe41ee2ce69418a6a7243f", "/system/lib/libext2fs.so", "4edff70008dd1ec5cb31d4753acd7b870f6ffa26", "/system/lib/libsrec_jni.so", "e4e2066b3d14baa94b82ab7d7a221b3cc399c24e", "/system/lib/libemoji.so", "2dacf51c8b8f76651d29d8f8c33835ad3e836507", "/system/lib/libext2_blkid.so", "b6bc7c4496dc3e860c3ac25aa8b4ecfa579e7f41", "/system/lib/libdefcontainer_jni.so", "7d3999f784ee583b12c4dbd51c836427bfbcb5e8", "/system/lib/libchromium_net.so", "a5ea92a932aff4180291742d487596e346efa9dc", "/system/lib/libddc.so", "423c76269e5617c5554128de4f84d8ad40d172f6", "/system/lib/libstagefright_soft_vpxdec.so", "5ba80d4f5aec8664956185e59d9b0b72a01d3f00", "/system/lib/libwebcore.so", "fa938271518d4f92d48406f3b6bf1c5234e01156", "/system/lib/libsndattsvoicechange.so", "d6d8429b983f04b645317b65bbe0b7e30e23ea58", "/system/lib/librtp_jni.so", "55de4e9656e26c930def18403ddb5623de8ba6ad", "/system/lib/libGLESv2.so", "a7bd75e38581f3379aa9c19b76aeea18f0f339ec", "/system/lib/libext2_e2p.so", "58dcfd9c3068e6c761b1c11f05debde8abc30784", "/system/lib/libFFTEm.so", "6e244ea964baa41f06d7e39b48c972b8e51e9faa", "/system/lib/libSEC_OMX_Resourcemanager.so", "2556719c05d8ac8f105c0a2becac2311cb2e6b84", "/system/lib/libEGL.so", "e20ae58615ddddbfd98677858b74819c4567fdf2", "/system/lib/libOpenSLES.so", "e6489c492580764e4131b94f4d33917569f52a34", "/system/lib/libsamsungSoundbooster.so", "c5a4947f28b13937513dc2028744602f41ec9fd6", "/system/lib/libcameraservice.so", "81e1f20ebd1e6b65f03b769c588a004f2f1b44fd", "/system/lib/libstdc++.so", "7582694469d84d41d2ff3b3dcdd42bf61e26e0f2", "/system/lib/libandroid.so", "6a1a91c78024d6fe098fb4236825b3ce6ded335d", "/system/lib/libtvoutinterface.so", "1c4fac42b4b46169a3ee667694801b0babb3e1b9", "/system/lib/libmediayamaha_jni.so", "4a22fd9e68c6d9655e5957981f6a3a9590cee53b", "/system/lib/libm.so", "569149f44188e61504481a851690788f7ae0274d", "/system/lib/libsqlite_jni.so", "5fd8c0d9a64f00f00253f3912656e1222b1dd4e1", "/system/lib/libbcc.so", "bcef4c9d819620cb0aa648279c67f6f7613daa6e", "/system/lib/liblvvefs.so", "4043b0ab6f3afafd40d5f384e6dedd4b53fa9f26", "/system/lib/libbcinfo.so", "c753ca8106a7c5489c89d8f6cad84dc0d18f2c3c", "/system/lib/libskia.so", "f05d27afe5bb9e73c7a08913652e034cedec4433", "/system/lib/libcec.so", "757c9c0df9d775fec8afe68537fd05442838e3ff", "/system/lib/libexif.so", "c848590f441456fdd517cbbdf39fc894ef638fb2", "/system/lib/libandroid_runtime.so", "b34ba6eb411fc1f1e699b9e8dbe0991fafa02a61", "/system/lib/libharfbuzz.so", "1002bec92cacc20b4e758c14bc60fabd955f0132", "/system/lib/libstagefright_yuv.so", "8c7adb7d67a2e68cef2dd5144dc52603885782e0", "/system/lib/librs_jni.so", "70b23eb0536bdc4aac7affc9522ae5e13d286225", "/system/lib/libsqlite.so", "4ca70b6a6fe3206da060d84673898c3b33c51db6", "/system/lib/libttscompat.so", "e0e010ed23e96d61845fb6cb2f8481036ed7227b", "/system/lib/libstlport.so", "60b5a114dabe70dc71b677b948ae8a84609e8467", "/system/lib/libxml2.so", "7e7c0cc3f9f4d7ff93287f69afb4e6dbd7772247", "/system/lib/libext4_utils.so", "9ee4b05517e39c744f20a5dc7fccfcdcc46e3cd4", "/system/lib/libnativehelper.so", "a6758e3f7768ef9a610330410e3d04ecc18274e0", "/system/lib/libwpa_client.so", "56769116ec914374a41ce6dcac6e0bcbc7690837", "/system/lib/libfilterpack_imageproc.so", "e57912571cee89a785a50443379b332499022af0", "/system/lib/libdrmframework.so", "a32cd33bfdafadb0add71fb0b277760ac7267954", "/system/lib/libsec-ril.so", "27a02acba6f65121177bc4abfac993a87517e6f3", "/system/lib/libstagefright_soft_amrdec.so", "95e50a49008a4d5f977a810b01d4776ef9e421bb", "/system/lib/libETC1.so", "6e83038f6bb1b8171063e760ff32915988218dc8", "/system/lib/libcrypto.so", "3505fc09962c91a399ba1b171a7e3f869accbddc", "/system/lib/libril.so", "a9c1458bf3d7d65732ebe029c427ef442a55a8ba", "/system/lib/libtvoutservice.so", "b349de786334df5ef2cc2f6a17c957d8e94e43b7", "/system/lib/libGLESv2_dbg.so", "b42cb60812e43c9b57fa1a885fcaee851602dd09", "/system/lib/lib_Samsung_Resampler.so", "f6c9242f9a66beaad87a2ea12c79ef9387e2f17b", "/system/lib/libthread_db.so", "d29e9096517018e98c37a000291f31ee642ada83", "/system/lib/libfilterfw.so", "f1c0e01fb086ac04e67ca600691f1a4bbf489584", "/system/lib/libyamahasrc.so", "60d12c1ce078e49c96d8b04a9d3a13b33d45f497", "/system/lib/libspeexresampler.so", "f9514375fc39b845cad596da727ba436e6c10e1b", "/system/lib/libc_malloc_debug_qemu.so", "6431371e934f049501fa57e83c3e069e2fedc9cd", "/system/lib/libsysutils.so", "9136fd0fed71b593491c665a74452602e655fab3", "/system/lib/libvideoeditor_jni.so", "536e1b3596a50cef54ef92e5566ec5c8b2d5dce0", "/system/lib/libcutils.so", "e7ba84a75ab57e09b265934baea2c4bba6a1743c", "/system/lib/libstagefright_foundation.so", "b8745be7c4a19714e8765c5cf49919b8556e4506", "/system/lib/modules/cifs.ko", "7f7946c40e74cb60bda113b90736fb273913f53e", "/system/lib/modules/dhd.ko", "8cfcd6e23ac23969997bc5893c947450e3d05cc5", "/system/lib/modules/scsi_wait_scan.ko", "cb41e0c0b0be0fb7629b485a0743843fb5331061", "/system/lib/modules/j4fs.ko", "4f49b67f08305f3a84b9a8339a72fcc569ed1321", "/system/lib/modules/Si4709_driver.ko", "1662bde80e73854eab1499adc4b0ca5b09852dc9", "/system/lib/modules/cpufreq_smartass2.ko", "6216eb6c0d7f2852f70198022f22a2c8f2ab4160", "/system/lib/libssl.so", "1b8587223944b3d1c44d79fd737f57a7cb64c652", "/system/lib/libgabi++.so", "e5658ba522f536be35273df62c51ca02ce697a53", "/system/lib/libstagefright_avc_common.so", "b2e2fa0d6efee9a067f2348f50dbfc7f8a2606a8", "/system/lib/libstagefright_omx.so", "2d3c4feeecd37417dc9dece9047e6f53d94efaae", "/system/lib/libsamsungAcousticeq.so", "291073afefd4bf82130ecf6234992837ca3774c3", "/system/lib/libctest.so", "3e046beb081e21b257666e132b34659de9ac882d", "/system/lib/libjni_mosaic.so", "52101a4cf48e35462a41375ace900afe8ef4849f", "/system/lib/libnfc_ndef.so", "1d8610a08dbdc47f751507b90d642d934b4e8f93", "/system/lib/libdiskconfig.so", "15024ebcd8c49581be21f4ba344dec5aa80a69a0", "/system/lib/libfimg.so", "b45186fe20aa26c4595caeefe793a3b3f041c7e5", "/system/lib/lib_Samsung_Sound_Booster.so", "0678d36c7bc6ea2003107f219f968a464cf098ca", "/system/lib/libs5pjpeg.so", "fdb7b09f91c5447c421d66a41fa67f76c362c6f7", "/system/lib/libhardware.so", "f19efd757aae6b0b3ff8a9f92a6e5a14f3c7c5e9", "/system/lib/drm/libfwdlockengine.so", "d640f2b128ddc4cf2c1a0063fea44fc2e41a7704", "/system/lib/libpowermanager.so", "a5bb5515c23a4740ca8dd4199db4a566694b329d", "/system/lib/libfimc.so", "3b30c3a6c63d2063131931964efd0cd2d1fa80bb", "/system/lib/libsecril-client.so", "8e643fff043b87c49de1594e3775b83bd28d22a8", "/system/lib/libjni_sndaime_oem.so", "1fc75d1fecd32357457a3a47f2da62447a2f7c72", "/system/lib/lib_Samsung_Acoustic_Module_Llite.so", "268d47dd7d384715672c6797e1e1bd07ac65a305", "/system/lib/libakm.so", "4e9604e822d7ecd43ba9144b0e4bd3b2110faf47", "/system/lib/libpagemap.so", "623e56910cd65e7022f32ee7f5f2d6a265b34226", "/system/lib/libstagefright_soft_vorbisdec.so", "e16a8c9a6bfc8ebf36800d123796b7c308d0d6a6", "/system/lib/libext2_profile.so", "d52756b7b456209255d9672e708a9d05f4673297", "/system/lib/libclcore.bc", "a1e2610fdc0c2ef151248092fa32be807d1b983d", "/system/lib/libc.so", "a7ee91aae7dddc9d2a6f5591a761e552598e94e7", "/system/lib/libstagefright_enc_common.so", "8be969b38167d6e7572f892b727c6ef3c18b9651");
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("boot.img", "/tmp/boot.img"),
       write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
       delete("/tmp/boot.img"));
show_progress(0.100000, 0);
unmount("/system");
