1#! /vendor/bin/sh 2 3version=`grep -ao "OEM_IMAGE_VERSION_STRING[ -~]*" \ 4 /vendor/firmware/adsp.b04 | \ 5 sed -e s/OEM_IMAGE_VERSION_STRING=ADSP.version.// -e s/\(.*\).//` 6setprop vendor.sys.adsp.firmware.version "$version" 7 8if [ -f /sys/devices/soc0/g_platform_version ]; then 9 B5_LUNCHBOX_PLATFORM_VERSION="655360" 10 B5_PVT_PLATFORM_VERSION="655390" 11 platform_version=`cat /sys/devices/soc0/g_platform_version` 12 if [ $platform_version -gt $B5_LUNCHBOX_PLATFORM_VERSION ]; then 13 if [ $platform_version -lt $B5_PVT_PLATFORM_VERSION ]; then 14 setprop vendor.sensor.proximity_fusion.enabled true 15 fi 16 fi 17fi 18