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'
This commit is contained in:
ItsVixano 2021-06-02 23:31:51 +02:00 committed by Cosmin Tanislav
parent 05e5e5336a
commit 77bdfaf4d9

View File

@ -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}"