Advertisement
haus

Untitled

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