From 1ff20e38fc9c68fcd20b899c0f5ad0aa4945bc66 Mon Sep 17 00:00:00 2001 From: Bob Chang Date: Wed, 9 Oct 2019 17:42:33 +0800 Subject: [PATCH] init.sensors.sh: add a property of ADSP firmware version Store adsp firmware version into vendor.sys.adsp.firmware.version Bug: 142370198 Test: getprop vendor.sys.adsp.firmware.version Change-Id: Ia4ae7e3a2a1544367986c4cf5163831c5f8aecc4 Signed-off-by: Bob Chang --- init.sensors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.sensors.sh b/init.sensors.sh index 63250384..b90d0d0d 100644 --- a/init.sensors.sh +++ b/init.sensors.sh @@ -1,6 +1,6 @@ #! /vendor/bin/sh version=`grep -ao "OEM_IMAGE_VERSION_STRING[ -~]*" \ - /vendor/firmware/slpi.b04 | \ - sed -e s/OEM_IMAGE_VERSION_STRING=SLPI.version.// -e s/\(.*\).//` -setprop sys.slpi.firmware.version "$version" + /vendor/firmware/adsp.b04 | \ + sed -e s/OEM_IMAGE_VERSION_STRING=ADSP.version.// -e s/\(.*\).//` +setprop vendor.sys.adsp.firmware.version "$version"