2021-01-04 16:10:46 -05:00
|
|
|
#! /vendor/bin/sh
|
|
|
|
#=============================================================================
|
|
|
|
# Copyright (c) 2020 Qualcomm Technologies, Inc.
|
|
|
|
# All Rights Reserved.
|
|
|
|
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
|
|
|
#=============================================================================
|
|
|
|
|
|
|
|
soc_id=`cat /sys/devices/soc0/soc_id` 2> /dev/null
|
|
|
|
|
|
|
|
# Store soc_id in ro.vendor.qti.soc_id
|
|
|
|
setprop ro.vendor.qti.soc_id $soc_id
|
|
|
|
|
|
|
|
# For chipsets in QCV family, convert soc_id to soc_name
|
|
|
|
# and store it in ro.vendor.qti.soc_name.
|
2022-05-23 17:26:45 -04:00
|
|
|
if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 456 ] ||
|
|
|
|
[ "$soc_id" -eq 501 ] || [ "$soc_id" -eq 502 ]; then
|
2021-01-04 16:10:46 -05:00
|
|
|
setprop ro.vendor.qti.soc_name lahaina
|
|
|
|
elif [ "$soc_id" -eq 450 ]; then
|
|
|
|
setprop ro.vendor.qti.soc_name shima
|
|
|
|
fi
|