alioth: Initial import from 19.1
* HEAD: 59232e228cd57b03625522adb2aef1e02a803f69 Change-Id: I540413153ad783569421f256bb74a1738d42f519
This commit is contained in:
29
proprietary/vendor/etc/init/init.batterysecret.rc
vendored
Normal file
29
proprietary/vendor/etc/init/init.batterysecret.rc
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
on property:sys.boot_completed=1
|
||||
chmod 0664 /sys/class/usbpd/usbpd0/usbpd_verifed
|
||||
chmod 0664 /sys/class/usbpd/usbpd0/request_vdm_cmd
|
||||
chmod 0664 /sys/class/usbpd/usbpd0/verify_process
|
||||
chmod 0664 /sys/class/power_supply/usb/pd_authentication
|
||||
chmod 0664 /sys/class/power_supply/bms/authentic
|
||||
chmod 0664 /sys/class/power_supply/bms_master/authentic
|
||||
chmod 0664 /sys/class/power_supply/bms_slave/authentic
|
||||
|
||||
service batterysecret /vendor/bin/batterysecret
|
||||
class last_start
|
||||
user root
|
||||
group system system wakelock
|
||||
disabled
|
||||
seclabel u:r:batterysecret:s0
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start batterysecret
|
||||
|
||||
#run batterysecret in off-charge mode
|
||||
on charger
|
||||
start batterysecret
|
||||
chmod 0664 /sys/class/usbpd/usbpd0/usbpd_verifed
|
||||
chmod 0664 /sys/class/usbpd/usbpd0/request_vdm_cmd
|
||||
chmod 0664 /sys/class/usbpd/usbpd0/verify_process
|
||||
chmod 0664 /sys/class/power_supply/usb/pd_authentication
|
||||
chmod 0664 /sys/class/power_supply/bms/authentic
|
||||
chmod 0664 /sys/class/power_supply/bms_master/authentic
|
||||
chmod 0664 /sys/class/power_supply/bms_slave/authentic
|
||||
52
proprietary/vendor/etc/init/init.vendor.sensors.rc
vendored
Normal file
52
proprietary/vendor/etc/init/init.vendor.sensors.rc
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2009-2012, 2014-2019, 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.
|
||||
#
|
||||
|
||||
on early-boot
|
||||
|
||||
write /sys/kernel/boot_slpi/boot 1
|
||||
|
||||
chown system system /mnt/vendor/persist/sensors
|
||||
chown system system /mnt/vendor/persist/sensors/sns.reg
|
||||
chown system system /mnt/vendor/persist/sensors/sensors_list.txt
|
||||
chown system system /mnt/vendor/persist/sensors/registry
|
||||
chown system system /mnt/vendor/persist/sensors/registry/registry
|
||||
chown system system /mnt/vendor/persist/sensors/registry/registry/sensors_registry
|
||||
chown system system /mnt/vendor/persist/sensors/sensors_settings
|
||||
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_config
|
||||
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_version
|
||||
chown system system /mnt/vendor/persist/sensors/registry/config
|
||||
chmod 0664 /mnt/vendor/persist/sensors/sensors_settings
|
||||
chown system system /sys/kernel/boot_adsp/ssr
|
||||
|
||||
on post-fs-data
|
||||
#sensors log dir
|
||||
mkdir /data/vendor/sensors 0777 system system
|
||||
mkdir /data/vendor/sensors/scripts 0777 system system
|
||||
8
proprietary/vendor/etc/init/ipa_fws.rc
vendored
Normal file
8
proprietary/vendor/etc/init/ipa_fws.rc
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
on early-boot
|
||||
write /dev/ipa 1
|
||||
|
||||
43
proprietary/vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc
vendored
Normal file
43
proprietary/vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright (c) 2019-2020, Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
|
||||
service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
|
||||
class main
|
||||
user system
|
||||
group system wakelock
|
||||
capabilities BLOCK_SUSPEND WAKE_ALARM
|
||||
disabled
|
||||
|
||||
service vendor.qti-chg-policy-sh /vendor/bin/init.qti.chg_policy.sh
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on boot
|
||||
enable vendor.qti-chg-policy-sh
|
||||
start vendor.qti-chg-policy-sh
|
||||
|
||||
on charger
|
||||
chown radio wakelock /sys/power/wake_lock
|
||||
chmod 0660 /sys/power/wake_lock
|
||||
chown radio wakelock /sys/power/wake_unlock
|
||||
chmod 0660 /sys/power/wake_unlock
|
||||
mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
|
||||
mount_all /vendor/etc/charger_fstab.qti --early
|
||||
enable vendor.qti-chg-policy-sh
|
||||
start vendor.qti-chg-policy-sh
|
||||
|
||||
on property:persist.vendor.hvdcp_opti.start=2
|
||||
rmdir /mnt/vendor/persist/hvdcp_opti
|
||||
setprop persist.vendor.hvdcp_opti.start 0
|
||||
|
||||
on property:persist.vendor.hvdcp_opti.start=1
|
||||
mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system
|
||||
enable vendor.hvdcp_opti
|
||||
start vendor.hvdcp_opti
|
||||
setprop persist.vendor.hvdcp_opti.start 0
|
||||
8
proprietary/vendor/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc
vendored
Normal file
8
proprietary/vendor/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2017 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
service sensorscal-hal-1-0 /vendor/bin/hw/vendor.qti.hardware.sensorscalibrate@1.0-service
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
49
proprietary/vendor/etc/init/vendor.sensors.qti.rc
vendored
Normal file
49
proprietary/vendor/etc/init/vendor.sensors.qti.rc
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2009-2012, 2014-2019, 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.
|
||||
#
|
||||
|
||||
service vendor.sensors.qti /vendor/bin/sensors.qti
|
||||
class main
|
||||
user system
|
||||
group system
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:debug.sensors.diag_buffer_log=true
|
||||
start vendor.sensors.qti
|
||||
|
||||
on property:debug.sensors.diag_buffer_log=false
|
||||
stop vendor.sensors.qti
|
||||
|
||||
service vendor-sensor-sh /vendor/bin/init.qcom.sensors.sh
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
37
proprietary/vendor/etc/init/vendor.sensors.sscrpcd.rc
vendored
Normal file
37
proprietary/vendor/etc/init/vendor.sensors.sscrpcd.rc
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright (c) 2019 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2009-2012, 2014-2019, 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.
|
||||
#
|
||||
|
||||
service vendor.sensors /vendor/bin/sscrpcd sensorspd
|
||||
class early_hal
|
||||
user system
|
||||
group system wakelock
|
||||
capabilities BLOCK_SUSPEND
|
||||
|
||||
Reference in New Issue
Block a user