RM6785: Fix properties with invalid vendor namespace
Change-Id: I772ae06b5aa729744fac0b2bc19f20d0bda5ff38
diff --git a/extract-files.sh b/extract-files.sh
index 0a41227..9c38af6 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -54,8 +54,17 @@
vendor/lib64/libwifi-hal-mtk.so)
"$PATCHELF" --set-soname "libwifi-hal-mtk.so" "$2"
;;
+ vendor/lib/libMtkOmxCore.so)
+ sed -i "s/mtk.vendor.omx.core.log/ro.vendor.mtk.omx.log\x00\x00/" "$2"
+ ;;
vendor/lib/libMtkOmxVdecEx.so)
"$PATCHELF" --replace-needed "libui.so" "libui-v32.so" "$2"
+ sed -i "s/ro.mtk_crossmount_support/ro.vendor.mtk_crossmount\x00/" "$2"
+ sed -i "s/ro.mtk_deinterlace_support/ro.vendor.mtk_deinterlace\x00/" "$2"
+ ;;
+ vendor/lib/libaudio_param_parser-vnd.so)
+ sed -i "s/\x00audio.tuning.def_path/\x00ro.vendor.tuning_path/" "$2"
+ sed -i "s/\x20audio.tuning.def_path/\x20ro.vendor.tuning_path/" "$2"
;;
esac
}
diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts
index 064cb4f..dbed547 100644
--- a/sepolicy/vendor/property_contexts
+++ b/sepolicy/vendor/property_contexts
@@ -1,5 +1,5 @@
# Audio
-audio.tuning.def_path u:object_r:vendor_audio_tunning_prop:s0
+ro.vendor.tuning_path u:object_r:vendor_audio_tunning_prop:s0
persist.vendor.audio.tuning.def_path u:object_r:vendor_audio_tunning_prop:s0
# Fingerprint