SHARE
TWEET

Untitled

a guest Jul 17th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. show_progress(0,0);
  2. ui_print("");
  3. ui_print("************************************************");
  4. ui_print("*               A Froyo Rom                    *");
  5. ui_print("************************************************");
  6. ui_print("By Savoxis");
  7. ui_print("and the kitchen");
  8. ui_print("and Tridents updater-script");
  9. ui_print("and your mom");
  10. ui_print("");
  11. ui_print("...Who is a guy BTW...");
  12. ui_print("");
  13. ui_print("If you didnt wipe data and caches");
  14. ui_print("this will boot loop.  I am not hijacking");
  15. ui_print("phones by wiping without concent.");
  16. ui_print("");
  17. ui_print("Installing System Files...");
  18. format("MTD", "system");
  19. mount("MTD", "system", "/system");
  20. show_progress(0.700000, 36);
  21. package_extract_dir("system", "/system");
  22. ui_print("Installing Data Files...");
  23. mount("MTD", "data", "/data");
  24. package_extract_dir("data", "/data");
  25. ui_print("Symlinks and permissions...");
  26. symlink("../bin/su", "/system/xbin/su");
  27. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
  28.         "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
  29.         "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  30.         "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
  31.         "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  32.         "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  33.         "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  34.         "/system/bin/ls", "/system/bin/lsmod", "/system/bin/mkdir",
  35.         "/system/bin/mount", "/system/bin/mv", "/system/bin/nandread",
  36.         "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify",
  37.         "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot",
  38.         "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
  39.         "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
  40.         "/system/bin/sendevent", "/system/bin/setconsole",
  41.         "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
  42.         "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  43.         "/system/bin/top", "/system/bin/umount", "/system/bin/vmstat",
  44.         "/system/bin/watchprops",
  45.         "/system/bin/wipe");      
  46. set_perm_recursive(0, 0, 0755, 0644, "/system");
  47. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  48. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  49. set_perm(0, 3004, 02755, "/system/bin/ping");
  50. set_perm(0, 2000, 06750, "/system/bin/run-as");
  51. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  52. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  53. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  54. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  55. set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
  56. set_perm(0, 0, 0755, "/system/etc/init.d");
  57. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  58. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  59. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  60. set_perm(1010, 1010, 0550, "/system/etc/init.qcom.sdio.sh");
  61. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  62. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  63. set_perm(0, 0, 04755, "/system/bin/sysrw");
  64. set_perm(0, 0, 04755, "/system/bin/sysro");
  65. set_perm(0, 0, 04755, "/system/bin/nano");
  66. set_perm(0, 0, 06755, "/system/bin/su");
  67. run_program("/system/bin/busybox", "--install", "/system/bin");
  68. show_progress(0.200000, 0);
  69. show_progress(0.200000, 10);
  70. ui_print("Flashing Boot...");
  71. show_progress(0.200000, 10);
  72. assert(package_extract_file("boot.img", "/tmp/boot.img"),
  73.        write_raw_image("/tmp/boot.img", "boot"),
  74.        delete("/tmp/boot.img"));
  75. show_progress(10.000000, 1);
  76. unmount("/system");
  77. unmount("/data");
RAW Paste Data
Top