summaryrefstree
path: root/product/bin/init.qti.display.sh
blob: 6a2a7588496052d362473d621019a4c79a5e9705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /system/bin/sh
#==============================================================================
#       init.qti.display.sh
#
#  Copyright (c) 2020 Qualcomm Technologies, Inc.
#  All Rights Reserved.
#  Confidential and Proprietary - Qualcomm Technologies, Inc.
#===============================================================================

if [ -f /sys/devices/soc0/soc_id ]; then
    soc_hwid=`cat /sys/devices/soc0/soc_id` 2> /dev/null
else
    soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
fi

target=`getprop ro.board.platform`
case "$target" in
    "lahaina")
        #Set property to differentiate Lahaina & Cedros
        #SOC ID for Lahaina is 415, Lahaina P is 439, Lahaina-ATP is 456
        case "$soc_hwid" in
           415|439|456)
               setprop vendor.display.disable_rounded_corner 1
        esac
        ;;
    "lito")
        #Set property to differentiate LITO & LAGOON
        #SOC ID for Lito is 400
        case "$soc_hwid" in
           400)
               setprop vendor.display.disable_rounded_corner 1
        esac
        ;;
esac