media: set netflix property for khaje target
set netflix property for khaje target
Change-Id: I69b059efd8f25f4c1528a92576ed960c25ee0fcc
diff --git a/media-prop/init.qti.media.rc b/media-prop/init.qti.media.rc
index 74ff277..ce80d3d 100644
--- a/media-prop/init.qti.media.rc
+++ b/media-prop/init.qti.media.rc
@@ -1,7 +1,7 @@
#==============================================================================
# init.qti.media.rc
#
-# Copyright (c) 2020, The Linux Foundation. All rights reserved.
+# Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -37,6 +37,7 @@
seclabel u:r:vendor_qti_media:s0
on early-init
+ setprop vendor.media.system.build_codename ${ro.build.version.release_or_codename}
start qti-media
on post-fs-data
diff --git a/media-prop/init.qti.media.sh b/media-prop/init.qti.media.sh
index fa9f77f..c2a9727 100644
--- a/media-prop/init.qti.media.sh
+++ b/media-prop/init.qti.media.sh
@@ -30,6 +30,8 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#===============================================================================
+build_codename=`getprop vendor.media.system.build_codename`
+
if [ -f /sys/devices/soc0/soc_id ]; then
soc_hwid=`cat /sys/devices/soc0/soc_id` 2> /dev/null
else
@@ -49,6 +51,9 @@
;;
518)
setprop vendor.media.target.version 3
+ if [ $build_codename -le "12" ]; then
+ setprop vendor.netflix.bsp_rev "Q6115-31409-1"
+ fi
;;
*)
sku_ver=`cat /sys/devices/platform/soc/5a00000.qcom,vidc/sku_version` 2> /dev/null