x13thangelx

alul...

Sep 13th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. ui_print(" ");
  2. ui_print(" ");
  3. ui_print(" ");
  4. ui_print(" VenusX port D2G ");
  5. ui_print(" By Ngocha2006 ");
  6. ui_print(" ");
  7. ui_print(" ");
  8. ui_print(" Android 2.3.3 Gigerbread ");
  9. ui_print(" ");
  10. ui_print(" ");
  11.  
  12. show_progress(0.100000,0);
  13. package_extract_dir("utils", "/tmp");
  14. set_perm(0, 0, 0755, "/tmp/mke2fs");
  15. set_perm(0, 0, 0755, "/tmp/tune2fs");
  16.  
  17. ui_print("Formatting System...");
  18. unmount("/system");
  19. run_program("/tmp/mke2fs", "-g", "8184", "-m", "0", "-O", "none,has_journal,filetype", "-L", "system", "-U", "66c79d5f-31a2-42c6-86d9-9fe0d2ec3fe5", "/dev/block/mmcblk1p21");
  20. run_program("/tmp/tune2fs", "-c", "0", "-i", "0", "/dev/block/mmcblk1p21");
  21.  
  22. ui_print("Installing System...");
  23. mount("ext3", "/dev/block/mmcblk1p21", "/system");
  24. package_extract_dir("system", "/system");
  25. ui_print("Finished Installing System...");
  26.  
  27. set_perm_recursive(0, 0, 0755, 0644, "/system");
  28. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  29. set_perm(0, 1000, 06750, "/system/bin/encryption_test");
  30. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  31. set_perm(0, 3004, 02755, "/system/bin/ping");
  32. set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
  33. set_perm(0, 2000, 06750, "/system/bin/run-as");
  34. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  35. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  36. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  37. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  38. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  39. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  40. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  41. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
  42. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  43. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  44. set_perm(0, 0, 06755, "/system/bin/sys");
  45. set_perm(0, 0, 06755, "/system/bin/poweroverwhelming");
  46.  
  47. ui_print("Rooting New System Build");
  48. package_extract_dir("root", "/system");
  49. ui_print("Finished Rooting System...");
  50. set_perm(0, 0, 06755, "/system/bin/su");
  51. set_perm(0, 0, 06777, "/system/app/Superuser.apk");
  52. set_perm(0, 0, 06755, "/system/xbin/su");
  53. run_program("/system/bin/busybox", "--install", "/system/xbin");
  54.  
  55.  
  56.  
  57. ui_print(" ");
  58. ui_print(" ");
  59. ui_print(" ");
  60. ui_print("This step takes a while...");
  61. ui_print(" Don't worry! ");
  62. unmount("/preinstall");
  63. unmount("/system");
  64. ui_print(" ");
  65. ui_print(" ");
  66. ui_print(" ");
  67. ui_print(" Enjoy your D2G! ");
Advertisement
Add Comment
Please, Sign In to add comment