Advertisement
GazaIan

Why the freak won't Sense 3.5 boot :(

Sep 6th, 2011
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.77 KB | None | 0 0
  1. # Script Version: 1
  2.  
  3. show_progress(0.999999, 99);
  4.  
  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(" WELCOME TO RCMix3D Bliss ");
  17. ui_print(" CreAteD bY Capychimp. ");
  18. ui_print(" ");
  19. ui_print(" ");
  20. ui_print(" ThAnkS tO ");
  21. ui_print(" coolexe ");
  22. ui_print(" ");
  23. ui_print(" ");
  24.  
  25. ui_print(" ");
  26. ui_print("-Formatting Nand with ext4 Alignment...");
  27.  
  28. package_extract_dir("tmp", "/tmp");
  29. set_perm_recursive(0, 0, 0755, 0755, "/tmp/alignment/");
  30. unmount("/data");
  31. unmount("/cache");
  32. unmount("/system");
  33. run_program("/tmp/alignment/alignment.sh");
  34.  
  35. ui_print(" ");
  36. ui_print("-Installing DATA Partition...");
  37. mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
  38. package_extract_dir("data", "/data");
  39.  
  40. ui_print(" ");
  41. ui_print("-Installing SYSTEM Partition...");
  42. mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");
  43. package_extract_dir("system", "/system");
  44.  
  45. ui_print(" ");
  46. assert(run_program("/sbin/grep","androidboot.mid=PD9812000","/proc/cmdline") == "0"
  47. && ui_print("-Installing Inspire 4G Files...")
  48. && package_extract_dir("inspire", "/system")
  49. || ui_print("-DHD Not Installing Inspire 4G Files..."));
  50.  
  51. ui_print(" ");
  52. ui_print("Symlinks and permissions...");
  53. set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
  54. set_perm_recursive(1000, 1000, 0771, 0644, "/data/local");
  55. symlink("/data/etc/hosts","/system/etc/hosts");
  56. set_perm(2000, 2000, 0644, "/data/etc/hosts");
  57. symlink("/data/local/htc_bootanimation.zip","/system/customize/resource/htc_bootanimation.zip");
  58. symlink("/data/local/htc_downanimation.zip","/system/customize/resource/htc_downanimation.zip");
  59. symlink("/proc/calibration","/system/etc/calibration");
  60.  
  61. symlink("toolbox", "/system/bin/cat","/system/bin/chmod",
  62. "/system/bin/chown","/system/bin/chownto",
  63. "/system/bin/cmp","/system/bin/date",
  64. "/system/bin/dd","/system/bin/df",
  65. "/system/bin/dmesg","/system/bin/getevent",
  66. "/system/bin/getprop","/system/bin/hd",
  67. "/system/bin/id","/system/bin/ifconfig",
  68. "/system/bin/iftop","/system/bin/insmod",
  69. "/system/bin/ioctl","/system/bin/ionice",
  70. "/system/bin/kill","/system/bin/ln",
  71. "/system/bin/log","/system/bin/ls",
  72. "/system/bin/lsmod","/system/bin/mkdir",
  73. "/system/bin/mount","/system/bin/mv",
  74. "/system/bin/nandread","/system/bin/netstat",
  75. "/system/bin/newfs_msdos","/system/bin/notify",
  76. "/system/bin/printenv","/system/bin/ps",
  77. "/system/bin/renice","/system/bin/rm",
  78. "/system/bin/rmdir","/system/bin/rmmod",
  79. "/system/bin/route","/system/bin/schedtop",
  80. "/system/bin/sendevent","/system/bin/setconsole",
  81. "/system/bin/setprop","/system/bin/sleep",
  82. "/system/bin/smd","/system/bin/start",
  83. "/system/bin/stop","/system/bin/sync",
  84. "/system/bin/top","/system/bin/umount",
  85. "/system/bin/vmstat","/system/bin/watchprops",
  86. "/system/bin/wipe","/system/bin/sh");
  87.  
  88. symlink("busybox", "/system/xbin/[","/system/xbin/[[","/system/xbin/addgroup",
  89. "/system/xbin/adduser","/system/xbin/adjtimex","/system/xbin/ar",
  90. "/system/xbin/arp","/system/xbin/arping","/system/xbin/ash",
  91. "/system/xbin/awk","/system/xbin/basename","/system/xbin/bbconfig",
  92. "/system/xbin/beep","/system/xbin/blkid","/system/xbin/brctl",
  93. "/system/xbin/bunzip2","/system/xbin/bzcat","/system/xbin/bzip2",
  94. "/system/xbin/cal","/system/xbin/cat","/system/xbin/catv",
  95. "/system/xbin/chat","/system/xbin/chattr","/system/xbin/chgrp",
  96. "/system/xbin/chmod","/system/xbin/chown","/system/xbin/chpasswd",
  97. "/system/xbin/chpst","/system/xbin/chroot","/system/xbin/chrt",
  98. "/system/xbin/chvt","/system/xbin/cksum","/system/xbin/clear",
  99. "/system/xbin/cmp","/system/xbin/comm","/system/xbin/cp",
  100. "/system/xbin/cpio","/system/xbin/crond","/system/xbin/crontab",
  101. "/system/xbin/cryptpw","/system/xbin/cttyhack","/system/xbin/cut",
  102. "/system/xbin/date","/system/xbin/dc","/system/xbin/dd",
  103. "/system/xbin/deallocvt","/system/xbin/delgroup","/system/xbin/deluser",
  104. "/system/xbin/depmod","/system/xbin/devmem","/system/xbin/df",
  105. "/system/xbin/diff","/system/xbin/dirname","/system/xbin/dmesg",
  106. "/system/xbin/dnsd","/system/xbin/dnsdomainname","/system/xbin/dos2unix",
  107. "/system/xbin/du","/system/xbin/dumpkmap","/system/xbin/echo",
  108. "/system/xbin/ed","/system/xbin/egrep","/system/xbin/eject",
  109. "/system/xbin/env","/system/xbin/envdir","/system/xbin/envuidgid",
  110. "/system/xbin/ether-wake","/system/xbin/expand","/system/xbin/expr",
  111. "/system/xbin/fakeidentd","/system/xbin/false","/system/xbin/fbset",
  112. "/system/xbin/fbsplash","/system/xbin/fdflush","/system/xbin/fdformat",
  113. "/system/xbin/fdisk","/system/xbin/fgrep","/system/xbin/find",
  114. "/system/xbin/findfs","/system/xbin/fold","/system/xbin/free",
  115. "/system/xbin/fsck","/system/xbin/fsck.minix","/system/xbin/fsync",
  116. "/system/xbin/ftpd","/system/xbin/ftpget","/system/xbin/ftpput",
  117. "/system/xbin/fuser","/system/xbin/getopt","/system/xbin/getty",
  118. "/system/xbin/grep","/system/xbin/gunzip","/system/xbin/gzip",
  119. "/system/xbin/halt","/system/xbin/hd","/system/xbin/hdparm",
  120. "/system/xbin/head","/system/xbin/hexdump","/system/xbin/hostid",
  121. "/system/xbin/hostname","/system/xbin/httpd","/system/xbin/hush",
  122. "/system/xbin/hwclock","/system/xbin/id","/system/xbin/ifconfig",
  123. "/system/xbin/ifdown","/system/xbin/ifenslave","/system/xbin/ifplugd",
  124. "/system/xbin/ifup","/system/xbin/inetd","/system/xbin/init",
  125. "/system/xbin/insmod","/system/xbin/install","/system/xbin/ionice",
  126. "/system/xbin/ip","/system/xbin/ipaddr","/system/xbin/ipcalc",
  127. "/system/xbin/ipcrm","/system/xbin/ipcs","/system/xbin/iplink",
  128. "/system/xbin/iproute","/system/xbin/iprule","/system/xbin/iptunnel",
  129. "/system/xbin/kbd_mode","/system/xbin/kill","/system/xbin/killall",
  130. "/system/xbin/killall5","/system/xbin/klogd","/system/xbin/last",
  131. "/system/xbin/length","/system/xbin/less","/system/xbin/linux32",
  132. "/system/xbin/linux64","/system/xbin/linuxrc","/system/xbin/ln",
  133. "/system/xbin/loadfont","/system/xbin/loadkmap","/system/xbin/logger",
  134. "/system/xbin/login","/system/xbin/logname","/system/xbin/logread",
  135. "/system/xbin/losetup","/system/xbin/lpd","/system/xbin/lpq",
  136. "/system/xbin/lpr","/system/xbin/ls","/system/xbin/lsattr",
  137. "/system/xbin/lsmod","/system/xbin/lzmacat","/system/xbin/lzop",
  138. "/system/xbin/lzopcat","/system/xbin/makedevs","/system/xbin/makemime",
  139. "/system/xbin/man","/system/xbin/md5sum","/system/xbin/mdev",
  140. "/system/xbin/mesg","/system/xbin/microcom","/system/xbin/mkdir",
  141. "/system/xbin/mkdosfs","/system/xbin/mkfifo","/system/xbin/mkfs.minix",
  142. "/system/xbin/mkfs.vfat","/system/xbin/mknod","/system/xbin/mkpasswd",
  143. "/system/xbin/mkswap","/system/xbin/mktemp","/system/xbin/modprobe",
  144. "/system/xbin/more","/system/xbin/mount","/system/xbin/mountpoint",
  145. "/system/xbin/msh","/system/xbin/mt","/system/xbin/mv","/system/xbin/nameif",
  146. "/system/xbin/nc","/system/xbin/netstat","/system/xbin/nice",
  147. "/system/xbin/nmeter","/system/xbin/nohup","/system/xbin/nslookup",
  148. "/system/xbin/od","/system/xbin/openvt","/system/xbin/passwd",
  149. "/system/xbin/patch","/system/xbin/pgrep","/system/xbin/pidof",
  150. "/system/xbin/ping","/system/xbin/ping6","/system/xbin/pipe_progress",
  151. "/system/xbin/pivot_root","/system/xbin/pkill","/system/xbin/popmaildir",
  152. "/system/xbin/poweroff","/system/xbin/printenv","/system/xbin/printf",
  153. "/system/xbin/ps","/system/xbin/pscan","/system/xbin/pwd","/system/xbin/raidautorun",
  154. "/system/xbin/rdate","/system/xbin/rdev","/system/xbin/readahead",
  155. "/system/xbin/readlink","/system/xbin/readprofile","/system/xbin/realpath",
  156. "/system/xbin/reformime","/system/xbin/renice","/system/xbin/reset",
  157. "/system/xbin/resize","/system/xbin/rm","/system/xbin/rmdir",
  158. "/system/xbin/rmmod","/system/xbin/route","/system/xbin/rtcwake",
  159. "/system/xbin/run-parts","/system/xbin/runlevel","/system/xbin/runsv",
  160. "/system/xbin/runsvdir","/system/xbin/rx","/system/xbin/script",
  161. "/system/xbin/scriptreplay","/system/xbin/sed","/system/xbin/sendmail",
  162. "/system/xbin/seq","/system/xbin/setarch","/system/xbin/setconsole",
  163. "/system/xbin/setfont","/system/xbin/setkeycodes","/system/xbin/setlogcons",
  164. "/system/xbin/setsid","/system/xbin/setuidgid","/system/xbin/sh",
  165. "/system/xbin/sha1sum","/system/xbin/sha256sum","/system/xbin/sha512sum",
  166. "/system/xbin/showkey","/system/xbin/slattach","/system/xbin/sleep",
  167. "/system/xbin/softlimit","/system/xbin/sort","/system/xbin/split",
  168. "/system/xbin/start-stop-daemon","/system/xbin/stat","/system/xbin/strings",
  169. "/system/xbin/stty","/system/xbin/sulogin","/system/xbin/sum",
  170. "/system/xbin/sv","/system/xbin/svlogd","/system/xbin/swapoff",
  171. "/system/xbin/swapon","/system/xbin/switch_root","/system/xbin/sync",
  172. "/system/xbin/sysctl","/system/xbin/syslogd","/system/xbin/tac",
  173. "/system/xbin/tail","/system/xbin/tar","/system/xbin/tcpsvd",
  174. "/system/xbin/tee","/system/xbin/telnet","/system/xbin/telnetd",
  175. "/system/xbin/test","/system/xbin/tftp","/system/xbin/tftpd",
  176. "/system/xbin/time","/system/xbin/timeout","/system/xbin/top",
  177. "/system/xbin/touch","/system/xbin/tr","/system/xbin/traceroute",
  178. "/system/xbin/true","/system/xbin/tty","/system/xbin/ttysize",
  179. "/system/xbin/tunctl","/system/xbin/udpsvd","/system/xbin/umount",
  180. "/system/xbin/uname","/system/xbin/uncompress","/system/xbin/unexpand",
  181. "/system/xbin/uniq","/system/xbin/unix2dos","/system/xbin/unlzma",
  182. "/system/xbin/unlzop","/system/xbin/unzip","/system/xbin/uptime",
  183. "/system/xbin/usleep","/system/xbin/uudecode","/system/xbin/uuencode",
  184. "/system/xbin/vconfig","/system/xbin/vi","/system/xbin/vlock",
  185. "/system/xbin/volname","/system/xbin/watch","/system/xbin/watchdog",
  186. "/system/xbin/wc","/system/xbin/wget","/system/xbin/which",
  187. "/system/xbin/who","/system/xbin/whoami","/system/xbin/xargs",
  188. "/system/xbin/yes","/system/xbin/zcat","/system/xbin/zcip");
  189.  
  190. set_perm_recursive(0, 0, 0755, 0644, "/system");
  191. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  192. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
  193. set_perm(0, 3003, 0755, "/system/bin/ip");
  194. set_perm(0, 3003, 0755, "/system/bin/ipd");
  195. set_perm(0, 3003, 02755, "/system/bin/netcfg");
  196. set_perm(0, 3003, 06755, "/system/bin/netd");
  197. set_perm(0, 3004, 02755, "/system/bin/ping");
  198. set_perm(0, 2000, 06755, "/system/bin/reboot");
  199. set_perm(0, 2000, 06755, "/system/bin/run-as");
  200. set_perm(0, 0, 0777, "/system/bin/strt");
  201. set_perm(0, 0, 0777, "/system/bin/sh");
  202. set_perm(0, 0, 0777, "/system/bin/ssts");
  203. set_perm(0, 0, 0777, "/system/bin/prio");
  204. set_perm(0, 0, 0777, "/system/bin/camprio");
  205. set_perm(0, 0, 0777, "/system/bin/close");
  206. set_perm(0, 0, 0777, "/system/bin/unionfs");
  207. set_perm(0, 0, 0777, "/system/bin/nano");
  208. set_perm(0, 0, 0777, "/system/bin/sysrw");
  209. set_perm(0, 0, 0777, "/system/bin/sysro");
  210. set_perm(0, 0, 0777, "/system/bin/optmz");
  211. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  212. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  213. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  214. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  215. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  216. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  217. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  218. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  219. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  220. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
  221. set_perm(0, 0, 06755, "/system/xbin/librank");
  222. set_perm(0, 0, 06755, "/system/xbin/procmem");
  223. set_perm(0, 0, 06755, "/system/xbin/procrank");
  224.  
  225. delete_recursive("/data/data/com.noshufou.android.su");
  226.  
  227. set_perm(0, 0, 06755, "/system/xbin/su");
  228. set_perm(0, 0, 04755, "/system/xbin/busybox");
  229. set_perm_recursive(0, 0, 0755, 0755, "/system/virtuous/scripts");
  230.  
  231. set_perm(0, 0, 04755, "/system/bin/sysro");
  232. set_perm(0, 0, 04755, "/system/bin/sysrw");
  233. set_perm(0, 0, 04755, "/system/bin/fix_permissions");
  234. symlink("/system/xbin/busybox","/system/xbin/bb/ifconfig");
  235. symlink("/system/xbin/busybox","/system/xbin/bb/route");
  236. symlink("/system/bin/bash", "/system/xbin/bash");
  237. set_perm(0, 0, 04755, "/system/xbin/openvpn");
  238. set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
  239. set_perm(0, 0, 04755, "/system/bin/bash");
  240.  
  241. set_perm(0, 0, 04755, "/system/xbin/dropbear");
  242. set_perm(0, 0, 04755, "/system/xbin/flash_image");
  243. set_perm(0, 0, 04755, "/system/xbin/dump_image");
  244.  
  245. set_perm (0, 0, 0777, "/system/bin/a2sd");
  246. set_perm (0, 0, 0777, "/system/etc/init.d/99complete");
  247. set_perm (0, 0, 0777, "/system/bin/launcha2sd");
  248. set_perm (0, 0, 0777, "/system/bin/starta2sd");
  249. set_perm (0, 0, 0777, "/system/bin/chka2sd");
  250. set_perm (0, 0, 0777, "/system/bin/zipalign");
  251. set_perm (0, 0, 0777, "/system/bin/sysinit");
  252. set_perm (0, 0, 0777, "/system/bin/bash");
  253. set_perm (0, 0, 0777, "/system/bin/busybox.a2sd");
  254. set_perm (0, 0, 0644, "/system/bin/apps2sd.hlp");
  255. set_perm (0, 0, 0777, "/system/bin/dtinstall");
  256. set_perm (0, 0, 0777, "/data/dtinstall.launch");
  257. set_perm (0, 0, 0777, "/system/bin/e2fsck");
  258. set_perm (0, 0, 0777, "/system/bin/tune2fs");
  259. set_perm (0, 0, 0777, "/system/etc/init.d/dtapp");
  260. set_perm (0, 0, 0777, "/system/bin/fix_permissions");
  261. # ui_print("Running A2SD+ Setup");
  262. # run_program("/data/dtinstall.launch");
  263. # delete("/system/bin/dtinstall");
  264. # delete("/data/dtinstall.launch");
  265.  
  266.  
  267. symlink("dropbear","/system/xbin/dropbearkey");
  268. symlink("dropbear","/system/xbin/dbclient");
  269. symlink("dropbear","/system/xbin/ssh");
  270.  
  271. delete("/system/etc/resolv.conf");
  272. symlink("/data/local/resolv.conf","/system/etc/resolv.conf");
  273. set_perm(0, 0, 0644, "/data/local/resolv.conf");
  274. set_perm(0, 0, 0755, "/data/xbin/set_resolvconf");
  275.  
  276. set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
  277.  
  278. delete("/system/bin/su");
  279. symlink("/system/xbin/su","/system/bin/su");
  280.  
  281. show_progress(0.200000, 10);
  282. ui_print("");
  283. ui_print("Running ROM configuration scripts ...");
  284. package_extract_file("virtuous-setup_rom", "/tmp/virtuous-setup_rom");
  285. set_perm(0, 0, 0777, "/tmp/virtuous-setup_rom");
  286. run_program("/tmp/virtuous-setup_rom");
  287.  
  288. ui_print("");
  289. ui_print("Preparing ROM sdcard directory ...");
  290. delete_recursive("/sdcard/RCTeam/app.rom");
  291. package_extract_dir("sdcard", "/sdcard");
  292.  
  293. ui_print("Running ROM configuration scripts ...");
  294. package_extract_file("MS", "/tmp/MS");
  295. set_perm(0, 0, 0777, "/tmp/MS");
  296. run_program("/tmp/MS");
  297.  
  298. ui_print("");
  299. ui_print("Writing boot.img ...");
  300. package_extract_file("boot.img","/tmp/boot.img");
  301. write_raw_image("/tmp/boot.img", "boot");
  302. delete("/tmp/boot.img");
  303. ui_print(" ");
  304. ui_print(" ");
  305. ui_print("Finished... Reboot and enjoy.");
  306. ui_print("First boot may take a while... ");
  307. ui_print("May the schwartz be with you... ;)");
  308. unmount("/data");
  309. unmount("/cache");
  310. unmount("/system");
  311.  
  312. run_program("/sbin/reboot");
  313.  
  314. show_progress(0.000000, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement