Advertisement
alexforsale

updater-script

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