diff --git a/extract-files.sh b/extract-files.sh index 9c0a11f..220a67f 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -93,9 +93,14 @@ function blob_fixup() { [ "$2" = "" ] && return 0 sed -Ei "/media_codecs_(google_audio|google_c2|google_telephony|google_video|vendor_audio)/d" "${2}" ;; + vendor/etc/seccomp_policy/atfwd@2.0.policy) + [ "$2" = "" ] && return 0 + grep -q "gettid: 1" "${2}" || echo -e "\ngettid: 1" >> "${2}" + ;; vendor/etc/seccomp_policy/qwesd@2.0.policy) [ "$2" = "" ] && return 0 - echo "pipe2: 1" >> "${2}" + grep -q "gettid: 1" "${2}" || echo -e "\ngettid: 1" >> "${2}" + grep -q "pipe2: 1" "${2}" || echo -e "\npipe2: 1" >> "${2}" ;; vendor/etc/init/vendor.qti.media.c2audio@1.0-service.rc) [ "$2" = "" ] && return 0