SHARE
TWEET

Untitled

a guest Apr 4th, 2013 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. assert(getprop("ro.product.device") == "u8815" || getprop("ro.build.product") == "u8815" ||
  2.        getprop("ro.product.device") == "hwu8815" || getprop("ro.build.product") == "hwu8815" ||
  3.        getprop("ro.product.device") == "u8818" || getprop("ro.build.product") == "u8818" ||
  4.        getprop("ro.product.device") == "hwu8818" || getprop("ro.build.product") == "hwu8818");
  5. mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
  6. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
  7. package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
  8. set_perm(0, 0, 0777, "/tmp/backuptool.sh");
  9. set_perm(0, 0, 0644, "/tmp/backuptool.functions");
  10. run_program("/tmp/backuptool.sh", "backup");
  11. unmount("/system");
  12. show_progress(0.500000, 0);
  13. ui_print("");
  14. ui_print("");
  15. ui_print("Slim Roms");
  16. ui_print("");
  17. ui_print(" www.slimroms.net  ");
  18. ui_print("");
  19. ui_print("");
  20. ui_print("Format and Mount System, Mount Data...");
  21. format("ext4", "EMMC", "/dev/block/mmcblk0p12", "0", "/system");
  22. mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");
  23. package_extract_dir("system", "/system");
  24. symlink("/system/xbin/su", "/system/bin/su");
  25. symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  26. symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  27. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  28.         "/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
  29.         "/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
  30.         "/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
  31.         "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
  32.         "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
  33.         "/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
  34.         "/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
  35.         "/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
  36.         "/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
  37.         "/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
  38.         "/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
  39.         "/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
  40.         "/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
  41.         "/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
  42.         "/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
  43.         "/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
  44.         "/system/xbin/fbsplash", "/system/xbin/fdisk", "/system/xbin/fgrep",
  45.         "/system/xbin/find", "/system/xbin/flash_lock",
  46.         "/system/xbin/flash_unlock", "/system/xbin/flashcp",
  47.         "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
  48.         "/system/xbin/freeramdisk", "/system/xbin/fstrim", "/system/xbin/fsync",
  49.         "/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
  50.         "/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
  51.         "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
  52.         "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  53.         "/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
  54.         "/system/xbin/install", "/system/xbin/ionice", "/system/xbin/iostat",
  55.         "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  56.         "/system/xbin/killall5", "/system/xbin/less", "/system/xbin/ln",
  57.         "/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
  58.         "/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
  59.         "/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
  60.         "/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
  61.         "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
  62.         "/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
  63.         "/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
  64.         "/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
  65.         "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
  66.         "/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
  67.         "/system/xbin/nbd-client", "/system/xbin/netstat", "/system/xbin/nice",
  68.         "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
  69.         "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
  70.         "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pipe_progress",
  71.         "/system/xbin/pkill", "/system/xbin/pmap", "/system/xbin/poweroff",
  72.         "/system/xbin/printenv", "/system/xbin/printf", "/system/xbin/ps",
  73.         "/system/xbin/pstree", "/system/xbin/pwd", "/system/xbin/pwdx",
  74.         "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
  75.         "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/resize",
  76.         "/system/xbin/rev", "/system/xbin/rm", "/system/xbin/rmdir",
  77.         "/system/xbin/rmmod", "/system/xbin/route", "/system/xbin/run-parts",
  78.         "/system/xbin/rx", "/system/xbin/sed", "/system/xbin/seq",
  79.         "/system/xbin/setconsole", "/system/xbin/setserial",
  80.         "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  81.         "/system/xbin/sha256sum", "/system/xbin/sha3sum",
  82.         "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
  83.         "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
  84.         "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
  85.         "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
  86.         "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
  87.         "/system/xbin/taskset", "/system/xbin/tee", "/system/xbin/telnet",
  88.         "/system/xbin/telnetd", "/system/xbin/test", "/system/xbin/tftp",
  89.         "/system/xbin/tftpd", "/system/xbin/time", "/system/xbin/timeout",
  90.         "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  91.         "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/ttysize",
  92.         "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  93.         "/system/xbin/uncompress", "/system/xbin/unexpand", "/system/xbin/uniq",
  94.         "/system/xbin/unix2dos", "/system/xbin/unlzma", "/system/xbin/unlzop",
  95.         "/system/xbin/unxz", "/system/xbin/unzip", "/system/xbin/uptime",
  96.         "/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode",
  97.         "/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc",
  98.         "/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami",
  99.         "/system/xbin/xargs", "/system/xbin/xz", "/system/xbin/xzcat",
  100.         "/system/xbin/yes",
  101.         "/system/xbin/zcat");
  102. symlink("mksh", "/system/bin/sh");
  103. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
  104.         "/system/bin/chown", "/system/bin/cmp", "/system/bin/cp",
  105.         "/system/bin/date", "/system/bin/dd", "/system/bin/df",
  106.         "/system/bin/dmesg", "/system/bin/du", "/system/bin/getevent",
  107.         "/system/bin/getprop", "/system/bin/grep", "/system/bin/hd",
  108.         "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  109.         "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  110.         "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  111.         "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
  112.         "/system/bin/md5", "/system/bin/mkdir", "/system/bin/mount",
  113.         "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
  114.         "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
  115.         "/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
  116.         "/system/bin/renice", "/system/bin/restart", "/system/bin/rm",
  117.         "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route",
  118.         "/system/bin/schedtop", "/system/bin/sendevent",
  119.         "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
  120.         "/system/bin/smd", "/system/bin/start", "/system/bin/stop",
  121.         "/system/bin/sync", "/system/bin/top", "/system/bin/touch",
  122.         "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",
  123.         "/system/bin/watchprops",
  124.         "/system/bin/wipe");
  125. set_perm_recursive(0, 0, 0755, 0644, "/system");
  126. set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
  127. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  128. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  129. set_perm(0, 3004, 02755, "/system/bin/ping");
  130. set_perm(0, 2000, 06750, "/system/bin/run-as");
  131. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  132. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  133. set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
  134. set_perm(0, 0, 0755, "/system/etc/init.d");
  135. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  136. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  137. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
  138. set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
  139. set_perm(0, 0, 0644, "/system/vendor/lib/libbt-vendor.so");
  140. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  141. set_perm(0, 0, 06755, "/system/xbin/librank");
  142. set_perm(0, 0, 06755, "/system/xbin/procmem");
  143. set_perm(0, 0, 06755, "/system/xbin/procrank");
  144. set_perm(0, 0, 06755, "/system/xbin/su");
  145. show_progress(0.200000, 0);
  146. show_progress(0.200000, 10);
  147. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
  148. package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
  149. set_perm(0, 0, 0777, "/tmp/backuptool.sh");
  150. set_perm(0, 0, 0644, "/tmp/backuptool.functions");
  151. run_program("/tmp/backuptool.sh", "restore");
  152. delete("/system/bin/backuptool.sh");
  153. delete("/system/bin/backuptool.functions");
  154. show_progress(0.200000, 10);
  155. ui_print("Flashing Boot Image...");
  156. package_extract_file("boot.img", "/dev/block/mmcblk0p15");
  157. show_progress(0.100000, 0);
  158. unmount("/system");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top