Skip to content

Commit

Permalink
init.sensors.sh: add a property of ADSP firmware version
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Bob Chang committed Oct 15, 2019
1 parent 021975f commit 1ff20e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.sensors.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 1ff20e3

Please sign in to comment.