espmartin

http://forum.xda-developers.com/showpost.php?p=53473502&post

Jun 17th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 11.90 KB | None | 0 0
  1. (!less_than_int(1402947331, getprop("ro.build.date.utc"))) || abort("Can't install this package (Mon Jun 16 12:35:31 PDT 2014) over newer build (" + getprop("ro.build.date") + ").");
  2. assert(getprop("ro.product.device") == "ace" || getprop("ro.build.product") == "ace" || abort("This package is for \"ace\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
  3. show_progress(0.500000, 0);
  4. ui_print("******************************************");
  5. ui_print("*    ______  _____   __  __   _____      *");
  6. ui_print("*   /\ _  \/\ __`\/\ \/\ \ /\ _ `\   *");
  7. ui_print("*   \ \ \L\ \ \ \/\ \ \ \/'/'\ \ \L\ \  *");
  8. ui_print("*    \ \ __ \ \ \ \ \ \ , <  \ \ ,__/   *");
  9. ui_print("*     \ \ \/\ \ \ \_\ \ \ \\\`\ \ \ \/    *");
  10. ui_print("*      \ \_\ \_\ \_____\ \_\ \_\\\ \_\   *");
  11. ui_print("*       \/_/\/_/\/_____/\/_/\/_/ \/_/    *");
  12. ui_print("*                                        *");
  13. ui_print("******************************************");
  14. ui_print("******************************************");
  15. ui_print("************ EspMartin's very ************");
  16. ui_print("************ special, awesome ************");
  17. ui_print("************ UNOFFICIAL BUILD ************");
  18. ui_print("******************************************");
  19. ui_print("*   Compiled: Mon Jun 16 12:35:31 PDT 2014");
  20. ui_print("*   Device: Desire HD (ace)");
  21. ui_print("******************************************");
  22. mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.2/by-num/p25", "/system");
  23. package_extract_file("install/bin/persist.sh", "/tmp/persist.sh");
  24. set_perm(0, 0, 0777, "/tmp/persist.sh");
  25. run_program("/tmp/persist.sh", "save");
  26. unmount("/system");
  27. format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.2/by-num/p25", "0", "/system");
  28. mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.2/by-num/p25", "/system");
  29. package_extract_dir("recovery", "/system");
  30. package_extract_dir("system", "/system");
  31. symlink("../xbin/su", "/system/bin/su");
  32. symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  33. symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  34. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  35.         "/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
  36.         "/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
  37.         "/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
  38.         "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
  39.         "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
  40.         "/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
  41.         "/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
  42.         "/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
  43.         "/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
  44.         "/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
  45.         "/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
  46.         "/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
  47.         "/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
  48.         "/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
  49.         "/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
  50.         "/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
  51.         "/system/xbin/fbsplash", "/system/xbin/fdisk", "/system/xbin/fgrep",
  52.         "/system/xbin/find", "/system/xbin/flash_lock",
  53.         "/system/xbin/flash_unlock", "/system/xbin/flashcp",
  54.         "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
  55.         "/system/xbin/freeramdisk", "/system/xbin/fstrim", "/system/xbin/fsync",
  56.         "/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
  57.         "/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
  58.         "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
  59.         "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  60.         "/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
  61.         "/system/xbin/install", "/system/xbin/ionice", "/system/xbin/iostat",
  62.         "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  63.         "/system/xbin/killall5", "/system/xbin/less", "/system/xbin/ln",
  64.         "/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
  65.         "/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
  66.         "/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
  67.         "/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
  68.         "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
  69.         "/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
  70.         "/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
  71.         "/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
  72.         "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
  73.         "/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
  74.         "/system/xbin/nbd-client", "/system/xbin/netstat", "/system/xbin/nice",
  75.         "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
  76.         "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
  77.         "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pipe_progress",
  78.         "/system/xbin/pkill", "/system/xbin/pmap", "/system/xbin/poweroff",
  79.         "/system/xbin/printenv", "/system/xbin/printf", "/system/xbin/ps",
  80.         "/system/xbin/pstree", "/system/xbin/pwd", "/system/xbin/pwdx",
  81.         "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
  82.         "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/resize",
  83.         "/system/xbin/rev", "/system/xbin/rm", "/system/xbin/rmdir",
  84.         "/system/xbin/rmmod", "/system/xbin/route", "/system/xbin/run-parts",
  85.         "/system/xbin/rx", "/system/xbin/sed", "/system/xbin/seq",
  86.         "/system/xbin/setconsole", "/system/xbin/setserial",
  87.         "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  88.         "/system/xbin/sha256sum", "/system/xbin/sha3sum",
  89.         "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
  90.         "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
  91.         "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
  92.         "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
  93.         "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
  94.         "/system/xbin/taskset", "/system/xbin/tee", "/system/xbin/telnet",
  95.         "/system/xbin/telnetd", "/system/xbin/test", "/system/xbin/tftp",
  96.         "/system/xbin/tftpd", "/system/xbin/time", "/system/xbin/timeout",
  97.         "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  98.         "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/ttysize",
  99.         "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  100.         "/system/xbin/uncompress", "/system/xbin/unexpand", "/system/xbin/uniq",
  101.         "/system/xbin/unix2dos", "/system/xbin/unlzma", "/system/xbin/unlzop",
  102.         "/system/xbin/unxz", "/system/xbin/unzip", "/system/xbin/uptime",
  103.         "/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode",
  104.         "/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc",
  105.         "/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami",
  106.         "/system/xbin/xargs", "/system/xbin/xz", "/system/xbin/xzcat",
  107.         "/system/xbin/yes",
  108.         "/system/xbin/zcat");
  109. symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
  110. symlink("logcat", "/system/bin/lolcat");
  111. symlink("mksh", "/system/bin/sh");
  112. symlink("mount.exfat", "/system/bin/fsck.exfat",
  113.         "/system/bin/mkfs.exfat");
  114. symlink("pigz", "/system/xbin/unpigz");
  115. symlink("toolbox", "/system/bin/cat", "/system/bin/chcon",
  116.         "/system/bin/chmod", "/system/bin/chown", "/system/bin/clear",
  117.         "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
  118.         "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  119.         "/system/bin/du", "/system/bin/getenforce", "/system/bin/getevent",
  120.         "/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep",
  121.         "/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig",
  122.         "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl",
  123.         "/system/bin/ionice", "/system/bin/kill", "/system/bin/ln",
  124.         "/system/bin/load_policy", "/system/bin/log", "/system/bin/ls",
  125.         "/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",
  126.         "/system/bin/mkdir", "/system/bin/mkswap", "/system/bin/mount",
  127.         "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
  128.         "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
  129.         "/system/bin/ps", "/system/bin/r", "/system/bin/readlink",
  130.         "/system/bin/renice", "/system/bin/restart", "/system/bin/restorecon",
  131.         "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
  132.         "/system/bin/route", "/system/bin/runcon", "/system/bin/schedtop",
  133.         "/system/bin/sendevent", "/system/bin/setconsole",
  134.         "/system/bin/setenforce", "/system/bin/setfattr", "/system/bin/setprop",
  135.         "/system/bin/setsebool", "/system/bin/sleep", "/system/bin/smd",
  136.         "/system/bin/start", "/system/bin/stop", "/system/bin/swapoff",
  137.         "/system/bin/swapon", "/system/bin/sync", "/system/bin/top",
  138.         "/system/bin/touch", "/system/bin/umount", "/system/bin/uptime",
  139.         "/system/bin/vmstat", "/system/bin/watchprops",
  140.         "/system/bin/wipe");
  141. set_perm_recursive(0, 0, 0755, 0644, "/system");
  142. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  143. set_perm(0, 2000, 0755, "/system/bin/app_process");
  144. set_perm(0, 2000, 0755, "/system/bin/clatd");
  145. set_perm(0, 2000, 0755, "/system/bin/debuggerd");
  146. set_perm(0, 2000, 0755, "/system/bin/dhcpcd");
  147. set_perm(0, 2000, 0755, "/system/bin/dnsmasq");
  148. set_perm(0, 2000, 0755, "/system/bin/drmserver");
  149. set_perm(0, 2000, 0755, "/system/bin/hostapd");
  150. set_perm(0, 2000, 0755, "/system/bin/installd");
  151. set_perm(0, 2000, 0755, "/system/bin/keystore");
  152. set_perm(0, 2000, 0755, "/system/bin/mediaserver");
  153. set_perm(0, 2000, 0755, "/system/bin/mksh");
  154. set_perm(0, 2000, 0755, "/system/bin/mtpd");
  155. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  156. set_perm(0, 2000, 0755, "/system/bin/netd");
  157. set_perm(0, 0, 0755, "/system/bin/ping");
  158. set_perm(0, 2000, 0755, "/system/bin/pppd");
  159. set_perm(0, 2000, 0755, "/system/bin/racoon");
  160. set_perm(0, 2000, 0755, "/system/bin/rild");
  161. set_perm(0, 2000, 0750, "/system/bin/run-as");
  162. set_perm(0, 2000, 0755, "/system/bin/sdcard");
  163. set_perm(0, 2000, 0755, "/system/bin/servicemanager");
  164. set_perm(0, 2000, 0755, "/system/bin/surfaceflinger");
  165. set_perm(0, 2000, 0755, "/system/bin/vold");
  166. set_perm(0, 2000, 0755, "/system/bin/wpa_supplicant");
  167. set_perm_recursive(0, 0, 0755, 0644, "/system/etc/dhcpcd");
  168. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  169. set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
  170. set_perm(0, 0, 0755, "/system/etc/init.d");
  171. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
  172. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  173. set_perm(0, 0, 0644, "/system/recovery-from-boot.p");
  174. set_perm(0, 2000, 0755, "/system/vendor");
  175. set_perm(0, 2000, 0755, "/system/vendor/firmware");
  176. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib");
  177. set_perm(0, 0, 0644, "/system/vendor/lib/libbt-vendor.so");
  178. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  179. set_perm(0, 0, 06755, "/system/xbin/librank");
  180. set_perm(0, 0, 06755, "/system/xbin/procmem");
  181. set_perm(0, 0, 06755, "/system/xbin/procrank");
  182. set_perm(0, 0, 06755, "/system/xbin/su");
  183. show_progress(0.200000, 10);
  184. package_extract_file("install/bin/persist.sh", "/tmp/persist.sh");
  185. set_perm(0, 0, 0777, "/tmp/persist.sh");
  186. run_program("/tmp/persist.sh", "restore");
  187. show_progress(0.200000, 0);
  188. show_progress(0.200000, 10);
  189. package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.2/by-num/p22");
  190. show_progress(0.100000, 0);
  191. unmount("/system");
Add Comment
Please, Sign In to add comment