x13thangelx

Angel075_script

Aug 29th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1. ui_print("");
  2. ui_print("************************************************");
  3. ui_print("* *");
  4. ui_print("* AngelRom V0.7.6 *");
  5. ui_print("* By: *");
  6. ui_print("* 13th Angel *");
  7. ui_print("* *");
  8. ui_print("* Based on: *");
  9. ui_print("* DROID 2 Global 2.4.330 Framework *");
  10. ui_print("* *");
  11. ui_print("************************************************");
  12. ui_print("");
  13.  
  14. show_progress(1.000000, 75);
  15.  
  16. ##Format System: Credit to Liberty Team##
  17. package_extract_dir("utils", "/tmp");
  18. set_perm(0, 0, 0755, "/tmp/mke2fs");
  19. set_perm(0, 0, 0755, "/tmp/tune2fs");
  20.  
  21. ui_print(" ");
  22. ui_print("** Preparing Your Phone **");
  23. unmount("/system");
  24. run_program("/tmp/mke2fs", "-g", "8184", "-m", "0", "-O", "none,has_journal,filetype", "-L", "system", "-U", "66c79d5f-31a2-42c6-86d9-9fe0d2ec3fe5", "/dev/block/mmcblk1p21");
  25. run_program("/tmp/tune2fs", "-c", "0", "-i", "0", "/dev/block/mmcblk1p21");
  26.  
  27. mount("ext3", "/dev/block/mmcblk1p21", "/system");
  28. mount("ext3", "/dev/block/mmcblk1p23", "/preinstall");
  29. mount("ext3", "/dev/block/mmcblk1p24", "/data");
  30. delete_recursive("/preinstall/app/");
  31. delete_recursive("/preinstall/md5/");
  32. delete_recursive("/preinstall/recovery/");
  33. delete_recursive("/data/dalvik-cache");
  34.  
  35. ##Installing system files##
  36. ui_print(" ");
  37. ui_print("** Installing Files **");
  38. package_extract_dir("system", "/system");
  39. package_extract_dir("data", "/data");
  40.  
  41. ##Preinstall safetynet: Credit to Team Defused & Koush##
  42. run_program("mount", "-o", "remount,", "rw", "/dev/block/mmcblk1p23", "/preinstall");
  43. package_extract_dir("preinstall", "/preinstall");
  44.  
  45. symlink("hijack", "/system/bin/logwrapper");
  46.  
  47. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
  48. "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
  49. "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  50. "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
  51. "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  52. "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  53. "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  54. "/system/bin/ls", "/system/bin/lsmod", "/system/bin/mkdir",
  55. "/system/bin/mount", "/system/bin/mv", "/system/bin/nandread",
  56. "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify",
  57. "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot",
  58. "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
  59. "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
  60. "/system/bin/sendevent", "/system/bin/setconsole",
  61. "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
  62. "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  63. "/system/bin/top", "/system/bin/umount", "/system/bin/vmstat",
  64. "/system/bin/watchprops",
  65. "/system/bin/wipe");
  66. symlink("motobox", "/system/bin/md5sum", "/system/bin/cp",
  67. "/system/bin/format", "/system/bin/ptf", "/system/bin/[",
  68. "/system/bin/test", "/system/bin/masterclear");
  69.  
  70. ui_print(" ");
  71. ui_print("** Finalizing Installation **");
  72. symlink("busybox", "/system/xbin/busybox", "/system/xbin/[", "/system/xbin/[[",
  73. "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
  74. "/system/xbin/basename", "/system/xbin/bbconfig", "/system/xbin/brctl",
  75. "/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2",
  76. "/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv",
  77. "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
  78. "/system/xbin/chroot", "/system/xbin/cksum", "/system/xbin/clear",
  79. "/system/xbin/cmp", "/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
  80. "/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
  81. "/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem",
  82. "/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname",
  83. "/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix",
  84. "/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed",
  85. "/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expr",
  86. "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
  87. "/system/xbin/find", "/system/xbin/fold", "/system/xbin/free",
  88. "/system/xbin/freeramdisk", "/system/xbin/fuser", "/system/xbin/getopt",
  89. "/system/xbin/grep", "/system/xbin/gunzip", "/system/xbin/gzip",
  90. "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  91. "/system/xbin/ifconfig", "/system/xbin/insmod", "/system/xbin/install",
  92. "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  93. "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
  94. "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
  95. "/system/xbin/lsmod", "/system/xbin/lspci", "/system/xbin/lsusb",
  96. "/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/md5sum",
  97. "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
  98. "/system/xbin/mkfs.ext2", "/system/xbin/mknod", "/system/xbin/mkswap",
  99. "/system/xbin/mktemp", "/system/xbin/modprobe", "/system/xbin/more",
  100. "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mv",
  101. "/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
  102. "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
  103. "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
  104. "/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/printenv",
  105. "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pwd",
  106. "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
  107. "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/rm",
  108. "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
  109. "/system/xbin/run-parts", "/system/xbin/sed", "/system/xbin/seq",
  110. "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  111. "/system/xbin/sha256sum", "/system/xbin/sha512sum",
  112. "/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
  113. "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
  114. "/system/xbin/swapoff", "/system/xbin/swapon", "/system/xbin/sync",
  115. "/system/xbin/sysctl", "/system/xbin/tac", "/system/xbin/tail",
  116. "/system/xbin/tar", "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
  117. "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/time",
  118. "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  119. "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/tty",
  120. "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  121. "/system/xbin/uniq", "/system/xbin/unix2dos", "/system/xbin/unlzop",
  122. "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
  123. "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
  124. "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
  125. "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
  126. "/system/xbin/yes", "/system/xbin/zcat");
  127.  
  128. set_perm_recursive(0, 0, 0755, 0644, "/system");
  129. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  130. set_perm_recursive(0, 2000, 0755, 0755, "/preinstall");
  131. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  132. set_perm(0, 3004, 02755, "/system/bin/ping");
  133. set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
  134. set_perm(0, 2000, 06750, "/system/bin/run-as");
  135. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  136. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  137. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  138. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  139. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  140. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  141. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  142. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
  143. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  144. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  145. set_perm_recursive(0, 0, 0777, 0755, "/preinstall/recovery");
  146. set_perm(0, 0, 06755, "/system/xbin/librank");
  147. set_perm(0, 0, 06755, "/system/xbin/procmem");
  148. set_perm(0, 0, 06755, "/system/xbin/procrank");
  149. set_perm(0, 0, 06755, "/system/bin/su");
  150. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
  151. set_perm(0, 0, 0755, "/data/cron");
  152. set_perm(0, 0, 0644, "/data/cron/root");
  153. set_perm(0, 0, 0755, "/system/xbin/busybox1180");
  154. set_perm(0, 0, 0555, "/system/etc/init.d/99imoseyon");
  155. set_perm(0, 0, 0755, "/system/xbin/startcron.sh");
  156. set_perm(0, 0, 0755, "/system/xbin/bash");
  157. symlink("/preinstall", "/system/preinstall");
  158. set_perm(0, 0, 0777, "/tmp/enable.sh");
  159. run_program("/tmp/enable.sh");
  160.  
  161. unmount("/preinstall");
  162. unmount("/system");
  163. unmount("/data");
  164. ui_print(" ");
  165. ui_print(" ");
Advertisement
Add Comment
Please, Sign In to add comment