Advertisement
Guest User

Untitled

a guest
Jun 7th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/data");
  2. show_progress(0.500000, 0);
  3. ui_print("Formatting system...");
  4. unmount("/system");
  5. format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");
  6. ui_print("Installing system files...");
  7. mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
  8. package_extract_dir("system", "/system");
  9. ui_print("Creating system links...");
  10. symlink("/system/bin/mksh", "/system/bin/sh");
  11. symlink("/system/bin/toolbox", "/system/bin/cat", "/system/bin/chmod",
  12. "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
  13. "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  14. "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
  15. "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  16. "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  17. "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  18. "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
  19. "/system/bin/md5", "/system/bin/mkdir", "/system/bin/mount",
  20. "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
  21. "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/playback",
  22. "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot",
  23. "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
  24. "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
  25. "/system/bin/sendevent", "/system/bin/setconsole",
  26. "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
  27. "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  28. "/system/bin/top", "/system/bin/touch", "/system/bin/touchinput",
  29. "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",
  30. "/system/bin/watchprops",
  31. "/system/bin/wipe");
  32. symlink("/system/csc/XEO/csc_contents", "/system/csc_contents");
  33. symlink("/system/fonts/Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  34. symlink("/system/fonts/Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  35. ui_print("Set permission...");
  36. set_perm_recursive(0, 0, 0755, 0644, "/system");
  37. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  38. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  39. set_perm(0, 3004, 02755, "/system/bin/ping");
  40. set_perm(0, 2000, 06750, "/system/bin/run-as");
  41. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  42. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  43. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  44. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  45. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  46. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  47. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  48. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  49. set_perm(0, 0, 0744, "/system/lib/liblbesec.so");
  50. set_perm(0, 2000, 0755, "/system/vendor");
  51. set_perm(0, 2000, 0755, "/system/vendor/etc");
  52. set_perm(0, 2000, 0755, "/system/vendor/etc/nxp");
  53. set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/BargeIn");
  54. set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/mVoIP");
  55. set_perm(0, 2000, 0755, "/system/vendor/etc/nxp/mVoIPSec");
  56. set_perm(0, 2000, 0755, "/system/vendor/firmware");
  57. set_perm(0, 2000, 0755, "/system/vendor/lib");
  58. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
  59. set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
  60. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/pittpatt");
  61. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
  62. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
  63. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-2/full_model.bin");
  64. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-r0-ri30.4a-v24/full_model.bin");
  65. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rn30-ri30.5-v24/full_model.bin");
  66. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rp30-ri30.5-v24/full_model.bin");
  67. set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");
  68. set_perm_recursive(0, 2000, 0755, 06755, "/system/xbin");
  69. set_perm(0, 0, 06755, "/system/xbin/busybox");
  70. set_perm(0, 2000, 0755, "/system/xbin/dexdump");
  71. set_perm(0, 1000, 06750, "/system/xbin/shelld");
  72. set_perm(0, 0, 06755, "/system/xbin/su");
  73. ui_print("Update Boot image...");
  74. show_progress(0.200000, 0);
  75. show_progress(0.200000, 10);
  76. package_extract_file("boot.img", "/dev/block/mmcblk0p5");
  77. show_progress(0.100000, 0);
  78. package_extract_dir("data", "/data");
  79. set_perm(1000, 1000, 0666, "/data/miui/reinstall_apps");
  80. package_extract_file("META-INF/com/miui/relink", "/data/local/tmp/relink");
  81. set_perm(0, 0, 0555, "/data/local/tmp/relink");
  82. run_program("/data/local/tmp/relink");
  83. delete("/data/local/tmp/relink");
  84. set_perm_recursive(1000, 1000, 0755, 0644, "/data/miui/apps");
  85. set_perm_recursive(1000, 1000, 0755, 0644, "/data/miui/cust");
  86. delete_recursive("/data/miui/preinstall_apps");
  87. delete_recursive("/data/miui/cust/preinstall_apps");
  88. unmount("/data");
  89. unmount("/system");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement