From 77bdfaf4d9256db983ed2c8d54ef38102d3cdb1f Mon Sep 17 00:00:00 2001 From: ItsVixano Date: Wed, 2 Jun 2021 23:31:51 +0200 Subject: [PATCH] sm8350-common: proprietary-files: fix vendor.qti.hardware.data.connection xml version Use sed to patch vendor.qti.hardware.data.connection-V1.*-java.xml files. parser error : Unsupported version '2.0' --- extract-files.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index 845db9f..c4b1de1 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -49,6 +49,14 @@ if [ -z "${SRC}" ]; then SRC="adb" fi +function blob_fixup() { + case "${1}" in + product/etc/permissions/vendor.qti.hardware.data.connection-V1.0-java.xml|product/etc/permissions/vendor.qti.hardware.data.connection-V1.1-java.xml) + sed -i 's/version="2.0"/version="1.0"/g' "${2}" + ;; + esac +} + # Initialize the helper for common device setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}"