alioth: Initial import from 19.1
* HEAD: 59232e228cd57b03625522adb2aef1e02a803f69 Change-Id: I540413153ad783569421f256bb74a1738d42f519
This commit is contained in:
BIN
proprietary/vendor/bin/batterysecret
vendored
Executable file
BIN
proprietary/vendor/bin/batterysecret
vendored
Executable file
Binary file not shown.
BIN
proprietary/vendor/bin/hvdcp_opti
vendored
Executable file
BIN
proprietary/vendor/bin/hvdcp_opti
vendored
Executable file
Binary file not shown.
BIN
proprietary/vendor/bin/hw/vendor.qti.hardware.sensorscalibrate@1.0-service
vendored
Normal file
BIN
proprietary/vendor/bin/hw/vendor.qti.hardware.sensorscalibrate@1.0-service
vendored
Normal file
Binary file not shown.
35
proprietary/vendor/bin/init.qcom.sensors.sh
vendored
Executable file
35
proprietary/vendor/bin/init.qcom.sensors.sh
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/vendor/bin/sh
|
||||
# Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor
|
||||
# the names of its contributors may be used to endorse or promote
|
||||
# products derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# Function to start sensors for SSC enabled platforms
|
||||
#
|
||||
cp /vendor/etc/sensors/scripts/* /data/vendor/sensors/scripts/
|
||||
chmod a+rw /data/vendor/sensors/scripts/*
|
||||
rm /data/vendor/sensors/diag_log_slpi*
|
||||
rm /data/vendor/sensor_log/sensor*
|
||||
48
proprietary/vendor/bin/init.qti.chg_policy.sh
vendored
Executable file
48
proprietary/vendor/bin/init.qti.chg_policy.sh
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
#! /vendor/bin/sh
|
||||
|
||||
#
|
||||
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
#
|
||||
|
||||
export PATH=/vendor/bin
|
||||
|
||||
soc_id=`getprop ro.vendor.qti.soc_id`
|
||||
if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 450 ]; then
|
||||
setprop persist.vendor.hvdcp_opti.start 2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$soc_id" -eq 441 ] || [ "$soc_id" -eq 471 ]; then
|
||||
#Scuba does not support usb-pd or charge pumps
|
||||
find /sys/class/power_supply/battery/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/bms/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/main/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/usb/ -type f | xargs chown system.system
|
||||
else
|
||||
find /sys/class/power_supply/battery/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/bms/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/main/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/usb/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/charge_pump_master/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/pc_port/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/dc/ -type f | xargs chown system.system
|
||||
find /sys/class/power_supply/parallel/ -type f | xargs chown system.system
|
||||
find /sys/class/usbpd/usbpd0/ -type f | xargs chown system.system
|
||||
find /sys/class/qc-vdm/ -type f | xargs chown system.system
|
||||
find /sys/class/charge_pump/ -type f | xargs chown system.system
|
||||
find /sys/class/qcom-battery/ -type f | xargs chown system.system
|
||||
|
||||
for i in 0 1 2 3 4 5 6 7 8 9
|
||||
do
|
||||
devname=`cat /sys/bus/iio/devices/iio:device$i/name`
|
||||
if [[ "$devname" == *smb* ]] || [[ "$devname" == *qg* ]] || [[ "$devname" == *div2_cp* ]]; then
|
||||
find /sys/bus/iio/devices/iio:device$i/ -type f | xargs chown system.system
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
setprop persist.vendor.hvdcp_opti.start 1
|
||||
BIN
proprietary/vendor/bin/sensors.qti
vendored
Executable file
BIN
proprietary/vendor/bin/sensors.qti
vendored
Executable file
Binary file not shown.
BIN
proprietary/vendor/bin/sscrpcd
vendored
Executable file
BIN
proprietary/vendor/bin/sscrpcd
vendored
Executable file
Binary file not shown.
Reference in New Issue
Block a user