summaryrefslogtreecommitdiff
path: root/rootdir/etc
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-05-07 00:10:55 +0800
committerdianlujitao <dianlujitao@lineageos.org>2020-05-10 05:28:24 +0200
commit59f88dbaf33b347692b95922bb4380ac432a5cb4 (patch)
treeed86aa43539af0b95f6788396a37bb8a2491f4c0 /rootdir/etc
parent6ba610dea3067f2da234a8d25d0c18f275faadc8 (diff)
sdm660-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to same_process_hal_file like Pixels, but the partition is prebuilt thus we're unable to relabel it. * Copy the file to writable tmpfs, setup attributes and bind mount back to workaround the limitation. Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
Diffstat (limited to 'rootdir/etc')
-rw-r--r--rootdir/etc/init.target.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index 22de55e..889449f 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -48,6 +48,11 @@ on fs
restorecon_recursive /mnt/vendor/persist
write /sys/kernel/boot_adsp/boot 1
+ mkdir /mnt/vendor/dsp 0770 root root
+ copy /vendor/dsp/cdsp/fastrpc_shell_3 /mnt/vendor/dsp/fastrpc_shell_3
+ chmod 0644 /mnt/vendor/dsp/fastrpc_shell_3
+ mount none /mnt/vendor/dsp/fastrpc_shell_3 /vendor/dsp/cdsp/fastrpc_shell_3 bind
+
on post-fs
start vendor.qseecomd
wait_for_prop vendor.sys.listeners.registered true