Advertisement
Guest User

Aokp 4.2.2 Pico dual boot updater-script

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