android_device_oneplus_dre/rootdir/bin/init.qti.qcv.sh
Albert Tang 4844942afc dre: Update init scripts from OOS 11.0.6.0.DE17AA
Change-Id: I110d64343f2aa3e44e95238e28e42db48382a1c7
2022-06-03 17:40:51 -05:00

20 lines
792 B
Bash
Executable file

#! /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.
if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 456 ] ||
[ "$soc_id" -eq 501 ] || [ "$soc_id" -eq 502 ]; then
setprop ro.vendor.qti.soc_name lahaina
elif [ "$soc_id" -eq 450 ]; then
setprop ro.vendor.qti.soc_name shima
fi