From 4f52dea677cc36baae9104cf060ba6f38474b1c0 Mon Sep 17 00:00:00 2001 From: me-cafebabe Date: Sun, 12 Feb 2023 15:29:24 +0000 Subject: [PATCH] sdm710-common Unblock madvise syscall for dspservice Without this, dspservice crashes infinitely on vela: I init : starting service 'vendor.dspservice'... W dspservice: libminijail[3387]: failed to get path of fd 3: No such file or directory W dspservice: libminijail[3387]: allowing syscall: connect W dspservice: libminijail[3387]: allowing syscall: fcntl W dspservice: libminijail[3387]: allowing syscall: sendto W dspservice: libminijail[3387]: allowing syscall: socket W dspservice: libminijail[3387]: allowing syscall: writev W dspservice: libminijail[3387]: logging seccomp filter failures E dspservice: libminijail[3387]: blocked syscall: madvise I init : Service 'vendor.dspservice' (pid 3387) received signal 31 I init : Sending signal 9 to service 'vendor.dspservice' (pid 3387) process group... Co-authored-by: Ivan Vecera Change-Id: Icc6a75f1ceb83f7363fbac325a24e34e7505d74d --- extract-files.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index d857a5c..8301576 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -58,6 +58,14 @@ if [ -z "${SRC}" ]; then SRC="adb" fi +function blob_fixup() { + case "${1}" in + vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy) + echo 'madvise: 1' >> ${2} + ;; + esac +} + if [ -z "${ONLY_TARGET}" ]; then # Initialize the helper for common device setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"