Advertisement
Alx31

updater script

Jun 2nd, 2014
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.63 KB | None | 0 0
  1. assert(getprop("ro.product.device") == "C6602" || getprop("ro.build.product") == "C6602" ||
  2. getprop("ro.product.device") == "C6603" || getprop("ro.build.product") == "C6603" ||
  3. getprop("ro.product.device") == "C6606" || getprop("ro.build.product") == "C6606" ||
  4. getprop("ro.product.device") == "yuga" || getprop("ro.build.product") == "yuga" || abort("This package is for \"C6602,C6603,C6606,yuga\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
  5. mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
  6. package_extract_dir("system/addon.d", "/system/addon.d");
  7. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
  8. package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
  9. set_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
  10. set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
  11. run_program("/tmp/backuptool.sh", "backup");
  12. unmount("/system");
  13. show_progress(0.500000, 0);
  14. ui_print(" ");
  15. ui_print(" ");
  16. ui_print(" ,...., ");
  17. ui_print(" .,lx0XNWWWNKOd:. ");
  18. ui_print(" .:OWMMMMMMMMMMMMMMMXo. ");
  19. ui_print(" .oWMMMMMMMMMMMMMMMMMMMMM0, ");
  20. ui_print(" cWMMMMMMMMMMMMMMMMMMMMMMMMMO. ");
  21. ui_print(" .OMMMMMMMMMMMMMMMMMMMMMMMMMMWd. ");
  22. ui_print(" .KMMMMMMMMMKkdlllldkKMMMMMMMO. ");
  23. ui_print(" OMMMM` x;. .;xWMX; ");
  24. ui_print(" :MMMM ..` .;. ");
  25. ui_print(" KMMM .o; ");
  26. ui_print(".MMM .0M; ");
  27. ui_print("'MM` .KMMl ");
  28. ui_print(".MN xMMM0 ");
  29. ui_print(".NM ,MMMMM: ..");
  30. ui_print(" dM :MMMMMW' .k ");
  31. ui_print(" .N cMMMMMMW; 'Xc ");
  32. ui_print(" ,x;MMMMMMMMx. .oW0. ");
  33. ui_print(" ,.NMMMMMMMMWx' lNMK. ");
  34. ui_print(" ,NMMMMMMMMMMXx:'. ..:o ,MMO. ");
  35. ui_print(" .kMMMMMMMMMMMMMMNXXXNMMW NWl. ");
  36. ui_print(" ,OMMMMMMMMMMMMMMMMMMK Xd. ");
  37. ui_print(" .oKMMMMMMMMMMMMMKc :. ");
  38. ui_print(" .:okKNWWWNKdl' ' ");
  39. ui_print(" ''...`', +' ");
  40. ui_print(" ");
  41. ui_print(" ");
  42. mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
  43. package_extract_file("install/bin/persist.sh", "/tmp/persist.sh");
  44. set_perm(0, 0, 0777, "/tmp/persist.sh");
  45. run_program("/tmp/persist.sh", "save");
  46. unmount("/system");
  47. ui_print("Formating System...");
  48. format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
  49. ui_print("Mounting System...");
  50. mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
  51. ui_print("Installing System...");
  52. package_extract_dir("system", "/system");
  53. ui_print("Creating Symlinks...");
  54. symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
  55. symlink("../xbin/su", "/system/bin/su");
  56. symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9310/wcd9310_mbhc.bin");
  57. symlink("/data/misc/audio/wcd9310_anc.bin", "/system/etc/firmware/wcd9310/wcd9310_anc.bin");
  58. symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  59. symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  60. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  61. "/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
  62. "/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
  63. "/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
  64. "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
  65. "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
  66. "/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chcon",
  67. "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
  68. "/system/xbin/chroot", "/system/xbin/clear", "/system/xbin/cmp",
  69. "/system/xbin/comm", "/system/xbin/cp", "/system/xbin/cpio",
  70. "/system/xbin/crond", "/system/xbin/crontab", "/system/xbin/cut",
  71. "/system/xbin/date", "/system/xbin/dc", "/system/xbin/dd",
  72. "/system/xbin/depmod", "/system/xbin/devmem", "/system/xbin/df",
  73. "/system/xbin/diff", "/system/xbin/dirname", "/system/xbin/dmesg",
  74. "/system/xbin/dnsd", "/system/xbin/dos2unix", "/system/xbin/du",
  75. "/system/xbin/echo", "/system/xbin/ed", "/system/xbin/egrep",
  76. "/system/xbin/env", "/system/xbin/expand", "/system/xbin/expr",
  77. "/system/xbin/false", "/system/xbin/fbsplash", "/system/xbin/fdisk",
  78. "/system/xbin/fgrep", "/system/xbin/find", "/system/xbin/flash_lock",
  79. "/system/xbin/flash_unlock", "/system/xbin/flashcp",
  80. "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
  81. "/system/xbin/freeramdisk", "/system/xbin/fstrim", "/system/xbin/fsync",
  82. "/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
  83. "/system/xbin/getenforce", "/system/xbin/getopt",
  84. "/system/xbin/getsebool", "/system/xbin/grep", "/system/xbin/groups",
  85. "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
  86. "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
  87. "/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
  88. "/system/xbin/install", "/system/xbin/ionice", "/system/xbin/iostat",
  89. "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  90. "/system/xbin/killall5", "/system/xbin/less", "/system/xbin/ln",
  91. "/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
  92. "/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
  93. "/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
  94. "/system/xbin/man", "/system/xbin/matchpathcon", "/system/xbin/md5sum",
  95. "/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
  96. "/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
  97. "/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
  98. "/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
  99. "/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
  100. "/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
  101. "/system/xbin/nandwrite", "/system/xbin/nbd-client",
  102. "/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
  103. "/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
  104. "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
  105. "/system/xbin/ping", "/system/xbin/pipe_progress", "/system/xbin/pkill",
  106. "/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
  107. "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
  108. "/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
  109. "/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
  110. "/system/xbin/reset", "/system/xbin/resize", "/system/xbin/restorecon",
  111. "/system/xbin/rev", "/system/xbin/rm", "/system/xbin/rmdir",
  112. "/system/xbin/rmmod", "/system/xbin/route", "/system/xbin/run-parts",
  113. "/system/xbin/runcon", "/system/xbin/rx", "/system/xbin/sed",
  114. "/system/xbin/selinuxenabled", "/system/xbin/seq",
  115. "/system/xbin/sestatus", "/system/xbin/setconsole",
  116. "/system/xbin/setenforce", "/system/xbin/setfiles",
  117. "/system/xbin/setsebool", "/system/xbin/setserial",
  118. "/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
  119. "/system/xbin/sha256sum", "/system/xbin/sha3sum",
  120. "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
  121. "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
  122. "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
  123. "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
  124. "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
  125. "/system/xbin/taskset", "/system/xbin/tee", "/system/xbin/telnet",
  126. "/system/xbin/telnetd", "/system/xbin/test", "/system/xbin/tftp",
  127. "/system/xbin/tftpd", "/system/xbin/time", "/system/xbin/timeout",
  128. "/system/xbin/top", "/system/xbin/touch", "/system/xbin/tr",
  129. "/system/xbin/traceroute", "/system/xbin/true", "/system/xbin/ttysize",
  130. "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  131. "/system/xbin/uncompress", "/system/xbin/unexpand", "/system/xbin/uniq",
  132. "/system/xbin/unix2dos", "/system/xbin/unlzma", "/system/xbin/unlzop",
  133. "/system/xbin/unxz", "/system/xbin/unzip", "/system/xbin/uptime",
  134. "/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode",
  135. "/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc",
  136. "/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami",
  137. "/system/xbin/xargs", "/system/xbin/xz", "/system/xbin/xzcat",
  138. "/system/xbin/yes",
  139. "/system/xbin/zcat");
  140. symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
  141. symlink("logcat", "/system/bin/lolcat");
  142. symlink("mksh", "/system/bin/sh");
  143. symlink("mount.exfat", "/system/bin/fsck.exfat",
  144. "/system/bin/mkfs.exfat");
  145. symlink("pigz", "/system/xbin/unpigz");
  146. symlink("toolbox", "/system/bin/cat", "/system/bin/chcon",
  147. "/system/bin/chmod", "/system/bin/chown", "/system/bin/clear",
  148. "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
  149. "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
  150. "/system/bin/du", "/system/bin/getenforce", "/system/bin/getevent",
  151. "/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep",
  152. "/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig",
  153. "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl",
  154. "/system/bin/ionice", "/system/bin/kill", "/system/bin/ln",
  155. "/system/bin/load_policy", "/system/bin/log", "/system/bin/ls",
  156. "/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",
  157. "/system/bin/mkdir", "/system/bin/mkswap", "/system/bin/mount",
  158. "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
  159. "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
  160. "/system/bin/ps", "/system/bin/r", "/system/bin/readlink",
  161. "/system/bin/renice", "/system/bin/restart", "/system/bin/restorecon",
  162. "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
  163. "/system/bin/route", "/system/bin/runcon", "/system/bin/schedtop",
  164. "/system/bin/sendevent", "/system/bin/setconsole",
  165. "/system/bin/setenforce", "/system/bin/setfattr", "/system/bin/setprop",
  166. "/system/bin/setsebool", "/system/bin/sleep", "/system/bin/smd",
  167. "/system/bin/start", "/system/bin/stop", "/system/bin/swapoff",
  168. "/system/bin/swapon", "/system/bin/sync", "/system/bin/top",
  169. "/system/bin/touch", "/system/bin/umount", "/system/bin/uptime",
  170. "/system/bin/vmstat", "/system/bin/watchprops",
  171. "/system/bin/wipe");
  172. set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  173. set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  174. set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  175. set_metadata("/system/bin/app_process", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:zygote_exec:s0");
  176. set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:clatd_exec:s0");
  177. set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:debuggerd_exec:s0");
  178. set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dhcp_exec:s0");
  179. set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dnsmasq_exec:s0");
  180. set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:drmserver_exec:s0");
  181. set_metadata("/system/bin/efsks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:kickstart_exec:s0");
  182. set_metadata("/system/bin/hci_qcomm_init", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:hci_attach_exec:s0");
  183. set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:hostapd_exec:s0");
  184. set_metadata("/system/bin/installd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:installd_exec:s0");
  185. set_metadata("/system/bin/keystore", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:keystore_exec:s0");
  186. set_metadata("/system/bin/ks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:kickstart_exec:s0");
  187. set_metadata("/system/bin/mediaserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mediaserver_exec:s0");
  188. set_metadata("/system/bin/mksh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:shell_exec:s0");
  189. set_metadata("/system/bin/mpdecision", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mpdecision_exec:s0");
  190. set_metadata("/system/bin/mtpd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mtp_exec:s0");
  191. set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  192. set_metadata("/system/bin/netd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:netd_exec:s0");
  193. set_metadata("/system/bin/netmgrd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:netmgrd_exec:s0");
  194. set_metadata("/system/bin/ping", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ping_exec:s0");
  195. set_metadata("/system/bin/pppd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ppp_exec:s0");
  196. set_metadata("/system/bin/qcks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:kickstart_exec:s0");
  197. set_metadata("/system/bin/qmuxd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:qmux_exec:s0");
  198. set_metadata("/system/bin/qseecomd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:tee_exec:s0");
  199. set_metadata("/system/bin/racoon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:racoon_exec:s0");
  200. set_metadata("/system/bin/rild", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:rild_exec:s0");
  201. set_metadata("/system/bin/rmt_storage", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:rmt_exec:s0");
  202. set_metadata("/system/bin/run-as", "uid", 0, "gid", 2000, "mode", 0750, "capabilities", 0xc0, "selabel", "u:object_r:runas_exec:s0");
  203. set_metadata("/system/bin/sdcard", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:sdcardd_exec:s0");
  204. set_metadata("/system/bin/servicemanager", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:servicemanager_exec:s0");
  205. set_metadata("/system/bin/surfaceflinger", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:surfaceflinger_exec:s0");
  206. set_metadata("/system/bin/thermald", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:thermald_exec:s0");
  207. set_metadata("/system/bin/vold", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:vold_exec:s0");
  208. set_metadata("/system/bin/wpa_supplicant", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:wpa_exec:s0");
  209. set_metadata_recursive("/system/etc/dhcpcd", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:dhcp_system_file:s0");
  210. set_metadata("/system/etc/dhcpcd/dhcpcd-run-hooks", "uid", 1014, "gid", 2000, "mode", 0550, "capabilities", 0x0, "selabel", "u:object_r:dhcp_system_file:s0");
  211. set_metadata("/system/etc/init.qcom.bt.sh", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:bluetooth_loader_exec:s0");
  212. set_metadata("/system/etc/kickstart_checker.sh", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:kickstart_exec:s0");
  213. set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", 0x0, "selabel", "u:object_r:ppp_system_file:s0");
  214. set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  215. set_metadata("/system/vendor/camera", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  216. set_metadata_recursive("/system/vendor/etc", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  217. set_metadata("/system/vendor/etc/audio_effects.conf", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  218. set_metadata("/system/vendor/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  219. set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  220. set_metadata("/system/vendor/lib/hw", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  221. set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  222. set_metadata("/system/xbin/librank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  223. set_metadata("/system/xbin/procmem", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  224. set_metadata("/system/xbin/procrank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  225. set_metadata("/system/xbin/su", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
  226. set_metadata("/system/xbin/tcpdump", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
  227. show_progress(0.200000, 10);
  228. package_extract_file("install/bin/persist.sh", "/tmp/persist.sh");
  229. set_perm(0, 0, 0777, "/tmp/persist.sh");
  230. run_program("/tmp/persist.sh", "restore");
  231. show_progress(0.200000, 0);
  232. show_progress(0.200000, 10);
  233. package_extract_dir("system/addon.d", "/system/addon.d");
  234. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
  235. package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
  236. set_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
  237. set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
  238. run_program("/tmp/backuptool.sh", "restore");
  239. delete("/system/bin/backuptool.sh");
  240. delete("/system/bin/backuptool.functions");
  241. show_progress(0.200000, 10);
  242. package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
  243. show_progress(0.100000, 0);
  244. unmount("/system");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement