yousuft

Untitled

Jul 10th, 2011
631
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ui_print("");
  2. ui_print("");
  3. ui_print("");
  4. ui_print("");
  5. ui_print("");
  6. ui_print("");
  7. ui_print("");
  8. ui_print("");
  9. ui_print("");
  10. ui_print("");
  11. ui_print("");
  12. ui_print("");
  13. ui_print("");
  14. ui_print("");
  15. ui_print("");
  16. ui_print("");
  17. ui_print("");
  18. ui_print("");
  19. ui_print("");
  20. ui_print("");
  21. ui_print("");
  22. ui_print("");
  23. ui_print("");
  24. ui_print("");
  25. ui_print("");
  26. ui_print("");
  27. ui_print("");
  28. ui_print("");
  29. ui_print("");
  30. ui_print("");
  31. ui_print("");
  32. ui_print("");
  33. ui_print("");
  34. ui_print("");
  35. ui_print("");
  36. ui_print("   ________________________________________ ");
  37. ui_print("  |                                        |");
  38. ui_print("  |..::: HAVE FUN WITH DUNGPHP'S ROMS :::..|");
  39. ui_print("  |________________________________________|");
  40. ui_print(" ");
  41. ui_print(" ");
  42. ui_print(" ");
  43. ui_print(" ");
  44. ui_print(" ");
  45. ui_print(" ");
  46. ui_print(" ");
  47. ui_print(" ");
  48. ui_print(" ");
  49. ui_print(" ");
  50. ui_print(" ");
  51. ui_print(" ");
  52. ui_print(" ");
  53. ui_print("   ________________________________________ ");
  54. ui_print("  |____________PROCESSING SYSTEM___________|");
  55. ui_print("   ________________________________________ ");
  56. ui_print("  |____________Please_waiting...___________|");
  57. show_progress(0.500000, 0);
  58. format("MTD", "boot");
  59. format("MTD", "system");
  60. mount("MTD", "boot", "/boot");
  61. mount("MTD", "system", "/system");
  62. mount("MTD", "userdata", "/data");
  63. run_program("/sbin/busybox", "sleep", "2");
  64. run_program("/sbin/mkdir", "/sd-ext");
  65. run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
  66. run_program("/sbin/busybox", "sleep", "2");
  67. delete_recursive("/data/dalvik-cache");
  68. delete_recursive("/sd-ext/dalvik-cache");
  69. show_progress(0.200000, 20);
  70. package_extract_dir("recovery", "/system");
  71. show_progress(0.200000, 20);
  72. package_extract_dir("data", "/data");
  73. set_perm_recursive(1000, 1000, 0771, 0644, "/data/app_s");
  74. set_perm_recursive(1000, 1000, 0771, 0644, "/data/framework_s");
  75. package_extract_dir("sd-ext", "/sd-ext");
  76. show_progress(0.200000, 20);
  77. package_extract_dir("system", "/system");
  78. symlink("/data/app_s","/system/app");
  79. symlink("/data/framework_s","/system/framework");
  80. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  81.         "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
  82.         "/system/xbin/basename", "/system/xbin/bbconfig", "/system/xbin/brctl",
  83.         "/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2",
  84.         "/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv",
  85.         "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
  86.         "/system/xbin/chroot", "/system/xbin/cksum", "/system/xbin/clear",
  87.         "/system/xbin/cmp", "/system/xbin/cp", "/system/xbin/cpio",
  88.         "/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
  89.         "/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem",
  90.         "/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname",
  91.         "/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix",
  92.         "/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed",
  93.         "/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expr",
  94.         "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
  95.         "/system/xbin/find", "/system/xbin/fold", "/system/xbin/free",
  96.         "/system/xbin/freeramdisk", "/system/xbin/fuser", "/system/xbin/getopt",
  97.         "/system/xbin/grep", "/system/xbin/gunzip", "/system/xbin/gzip",
  98.         "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  99.         "/system/xbin/ifconfig", "/system/xbin/insmod", "/system/xbin/install",
  100.         "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  101.         "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
  102.         "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
  103.         "/system/xbin/lsmod", "/system/xbin/lspci", "/system/xbin/lsusb",
  104.         "/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/md5sum",
  105.         "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
  106.         "/system/xbin/mkfs.ext2", "/system/xbin/mknod", "/system/xbin/mkswap",
  107.         "/system/xbin/mktemp", "/system/xbin/modprobe", "/system/xbin/more",
  108.         "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mv",
  109.          "/system/xbin/nc","/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
  110.         "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
  111.         "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
  112.         "/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/printenv",
  113.         "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pwd",
  114.         "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
  115.         "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/rm",
  116.         "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
  117.         "/system/xbin/run-parts", "/system/xbin/sed", "/system/xbin/seq",
  118.         "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  119.         "/system/xbin/sha256sum", "/system/xbin/sha512sum",
  120.         "/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
  121.         "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
  122.         "/system/xbin/swapoff", "/system/xbin/swapon", "/system/xbin/sync",
  123.         "/system/xbin/sysctl", "/system/xbin/tac", "/system/xbin/tail",
  124.         "/system/xbin/tar", "/system/xbin/tee", "/system/xbin/telnet",
  125.         "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/time",
  126.         "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  127.         "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/tty",
  128.         "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  129.         "/system/xbin/uniq", "/system/xbin/unix2dos", "/system/xbin/unlzop",
  130.         "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
  131.         "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
  132.         "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
  133.         "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
  134.         "/system/xbin/yes",
  135.         "/system/xbin/zcat");
  136. symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
  137.         "/system/xbin/iwlist", "/system/xbin/iwpriv",
  138.         "/system/xbin/iwspy");
  139.         symlink("toolbox",  "/system/bin/cat", "/system/bin/chmod", "/system/bin/chown",
  140.         "/system/bin/cmp", "/system/bin/date", "/system/bin/dd", "/system/bin/df",
  141.         "/system/bin/dmesg", "/system/bin/getevent", "/system/bin/getprop",
  142.         "/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig",
  143.         "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl",
  144.         "/system/bin/ionice", "/system/bin/kill", "/system/bin/ln",
  145.         "/system/bin/log", "/system/bin/lsmod", "/system/bin/lsof",
  146.         "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
  147.         "/system/bin/nandread", "/system/bin/netstat", "/system/bin/newfs_msdos",
  148.         "/system/bin/notify", "/system/bin/printenv", "/system/bin/ps",
  149.         "/system/bin/renice", "/system/bin/rm",
  150.         "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route",
  151.         "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setconsole",
  152.         "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
  153.         "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  154.         "/system/bin/top", "/system/bin/umount", "/system/bin/uptime",
  155.         "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe");
  156. set_perm_recursive(0, 0, 0755, 0644, "/system");
  157. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  158. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
  159. set_perm(0, 3003, 0755, "/system/bin/ip");
  160. set_perm(0, 3003, 0755, "/system/bin/ipd");
  161. set_perm(0, 3003, 02755, "/system/bin/netcfg");
  162. set_perm(0, 3003, 06755, "/system/bin/netd");
  163. set_perm(0, 3004, 02755, "/system/bin/ping");
  164. set_perm(0, 2000, 06755, "/system/bin/reboot");
  165. set_perm(0, 2000, 06755, "/system/bin/run-as");
  166. set_perm(0, 0, 0777, "/system/bin/strt");
  167. set_perm(0, 0, 0777, "/system/bin/ssts");
  168. set_perm(0, 0, 0777, "/system/bin/prio");
  169. set_perm(0, 0, 0777, "/system/bin/camprio");
  170. set_perm(0, 0, 0777, "/system/bin/close");
  171. set_perm(0, 0, 0777, "/system/bin/unionfs");
  172. set_perm(0, 0, 0777, "/system/bin/nano");
  173. set_perm(0, 0, 0777, "/system/bin/sysrw");
  174. set_perm(0, 0, 0777, "/system/bin/sysro");
  175. set_perm(0, 0, 0777, "/system/bin/optmz");
  176. set_perm (0, 2000, 04755, "/system/bin/pppd");
  177. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  178. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  179. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  180. set_perm(1002, 1002, 0440, "/system/etc/bluetooth/input.conf");
  181. set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
  182. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  183. set_perm(0, 0, 0644, "/system/etc/bluetooth/a2dp_avrcp.conf");
  184. set_perm(0, 0, 0644, "/system/etc/bluetooth/avrcp.conf");
  185. set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
  186. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  187. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  188. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  189. set_perm_recursive(0, 0, 0777, 0777, "/system/etc/ppp");
  190. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  191. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
  192. set_perm(0, 0, 06755, "/system/xbin/librank");
  193. set_perm(0, 0, 06755, "/system/xbin/procmem");
  194. set_perm(0, 0, 06755, "/system/xbin/procrank");
  195. delete_recursive("/data/data/com.noshufou.android.su");
  196. set_perm(0, 0, 06755, "/system/xbin/su");
  197. set_perm(0, 0, 04755, "/system/xbin/busybox");
  198. set_perm(0, 0, 04755, "/system/bin/sysro");
  199. set_perm(0, 0, 04755, "/system/bin/sysrw");
  200. set_perm(0, 0, 04755, "/system/bin/fix_permissions");
  201. symlink("/system/xbin/busybox","/system/xbin/bb/ifconfig");
  202. symlink("/system/xbin/busybox","/system/xbin/bb/route");
  203. set_perm(0, 0, 04755, "/system/xbin/openvpn");
  204. set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
  205. set_perm(0, 0, 04755, "/system/bin/bash");
  206. set_perm(0, 0, 04755, "/system/xbin/dropbear");
  207. set_perm(0, 0, 04755, "/system/xbin/flash_image");
  208. set_perm(0, 0, 04755, "/system/xbin/dump_image");
  209. symlink("dropbear","/system/xbin/dropbearkey");
  210. symlink("dropbear","/system/xbin/dbclient");
  211. symlink("dropbear","/system/xbin/ssh");
  212. set_perm(0, 0, 06755, "/system/xbin/cssync");
  213. delete("/system/etc/resolv.conf");
  214. symlink("/data/local/resolv.conf","/system/etc/resolv.conf");
  215. set_perm(0, 0, 0644, "/data/local/resolv.conf");
  216. set_perm(0, 0, 0755, "/data/xbin/set_resolvconf");
  217. set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
  218. delete("/system/bin/su");
  219. symlink("/system/xbin/su","/system/bin/su");
  220. package_extract_dir("boot", "/boot");
  221. show_progress(0.000000, 0);
  222. unmount("/system");
  223. unmount("/boot");
  224. unmount("/sd-ext");
  225. unmount("/data");
  226. ui_print(" ");
  227. ui_print(" ");
  228. ui_print("   ________________FINISHED_!______________ ");
  229. ui_print("  |_______________Thank_you_!______________|");
RAW Paste Data