commit 3a8fae048728f53b1145d1d12a2e89e2105a0172 (HEAD -> lineage-19.1) Author: me-cafebabe <me_cafebabe@hotmail.com> Date: Wed Aug 31 21:17:48 2022 +0800 umi: Update blobs from V13.0.6.0.SJBCNXM Co-authored-by: Sebastiano Barezzi <barezzisebastiano@gmail.com> commit 16635c91fcb2b9b890ae22473e9f9bc7a3f62942 Author: Sebastiano Barezzi <barezzisebastiano@gmail.com> Date: Tue Jul 26 22:43:56 2022 +0200 umi: Drop thermal configs Change-Id: Idad68d7748b2b187e98867597abaa36a9ec6a7f8 commit 1a1e258f90466db330ee749c250681f5aad2b020 Author: me-cafebabe <me_cafebabe@hotmail.com> Date: Wed Aug 31 20:41:56 2022 +0800 Revert "umi: Rename ACDBs to `Forte` to follow common acdbloader" Common uses Tutu by default now This reverts commit 361c80125fc03d30b67ada3ab2e2f1abe21340b7. commit 4539376eb6567b3284e74fc8dcc7a6695af0e4fa Author: Sebastiano Barezzi <barezzisebastiano@gmail.com> Date: Tue Jul 26 14:21:13 2022 +0200 umi: Decommonize NFC configs and firmware Change-Id: Ic12935684be8c5e1d2e695b54467b25faece3abe commit c4d0b142712cf7d40a999039ad8d8c9435cbe384 Author: Sebastiano Barezzi <barezzisebastiano@gmail.com> Date: Mon Jul 25 21:52:07 2022 +0200 umi: Decommonize IPA and charger blobs Change-Id: Ie4137aa04950a20f17e7d2dd5a74b5b2d98598aa
49 lines
2.3 KiB
Bash
Executable File
49 lines
2.3 KiB
Bash
Executable File
#! /vendor/bin/sh
|
|
|
|
#
|
|
# Copyright (c) 2019-2021 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 ] || [ "$soc_id" -eq 475 ] || [ "$soc_id" -eq 497 ] || [ "$soc_id" -eq 498 ] || [ "$soc_id" -eq 499 ] || [ "$soc_id" -eq 515 ]; 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 -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/bms/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/main/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/usb/ -type f -maxdepth 1 | xargs chown system.system
|
|
else
|
|
find /sys/class/power_supply/battery/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/bms/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/main/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/usb/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/charge_pump_master/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/pc_port/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/dc/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/power_supply/parallel/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/usbpd/usbpd0/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/qc-vdm/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/charge_pump/ -type f -maxdepth 1 | xargs chown system.system
|
|
find /sys/class/qcom-battery/ -type f -maxdepth 1 | 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* ]] || [[ "$devname" == *div2-cp* ]]; then
|
|
find /sys/bus/iio/devices/iio:device$i/ -type f -maxdepth 1 | xargs chown system.system
|
|
fi
|
|
done
|
|
fi
|
|
|
|
setprop persist.vendor.hvdcp_opti.start 1
|