yousuft

updater-script

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