From c10af6c26b7fa9c2737ff714ad07781d53cebb36 Mon Sep 17 00:00:00 2001 From: "Ranjan, Rajani" Date: Fri, 25 Aug 2023 13:28:44 +0530 Subject: [PATCH] mixin changes for sensors ivi Signed-off-by: Ranjan, Rajani --- groups/sensors/mediation/auto_hal.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/groups/sensors/mediation/auto_hal.in b/groups/sensors/mediation/auto_hal.in index fa95cdefe..be1a32528 100644 --- a/groups/sensors/mediation/auto_hal.in +++ b/groups/sensors/mediation/auto_hal.in @@ -6,4 +6,17 @@ value=`grep -i ipaddr $GUEST_AAF_CONFIG | cut -d ':' -f2` setprop vendor.intel.ipaddr $value } update_ipaddress - +update_deviceinfo() { +case "$(cat /sys/class/dmi/id/chassis_vendor | head -1)" in + QEMU) + setprop vendor.virtual.device "qemu" + ;; + Oracle) + setprop vendor.virtual.device "virtual-box" + ;; + *) + setprop vendor.virtual.device "bare-metal" + ;; +esac +} +update_deviceinfo