SHARE
TWEET

Untitled

a guest Sep 6th, 2016 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. show_progress(0.500000, 0);
  2. format("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "0", "/system");
  3. mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
  4. format("ext4", "EMMC", "/dev/block/bootdevice/by-name/persist", "0", "/persist");
  5. mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/persist", "/persist");
  6. package_extract_dir("recovery", "/system");
  7. package_extract_dir("system", "/system");
  8. package_extract_dir("persist", "/persist");
  9. symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9306/wcd9306_mbhc.bin");
  10. symlink("/data/misc/audio/wcd9320_anc.bin", "/system/etc/firmware/wcd9306/wcd9306_anc.bin");
  11. symlink("/data/misc/wifi/WCNSS_qcom_cfg.ini", "/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini");
  12. symlink("/data/tombstones/lpass", "/system/rfs/mdm/adsp/ramdumps",
  13.         "/system/rfs/msm/adsp/ramdumps");
  14. symlink("/data/tombstones/modem", "/system/rfs/apq/gnss/ramdumps",
  15.         "/system/rfs/mdm/mpss/ramdumps",
  16.         "/system/rfs/msm/mpss/ramdumps");
  17. symlink("/data/tombstones/sparrow", "/system/rfs/mdm/sparrow/ramdumps");
  18. symlink("/firmware", "/system/rfs/apq/gnss/readonly/firmware",
  19.         "/system/rfs/mdm/adsp/readonly/firmware",
  20.         "/system/rfs/mdm/mpss/readonly/firmware",
  21.         "/system/rfs/mdm/sparrow/readonly/firmware",
  22.         "/system/rfs/msm/adsp/readonly/firmware",
  23.         "/system/rfs/msm/mpss/readonly/firmware");
  24. symlink("/firmware/image/dxhdcp2.b00", "/system/etc/firmware/dxhdcp2.b00");
  25. symlink("/firmware/image/dxhdcp2.b01", "/system/etc/firmware/dxhdcp2.b01");
  26. symlink("/firmware/image/dxhdcp2.b02", "/system/etc/firmware/dxhdcp2.b02");
  27. symlink("/firmware/image/dxhdcp2.b03", "/system/etc/firmware/dxhdcp2.b03");
  28. symlink("/firmware/image/dxhdcp2.mdt", "/system/etc/firmware/dxhdcp2.mdt");
  29. symlink("/persist/Synaptics_fw_update.img", "/system/etc/firmware/Synaptics_fw_update.img");
  30. symlink("/persist/WCNSS_tct_wlan_nv.bin", "/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin");
  31. symlink("/persist/WCNSS_wlan_dictionary.dat", "/system/etc/firmware/wlan/prima/WCNSS_wlan_dictionary.dat");
  32. symlink("/persist/ft_fw.bin", "/system/etc/firmware/ft_fw.bin");
  33. symlink("/persist/hlos_rfs/shared", "/system/rfs/apq/gnss/hlos",
  34.         "/system/rfs/mdm/adsp/hlos", "/system/rfs/mdm/mpss/hlos",
  35.         "/system/rfs/mdm/sparrow/hlos", "/system/rfs/msm/adsp/hlos",
  36.         "/system/rfs/msm/mpss/hlos");
  37. symlink("/persist/rfs/apq/gnss", "/system/rfs/apq/gnss/readwrite");
  38. symlink("/persist/rfs/mdm/adsp", "/system/rfs/mdm/adsp/readwrite");
  39. symlink("/persist/rfs/mdm/mpss", "/system/rfs/mdm/mpss/readwrite");
  40. symlink("/persist/rfs/mdm/sparrow", "/system/rfs/mdm/sparrow/readwrite");
  41. symlink("/persist/rfs/msm/adsp", "/system/rfs/msm/adsp/readwrite");
  42. symlink("/persist/rfs/msm/mpss", "/system/rfs/msm/mpss/readwrite");
  43. symlink("/persist/rfs/shared", "/system/rfs/apq/gnss/shared",
  44.         "/system/rfs/mdm/adsp/shared", "/system/rfs/mdm/mpss/shared",
  45.         "/system/rfs/mdm/sparrow/shared", "/system/rfs/msm/adsp/shared",
  46.         "/system/rfs/msm/mpss/shared");
  47. symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so",
  48.         "/system/app/BluetoothExt/lib/arm/libbluetooth_jni.so");
  49. symlink("/system/lib/modules/pronto/pronto_wlan.ko", "/system/lib/modules/wlan.ko");
  50. symlink("/system/lib64/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm64/libdefcontainer_jni.so");
  51. symlink("/system/lib64/libjni_latinime.so", "/system/app/LatinIME/lib/arm64/libjni_latinime.so");
  52. symlink("/system/lib64/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm64/libjni_pacprocessor.so");
  53. symlink("/system/lib64/libnfc_nci_jni.so", "/system/app/NfcNci/lib/arm64/libnfc_nci_jni.so");
  54. symlink("/system/lib64/libprintspooler_jni.so", "/system/app/PrintSpooler/lib/arm64/libprintspooler_jni.so");
  55. symlink("/system/vendor/lib64/libimscamera_jni.so", "/system/vendor/app/ims/lib/arm64/libimscamera_jni.so");
  56. symlink("/system/vendor/lib64/libimsmedia_jni.so", "/system/vendor/app/ims/lib/arm64/libimsmedia_jni.so");
  57. symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
  58. symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
  59. symlink("app_process64", "/system/bin/app_process");
  60. symlink("dalvikvm64", "/system/bin/dalvikvm");
  61. symlink("egl/libEGL_adreno.so", "/system/vendor/lib/libEGL_adreno.so",
  62.         "/system/vendor/lib64/libEGL_adreno.so");
  63. symlink("grep", "/system/bin/egrep",
  64.         "/system/bin/fgrep");
  65. symlink("libGLESv2.so", "/system/lib/libGLESv3.so",
  66.         "/system/lib64/libGLESv3.so");
  67. symlink("toolbox", "/system/bin/dd", "/system/bin/df", "/system/bin/du",
  68.         "/system/bin/getevent", "/system/bin/iftop", "/system/bin/ioctl",
  69.         "/system/bin/ionice", "/system/bin/log", "/system/bin/ls",
  70.         "/system/bin/lsof", "/system/bin/mount", "/system/bin/nandread",
  71.         "/system/bin/newfs_msdos", "/system/bin/prlimit", "/system/bin/ps",
  72.         "/system/bin/renice", "/system/bin/sendevent", "/system/bin/start",
  73.         "/system/bin/stop", "/system/bin/top", "/system/bin/uptime",
  74.         "/system/bin/watchprops");
  75. symlink("toybox", "/system/bin/acpi", "/system/bin/basename",
  76.         "/system/bin/blockdev", "/system/bin/bzcat", "/system/bin/cal",
  77.         "/system/bin/cat", "/system/bin/chcon", "/system/bin/chgrp",
  78.         "/system/bin/chmod", "/system/bin/chown", "/system/bin/chroot",
  79.         "/system/bin/cksum", "/system/bin/clear", "/system/bin/cmp",
  80.         "/system/bin/comm", "/system/bin/cp", "/system/bin/cpio",
  81.         "/system/bin/cut", "/system/bin/date", "/system/bin/dirname",
  82.         "/system/bin/dmesg", "/system/bin/dos2unix", "/system/bin/echo",
  83.         "/system/bin/env", "/system/bin/expand", "/system/bin/expr",
  84.         "/system/bin/fallocate", "/system/bin/false", "/system/bin/find",
  85.         "/system/bin/free", "/system/bin/getenforce", "/system/bin/getprop",
  86.         "/system/bin/groups", "/system/bin/head", "/system/bin/hostname",
  87.         "/system/bin/hwclock", "/system/bin/id", "/system/bin/ifconfig",
  88.         "/system/bin/inotifyd", "/system/bin/insmod", "/system/bin/kill",
  89.         "/system/bin/ln", "/system/bin/load_policy", "/system/bin/logname",
  90.         "/system/bin/losetup", "/system/bin/lsmod", "/system/bin/lsusb",
  91.         "/system/bin/md5sum", "/system/bin/mkdir", "/system/bin/mknod",
  92.         "/system/bin/mkswap", "/system/bin/mktemp", "/system/bin/modinfo",
  93.         "/system/bin/more", "/system/bin/mountpoint", "/system/bin/mv",
  94.         "/system/bin/netstat", "/system/bin/nice", "/system/bin/nl",
  95.         "/system/bin/nohup", "/system/bin/od", "/system/bin/paste",
  96.         "/system/bin/patch", "/system/bin/pgrep", "/system/bin/pidof",
  97.         "/system/bin/pkill", "/system/bin/pmap", "/system/bin/printenv",
  98.         "/system/bin/printf", "/system/bin/pwd", "/system/bin/readlink",
  99.         "/system/bin/realpath", "/system/bin/restorecon", "/system/bin/rm",
  100.         "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route",
  101.         "/system/bin/runcon", "/system/bin/sed", "/system/bin/seq",
  102.         "/system/bin/setenforce", "/system/bin/setprop", "/system/bin/setsid",
  103.         "/system/bin/sha1sum", "/system/bin/sleep", "/system/bin/sort",
  104.         "/system/bin/split", "/system/bin/stat", "/system/bin/strings",
  105.         "/system/bin/swapoff", "/system/bin/swapon", "/system/bin/sync",
  106.         "/system/bin/sysctl", "/system/bin/tac", "/system/bin/tail",
  107.         "/system/bin/tar", "/system/bin/taskset", "/system/bin/tee",
  108.         "/system/bin/time", "/system/bin/timeout", "/system/bin/touch",
  109.         "/system/bin/tr", "/system/bin/true", "/system/bin/truncate",
  110.         "/system/bin/umount", "/system/bin/uname", "/system/bin/uniq",
  111.         "/system/bin/unix2dos", "/system/bin/usleep", "/system/bin/vmstat",
  112.         "/system/bin/wc", "/system/bin/which", "/system/bin/whoami",
  113.         "/system/bin/xargs",
  114.         "/system/bin/yes");
  115. set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  116. set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  117. set_metadata("/system/bin/ATFWD-daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:atfwd_exec:s0");
  118. set_metadata("/system/bin/PktRspTest", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  119. set_metadata("/system/bin/StoreKeybox", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:sectest_exec:s0");
  120. set_metadata("/system/bin/adsprpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:adsprpcd_exec:s0");
  121. set_metadata("/system/bin/app_process32", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:zygote_exec:s0");
  122. set_metadata("/system/bin/app_process64", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:zygote_exec:s0");
  123. set_metadata("/system/bin/audiod", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:audiod_exec:s0");
  124. set_metadata("/system/bin/blkid", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:blkid_exec:s0");
  125. set_metadata("/system/bin/bootanimation", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:bootanim_exec:s0");
  126. set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:clatd_exec:s0");
  127. set_metadata("/system/bin/cnd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:cnd_exec:s0");
  128. set_metadata("/system/bin/cnss-daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wcnss_service_exec:s0");
  129. set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:debuggerd_exec:s0");
  130. set_metadata("/system/bin/debuggerd64", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:debuggerd_exec:s0");
  131. set_metadata("/system/bin/dex2oat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dex2oat_exec:s0");
  132. set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dhcp_exec:s0");
  133. set_metadata("/system/bin/diag_callback_client", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  134. set_metadata("/system/bin/diag_dci_sample", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  135. set_metadata("/system/bin/diag_klog", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  136. set_metadata("/system/bin/diag_mdlog", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:qlogd_exec:s0");
  137. set_metadata("/system/bin/diag_qshrink4_daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  138. set_metadata("/system/bin/diag_socket_log", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  139. set_metadata("/system/bin/diag_uart_log", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  140. set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dnsmasq_exec:s0");
  141. set_metadata("/system/bin/dpmd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dpmd_exec:s0");
  142. set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:drmserver_exec:s0");
  143. set_metadata("/system/bin/dumpstate", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dumpstate_exec:s0");
  144. set_metadata("/system/bin/dun-server", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dun-server_exec:s0");
  145. set_metadata("/system/bin/e2fsck", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fsck_exec:s0");
  146. set_metadata("/system/bin/efs_backup.sh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:restore_efs_exec:s0");
  147. set_metadata("/system/bin/efs_restore.sh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:restore_efs_exec:s0");
  148. set_metadata("/system/bin/fingerprintd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fingerprintd_exec:s0");
  149. set_metadata("/system/bin/fsck.exfat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fsck_exec:s0");
  150. set_metadata("/system/bin/fsck.f2fs", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fsck_exec:s0");
  151. set_metadata("/system/bin/fsck_msdos", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fsck_exec:s0");
  152. set_metadata("/system/bin/garden_app", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:location_exec:s0");
  153. set_metadata("/system/bin/gatekeeperd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:gatekeeperd_exec:s0");
  154. set_metadata("/system/bin/gpsone_daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:location_exec:s0");
  155. set_metadata("/system/bin/hal_proxy_daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wcnss_service_exec:s0");
  156. set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:hostapd_exec:s0");
  157. set_metadata("/system/bin/hostapd_cli", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:hostapd_exec:s0");
  158. set_metadata("/system/bin/ims_rtp_daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:ims_exec:s0");
  159. set_metadata("/system/bin/imscmservice", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:imscm_exec:s0");
  160. set_metadata("/system/bin/imsdatadaemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:ims_exec:s0");
  161. set_metadata("/system/bin/imsqmidaemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:ims_exec:s0");
  162. set_metadata("/system/bin/install-recovery.sh", "uid", 0, "gid", 0, "mode", 0544, "capabilities", "0", "selabel", "u:object_r:install_recovery_exec:s0");
  163. set_metadata("/system/bin/installd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:installd_exec:s0");
  164. set_metadata("/system/bin/irsc_util", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:irsc_util_exec:s0");
  165. set_metadata("/system/bin/keystore", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:keystore_exec:s0");
  166. set_metadata("/system/bin/lmkd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:lmkd_exec:s0");
  167. set_metadata("/system/bin/loc_launcher", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:location_exec:s0");
  168. set_metadata("/system/bin/logcat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:logcat_exec:s0");
  169. set_metadata("/system/bin/logd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:logd_exec:s0");
  170. set_metadata("/system/bin/lowi-server", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:location_exec:s0");
  171. set_metadata("/system/bin/mdnsd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:mdnsd_exec:s0");
  172. set_metadata("/system/bin/mediaserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:mediaserver_exec:s0");
  173. set_metadata("/system/bin/mm-pp-daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:mm-pp-daemon_exec:s0");
  174. set_metadata("/system/bin/mm-qcamera-daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:mm-qcamerad_exec:s0");
  175. set_metadata("/system/bin/mmi", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:mmi_exec:s0");
  176. set_metadata("/system/bin/msm_irqbalance", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:msm_irqbalanced_exec:s0");
  177. set_metadata("/system/bin/mtpd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:mtp_exec:s0");
  178. set_metadata("/system/bin/ndc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wcnss_service_exec:s0");
  179. set_metadata("/system/bin/netd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:netd_exec:s0");
  180. set_metadata("/system/bin/netmgrd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:netmgrd_exec:s0");
  181. set_metadata("/system/bin/nvdiag_daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:nvdiag_daemon_exec:s0");
  182. set_metadata("/system/bin/oemwvtest", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:sectest_exec:s0");
  183. set_metadata("/system/bin/patchoat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:dex2oat_exec:s0");
  184. set_metadata("/system/bin/pm-service", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:per_mgr_exec:s0");
  185. set_metadata("/system/bin/port-bridge", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:port-bridge_exec:s0");
  186. set_metadata("/system/bin/power_engine", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:power_engine_exec:s0");
  187. set_metadata("/system/bin/pppd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:ppp_exec:s0");
  188. set_metadata("/system/bin/ptt_socket_app", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wcnss_service_exec:s0");
  189. set_metadata("/system/bin/qcom-system-daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:qcomsysd_exec:s0");
  190. set_metadata("/system/bin/qmi-framework-tests/qmi_test_mt_client_init_instance", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:qmi_test_service_exec:s0");
  191. set_metadata("/system/bin/qmuxd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:qmuxd_exec:s0");
  192. set_metadata("/system/bin/qseecom_sample_client", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:sectest_exec:s0");
  193. set_metadata("/system/bin/qseecomd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:tee_exec:s0");
  194. set_metadata("/system/bin/racoon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:racoon_exec:s0");
  195. set_metadata("/system/bin/restore_efs", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:restore_efs_exec:s0");
  196. set_metadata("/system/bin/rfs_access", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:rfs_access_exec:s0");
  197. set_metadata("/system/bin/rild", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:rild_exec:s0");
  198. set_metadata("/system/bin/rmt_storage", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:rmt_storage_exec:s0");
  199. set_metadata("/system/bin/run-as", "uid", 0, "gid", 2000, "mode", 0750, "capabilities", "0x0", "selabel", "u:object_r:runas_exec:s0");
  200. set_metadata("/system/bin/sdcard", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:sdcardd_exec:s0");
  201. set_metadata("/system/bin/servicemanager", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:servicemanager_exec:s0");
  202. set_metadata("/system/bin/sgdisk", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:sgdisk_exec:s0");
  203. set_metadata("/system/bin/sh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:shell_exec:s0");
  204. set_metadata("/system/bin/smcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:smcd_exec:s0");
  205. set_metadata("/system/bin/ssr_diag", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:ssr_diag_exec:s0");
  206. set_metadata("/system/bin/ssr_setup", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:ssr_setup_exec:s0");
  207. set_metadata("/system/bin/subsystem_ramdump", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:subsystem_ramdump_exec:s0");
  208. set_metadata("/system/bin/surfaceflinger", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:surfaceflinger_exec:s0");
  209. set_metadata("/system/bin/tbaseLoader", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:tbaseLoader_exec:s0");
  210. set_metadata("/system/bin/tctd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:tctd_exec:s0");
  211. set_metadata("/system/bin/tdc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:tdc_exec:s0");
  212. set_metadata("/system/bin/test_diag", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:diag_exec:s0");
  213. set_metadata("/system/bin/tftp_server", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:rfs_access_exec:s0");
  214. set_metadata("/system/bin/time_daemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:time_daemon_exec:s0");
  215. set_metadata("/system/bin/toolbox", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:toolbox_exec:s0");
  216. set_metadata("/system/bin/toybox", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:toolbox_exec:s0");
  217. set_metadata("/system/bin/tzdatacheck", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:tzdatacheck_exec:s0");
  218. set_metadata("/system/bin/uncrypt", "uid", 0, "gid", 0, "mode", 0750, "capabilities", "0x0", "selabel", "u:object_r:uncrypt_exec:s0");
  219. set_metadata("/system/bin/vdc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:vdc_exec:s0");
  220. set_metadata("/system/bin/vm_bms", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:vm_bms_exec:s0");
  221. set_metadata("/system/bin/vold", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:vold_exec:s0");
  222. set_metadata("/system/bin/wcnss_service", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wcnss_service_exec:s0");
  223. set_metadata("/system/bin/wfdservice", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wfdservice_exec:s0");
  224. set_metadata("/system/bin/wpa_supplicant", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:wpa_exec:s0");
  225. set_metadata("/system/etc/dhcpcd/dhcpcd-run-hooks", "uid", 1014, "gid", 2000, "mode", 0550, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  226. set_metadata("/system/etc/init.goldfish.sh", "uid", 0, "gid", 2000, "mode", 0550, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  227. set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  228. set_metadata("/system/lib64/libnvdiag-jni.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:fota_lib_file:s0");
  229. set_metadata_recursive("/system/lost+found", "uid", 0, "gid", 0, "dmode", 0700, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  230. set_metadata("/system/recovery-from-boot.p", "uid", 0, "gid", 0, "mode", 0644);
  231. set_metadata_recursive("/system/rfs", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:rfs_system_file:s0");
  232. set_metadata("/system/system.ver", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:tct_system_file:s0");
  233. set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  234. set_metadata_recursive("/system/vendor/app", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  235. set_metadata("/system/vendor/app/WfdService/WfdService.apk", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  236. set_metadata("/system/vendor/app/WfdService/oat/arm64/WfdService.odex", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  237. set_metadata("/system/vendor/app/ims/ims.apk", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  238. set_metadata("/system/vendor/app/ims/oat/arm64/ims.odex", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  239. set_metadata("/system/vendor/app/imssettings/imssettings.apk", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  240. set_metadata("/system/vendor/app/imssettings/oat/arm64/imssettings.odex", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  241. set_metadata_recursive("/system/vendor/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  242. set_metadata("/system/vendor/bin/fidodaemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fidodaemon_exec:s0");
  243. set_metadata("/system/vendor/bin/perfd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:perfd_exec:s0");
  244. set_metadata("/system/vendor/bin/sampleauthdaemon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:fidotest_exec:s0");
  245. set_metadata("/system/vendor/bin/thermal-engine", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:thermal-engine_exec:s0");
  246. set_metadata("/system/vendor/etc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  247. set_metadata_recursive("/system/vendor/etc/RIDL", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  248. set_metadata("/system/vendor/etc/RIDL/qdss.cfg", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  249. set_metadata("/system/vendor/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  250. set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  251. set_metadata_recursive("/system/vendor/lib/drm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  252. set_metadata("/system/vendor/lib/drm/libdrmprplugin.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  253. set_metadata("/system/vendor/lib/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  254. set_metadata("/system/vendor/lib/hw", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  255. set_metadata("/system/vendor/lib/mediadrm", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  256. set_metadata("/system/vendor/lib/soundfx", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  257. set_metadata("/system/vendor/lib64", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  258. set_metadata("/system/vendor/lib64/egl", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  259. set_metadata("/system/vendor/lib64/hw", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  260. set_metadata("/system/vendor/lib64/mediadrm", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  261. set_metadata("/system/vendor/media", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  262. set_metadata("/system/vendor/overlay", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  263. set_metadata("/system/vendor/pittpatt", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  264. set_metadata("/system/vendor/pittpatt/models", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  265. set_metadata("/system/vendor/pittpatt/models/detection", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  266. set_metadata("/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  267. set_metadata("/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  268. set_metadata_recursive("/system/vendor/pittpatt/models/recognition", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  269. set_metadata("/system/vendor/pittpatt/models/recognition/face.face.y0-y0-71-N-tree_7-wmd.bin", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  270. set_metadata_recursive("/system/vendor/speccfg", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  271. set_metadata("/system/vendor/speccfg/carrier_regional_pack_conf.xml", "uid", 0, "gid", 0, "mode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  272. set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
  273. set_metadata_recursive("/persist", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:persist_file:s0");
  274. set_metadata_recursive("/persist/lost+found", "uid", 0, "gid", 0, "dmode", 0700, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:persist_file:s0");
  275. show_progress(0.200000, 0);
  276. show_progress(0.200000, 10);
  277. package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
  278. package_extract_file("NON-HLOS.bin", "/dev/block/bootdevice/by-name/modem");
  279. package_extract_file("splash.img", "/dev/block/bootdevice/by-name/splash");
  280. reset_ddr("/dev/block/bootdevice/by-name/DDR");
  281. ifelse(msm.boot_update("main"), (
  282. package_extract_file("sbl1.img", "/dev/block/bootdevice/by-name/sbl1");
  283. package_extract_file("rpm.img", "/dev/block/bootdevice/by-name/rpm");
  284. package_extract_file("tz.img", "/dev/block/bootdevice/by-name/tz");
  285. package_extract_file("emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");
  286. package_extract_file("hyp.img", "/dev/block/bootdevice/by-name/hyp");
  287. ), "");
  288. ifelse(msm.boot_update("backup"), (
  289. package_extract_file("sbl1.img", "/dev/block/bootdevice/by-name/sbl1bak");
  290. package_extract_file("rpm.img", "/dev/block/bootdevice/by-name/rpmbak");
  291. package_extract_file("tz.img", "/dev/block/bootdevice/by-name/tzbak");
  292. package_extract_file("emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/abootbak");
  293. package_extract_file("hyp.img", "/dev/block/bootdevice/by-name/hypbak");
  294. ), "");
  295. msm.boot_update("finalize");
  296. ifelse(TVN_equal(0), (
  297. ui_print("Writing fsg.img");
  298. package_extract_file("fsg.img", "/dev/block/bootdevice/by-name/fsg");
  299. reset_modemst("/dev/block/bootdevice/by-name/modemst1");
  300. reset_modemst("/dev/block/bootdevice/by-name/modemst2");
  301. ), "");
  302. reset_root_flag();
  303. show_progress(0.100000, 10);
  304. unmount("/persist");
  305. unmount("/system");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top