x13thangelx

d2g_deodexed

Aug 29th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. ui_print(" ");
  2. ui_print(" Droid 2 GLOBAL 2.3.3 (4.5.606) ");
  3. ui_print(" from x13thangelx ");
  4. ui_print(" ");
  5.  
  6. mount("ext3", "MTD", "preinstall", "/preinstall");
  7. package_extract_dir("preinstall", "/preinstall");
  8.  
  9. show_progress(0.100000,0);
  10. package_extract_dir("utils", "/tmp");
  11. set_perm(0, 0, 0755, "/tmp/mke2fs");
  12. set_perm(0, 0, 0755, "/tmp/tune2fs");
  13.  
  14. ui_print("Formating System...");
  15. unmount("/system");
  16. run_program("/tmp/mke2fs", "-g", "8184", "-m", "0", "-O", "none,has_journal,filetype", "-L", "system", "-U", "66c79d5f-31a2-42c6-86d9-9fe0d2ec3fe5", "/dev/block/mmcblk1p21");
  17. run_program("/tmp/tune2fs", "-c", "0", "-i", "0", "/dev/block/mmcblk1p21");
  18.  
  19. ui_print("Installing System...");
  20. mount("ext3", "MTD", "system", "/system");
  21. package_extract_dir("606", "/system");
  22. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  23. "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
  24. "/system/xbin/basename", "/system/xbin/bbconfig", "/system/xbin/brctl",
  25. "/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2",
  26. "/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv",
  27. "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
  28. "/system/xbin/chroot", "/system/xbin/cksum", "/system/xbin/clear",
  29. "/system/xbin/cmp", "/system/xbin/cp", "/system/xbin/cpio",
  30. "/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
  31. "/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem",
  32. "/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname",
  33. "/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix",
  34. "/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed",
  35. "/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expr",
  36. "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
  37. "/system/xbin/find", "/system/xbin/fold", "/system/xbin/free",
  38. "/system/xbin/freeramdisk", "/system/xbin/fuser", "/system/xbin/getopt",
  39. "/system/xbin/grep", "/system/xbin/gunzip", "/system/xbin/gzip",
  40. "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  41. "/system/xbin/ifconfig", "/system/xbin/insmod", "/system/xbin/install",
  42. "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  43. "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
  44. "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
  45. "/system/xbin/lsmod", "/system/xbin/lspci", "/system/xbin/lsusb",
  46. "/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/md5sum",
  47. "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
  48. "/system/xbin/mkfs.ext2", "/system/xbin/mknod", "/system/xbin/mkswap",
  49. "/system/xbin/mktemp", "/system/xbin/modprobe", "/system/xbin/more",
  50. "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mv",
  51. "/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
  52. "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
  53. "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
  54. "/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/printenv",
  55. "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pwd",
  56. "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
  57. "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/rm",
  58. "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
  59. "/system/xbin/run-parts", "/system/xbin/sed", "/system/xbin/seq",
  60. "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  61. "/system/xbin/sha256sum", "/system/xbin/sha512sum",
  62. "/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
  63. "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
  64. "/system/xbin/swapoff", "/system/xbin/swapon", "/system/xbin/sync",
  65. "/system/xbin/sysctl", "/system/xbin/tac", "/system/xbin/tail",
  66. "/system/xbin/tar", "/system/xbin/tee", "/system/xbin/telnet",
  67. "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/time",
  68. "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  69. "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/tty",
  70. "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  71. "/system/xbin/uniq", "/system/xbin/unix2dos", "/system/xbin/unlzop",
  72. "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
  73. "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
  74. "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
  75. "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
  76. "/system/xbin/yes",
  77. "/system/xbin/zcat");
  78. symlink("/system/bin/su", "/system/xbin/su");
  79. ui_print("Finished Installing System...");
  80.  
  81. ui_print("Symlinks and permissions...");
  82. set_perm_recursive(0, 0, 0755, 0644, "/system");
  83. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  84. set_perm(0, 1000, 06750, "/system/bin/encryption_test");
  85. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  86. set_perm(0, 3004, 02755, "/system/bin/ping");
  87. set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
  88. set_perm(0, 2000, 06750, "/system/bin/run-as");
  89. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  90. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  91. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  92. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  93. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  94. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  95. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  96. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
  97. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  98. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  99. set_perm(0, 0, 06777, "/system/bin/su");
  100. set_perm(0, 0, 06777, "/system/app/Superuser.apk");
  101. show_progress(0.100000,0);
  102. show_progress(0.300000,0);
  103. unmount("/system");
  104. unmount("/preinstall");
Advertisement
Add Comment
Please, Sign In to add comment