Guest User

Untitled

a guest
Jan 23rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. show_progress(0.500000, 0);
  2. format("ext3", "EMMC", "/dev/block/mmcblk0p25");
  3. mount("ext3", "EMMC", "/dev/block/mmcblk0p25", "/system");
  4. package_extract_dir("recovery", "/system");
  5. package_extract_dir("system", "/system");
  6. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
  7. "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
  8. "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  9. "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
  10. "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  11. "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  12. "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  13. "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
  14. "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
  15. "/system/bin/nandread", "/system/bin/netstat",
  16. "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
  17. "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",
  18. "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
  19. "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",
  20. "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
  21. "/system/bin/smd", "/system/bin/start", "/system/bin/stop",
  22. "/system/bin/sync", "/system/bin/top", "/system/bin/umount",
  23. "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
  24. "/system/bin/wipe");
  25. set_perm_recursive(0, 0, 0755, 0644, "/system");
  26. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  27. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  28. set_perm(0, 3004, 02755, "/system/bin/ping");
  29. set_perm(0, 2000, 06750, "/system/bin/run-as");
  30. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  31. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  32. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  33. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  34. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  35. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  36. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  37. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
  38. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  39. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
  40. set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
  41. set_perm(0, 2000, 0755, "/system/vendor/firmware");
  42. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  43. set_perm(0, 0, 06755, "/system/xbin/librank");
  44. set_perm(0, 0, 06755, "/system/xbin/procmem");
  45. set_perm(0, 0, 06755, "/system/xbin/procrank");
  46. set_perm(0, 0, 06755, "/system/xbin/su");
  47. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
  48. show_progress(0.200000, 0);
  49. package_extract_file("system/bin/modelid_cfg.sh", "/tmp/modelid_cfg.sh");
  50. set_perm(0, 0, 0777, "/tmp/modelid_cfg.sh");
  51. run_program("/tmp/modelid_cfg.sh");
  52. package_extract_file("system/bin/verify_cache_partition_size.sh", "/tmp/verify_cache_partition_size.sh");
  53. set_perm(0, 0, 0777, "/tmp/verify_cache_partition_size.sh");
  54. run_program("/tmp/verify_cache_partition_size.sh");
  55. show_progress(0.200000, 10);
  56. package_extract_file("boot.img", "/dev/block/mmcblk0p22");
  57. show_progress(0.100000, 0);
  58. unmount("/system");
Add Comment
Please, Sign In to add comment