Advertisement
Guest User

Current Edify for X2 MIUI

a guest
May 25th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.54 KB | None | 0 0
  1. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
  2. set_perm(0, 0, 0777, "/tmp/backuptool.sh");
  3. run_program("/tmp/backuptool.sh", "backup");
  4. show_progress(0.500000, 0);
  5. delete_recursive("/system");
  6. package_extract_dir("system", "/system");
  7. symlink("/pds/wifi", "/system/etc/firmware/wifi/pds");
  8. symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  9. symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  10. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  11. "/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
  12. "/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
  13. "/system/xbin/bbconfig", "/system/xbin/blockdev", "/system/xbin/brctl",
  14. "/system/xbin/bunzip2", "/system/xbin/bzcat", "/system/xbin/bzip2",
  15. "/system/xbin/cal", "/system/xbin/cat", "/system/xbin/catv",
  16. "/system/xbin/chattr", "/system/xbin/chgrp", "/system/xbin/chmod",
  17. "/system/xbin/chown", "/system/xbin/chroot", "/system/xbin/clear",
  18. "/system/xbin/cmp", "/system/xbin/comm", "/system/xbin/cp",
  19. "/system/xbin/cpio", "/system/xbin/crond", "/system/xbin/crontab",
  20. "/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
  21. "/system/xbin/dd", "/system/xbin/depmod", "/system/xbin/devmem",
  22. "/system/xbin/df", "/system/xbin/diff", "/system/xbin/dirname",
  23. "/system/xbin/dmesg", "/system/xbin/dnsd", "/system/xbin/dos2unix",
  24. "/system/xbin/du", "/system/xbin/echo", "/system/xbin/ed",
  25. "/system/xbin/egrep", "/system/xbin/env", "/system/xbin/expand",
  26. "/system/xbin/expr", "/system/xbin/false", "/system/xbin/fdisk",
  27. "/system/xbin/fgrep", "/system/xbin/find", "/system/xbin/flash_lock",
  28. "/system/xbin/flash_unlock", "/system/xbin/flashcp",
  29. "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
  30. "/system/xbin/freeramdisk", "/system/xbin/fsync", "/system/xbin/ftpget",
  31. "/system/xbin/ftpput", "/system/xbin/fuser", "/system/xbin/getopt",
  32. "/system/xbin/grep", "/system/xbin/groups", "/system/xbin/gunzip",
  33. "/system/xbin/gzip", "/system/xbin/halt", "/system/xbin/head",
  34. "/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig",
  35. "/system/xbin/insmod", "/system/xbin/install", "/system/xbin/iostat",
  36. "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  37. "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
  38. "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
  39. "/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lsusb",
  40. "/system/xbin/lzcat", "/system/xbin/lzma", "/system/xbin/lzop",
  41. "/system/xbin/lzopcat", "/system/xbin/man", "/system/xbin/md5sum",
  42. "/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
  43. "/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
  44. "/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
  45. "/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
  46. "/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
  47. "/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
  48. "/system/xbin/nandwrite", "/system/xbin/netstat", "/system/xbin/nice",
  49. "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
  50. "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
  51. "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill",
  52. "/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
  53. "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
  54. "/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
  55. "/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
  56. "/system/xbin/reset", "/system/xbin/resize", "/system/xbin/rev",
  57. "/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod",
  58. "/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/rx",
  59. "/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setconsole",
  60. "/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
  61. "/system/xbin/sha1sum", "/system/xbin/sha256sum",
  62. "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
  63. "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
  64. "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
  65. "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
  66. "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
  67. "/system/xbin/taskset", "/system/xbin/tee", "/system/xbin/telnet",
  68. "/system/xbin/telnetd", "/system/xbin/test", "/system/xbin/tftp",
  69. "/system/xbin/tftpd", "/system/xbin/time", "/system/xbin/timeout",
  70. "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  71. "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/ttysize",
  72. "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  73. "/system/xbin/uncompress", "/system/xbin/unexpand", "/system/xbin/uniq",
  74. "/system/xbin/unix2dos", "/system/xbin/unlzma", "/system/xbin/unlzop",
  75. "/system/xbin/unxz", "/system/xbin/unzip", "/system/xbin/uptime",
  76. "/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode",
  77. "/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc",
  78. "/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami",
  79. "/system/xbin/xargs", "/system/xbin/xz", "/system/xbin/xzcat",
  80. "/system/xbin/yes",
  81. "/system/xbin/zcat");
  82. symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
  83. "/system/xbin/iwlist", "/system/xbin/iwpriv",
  84. "/system/xbin/iwspy");
  85. symlink("mksh", "/system/bin/sh");
  86. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
  87. "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
  88. "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  89. "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
  90. "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
  91. "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
  92. "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
  93. "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
  94. "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
  95. "/system/bin/nandread", "/system/bin/netstat",
  96. "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
  97. "/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
  98. "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
  99. "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
  100. "/system/bin/sendevent", "/system/bin/setconsole",
  101. "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
  102. "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  103. "/system/bin/top", "/system/bin/touch", "/system/bin/umount",
  104. "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
  105. "/system/bin/wipe");
  106. set_perm_recursive(0, 0, 0755, 0644, "/system");
  107. set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
  108. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  109. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  110. set_perm(0, 3004, 02755, "/system/bin/ping");
  111. set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
  112. set_perm(0, 2000, 06750, "/system/bin/run-as");
  113. set_perm(0, 0, 06750, "/system/bin/su");
  114. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  115. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  116. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  117. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  118. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  119. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  120. set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
  121. set_perm(0, 0, 0755, "/system/etc/init.d");
  122. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  123. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  124. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
  125. set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
  126. set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
  127. set_perm(0, 2000, 0755, "/system/vendor/firmware");
  128. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  129. set_perm(0, 0, 06755, "/system/xbin/librank");
  130. set_perm(0, 0, 06755, "/system/xbin/procmem");
  131. set_perm(0, 0, 06755, "/system/xbin/procrank");
  132. set_perm(0, 0, 06755, "/system/xbin/su");
  133. show_progress(0.200000, 0);
  134. show_progress(0.200000, 10);
  135. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
  136. set_perm(0, 0, 0777, "/tmp/backuptool.sh");
  137. run_program("/tmp/backuptool.sh", "restore");
  138. package_extract_file("system/bin/chkkineto.sh", "/tmp/chkkineto.sh");
  139. set_perm(0, 0, 0777, "/tmp/chkkineto.sh");
  140. run_program("/tmp/chkkineto.sh");
  141. package_extract_file("system/bin/verify_cache_partition_size.sh", "/tmp/verify_cache_partition_size.sh");
  142. set_perm(0, 0, 0777, "/tmp/verify_cache_partition_size.sh");
  143. run_program("/tmp/verify_cache_partition_size.sh");
  144. mount("ext3", "EMMC", "/dev/block/mmcblk0p16", "/data");
  145. set_perm_recursive(0, 0, 0777, 0777, "/data");
  146. package_extract_file("system/etc/releaseutils/finalize_release", "/tmp/finalize_release");
  147. set_perm(0, 0, 0777, "/tmp/finalize_release");
  148. run_program("/tmp/finalize_release");
  149. show_progress(0.200000, 10);
  150. show_progress(0.100000, 0);
  151. delete("/data/.recovery_mode");
  152. unmount("/data");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement