dre: Update init scripts from OOS 11.0.6.0.DE17AA
Change-Id: I110d64343f2aa3e44e95238e28e42db48382a1c7
This commit is contained in:
parent
2dcbb46030
commit
4844942afc
23 changed files with 651 additions and 698 deletions
|
@ -222,7 +222,7 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# Common init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
charger_fw_fstab.qti \
|
||||
charger_fstab.qti \
|
||||
fstab.qcom \
|
||||
ftm_power_config.sh \
|
||||
init.class_main.sh \
|
||||
|
@ -232,7 +232,6 @@ PRODUCT_PACKAGES += \
|
|||
init.oem.rc \
|
||||
init.oem_ftm.rc \
|
||||
init.oem_rf.rc \
|
||||
init.oplus_chg.sh \
|
||||
init.qcom.class_core.sh \
|
||||
init.qcom.early_boot.sh \
|
||||
init.qcom.factory.rc \
|
||||
|
@ -247,6 +246,8 @@ PRODUCT_PACKAGES += \
|
|||
init.qti.kernel.sh \
|
||||
init.qti.qcv.rc \
|
||||
init.qti.qcv.sh \
|
||||
init.stnfc.rc \
|
||||
init.stnfc.sh \
|
||||
init.recovery.qcom.rc \
|
||||
init.target.rc \
|
||||
init.uicc.rc \
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := charger_fw_fstab.qti
|
||||
LOCAL_MODULE := charger_fstab.qti
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/charger_fw_fstab.qti
|
||||
LOCAL_SRC_FILES := etc/charger_fstab.qti
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
|
@ -42,14 +42,6 @@ LOCAL_SRC_FILES := bin/init.kernel.post_boot.sh
|
|||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.oplus_chg.sh
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := bin/init.oplus_chg.sh
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.class_core.sh
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
@ -227,6 +219,14 @@ LOCAL_SRC_FILES := etc/init.recovery.qcom.rc
|
|||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.stnfc.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.stnfc.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.target.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
|
|
@ -3,47 +3,45 @@
|
|||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
|
||||
# Copyright (c) 2012-2013, 2016-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:
|
||||
# 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.
|
||||
# * 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.
|
||||
# THIS SOFTWARE IS PROVIDED "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 configure_zram_parameters() {
|
||||
postboot_running=$(getprop vendor.sys.memplus.postboot 0)
|
||||
if [ $postboot_running == 3 ];then
|
||||
return
|
||||
fi
|
||||
postboot_running=$(getprop vendor.sys.memplus.postboot 0)
|
||||
if [ $postboot_running == 3 ];then
|
||||
return
|
||||
fi
|
||||
|
||||
MemTotalStr=`cat /proc/meminfo | grep MemTotal`
|
||||
MemTotal=${MemTotalStr:16:8}
|
||||
|
||||
low_ram=`getprop ro.config.low_ram`
|
||||
|
||||
# Zram disk - 75% for Go and < 2GB devices .
|
||||
# For >2GB Non-Go devices, size = 50% of RAM size. Limit the size to 4GB.
|
||||
# And enable lz4 zram compression for Go targets.
|
||||
# Zram disk - 75% for < 2GB devices .
|
||||
# For >2GB devices, size = 50% of RAM size. Limit the size to 4GB.
|
||||
|
||||
let RamSizeGB="( $MemTotal / 1048576 ) + 1"
|
||||
diskSizeUnit=M
|
||||
|
@ -58,10 +56,6 @@ function configure_zram_parameters() {
|
|||
let zRamSizeMB=4096
|
||||
fi
|
||||
|
||||
if [ "$low_ram" == "true" ]; then
|
||||
echo lz4 > /sys/block/zram0/comp_algorithm
|
||||
fi
|
||||
|
||||
if [ -f /sys/block/zram0/disksize ]; then
|
||||
if [ -f /sys/block/zram0/use_dedup ]; then
|
||||
echo 1 > /sys/block/zram0/use_dedup
|
||||
|
@ -88,9 +82,9 @@ function configure_read_ahead_kb_values() {
|
|||
|
||||
dmpts=$(ls /sys/block/*/queue/read_ahead_kb | grep -e dm -e mmc)
|
||||
|
||||
# Set 128 for <= 3GB &
|
||||
# set 512 for >= 4GB targets.
|
||||
if [ $MemTotal -le 3145728 ]; then
|
||||
# Set 128 for <= 4GB &
|
||||
# set 512 for > 4GB targets.
|
||||
if [ $MemTotal -le 4194304 ]; then
|
||||
ra_kb=128
|
||||
else
|
||||
ra_kb=512
|
||||
|
@ -107,278 +101,238 @@ function configure_read_ahead_kb_values() {
|
|||
}
|
||||
|
||||
# huangwen.chen@OPTI, 2020/05/14, add for zram writeback
|
||||
function configure_zram_writeback() {
|
||||
# get backing storage size, unit: MB
|
||||
backing_dev_size=$(getprop persist.vendor.zwriteback.backing_dev_size 2048)
|
||||
case $backing_dev_size in
|
||||
[1-9])
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
;;
|
||||
*)
|
||||
backing_dev_size=2048
|
||||
;;
|
||||
esac
|
||||
|
||||
dump_switch=$(getprop persist.vendor.zwriteback.backup)
|
||||
wb_file="/data/vendor/swap/zram_wb"
|
||||
if [[ -f $wb_file && $dump_switch == 1 ]];then
|
||||
rm -f "/data/vendor/swap/zram_wb.old"
|
||||
mv $wb_file "/data/vendor/swap/zram_wb.old"
|
||||
fi
|
||||
# create backing storage
|
||||
# check if dd command success
|
||||
ret=$(dd if=/dev/zero of=/data/vendor/swap/zram_wb bs=1m count=$backing_dev_size 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return 1
|
||||
fi
|
||||
|
||||
# check if attaching file success
|
||||
losetup -f
|
||||
loop_device=$(losetup -f -s /data/vendor/swap/zram_wb 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
echo "memplus $loop_device" > /dev/kmsg
|
||||
return 1
|
||||
fi
|
||||
echo $loop_device > /sys/block/zram0/backing_dev
|
||||
|
||||
mem_limit=$(getprop persist.vendor.zwriteback.mem_limit)
|
||||
case $mem_limit in
|
||||
[1-9])
|
||||
mem_limit="${mem_limit}M"
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
mem_limit="${mem_limit}M"
|
||||
;;
|
||||
*)
|
||||
mem_limit="1G"
|
||||
;;
|
||||
esac
|
||||
echo $mem_limit > /sys/block/zram0/mem_limit
|
||||
}
|
||||
|
||||
# bin.zhong@ASTI, 2019/10/12, add for memplus
|
||||
function configure_memplus_parameters() {
|
||||
bootmode=`getprop ro.vendor.factory.mode`
|
||||
if [ "$bootmode" == "ftm" ] || [ "$bootmode" == "wlan" ] || [ "$bootmode" == "rf" ];then
|
||||
return
|
||||
fi
|
||||
if [ ! $memplus_post_config ];then
|
||||
return
|
||||
fi
|
||||
setprop vendor.sys.memplus.postboot 1
|
||||
memplus=`getprop persist.vendor.memplus.enable`
|
||||
case "$memplus" in
|
||||
"0")
|
||||
# diable swapspace
|
||||
rm /data/vendor/swap/swapfile
|
||||
echo "memplus swapoff start" > /dev/kmsg
|
||||
ret=$(swapoff /dev/block/zram0 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return
|
||||
fi
|
||||
echo "memplus swapoff done" > /dev/kmsg
|
||||
;;
|
||||
"1")
|
||||
# enable memplus
|
||||
rm /data/vendor/swap/swapfile
|
||||
# reset zram swapspace
|
||||
# huangwen.chen@OPTI, 2020/07/10 check if swapoff success
|
||||
echo "memplus swapoff start" > /dev/kmsg
|
||||
ret=$(swapoff /dev/block/zram0 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return
|
||||
fi
|
||||
echo "memplus swapoff done" > /dev/kmsg
|
||||
echo 1 > /sys/block/zram0/reset
|
||||
|
||||
# huangwen.chen@OPTI, 2020/05/21 set zram disksize by property
|
||||
disksize=$(getprop persist.vendor.zwriteback.disksize 4096)
|
||||
case $disksize in
|
||||
[1-9])
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
*)
|
||||
disksize="2100M"
|
||||
;;
|
||||
esac
|
||||
|
||||
# huangwen.chen@OPTI, 2020/05/14 add for zram writeback
|
||||
# check if ZRAM_WRITEBACK_CONFIG enable
|
||||
writeback_file="/sys/block/zram0/writeback"
|
||||
zwriteback=$(getprop persist.vendor.zwriteback.enable 1)
|
||||
if [[ -f $writeback_file && $zwriteback == 1 ]];then
|
||||
configure_zram_writeback
|
||||
# check if configure_zram_writeback success
|
||||
if [ $? -ne 0 ];then
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
else
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
disksize="2100M"
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
echo $disksize > /sys/block/zram0/disksize
|
||||
|
||||
mkswap /dev/block/zram0
|
||||
echo "memplus swapon start" > /dev/kmsg
|
||||
swapon /dev/block/zram0 -p 32758
|
||||
if [ $? -eq 0 ]; then
|
||||
echo 1 > /sys/module/memplus_core/parameters/memory_plus_enabled
|
||||
fi
|
||||
echo "memplus swapon done" > /dev/kmsg
|
||||
;;
|
||||
*)
|
||||
#enable kswapd
|
||||
rm /data/vendor/swap/swapfile
|
||||
# reset zram swapspace
|
||||
# huangwen.chen@OPTI, 2020/07/10 check if swapoff success
|
||||
echo "memplus swapoff start" > /dev/kmsg
|
||||
ret=$(swapoff /dev/block/zram0 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return
|
||||
fi
|
||||
echo "memplus swapoff done" > /dev/kmsg
|
||||
echo 1 > /sys/block/zram0/reset
|
||||
echo lz4 > /sys/block/zram0/comp_algorithm
|
||||
|
||||
|
||||
# huangwen.chen@OPTI, 2020/05/21 set zram disksize by property
|
||||
disksize=$(getprop persist.vendor.zwriteback.disksize 4096)
|
||||
case $disksize in
|
||||
[1-9])
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
*)
|
||||
disksize="2100M"
|
||||
;;
|
||||
esac
|
||||
# huangwen.chen@OPTI, 2020/05/14 add for zram writeback
|
||||
# check if ZRAM_WRITEBACK_CONFIG enable
|
||||
writeback_file="/sys/block/zram0/writeback"
|
||||
zwriteback=$(getprop persist.vendor.zwriteback.enable 1)
|
||||
if [[ -f $writeback_file && $zwriteback == 1 ]];then
|
||||
configure_zram_writeback
|
||||
if [ $? -ne 0 ];then
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
else
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
disksize="2100M"
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
echo $disksize > /sys/block/zram0/disksize
|
||||
|
||||
mkswap /dev/block/zram0
|
||||
echo "memplus swapon start" > /dev/kmsg
|
||||
swapon /dev/block/zram0 -p 32758
|
||||
if [ $? -eq 0 ]; then
|
||||
echo 0 > /sys/module/memplus_core/parameters/memory_plus_enabled
|
||||
fi
|
||||
echo "memplus swapon done" > /dev/kmsg
|
||||
;;
|
||||
esac
|
||||
setprop vendor.sys.memplus.postboot 2
|
||||
}
|
||||
function configure_zram_writeback() {
|
||||
# get backing storage size, unit: MB
|
||||
backing_dev_size=$(getprop persist.vendor.zwriteback.backing_dev_size 2048)
|
||||
case $backing_dev_size in
|
||||
[1-9])
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
;;
|
||||
*)
|
||||
backing_dev_size=2048
|
||||
;;
|
||||
esac
|
||||
|
||||
dump_switch=$(getprop persist.vendor.zwriteback.backup)
|
||||
wb_file="/data/vendor/swap/zram_wb"
|
||||
if [[ -f $wb_file && $dump_switch == 1 ]];then
|
||||
rm -f "/data/vendor/swap/zram_wb.old"
|
||||
mv $wb_file "/data/vendor/swap/zram_wb.old"
|
||||
fi
|
||||
# create backing storage
|
||||
# check if dd command success
|
||||
ret=$(dd if=/dev/zero of=/data/vendor/swap/zram_wb bs=1m count=$backing_dev_size 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return 1
|
||||
fi
|
||||
|
||||
# check if attaching file success
|
||||
losetup -f
|
||||
loop_device=$(losetup -f -s /data/vendor/swap/zram_wb 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
echo "memplus $loop_device" > /dev/kmsg
|
||||
return 1
|
||||
fi
|
||||
echo $loop_device > /sys/block/zram0/backing_dev
|
||||
|
||||
mem_limit=$(getprop persist.vendor.zwriteback.mem_limit)
|
||||
case $mem_limit in
|
||||
[1-9])
|
||||
mem_limit="${mem_limit}M"
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
mem_limit="${mem_limit}M"
|
||||
;;
|
||||
*)
|
||||
mem_limit="1G"
|
||||
;;
|
||||
esac
|
||||
echo $mem_limit > /sys/block/zram0/mem_limit
|
||||
}
|
||||
|
||||
# bin.zhong@ASTI, 2019/10/12, add for memplus
|
||||
function configure_memplus_parameters() {
|
||||
bootmode=`getprop ro.vendor.factory.mode`
|
||||
if [ "$bootmode" == "ftm" ] || [ "$bootmode" == "wlan" ] || [ "$bootmode" == "rf" ];then
|
||||
return
|
||||
fi
|
||||
if [ ! $memplus_post_config ];then
|
||||
return
|
||||
fi
|
||||
setprop vendor.sys.memplus.postboot 1
|
||||
memplus=`getprop persist.vendor.memplus.enable`
|
||||
case "$memplus" in
|
||||
"0")
|
||||
# diable swapspace
|
||||
rm /data/vendor/swap/swapfile
|
||||
echo "memplus swapoff start" > /dev/kmsg
|
||||
ret=$(swapoff /dev/block/zram0 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return
|
||||
fi
|
||||
echo "memplus swapoff done" > /dev/kmsg
|
||||
;;
|
||||
"1")
|
||||
# enable memplus
|
||||
rm /data/vendor/swap/swapfile
|
||||
# reset zram swapspace
|
||||
# huangwen.chen@OPTI, 2020/07/10 check if swapoff success
|
||||
echo "memplus swapoff start" > /dev/kmsg
|
||||
ret=$(swapoff /dev/block/zram0 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return
|
||||
fi
|
||||
echo "memplus swapoff done" > /dev/kmsg
|
||||
echo 1 > /sys/block/zram0/reset
|
||||
|
||||
# huangwen.chen@OPTI, 2020/05/21 set zram disksize by property
|
||||
disksize=$(getprop persist.vendor.zwriteback.disksize 2048)
|
||||
case $disksize in
|
||||
[1-9])
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
*)
|
||||
disksize="2100M"
|
||||
;;
|
||||
esac
|
||||
|
||||
# huangwen.chen@OPTI, 2020/05/14 add for zram writeback
|
||||
# check if ZRAM_WRITEBACK_CONFIG enable
|
||||
writeback_file="/sys/block/zram0/writeback"
|
||||
zwriteback=$(getprop persist.vendor.zwriteback.enable 0)
|
||||
if [[ -f $writeback_file && $zwriteback == 1 ]];then
|
||||
configure_zram_writeback
|
||||
# check if configure_zram_writeback success
|
||||
if [ $? -ne 0 ];then
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
else
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
disksize="2100M"
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
echo $disksize > /sys/block/zram0/disksize
|
||||
|
||||
mkswap /dev/block/zram0
|
||||
echo "memplus swapon start" > /dev/kmsg
|
||||
swapon /dev/block/zram0 -p 32758
|
||||
if [ $? -eq 0 ]; then
|
||||
echo 1 > /sys/module/memplus_core/parameters/memory_plus_enabled
|
||||
fi
|
||||
echo "memplus swapon done" > /dev/kmsg
|
||||
;;
|
||||
*)
|
||||
#enable kswapd
|
||||
rm /data/vendor/swap/swapfile
|
||||
# reset zram swapspace
|
||||
# huangwen.chen@OPTI, 2020/07/10 check if swapoff success
|
||||
echo "memplus swapoff start" > /dev/kmsg
|
||||
ret=$(swapoff /dev/block/zram0 2>&1)
|
||||
if [ $? -ne 0 ];then
|
||||
echo "memplus $ret" > /dev/kmsg
|
||||
return
|
||||
fi
|
||||
echo "memplus swapoff done" > /dev/kmsg
|
||||
echo 1 > /sys/block/zram0/reset
|
||||
echo zstd > /sys/block/zram0/comp_algorithm
|
||||
# huangwen.chen@OPTI, 2020/05/21 set zram disksize by property
|
||||
disksize=$(getprop persist.vendor.zwriteback.disksize 2048)
|
||||
case $disksize in
|
||||
[1-9])
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
[1-9][0-9]*)
|
||||
disksize="${disksize}M"
|
||||
;;
|
||||
*)
|
||||
disksize="2100M"
|
||||
;;
|
||||
esac
|
||||
# huangwen.chen@OPTI, 2020/05/14 add for zram writeback
|
||||
# check if ZRAM_WRITEBACK_CONFIG enable
|
||||
writeback_file="/sys/block/zram0/writeback"
|
||||
zwriteback=$(getprop persist.vendor.zwriteback.enable 0)
|
||||
if [[ -f $writeback_file && $zwriteback == 1 ]];then
|
||||
configure_zram_writeback
|
||||
if [ $? -ne 0 ];then
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
else
|
||||
rm -f /data/vendor/swap/zram_wb
|
||||
disksize="2100M"
|
||||
echo 0 > /sys/block/zram0/mem_limit
|
||||
fi
|
||||
echo $disksize > /sys/block/zram0/disksize
|
||||
|
||||
mkswap /dev/block/zram0
|
||||
echo "memplus swapon start" > /dev/kmsg
|
||||
swapon /dev/block/zram0 -p 32758
|
||||
if [ $? -eq 0 ]; then
|
||||
echo 0 > /sys/module/memplus_core/parameters/memory_plus_enabled
|
||||
fi
|
||||
echo "memplus swapon done" > /dev/kmsg
|
||||
;;
|
||||
esac
|
||||
setprop vendor.sys.memplus.postboot 2
|
||||
}
|
||||
|
||||
function configure_memory_parameters() {
|
||||
# Set Memory parameters.
|
||||
#
|
||||
# Set per_process_reclaim tuning parameters
|
||||
# All targets will use vmpressure range 50-70,
|
||||
# All targets will use 512 pages swap size.
|
||||
#
|
||||
# Set Low memory killer minfree parameters
|
||||
# 32 bit Non-Go, all memory configurations will use 15K series
|
||||
# 32 bit Go, all memory configurations will use uLMK + Memcg
|
||||
# 64 bit will use Google default LMK series.
|
||||
#
|
||||
# Set ALMK parameters (usually above the highest minfree values)
|
||||
# vmpressure_file_min threshold is always set slightly higher
|
||||
# than LMK minfree's last bin value for all targets. It is calculated as
|
||||
# vmpressure_file_min = (last bin - second last bin ) + last bin
|
||||
#
|
||||
# Set allocstall_threshold to 0 for all targets.
|
||||
#
|
||||
MemTotalStr=`cat /proc/meminfo | grep MemTotal`
|
||||
MemTotal=${MemTotalStr:16:8}
|
||||
|
||||
# Set swappiness to 180 for all targets
|
||||
echo 180 > /proc/sys/vm/swappiness
|
||||
echo 0 > /proc/sys/vm/direct_swappiness
|
||||
|
||||
# Disable wsf for all targets beacause we are using efk.
|
||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||
configure_zram_parameters
|
||||
configure_read_ahead_kb_values
|
||||
echo 0 > /proc/sys/vm/page-cluster
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
# set watermark_scale_factor = 36MB * 1024 * 1024 * 10 / MemTotal
|
||||
factor=`expr 377487360 / $MemTotal`
|
||||
echo $factor > /proc/sys/vm/watermark_scale_factor
|
||||
|
||||
# set min_free_kbytes = 32MB
|
||||
echo 32768 > /proc/sys/vm/min_free_kbytes
|
||||
#Spawn 2 kswapd threads which can help in fast reclaiming of pages
|
||||
echo 2 > /proc/sys/vm/kswapd_threads
|
||||
}
|
||||
|
||||
rev=`cat /sys/devices/soc0/revision`
|
||||
ddr_type=`od -An -tx /proc/device-tree/memory/ddr_device_type`
|
||||
ddr_type4="07"
|
||||
ddr_type5="08"
|
||||
# Core control parameters for silver
|
||||
echo 0 0 0 0 1 1 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred
|
||||
echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus
|
||||
echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres
|
||||
echo 40 > /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres
|
||||
echo 100 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms
|
||||
echo 8 > /sys/devices/system/cpu/cpu0/core_ctl/task_thres
|
||||
|
||||
# Core control parameters for gold
|
||||
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
|
||||
echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
|
||||
echo 30 > /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres
|
||||
echo 100 > /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms
|
||||
echo 3 > /sys/devices/system/cpu/cpu4/core_ctl/task_thres
|
||||
# Enable Core control for Silver
|
||||
echo 1 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
||||
|
||||
# Core control parameters for gold+
|
||||
echo 0 > /sys/devices/system/cpu/cpu7/core_ctl/min_cpus
|
||||
echo 60 > /sys/devices/system/cpu/cpu7/core_ctl/busy_up_thres
|
||||
echo 30 > /sys/devices/system/cpu/cpu7/core_ctl/busy_down_thres
|
||||
echo 100 > /sys/devices/system/cpu/cpu7/core_ctl/offline_delay_ms
|
||||
echo 1 > /sys/devices/system/cpu/cpu7/core_ctl/task_thres
|
||||
|
||||
# Controls how many more tasks should be eligible to run on gold CPUs
|
||||
# w.r.t number of gold CPUs available to trigger assist (max number of
|
||||
# tasks eligible to run on previous cluster minus number of CPUs in
|
||||
# the previous cluster).
|
||||
#
|
||||
# Setting to 1 by default which means there should be at least
|
||||
# 4 tasks eligible to run on gold cluster (tasks running on gold cores
|
||||
# plus misfit tasks on silver cores) to trigger assitance from gold+.
|
||||
echo 1 > /sys/devices/system/cpu/cpu7/core_ctl/nr_prev_assist_thresh
|
||||
|
||||
# Disable Core control on silver
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
||||
# Disable Core control on gold
|
||||
echo 0 > /sys/devices/system/cpu/cpu6/core_ctl/enable
|
||||
|
||||
# Setting b.L scheduler parameters
|
||||
echo 95 95 > /proc/sys/kernel/sched_upmigrate
|
||||
echo 85 85 > /proc/sys/kernel/sched_downmigrate
|
||||
echo 100 > /proc/sys/kernel/sched_group_upmigrate
|
||||
echo 65 > /proc/sys/kernel/sched_downmigrate
|
||||
echo 71 > /proc/sys/kernel/sched_upmigrate
|
||||
echo 85 > /proc/sys/kernel/sched_group_downmigrate
|
||||
echo 100 > /proc/sys/kernel/sched_group_upmigrate
|
||||
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
||||
echo 400000000 > /proc/sys/kernel/sched_coloc_downmigrate_ns
|
||||
echo 39000000 39000000 39000000 39000000 39000000 39000000 39000000 5000000 > /proc/sys/kernel/sched_coloc_busy_hyst_cpu_ns
|
||||
echo 240 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus
|
||||
echo 10 10 10 10 10 10 10 95 > /proc/sys/kernel/sched_coloc_busy_hyst_cpu_busy_pct
|
||||
echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus
|
||||
echo 0 > /proc/sys/kernel/sched_busy_hysteresis_enable_cpus
|
||||
echo 5 > /proc/sys/kernel/sched_ravg_window_nr_ticks
|
||||
|
||||
# set the threshold for low latency task boost feature which prioritize
|
||||
# binder activity tasks
|
||||
echo 325 > /proc/sys/kernel/walt_low_latency_task_threshold
|
||||
# disable unfiltering
|
||||
echo 20000000 > /proc/sys/kernel/sched_task_unfilter_period
|
||||
|
||||
# cpuset parameters
|
||||
echo 0-3 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||
# jared.wu@OPTIMIZATION, 2020/09/22, Make foreground run on cpu 0-6
|
||||
echo 0-6 > /dev/cpuset/foreground/cpus
|
||||
echo 0-5 > /dev/cpuset/background/cpus
|
||||
echo 0-5 > /dev/cpuset/system-background/cpus
|
||||
|
||||
# Turn off scheduler boost at the end
|
||||
echo 0 > /proc/sys/kernel/sched_boost
|
||||
|
@ -387,105 +341,65 @@ echo 0 > /proc/sys/kernel/sched_boost
|
|||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/up_rate_limit_us
|
||||
if [ $rev == "1.0" ]; then
|
||||
echo 1190400 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq
|
||||
else
|
||||
echo 1209600 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq
|
||||
fi
|
||||
echo 691200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/pl
|
||||
|
||||
# configure input boost settings
|
||||
if [ $rev == "1.0" ]; then
|
||||
echo "0:1382800" > /sys/devices/system/cpu/cpu_boost/input_boost_freq
|
||||
else
|
||||
echo "0:1305600" > /sys/devices/system/cpu/cpu_boost/input_boost_freq
|
||||
fi
|
||||
echo 120 > /sys/devices/system/cpu/cpu_boost/input_boost_ms
|
||||
echo 1190400 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq
|
||||
echo 576000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
|
||||
# configure governor settings for gold cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/up_rate_limit_us
|
||||
if [ $rev == "1.0" ]; then
|
||||
echo 1497600 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/hispeed_freq
|
||||
else
|
||||
echo 1555200 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/hispeed_freq
|
||||
fi
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/pl
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/up_rate_limit_us
|
||||
echo 1248000 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_freq
|
||||
echo 768000 > /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq
|
||||
|
||||
# configure governor settings for gold+ cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy7/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/up_rate_limit_us
|
||||
if [ $rev == "1.0" ]; then
|
||||
echo 1536000 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq
|
||||
else
|
||||
echo 1670400 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq
|
||||
fi
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/pl
|
||||
# Colocation V3 settings
|
||||
echo 680000 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/rtg_boost_freq
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/rtg_boost_freq
|
||||
echo 51 > /proc/sys/kernel/sched_min_task_util_for_boost
|
||||
echo 35 > /proc/sys/kernel/sched_min_task_util_for_colocation
|
||||
|
||||
# sched_load_boost as -6 is equivalent to target load as 85. It is per cpu tunable.
|
||||
echo -6 > /sys/devices/system/cpu/cpu6/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu7/sched_load_boost
|
||||
echo 85 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_load
|
||||
|
||||
# tedlin, chown sysfs node to system
|
||||
chown -R system:system /sys/devices/system/cpu/cpufreq/policy0/schedutil/target_loads
|
||||
chown -R system:system /sys/devices/system/cpu/cpufreq/policy4/schedutil/target_loads
|
||||
chown -R system:system /sys/devices/system/cpu/cpufreq/policy7/schedutil/target_loads
|
||||
# configure input boost settings
|
||||
echo "0:1804800" > /sys/devices/system/cpu/cpu_boost/input_boost_freq
|
||||
echo 120 > /sys/devices/system/cpu/cpu_boost/input_boost_ms
|
||||
|
||||
# configure bus-dcvs
|
||||
# Enable bus-dcvs
|
||||
for device in /sys/devices/platform/soc
|
||||
do
|
||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||
for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw
|
||||
do
|
||||
cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq
|
||||
echo "4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo "1144 1720 2086 2929 3879 5931 6881 8137" > $cpubw/bw_hwmon/mbps_zones
|
||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||
echo 80 > $cpubw/bw_hwmon/io_percent
|
||||
echo 68 > $cpubw/bw_hwmon/io_percent
|
||||
echo 20 > $cpubw/bw_hwmon/hist_memory
|
||||
echo 10 > $cpubw/bw_hwmon/hyst_length
|
||||
echo 30 > $cpubw/bw_hwmon/down_thres
|
||||
echo 0 > $cpubw/bw_hwmon/hyst_length
|
||||
echo 80 > $cpubw/bw_hwmon/down_thres
|
||||
echo 0 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
echo 250 > $cpubw/bw_hwmon/up_scale
|
||||
echo 1600 > $cpubw/bw_hwmon/idle_mbps
|
||||
echo 12298 > $cpubw/max_freq
|
||||
echo 40 > $cpubw/polling_interval
|
||||
done
|
||||
|
||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||
# configure compute settings for silver latfloor
|
||||
for latfloor in $device/*cpu0-cpu*latfloor/devfreq/*cpu0-cpu*latfloor
|
||||
do
|
||||
cat $llccbw/available_frequencies | cut -d " " -f 1 > $llccbw/min_freq
|
||||
if [ ${ddr_type:4:2} == $ddr_type4 ]; then
|
||||
echo "1720 2086 2929 3879 5931 6515 8136" > $llccbw/bw_hwmon/mbps_zones
|
||||
elif [ ${ddr_type:4:2} == $ddr_type5 ]; then
|
||||
echo "1720 2086 2929 3879 6515 7980 12191" > $llccbw/bw_hwmon/mbps_zones
|
||||
fi
|
||||
echo 4 > $llccbw/bw_hwmon/sample_ms
|
||||
echo 80 > $llccbw/bw_hwmon/io_percent
|
||||
echo 20 > $llccbw/bw_hwmon/hist_memory
|
||||
echo 10 > $llccbw/bw_hwmon/hyst_length
|
||||
echo 30 > $llccbw/bw_hwmon/down_thres
|
||||
echo 0 > $llccbw/bw_hwmon/guard_band_mbps
|
||||
echo 250 > $llccbw/bw_hwmon/up_scale
|
||||
echo 1600 > $llccbw/bw_hwmon/idle_mbps
|
||||
echo 6515 > $llccbw/max_freq
|
||||
echo 40 > $llccbw/polling_interval
|
||||
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||
echo 8 > $latfloor/polling_interval
|
||||
done
|
||||
|
||||
for l3bw in $device/*snoop-l3-bw/devfreq/*snoop-l3-bw
|
||||
# configure compute settings for gold latfloor
|
||||
for latfloor in $device/*cpu6-cpu*latfloor/devfreq/*cpu6-cpu*latfloor
|
||||
do
|
||||
cat $l3bw/available_frequencies | cut -d " " -f 1 > $l3bw/min_freq
|
||||
echo 4 > $l3bw/bw_hwmon/sample_ms
|
||||
echo 10 > $l3bw/bw_hwmon/io_percent
|
||||
echo 20 > $l3bw/bw_hwmon/hist_memory
|
||||
echo 10 > $l3bw/bw_hwmon/hyst_length
|
||||
echo 0 > $l3bw/bw_hwmon/down_thres
|
||||
echo 0 > $l3bw/bw_hwmon/guard_band_mbps
|
||||
echo 0 > $l3bw/bw_hwmon/up_scale
|
||||
echo 1600 > $l3bw/bw_hwmon/idle_mbps
|
||||
echo 9155 > $l3bw/max_freq
|
||||
echo 40 > $l3bw/polling_interval
|
||||
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||
echo 8 > $latfloor/polling_interval
|
||||
done
|
||||
|
||||
# configure mem_latency settings for LLCC and DDR scaling and qoslat
|
||||
# configure mem_latency settings for DDR scaling
|
||||
for memlat in $device/*lat/devfreq/*lat
|
||||
do
|
||||
cat $memlat/available_frequencies | cut -d " " -f 1 > $memlat/min_freq
|
||||
|
@ -493,56 +407,28 @@ do
|
|||
echo 400 > $memlat/mem_latency/ratio_ceil
|
||||
done
|
||||
|
||||
# configure compute settings for gold latfloor
|
||||
for latfloor in $device/*cpu4-cpu*latfloor/devfreq/*cpu4-cpu*latfloor
|
||||
do
|
||||
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||
echo 8 > $latfloor/polling_interval
|
||||
done
|
||||
|
||||
# configure mem_latency settings for prime latfloor
|
||||
for latfloor in $device/*cpu7-cpu*latfloor/devfreq/*cpu7-cpu*latfloor
|
||||
do
|
||||
cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq
|
||||
echo 8 > $latfloor/polling_interval
|
||||
echo 25000 > $latfloor/mem_latency/ratio_ceil
|
||||
done
|
||||
|
||||
# CPU4 L3 ratio ceil
|
||||
for l3gold in $device/*cpu4-cpu-l3-lat/devfreq/*cpu4-cpu-l3-lat
|
||||
do
|
||||
echo 4000 > $l3gold/mem_latency/ratio_ceil
|
||||
done
|
||||
|
||||
# CPU5 L3 ratio ceil
|
||||
for l3gold in $device/*cpu5-cpu-l3-lat/devfreq/*cpu5-cpu-l3-lat
|
||||
do
|
||||
echo 4000 > $l3gold/mem_latency/ratio_ceil
|
||||
done
|
||||
|
||||
# CPU6 L3 ratio ceil
|
||||
#Gold CPU6 L3 ratio ceil
|
||||
for l3gold in $device/*cpu6-cpu-l3-lat/devfreq/*cpu6-cpu-l3-lat
|
||||
do
|
||||
echo 4000 > $l3gold/mem_latency/ratio_ceil
|
||||
echo 25000 > $l3gold/mem_latency/wb_filter_ratio
|
||||
echo 60 > $l3gold/mem_latency/wb_pct_thres
|
||||
done
|
||||
|
||||
# prime L3 ratio ceil
|
||||
for l3prime in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat
|
||||
#Gold CPU7 L3 ratio ceil
|
||||
for l3gold in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat
|
||||
do
|
||||
echo 20000 > $l3prime/mem_latency/ratio_ceil
|
||||
echo 4000 > $l3gold/mem_latency/ratio_ceil
|
||||
echo 25000 > $l3gold/mem_latency/wb_filter_ratio
|
||||
echo 60 > $l3gold/mem_latency/wb_pct_thres
|
||||
done
|
||||
|
||||
# qoslat ratio ceil
|
||||
for qoslat in $device/*qoslat/devfreq/*qoslat
|
||||
do
|
||||
echo 50 > $qoslat/mem_latency/ratio_ceil
|
||||
done
|
||||
done
|
||||
|
||||
echo N > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
echo deep > /sys/power/mem_sleep
|
||||
# Enable fsc.
|
||||
echo 1 > /sys/module/fsc/parameters/enable
|
||||
|
||||
configure_memory_parameters
|
||||
|
||||
# bin.zhong@ASTI, 2019/10/12, add for memplus
|
||||
memplus_post_config=1
|
||||
# huangwen.chen@OPTI, 2020/07/10, excute on first boot.
|
||||
|
@ -551,41 +437,13 @@ if [ $postboot_running != 3 ];then
|
|||
configure_memplus_parameters
|
||||
fi
|
||||
|
||||
# Let kernel know our image version/variant/crm_version
|
||||
if [ -f /sys/devices/soc0/select_image ]; then
|
||||
image_version="10:"
|
||||
image_version+=`getprop ro.build.id`
|
||||
image_version+=":"
|
||||
image_version+=`getprop ro.build.version.incremental`
|
||||
image_variant=`getprop ro.product.name`
|
||||
image_variant+="-"
|
||||
image_variant+=`getprop ro.build.type`
|
||||
oem_version=`getprop ro.build.version.codename`
|
||||
echo 10 > /sys/devices/soc0/select_image
|
||||
echo $image_version > /sys/devices/soc0/image_version
|
||||
echo $image_variant > /sys/devices/soc0/image_variant
|
||||
echo $oem_version > /sys/devices/soc0/image_crm_version
|
||||
fi
|
||||
|
||||
# Change console log level as per console config property
|
||||
console_config=`getprop persist.console.silent.config`
|
||||
case "$console_config" in
|
||||
"1")
|
||||
echo "Enable console config to $console_config"
|
||||
echo 0 > /proc/sys/kernel/printk
|
||||
;;
|
||||
*)
|
||||
echo "Enable console config to $console_config"
|
||||
;;
|
||||
esac
|
||||
|
||||
setprop vendor.post_boot.parsed 1
|
||||
|
||||
# UFS add component info
|
||||
UFS_PN=`cat /sys/devices/platform/soc/1d84000.ufshc/string_descriptors/product_name`
|
||||
UFS_VENDOR=`cat /sys/devices/platform/soc/1d84000.ufshc/string_descriptors/manufacturer_name`
|
||||
UFS_VERSION=`cat /sys/devices/platform/soc/1d84000.ufshc/string_descriptors/product_revision`
|
||||
# UFS add component info
|
||||
UFS_PN=`cat /sys/devices/platform/soc/4804000.ufshc/string_descriptors/product_name`
|
||||
UFS_VENDOR=`cat /sys/devices/platform/soc/4804000.ufshc/string_descriptors/manufacturer_name`
|
||||
UFS_VERSION=`cat /sys/devices/platform/soc/4804000.ufshc/string_descriptors/product_revision`
|
||||
UFS_INFO="UFS "`echo ${UFS_PN} | tr -d "\r"`" "`echo ${UFS_VENDOR} | tr -d "\r"`" "`echo ${UFS_VERSION} | tr -d "\r"`
|
||||
echo ${UFS_INFO}> /sys/project_info/add_component
|
||||
#liochen@SYSTEM, 2020/11/02, Add for enable ufs performance
|
||||
echo 0 > /sys/class/scsi_host/host0/../../../clkscale_enable
|
||||
#echo 0 > /sys/class/scsi_host/host0/../../../clkscale_enable
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
#! /vendor/bin/sh
|
||||
|
||||
export PATH=/vendor/bin
|
||||
|
||||
prefix="/sys/class/oplus_chg"
|
||||
call_on_name="call_on"
|
||||
|
||||
if [[ -d "$prefix" ]]
|
||||
then
|
||||
for i in `ls "$prefix"`
|
||||
do
|
||||
for j in `ls "$prefix"/"$i"`
|
||||
do
|
||||
#skip directories to prevent possible security issues.
|
||||
if [[ -d "$prefix"/"$i"/"$j" ]]
|
||||
then
|
||||
continue
|
||||
else
|
||||
if [[ "$j" == "$call_on_name" ]]
|
||||
then
|
||||
chown -h radio.radio "$prefix"/"$i"/"$j"
|
||||
else
|
||||
chown -h system.system "$prefix"/"$i"/"$j"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
|
@ -336,20 +336,38 @@ case "$target" in
|
|||
setprop vendor.media.target.version 3
|
||||
fi
|
||||
;;
|
||||
476)
|
||||
# Fraser soc_id 476
|
||||
setprop vendor.display.enable_qsync_idle 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"bengal")
|
||||
case "$soc_hwid" in
|
||||
441)
|
||||
441|473)
|
||||
# 441 is for scuba and 473 for scuba iot qcm
|
||||
setprop vendor.fastrpc.disable.cdsprpcd.daemon 1
|
||||
setprop vendor.media.target.version 2
|
||||
setprop vendor.gralloc.disable_ubwc 1
|
||||
|
||||
setprop vendor.display.enhance_idle_time 1
|
||||
setprop vendor.netflix.bsp_rev ""
|
||||
# 196609 is decimal for 0x30001 to report version 3.1
|
||||
setprop vendor.opengles.version 196609
|
||||
sku_ver=`cat /sys/devices/platform/soc/5a00000.qcom,vidc1/sku_version` 2> /dev/null
|
||||
if [ $sku_ver -eq 1 ]; then
|
||||
setprop vendor.media.target.version 3
|
||||
fi
|
||||
;;
|
||||
471)
|
||||
#scuba APQ
|
||||
471|474)
|
||||
# 471 is for scuba APQ and 474 for scuba iot qcs
|
||||
setprop vendor.fastrpc.disable.cdsprpcd.daemon 1
|
||||
setprop vendor.gralloc.disable_ubwc 1
|
||||
setprop vendor.display.enhance_idle_time 1
|
||||
setprop vendor.netflix.bsp_rev ""
|
||||
;;
|
||||
*)
|
||||
# default case is for bengal
|
||||
setprop vendor.netflix.bsp_rev "Q6115-31409-1"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
|
|
@ -630,8 +630,8 @@ function configure_zram_parameters() {
|
|||
echo 0 > /sys/kernel/slab/zspage/store_user
|
||||
fi
|
||||
|
||||
mkswap /dev/block/zram0
|
||||
swapon /dev/block/zram0 -p 32758
|
||||
#mkswap /dev/block/zram0
|
||||
#swapon /dev/block/zram0 -p 32758
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -3929,7 +3929,7 @@ case "$target" in
|
|||
|
||||
# Scuba perf/power tunings
|
||||
case "$soc_id" in
|
||||
"441" )
|
||||
"441" | "473" | "474" )
|
||||
|
||||
# Quad-core device. disable core_ctl
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
||||
|
@ -5782,18 +5782,6 @@ case "$console_config" in
|
|||
;;
|
||||
esac
|
||||
|
||||
##qcom arg relese.
|
||||
#echo 80 > /sys/devices/system/cpu/cpu7/core_ctl/busy_up_thres
|
||||
#echo 50 > /sys/devices/system/cpu/cpu7/core_ctl/busy_down_thres
|
||||
#echo 90 99 > /proc/sys/kernel/sched_upmigrate
|
||||
#echo 80 90 > /proc/sys/kernel/sched_downmigrate
|
||||
#echo 0 > /sys/devices/system/cpu/cpu7/cpufreq/schedutil/pl
|
||||
#echo 1420800 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq
|
||||
##echo -10 > /sys/devices/system/cpu/cpu4/sched_load_boost
|
||||
##echo -10 > /sys/devices/system/cpu/cpu5/sched_load_boost
|
||||
##echo -10 > /sys/devices/system/cpu/cpu6/sched_load_boost
|
||||
#echo -19 > /sys/devices/system/cpu/cpu7/sched_load_boost
|
||||
|
||||
# Parse misc partition path and set property
|
||||
misc_link=$(ls -l /dev/block/bootdevice/by-name/misc)
|
||||
real_path=${misc_link##*>}
|
||||
|
|
|
@ -456,10 +456,10 @@ buildvariant=`getprop ro.build.type`
|
|||
case "$buildvariant" in
|
||||
"userdebug" | "eng")
|
||||
#set default loglevel to KERN_INFO
|
||||
echo "3 6 1 7" > /proc/sys/kernel/printk
|
||||
echo "4 6 1 7" > /proc/sys/kernel/printk
|
||||
;;
|
||||
*)
|
||||
#set default loglevel to KERN_WARNING
|
||||
echo "3 4 1 4" > /proc/sys/kernel/printk
|
||||
echo "4 4 1 4" > /proc/sys/kernel/printk
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -225,21 +225,14 @@ if [ -d /config/usb_gadget/g1/functions/uvc.0 ]; then
|
|||
ln -s streaming/header/h streaming/class/hs/
|
||||
ln -s streaming/header/h streaming/class/ss/
|
||||
fi
|
||||
#ifdef VENDOR_EDIT
|
||||
|
||||
#Enable diag and adb for FTM
|
||||
boot_mode=`getprop ro.boot.ftm_mode`
|
||||
echo "boot_mode: $boot_mode" > /dev/kmsg
|
||||
case "$boot_mode" in
|
||||
"ftm_rf" | "ftm_wlan" | "ftm_mos")
|
||||
setprop sys.usb.config diag,adb
|
||||
"ftm_rf" | "ftm_wlan" | "ftm_at")
|
||||
setprop persist.vendor.usb.config diag,adb
|
||||
setprop persist.sys.usb.config diag,adb
|
||||
echo "peripheral" > /sys/devices/platform/soc/a600000.ssusb/mode
|
||||
setprop sys.usb.config diag,adb
|
||||
echo "AFTER boot_mode: diag,adb" > /dev/kmsg
|
||||
esac
|
||||
case "$boot_mode" in
|
||||
"ftm_at")
|
||||
setprop sys.usb.config diag,adb
|
||||
setprop persist.sys.usb.config diag,adb
|
||||
echo "AFTER boot_mode: diag,adb" > /dev/kmsg
|
||||
esac
|
||||
#endif
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
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
|
||||
if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 450 ] || [ "$soc_id" -eq 475 ]; then
|
||||
setprop persist.vendor.hvdcp_opti.start 2
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
@ -12,7 +12,8 @@ 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 ]; then
|
||||
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
|
||||
|
|
|
@ -41,16 +41,13 @@ product /product e
|
|||
vendor /vendor ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
|
||||
vendor_dlkm /vendor_dlkm ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
|
||||
odm /odm ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount
|
||||
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount
|
||||
/dev/block/bootdevice/by-name/opluslog /mnt/vendor/op2 ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check
|
||||
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,check,formattable,first_stage_mount
|
||||
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait
|
||||
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,inlinecrypt,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,formattable,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized+wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,metadata_encryption=aes-256-xts:wrappedkey_v0,quota,reservedsize=512M,sysfs_path=/sys/devices/platform/soc/1d84000.ufshc,checkpoint=fs
|
||||
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,inlinecrypt,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,formattable,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized+wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,metadata_encryption=aes-256-xts:wrappedkey_v0,quota,reservedsize=128M,checkpoint=fs
|
||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
||||
#/devices/platform/soc/8804000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
|
||||
#/devices/platform/soc/1da4000.ufshc_card/host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
|
||||
/devices/platform/soc/4784000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto
|
||||
/devices/platform/soc/*.ssusb/*.dwc3/xhci-hcd.*.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
|
||||
/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
|
||||
/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect
|
||||
/dev/block/bootdevice/by-name/vm-bootsys /vendor/vm-system ext4 ro,nosuid,nodev,barrier=1 wait,slotselect
|
||||
/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect
|
||||
/dev/block/bootdevice/by-name/qmcs /mnt/vendor/qmcs vfat noatime,nosuid,nodev,context=u:object_r:vendor_qmcs_file:s0 wait,check,formattable
|
||||
|
|
|
@ -3,6 +3,9 @@ echo "ftm_power_config start" >> /dev/kmsg
|
|||
bootmode=`getprop ro.vendor.factory.mode`
|
||||
target=`getprop ro.board.platform`
|
||||
/vendor/bin/sh /vendor/bin/init.qcom.post_boot.sh
|
||||
|
||||
echo s2idle > /sys/power/mem_sleep
|
||||
|
||||
sleep 5
|
||||
echo 0 > /sys/devices/system/cpu/cpu4/online
|
||||
echo 0 > /sys/devices/system/cpu/cpu5/online
|
||||
|
@ -48,4 +51,3 @@ echo 0 > /sys/kernel/debug/tracing/tracing_on && cat /sys/kernel/debug/tracing/t
|
|||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
baseband=`getprop ro.baseband`
|
||||
echo "ftm_power_config done baseband=$baseband" >> /dev/kmsg
|
||||
|
||||
|
|
|
@ -1,13 +1,2 @@
|
|||
# Force SIM configuration to DSDS only on the CN/IN/EU variants
|
||||
|
||||
# China
|
||||
on property:ro.boot.rf_version=11
|
||||
setprop persist.radio.multisim.config dsds
|
||||
|
||||
# India
|
||||
on property:ro.boot.rf_version=13
|
||||
setprop persist.radio.multisim.config dsds
|
||||
|
||||
# Europe
|
||||
on property:ro.boot.rf_version=21
|
||||
setprop persist.radio.multisim.config dsds
|
||||
on property:ro.boot.product.hardware.sku=9
|
||||
setprop persist.radio.multisim.config ssss
|
||||
|
|
|
@ -108,7 +108,10 @@ on fs
|
|||
write /sys/devices/platform/soc/984000.i2c/i2c-4/4-005d/tp_fw_update 0
|
||||
write /sys/devices/platform/soc/984000.i2c/i2c-4/4-0048/tp_fw_update 0
|
||||
write /sys/devices/platform/soc/a94000.i2c/i2c-4/4-005d/tp_fw_update 0
|
||||
write /sys/devices/platform/soc/880000.i2c/i2c-0/0-0038/tp_fw_update 0
|
||||
write /sys/devices/platform/soc/880000.spi/spi_master/spi0/spi0.0/tp_fw_update 0
|
||||
#add for n200
|
||||
write /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/tp_fw_update 0
|
||||
|
||||
#add for tp debug log & to set node gesture_enable
|
||||
chown system system /proc/touchpanel/tp_debug_log
|
||||
|
@ -120,6 +123,7 @@ on fs
|
|||
chown system system /proc/touchpanel/tp_switch_corner_dead_p_zone
|
||||
chown system system /proc/touchpanel/touch_apk
|
||||
chown system system /proc/touchpanel/get_device_temperature
|
||||
chown system system /proc/touchpanel/get_ic_firmware_version
|
||||
# /* add for wireless charge */
|
||||
chown system system /proc/wireless/enable_tx
|
||||
chown system system /proc/wireless/enable_rx
|
||||
|
@ -133,6 +137,10 @@ on fs
|
|||
|
||||
chown system system /proc/enhance_dash
|
||||
|
||||
#gerry.ding@bsp, add for s2 reset config
|
||||
chown system system /proc/s2_reset_config
|
||||
chown system system /proc/pmicWd
|
||||
|
||||
# rayboo.lin@bsp, 2020/09/09 add for simCard holder detect
|
||||
chmod 0666 /proc/simholder/sim_holder_detect
|
||||
chown system system /proc/simholder/sim_holder_detect
|
||||
|
@ -191,16 +199,16 @@ on fs
|
|||
# Power@bsp, 2020/2/27, add for thermal
|
||||
chown system system /dev/msm_thermal
|
||||
chown system system /dev/skin_thermal
|
||||
chown system system /dev/modem_skin_therm
|
||||
chown system system /dev/mmw0_therm
|
||||
chown system system /dev/mmw1_therm
|
||||
chown system system /dev/mmw2_therm
|
||||
chown system system /dev/modem_skin_thermal
|
||||
chown system system /dev/mmw0_thermal
|
||||
chown system system /dev/mmw1_thermal
|
||||
chown system system /dev/mmw2_thermal
|
||||
chmod 0664 /dev/msm_thermal
|
||||
chmod 0664 /dev/skin_thermal
|
||||
chmod 0664 /dev/modem_skin_therm
|
||||
chmod 0664 /dev/mmw0_therm
|
||||
chmod 0664 /dev/mmw1_therm
|
||||
chmod 0664 /dev/mmw2_therm
|
||||
chmod 0664 /dev/modem_skin_thermal
|
||||
chmod 0664 /dev/mmw0_thermal
|
||||
chmod 0664 /dev/mmw1_thermal
|
||||
chmod 0664 /dev/mmw2_thermal
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
#if OP_FEATURE_MM_ADSP_MINIDUMP == 1
|
||||
|
@ -214,30 +222,35 @@ on fs
|
|||
chmod 0666 /sys/class/drm/card0-DSI-1/hbm_brightness
|
||||
chmod 0666 /sys/class/backlight/panel0-backlight/brightness
|
||||
#endif
|
||||
# display add 2018/10/19 @lichao_display
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/SRGB
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/DCI_P3
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/aod
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/night_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/oneplus_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/adaption_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/notify_fppress
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/dim_alpha
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/notify_dim
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/force_screenfp
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_p3_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
|
||||
chmod 0666 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
|
||||
chown radio radio /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
|
||||
chown radio radio /proc/force_reset
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_srgb_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_p3_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/dither_en
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_msd_aod
|
||||
# display add 2018/10/19 @lichao_display
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/SRGB
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/DCI_P3
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/aod
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/night_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/panel_serial_number
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/cabc
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_shutdownflag
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/oneplus_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/adaption_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/notify_fppress
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/dim_alpha
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/notify_dim
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/force_screenfp
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_p3_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
|
||||
chmod 0666 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
|
||||
chown radio radio /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dynamic_dsi_clock
|
||||
chown radio radio /proc/force_reset
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_srgb_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_customer_p3_mode
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/dither_en
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/oplus_msd_aod
|
||||
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/osc_mode
|
||||
chown radio radio /sys/class/drm/card0-DSI-1/osc_mode
|
||||
|
||||
# ken.lin@ASTI, 2019/6/21, add for fsc
|
||||
chown system system /sys/module/fsc/parameters/enable
|
||||
|
@ -253,6 +266,15 @@ on boot
|
|||
chmod 0664 sys/devices/platform/soc/soc:goodix_fp/screen_state
|
||||
chown system system sys/devices/platform/soc/soc:goodix_fp/screen_state
|
||||
chmod 0666 /dev/qseecom
|
||||
|
||||
# access permission for egis
|
||||
chown system system /dev/esfp0
|
||||
chmod 0666 /dev/esfp0
|
||||
# access permission for egis navigation
|
||||
chmod 0666 /sys/devices/platform/egis_input/navigation_event
|
||||
chmod 0666 /sys/devices/platform/egis_input/navigation_enable
|
||||
chown system system /sys/devices/platform/egis_input/navigation_event
|
||||
chown system system /sys/devices/platform/egis_input/navigation_enable
|
||||
#endif
|
||||
setprop ro.nfc.port "I2C"
|
||||
chmod 0666 /dev/pn553
|
||||
|
@ -363,6 +385,11 @@ on post-fs
|
|||
chmod 660 /sys/class/power_supply/battery/op_disable_charge
|
||||
chown system system /sys/class/power_supply/bms/battery_h
|
||||
chmod 660 /sys/class/power_supply/bms/battery_h
|
||||
#brian@BSP, 2021/3/4, add for [IKR-43692] charging optimizated
|
||||
chown system system /sys/class/power_supply/bms/full_available_capacity
|
||||
chmod 660 /sys/class/power_supply/bms/full_available_capacity
|
||||
chown system system /sys/class/power_supply/bms/full_charge_capacity_filtered
|
||||
chmod 660 /sys/class/power_supply/bms/full_charge_capacity_filtered
|
||||
#endif
|
||||
#ifdef VENDOR_EDIT
|
||||
#randle.liu@optimization, 2020/04/24, [OSP-6116] avoid waking up when wireless charging disconnects
|
||||
|
@ -417,15 +444,16 @@ on post-fs-data
|
|||
chown system system /sys/module/houston/parameters/fps_boost_strategy
|
||||
chown system system /sys/module/houston/parameters/egl_buf
|
||||
chown system system /sys/module/houston/parameters/ht_online_config_update
|
||||
# Jacky.Ho@OPTI 2020/09/30 add for [OPTI-85]
|
||||
chown system system /sys/module/tpp/parameters/tpp_on
|
||||
chown system system /sys/module/tpp/parameters/strategy
|
||||
|
||||
# rock.lin@OPTI [OPTI-191] for power consumption
|
||||
chown system system /sys/module/cpufreq_bouncing/parameters/enable
|
||||
chown system system /sys/module/cpufreq_bouncing/parameters/config
|
||||
|
||||
# Ted.Lin@ASTI 2019/06/12 add for CONFIG_CONTROL_CENTER
|
||||
# Jacky.Ho@OPTI 2020/09/30 add for [OPTI-85]
|
||||
chown system system /sys/module/tpp/parameters/tpp_on
|
||||
chown system system /sys/module/tpp/parameters/strategy
|
||||
|
||||
# Ted.Lin@ASTI 2019/06/12 add for CONFIG_CONTROL_CENTER
|
||||
chown system system /dev/cc_ctl
|
||||
chown system system /proc/cc_ctl
|
||||
|
||||
|
@ -477,6 +505,13 @@ on post-fs-data
|
|||
chmod 0666 /data/vendor/camera_update/reservetuningbin6
|
||||
#endif
|
||||
|
||||
# for battery charging off is call_state_change
|
||||
# jinguozhi@wt.network,20210207,add for battery charging off is call_state_change
|
||||
on property:persist.sys.chgdisabled=1
|
||||
write /sys/class/power_supply/battery/call_mode 1
|
||||
on property:persist.sys.chgdisabled=0
|
||||
write /sys/class/power_supply/battery/call_mode 0
|
||||
|
||||
# add for SMT test enters WLAN FTM test in non-signaling
|
||||
service wififtmserver /vendor/bin/sh vendor/bin/wifi_ftm
|
||||
class late_start
|
||||
|
@ -605,6 +640,27 @@ on property:vendor.service.wifi.socket.lahaina.enable=0
|
|||
on property:vendor.service.wifi.socket.lahaina.enable=1
|
||||
start oemsysd
|
||||
|
||||
service wifisocket-nord /system_ext/bin/diag_system_socket_log -a 181.157.1.200 -p 2500 -r 10000 -c 1
|
||||
user root
|
||||
group root system oem_2901
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:logserver:s0
|
||||
|
||||
service wifisocket-nord-stop /system_ext/bin/diag_system_socket_log -k
|
||||
user root
|
||||
group root system oem_2901
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:logserver:s0
|
||||
|
||||
on property:vendor.service.wifi.socket.nord.enable=1
|
||||
start oemsysd
|
||||
start wifisocket-nord
|
||||
|
||||
on property:vendor.service.wifi.socket.nord.enable=0
|
||||
stop oemsysd
|
||||
start wifisocket-nord-stop
|
||||
#endif
|
||||
|
||||
service ftmdaemon /system/vendor/bin/ftmdaemon -n
|
||||
|
@ -790,6 +846,13 @@ on property:persist.sys.oem.otg_support=false
|
|||
write /sys/class/oplus_chg/usb/otg_switch 0
|
||||
#endif
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
on property:persist.vendor.oem.wechat_cameraon=1
|
||||
write /sys/class/oplus_chg/common/camera_on 1
|
||||
on property:persist.vendor.oem.wechat_cameraon=0
|
||||
write /sys/class/oplus_chg/common/camera_on 0
|
||||
#endif
|
||||
|
||||
on property:vendor.sys.op.game=1
|
||||
write /proc/sys/kernel/sched_skip_affinity 1
|
||||
|
||||
|
@ -818,6 +881,31 @@ service terminate_sniffer /vendor/bin/sh /vendor/bin/terminate_sniffer.sh
|
|||
group root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
#v-krishna.rao@Connectivity, 2020/12/21 , servce to set iwpriv contention for btwifi coex debugging
|
||||
on property:persist.vendor.oem.btwificoex.debug=1
|
||||
start startiwprivcontention
|
||||
|
||||
on property:persist.vendor.oem.btwificoex.debug=0
|
||||
start stopiwprivcontention
|
||||
|
||||
on property:wlan.driver.status=ok && property:persist.vendor.oem.btwificoex.debug=1
|
||||
start startiwprivcontention
|
||||
|
||||
service startiwprivcontention /vendor/bin/sh /vendor/bin/startcontention.sh 1
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service stopiwprivcontention /vendor/bin/sh /vendor/bin/startcontention.sh 0
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
|
@ -951,7 +1039,7 @@ service KmInstallKeybox20801 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/ke
|
|||
seclabel u:r:keybox_oem:s0
|
||||
|
||||
# yanamadala.ragini@SYSTEM, 2020/11/30, [AN-977] Add for keymaster key
|
||||
service KmInstallKeybox20828 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9G_Key_Attest_0 true
|
||||
service KmInstallKeybox20828 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlus9R_Key_Attest_0 true
|
||||
class core
|
||||
setenv LD_LIBRARY_PATH /vendor/lib64/hw
|
||||
user system
|
||||
|
@ -1011,6 +1099,46 @@ service KmInstallKeyboxLemonadept /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.l
|
|||
oneshot
|
||||
seclabel u:r:keybox_oem:s0
|
||||
|
||||
# braden.liu@SYSTEM, 2021/01/05 Update Google key box for check on Dre
|
||||
service KmInstallKeyboxDre8t /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusN200TMO_Key_Attest_0 true
|
||||
class core
|
||||
setenv LD_LIBRARY_PATH /vendor/lib64/hw
|
||||
user system
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:keybox_oem:s0
|
||||
|
||||
# braden.liu@SYSTEM, 2021/01/05 Update Google key box for check on Dre
|
||||
service KmInstallKeyboxDre8m /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusN200METRO_Key_Attest_0 true
|
||||
class core
|
||||
setenv LD_LIBRARY_PATH /vendor/lib64/hw
|
||||
user system
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:keybox_oem:s0
|
||||
|
||||
# braden.liu@SYSTEM, 2021/01/05 Update Google key box for check on Dre
|
||||
service KmInstallKeyboxDre9 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusN200_Key_Attest_0 true
|
||||
class core
|
||||
setenv LD_LIBRARY_PATH /vendor/lib64/hw
|
||||
user system
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:keybox_oem:s0
|
||||
|
||||
# dongbin@WT_ODM_SYSTEM, 2021/01/27 Update Google key box for check on ebba
|
||||
service KmInstallKeybox20813 /vendor/bin/KmInstallKeybox /mnt/vendor/op2/.lii/keyboxes_ciphered.xml OnePlusNordCE_Key_Attest_00 true
|
||||
class core
|
||||
setenv LD_LIBRARY_PATH /vendor/lib64/hw
|
||||
user system
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:keybox_oem:s0
|
||||
|
||||
service keyboxxml /system/bin/mv /sdcard/.lii /mnt/vendor/op2/
|
||||
class core
|
||||
user root
|
||||
|
@ -1056,3 +1184,10 @@ on property:persist.vendor.oem.dump=0
|
|||
|
||||
on property:persist.vendor.oem.dump=1
|
||||
setprop persist.vendor.zwriteback.backup 1
|
||||
|
||||
#ifdef ODM_WT_EDIT Kai.Cao@ODM_WT.NW.SIM,BILLIE8-6704, 2020/07/13,Support single and dual card solutions
|
||||
on property:ro.boot.rf_version=0 && property:ro.boot.project_codename=billie8
|
||||
setprop persist.radio.multisim.config "ssss"
|
||||
on property:ro.boot.rf_version=0 && property:ro.boot.project_codename=billie8t
|
||||
setprop persist.radio.multisim.config "ssss"
|
||||
#endif
|
||||
|
|
|
@ -34,9 +34,12 @@ import /vendor/etc/init/hw/init.oem.debug.rc
|
|||
import /vendor/etc/init/hw/init.oem.entry.rc
|
||||
#endif VENDOR_EDIT
|
||||
|
||||
import /vendor/etc/init/hw/init.qti.ufs.rc
|
||||
import /vendor/etc/init/hw/init.qcom.usb.rc
|
||||
import /vendor/etc/init/hw/init.qcom.test.rc
|
||||
import /vendor/etc/init/hw/init.target.rc
|
||||
import /vendor/etc/init/hw/init.qcom.factory.rc
|
||||
import /vendor/etc/init/hw/init.oem.rc
|
||||
|
||||
on early-init
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
|
@ -96,6 +99,7 @@ on early-boot
|
|||
write /sys/devices/virtual/npu/msm_npu/boot 1
|
||||
write /sys/devices/virtual/cvp/cvp/boot 1
|
||||
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qcom.early_boot.sh
|
||||
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.can.sh
|
||||
setprop ro.sf.lcd_density ${vendor.display.lcd_density}
|
||||
|
||||
chown system system /mnt/vendor/persist/data/pfm/licenses
|
||||
|
@ -184,7 +188,7 @@ on boot
|
|||
|
||||
# Set the console loglevel to < KERN_WARN
|
||||
# Set the default message loglevel to KERN_INFO
|
||||
write /proc/sys/kernel/printk "3 6 1 7"
|
||||
write /proc/sys/kernel/printk "4 6 1 7"
|
||||
|
||||
# Allow access for CCID command/response timeout configuration
|
||||
chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout
|
||||
|
@ -217,6 +221,10 @@ on boot
|
|||
chown system system /sys/class/sensors/apds9930-proximity/enable
|
||||
chown system system /sys/class/sensors/apds9930-proximity/poll_delay
|
||||
|
||||
# Allow access to fpc fingerprint device attributes
|
||||
chmod 0666 /sys/bus/platform/devices/soc/soc:fpc1020/wakeup_enable
|
||||
chown system system /sys/bus/platform/devices/soc/soc:fpc1020/wakeup_enable
|
||||
|
||||
# Create directory used for display
|
||||
# for backward compatibility
|
||||
mkdir /persist/display 0770 system graphics
|
||||
|
@ -241,8 +249,8 @@ on boot
|
|||
chown system system /dev/fragment_monitor
|
||||
|
||||
#QDSS
|
||||
chown root oem_2902 /sys/devices/platform/soc/6048000.tmc/coresight-tmc-etr/block_size
|
||||
chmod 660 /sys/devices/platform/soc/6048000.tmc/coresight-tmc-etr/block_size
|
||||
chown root oem_2902 /sys/devices/platform/soc/8048000.tmc/coresight-tmc-etr/block_size
|
||||
chmod 660 /sys/devices/platform/soc/8048000.tmc/coresight-tmc-etr/block_size
|
||||
|
||||
#enable coresight for diag_mdlog_system over qdss
|
||||
write /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size 0x2000000
|
||||
|
@ -263,6 +271,9 @@ on post-fs-data
|
|||
# Change lm related dirs
|
||||
mkdir /data/vendor/lm 0700 root root
|
||||
|
||||
# Create directory used by powermodule
|
||||
mkdir /data/vendor/pwr 0700 root root
|
||||
|
||||
# Create directory used by media clients
|
||||
mkdir /data/vendor/media 0770 mediacodec media
|
||||
|
||||
|
@ -517,6 +528,9 @@ on property:persist.debug.trace=1
|
|||
on property:vendor.media.target.version=*
|
||||
setprop vendor.sys.media.target.version ${vendor.media.target.version}
|
||||
|
||||
on property:vendor.netflix.bsp_rev=*
|
||||
setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev}
|
||||
|
||||
on property:vendor.media.target_variant=*
|
||||
setprop ro.media.xml_variant.codecs ${vendor.media.target_variant}
|
||||
setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant}
|
||||
|
@ -553,14 +567,6 @@ service qmiproxy /system/bin/qmiproxy
|
|||
group radio diag
|
||||
disabled
|
||||
|
||||
# Adjust socket buffer to enlarge TCP receive window for high bandwidth
|
||||
# but only if ro.data.large_tcp_window_size property is set.
|
||||
on property:ro.data.large_tcp_window_size=true
|
||||
write /proc/sys/net/ipv4/tcp_adv_win_scale 2
|
||||
|
||||
on property:sys.sysctl.tcp_adv_win_scale=*
|
||||
write /proc/sys/net/ipv4/tcp_adv_win_scale ${sys.sysctl.tcp_adv_win_scale}
|
||||
|
||||
service vendor.wigig_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
-iwigig0 -Dnl80211 -c/data/vendor/wifi/wigig_supplicant.conf \
|
||||
-m/data/vendor/wifi/wigig_p2p_supplicant.conf \
|
||||
|
@ -585,6 +591,7 @@ service vendor.move_wifi_data /system/bin/move_wifi_data.sh
|
|||
oneshot
|
||||
|
||||
service wigignpt /vendor/bin/wigignpt
|
||||
interface vendor.qti.hardware.wigig.netperftuner@1.0::INetPerfTuner default
|
||||
class hal
|
||||
socket wigig/wigignpt stream 660 system wifi
|
||||
user system
|
||||
|
@ -707,6 +714,11 @@ service qcom-sh /vendor/bin/init.qcom.sh
|
|||
user root
|
||||
group root system radio
|
||||
oneshot
|
||||
# Remove since is deprecated but throws AVC denial.
|
||||
# service crashdata-sh /vendor/bin/init.qcom.crashdata.sh
|
||||
# class late_start
|
||||
# user root
|
||||
# oneshot
|
||||
|
||||
service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh
|
||||
class late_start
|
||||
|
@ -715,6 +727,25 @@ service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh
|
|||
disabled
|
||||
oneshot
|
||||
|
||||
#service qti-testscripts /system/bin/sh /product/etc/init.qcom.testscripts.sh
|
||||
# class late_start
|
||||
# user root
|
||||
# disabled
|
||||
# oneshot
|
||||
# seclabel u:r:qti-testscripts:s0
|
||||
|
||||
service wifi-sdio-on /vendor/bin/init.qcom.sdio.sh
|
||||
class late_start
|
||||
group wifi inet
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service wifi-crda /vendor/bin/init.crda.sh
|
||||
class late_start
|
||||
user root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start qcom-post-boot
|
||||
start qti-testscripts
|
||||
|
@ -740,10 +771,6 @@ service hostapd_fst /vendor/bin/hw/hostapd -dd -g /data/vendor/wifi/hostapd/glob
|
|||
disabled
|
||||
oneshot
|
||||
|
||||
on property:ro.data.large_tcp_window_size=true
|
||||
# Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
|
||||
write /proc/sys/net/ipv4/tcp_adv_win_scale 2
|
||||
|
||||
service battery_monitor /system/bin/battery_monitor
|
||||
user system
|
||||
group system
|
||||
|
@ -945,5 +972,5 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
|
|||
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock
|
||||
capabilities BLOCK_SUSPEND
|
||||
ioprio rt 4
|
||||
writepid /dev/cpuset/foreground/tasks
|
||||
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
|
||||
onrestart restart audioserver
|
||||
|
|
|
@ -94,6 +94,9 @@ on charger && property:ro.boot.type=auto
|
|||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
|
||||
on init
|
||||
exec u:r:vendor-qti-testscripts:s0 -- /vendor/bin/sh /vendor/bin/init.qti.usb.debug.sh
|
||||
|
||||
on boot
|
||||
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
|
||||
mount configfs none /config
|
||||
|
@ -158,12 +161,18 @@ on boot
|
|||
mkdir /dev/ffs-diag-2 0770 shell system
|
||||
mount functionfs diag_mdm2 /dev/ffs-diag-2 uid=2000,gid=1000,rmode=0770,fmode=0660,no_disconnect=1
|
||||
setprop sys.usb.mtp.device_type 3
|
||||
setprop vendor.usb.controller ${sys.usb.controller}
|
||||
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qcom.usb.sh
|
||||
write /config/usb_gadget/g1/strings/0x409/product ${vendor.usb.product_string}
|
||||
write /config/usb_gadget/g2/strings/0x409/product ${vendor.usb.product_string}
|
||||
|
||||
#setprop sys.usb.config ${persist.vendor.usb.config}
|
||||
setprop sys.usb.configfs 1
|
||||
trigger set_serialnumber
|
||||
|
||||
on set_serialnumber && property:ro.boot.ftm_mode=ftm_rf
|
||||
write /config/usb_gadget/g1/strings/0x409/serialnumber "0123456789ABCDEF"
|
||||
write /config/usb_gadget/g2/strings/0x409/serialnumber "0123456789ABCDEF"
|
||||
|
||||
|
||||
on boot && property:vendor.usb.use_ffs_mtp=1
|
||||
mkdir /config/usb_gadget/g1/functions/ffs.mtp
|
||||
|
@ -173,9 +182,14 @@ on boot && property:vendor.usb.use_ffs_mtp=1
|
|||
mkdir /dev/usb-ffs/ptp 0770 mtp mtp
|
||||
mount functionfs ptp /dev/usb-ffs/ptp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
|
||||
|
||||
|
||||
#on property:persist.vendor.usb.config=*
|
||||
# setprop persist.sys.usb.config ${persist.vendor.usb.config}
|
||||
|
||||
on property:vendor.usb.controller=*
|
||||
setprop sys.usb.controller ${vendor.usb.controller}
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
on boot && property:ro.boot.usbconfigfs=true
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
|
@ -253,11 +267,9 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:
|
|||
rm /config/usb_gadget/g1/configs/b.1/f7
|
||||
rm /config/usb_gadget/g1/configs/b.1/f8
|
||||
rm /config/usb_gadget/g1/configs/b.1/f9
|
||||
#write /config/usb_gadget/g1/idVendor 0x05C6
|
||||
#write /config/usb_gadget/g1/idProduct 0x901D
|
||||
#write /config/usb_gadget/g1/functions/diag.diag/pid 0x901d
|
||||
write /config/usb_gadget/g1/idVendor 0x22D9
|
||||
write /config/usb_gadget/g1/idProduct 0x276C
|
||||
write /config/usb_gadget/g1/idVendor 0x05C6
|
||||
write /config/usb_gadget/g1/idProduct 0x901D
|
||||
write /config/usb_gadget/g1/functions/diag.diag/pid 0x901d
|
||||
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f2
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
|
@ -542,7 +554,7 @@ on property:sys.usb.config=mtp,diag && property:vendor.usb.use_ffs_mtp=0 && prop
|
|||
rm /config/usb_gadget/g1/configs/b.1/f9
|
||||
write /config/usb_gadget/g1/idVendor 0x05C6
|
||||
write /config/usb_gadget/g1/idProduct 0x901B
|
||||
symlink /config/usb_gadget/g1/functions/ffs.mtp /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/mtp.gs0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f2
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
@ -581,7 +593,7 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,diag,adb && prope
|
|||
rm /config/usb_gadget/g1/configs/b.1/f9
|
||||
write /config/usb_gadget/g1/idVendor 0x05C6
|
||||
write /config/usb_gadget/g1/idProduct 0x903A
|
||||
symlink /config/usb_gadget/g1/functions/ffs.mtp /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/mtp.gs0 /config/usb_gadget/g1/configs/b.1/f1
|
||||
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f3
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
|
@ -714,7 +726,7 @@ on property:sys.usb.config=rndis,diag,qdss && property:sys.usb.configfs=1
|
|||
symlink /config/usb_gadget/g1/functions/${vendor.usb.diag.func.name}.diag /config/usb_gadget/g1/configs/b.1/f2
|
||||
symlink /config/usb_gadget/g1/functions/qdss.${vendor.usb.qdss.inst.name} /config/usb_gadget/g1/configs/b.1/f3
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
setprop sys.usb.state rndis
|
||||
|
||||
on property:sys.usb.config=rndis,diag,qdss,adb && property:sys.usb.configfs=1
|
||||
start adbd
|
||||
|
@ -738,7 +750,7 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,qdss,adb &
|
|||
symlink /config/usb_gadget/g1/functions/qdss.${vendor.usb.qdss.inst.name} /config/usb_gadget/g1/configs/b.1/f3
|
||||
symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f4
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
setprop sys.usb.state rndis,adb
|
||||
|
||||
on property:sys.usb.config=ncm && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ncm"
|
||||
|
|
|
@ -45,6 +45,8 @@ on early-init
|
|||
|
||||
write /proc/sys/kernel/sched_boost 1
|
||||
|
||||
write /proc/sys/kernel/firmware_config/force_sysfs_fallback 1
|
||||
|
||||
on init
|
||||
# Create cgroup mount point for memory
|
||||
mkdir /sys/fs/cgroup/memory/bg 0750 root system
|
||||
|
@ -78,7 +80,7 @@ on early-boot
|
|||
on boot
|
||||
# Set the console loglevel to < KERN_WARN
|
||||
# Set the default message loglevel to KERN_INFO
|
||||
write /proc/sys/kernel/printk "3 6 1 7"
|
||||
write /proc/sys/kernel/printk "4 6 1 7"
|
||||
|
||||
# Allow access to emmc rawdump block partition and dload sysfs node
|
||||
chown root system /dev/block/bootdevice/by-name/rawdump
|
||||
|
|
9
rootdir/etc/init.stnfc.rc
Normal file
9
rootdir/etc/init.stnfc.rc
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
# This file needs to be executed by vendor_init at boot of the device,
|
||||
# both in normal and factory mode.
|
||||
|
||||
service stflashtool /vendor/bin/STFlashTool
|
||||
class late_start
|
||||
group nfc
|
||||
user nfc
|
||||
oneshot
|
|
@ -34,8 +34,7 @@ import /vendor/etc/init/hw/init.oem.carrier.rc
|
|||
|
||||
on early-init
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/vendor_modprobe.sh
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules q6_pdr_dlkm q6_notifier_dlkm snd_event_dlkm apr_dlkm adsp_loader_dlkm q6_dlkm native_dlkm pinctrl_wcd_dlkm pinctrl_lpi_dlkm swr_dlkm platform_dlkm hdmi_dlkm stub_dlkm wcd_core_dlkm wsa883x_dlkm bolero_cdc_dlkm wsa_macro_dlkm va_macro_dlkm rx_macro_dlkm tx_macro_dlkm bt_fm_slim wcd938x_dlkm wcd938x_slave_dlkm swr_dmic_dlkm tfa9894_dlkm swr_haptics_dlkm machine_dlkm radio-i2c-rtc6226-qca mmc_core mmc_block sdhci sdhci-pltfm sdhci-msm cdsprm
|
||||
write /proc/sys/kernel/sched_boost 1
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules q6_pdr_dlkm q6_notifier_dlkm snd_event_dlkm apr_dlkm adsp_loader_dlkm q6_dlkm native_dlkm pinctrl_lpi_dlkm swr_dlkm platform_dlkm stub_dlkm wcd_core_dlkm wsa881x_analog_dlkm bolero_cdc_dlkm va_macro_dlkm rx_macro_dlkm tx_macro_dlkm bt_fm_slim wcd938x_dlkm wcd938x_slave_dlkm wcd937x_dlkm wcd937x_slave_dlkm machine_dlkm radio-i2c-rtc6226-qca mmc_core mmc_block sdhci sdhci-pltfm sdhci-msm cdsprm sia81xx_dlkm aw87xxx_dlkm
|
||||
wait /sys/devices/soc0/soc_id
|
||||
|
||||
on init
|
||||
|
@ -59,16 +58,16 @@ on init
|
|||
chmod 0664 /dev/cpuctl/background/tasks
|
||||
chmod 0664 /dev/cpuctl/top-app/tasks
|
||||
chmod 0664 /dev/cpuctl/rt/tasks
|
||||
#NFC
|
||||
#chmod 0660 /dev/st21nfc
|
||||
#chown nfc nfc /dev/st21nfc
|
||||
write /dev/cpuctl/foreground/cpu.rt_runtime_us 950000
|
||||
write /dev/cpuctl/background/cpu.rt_runtime_us 950000
|
||||
write /dev/cpuctl/top-app/cpu.rt_runtime_us 950000
|
||||
write /dev/cpuctl/rt/cpu.rt_runtime_us 950000
|
||||
|
||||
write /proc/restart_level_all 0
|
||||
wait /dev/block/platform/soc/1d84000.ufshc
|
||||
symlink /dev/block/platform/soc/1d84000.ufshc /dev/block/bootdevice
|
||||
chown system system /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
|
||||
chmod 0660 /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
|
||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
start logd
|
||||
|
||||
on early-fs
|
||||
|
@ -76,18 +75,13 @@ on early-fs
|
|||
|
||||
on fs
|
||||
start hwservicemanager
|
||||
mkdir /mnt/vendor/spunvm 0660 system system
|
||||
#ifdef VENDOR_EDIT
|
||||
mkdir /mnt/vendor/op1 0660 system system
|
||||
mkdir /mnt/vendor/op2 0660 system system
|
||||
#endif /* VENDOR_EDIT */
|
||||
mount_all --early
|
||||
#ifdef VENDOR_EDIT
|
||||
mount_all /vendor/etc/fstab.qcom --early
|
||||
# ajinath@SYSTEM, 2020/01/16, [OSP-2080] Recovery boot reason
|
||||
wait /mnt/vendor/op2
|
||||
chown system system /mnt/vendor/op2
|
||||
mkdir /mnt/vendor/op2/rbr_log 0770 system system
|
||||
setprop oem.rbr.log.clean 1
|
||||
#endif /* VENDOR_EDIT */
|
||||
chown root system /mnt/vendor/persist
|
||||
chmod 0771 /mnt/vendor/persist
|
||||
|
@ -95,28 +89,20 @@ on fs
|
|||
mkdir /mnt/vendor/persist/data 0700 system system
|
||||
mkdir /mnt/vendor/my_cota 0660 system system
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
#on fs && property:ro.boot.product.vendor.sku=lahaina
|
||||
# mkdir /mnt/vendor/spunvm 0660 system system
|
||||
# wait /dev/block/bootdevice/by-name/spunvm
|
||||
# mount vfat /dev/block/bootdevice/by-name/spunvm /mnt/vendor/spunvm rw noatime shortname=lower,uid=1000,gid=1000,dmask=007,fmask=007,context=u:object_r:vendor_spunvm_file:s0
|
||||
#endif /* VENDOR_EDIT */
|
||||
|
||||
on post-fs
|
||||
# set RLIMIT_MEMLOCK to 64MB
|
||||
setrlimit 8 67108864 67108864
|
||||
write /dev/ipa 1
|
||||
mkdir /mnt/vendor/op2/recovery 0770 root system
|
||||
|
||||
on late-fs
|
||||
wait_for_prop hwservicemanager.ready true
|
||||
#exec_start wait_for_keymaster
|
||||
start console
|
||||
mount_all /vendor/etc/fstab.qcom --late
|
||||
mount_all --late
|
||||
|
||||
on post-fs-data
|
||||
mkdir /vendor/data/tombstones 0771 system system
|
||||
# Enable WLAN cold boot calibration
|
||||
write /sys/devices/platform/soc/b0000000.qcom,cnss-qca6490/fs_ready 1
|
||||
|
||||
on early-boot
|
||||
start vendor.sensors
|
||||
|
@ -131,41 +117,28 @@ on boot
|
|||
chown cameraserver cameraserver /dev/cpuset/camera-daemon
|
||||
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
|
||||
chmod 0660 /dev/cpuset/camera-daemon/tasks
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_event
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_event
|
||||
chown system /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_event
|
||||
chown system /sys/devices/system/cpu/hyp_core_ctl/enable
|
||||
chown system /sys/devices/system/cpu/hyp_core_ctl/hcc_min_freq
|
||||
#USB controller configuration
|
||||
setprop vendor.usb.rndis.func.name "gsi"
|
||||
setprop vendor.usb.rmnet.func.name "gsi"
|
||||
setprop vendor.usb.rmnet.inst.name "rmnet"
|
||||
setprop vendor.usb.dpl.inst.name "dpl"
|
||||
setprop vendor.usb.qdss.inst.name "qdss_mdm"
|
||||
setprop vendor.usb.controller a600000.dwc3
|
||||
#ifdef VENDOR_EDIT
|
||||
#Load WLAN driver
|
||||
#exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_wlan
|
||||
#exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki qca_cld3_wlan
|
||||
#endif
|
||||
#Allow access to memory hotplug device attributes
|
||||
chown system system /sys/kernel/mem-offline/anon_migrate
|
||||
setprop vendor.usb.controller 4e00000.dwc3
|
||||
# v-takey.zheng@SYSTEM, 2020/06/03 Add for oemlogkit camera log
|
||||
chmod 0666 /sys/module/cam_debug_util/parameters/debug_mdl
|
||||
|
||||
# Reduce default vibrator gain from 0x80 to 0x55,
|
||||
# also allow gain customization via persistent property
|
||||
write /sys/class/leds/vibrator/gain ${persist.vendor.vib.gain:-0x55}
|
||||
#ifdef VENDOR_EDIT
|
||||
# Fengfeng.XU@PERFORMANCE, 2020/07/30, Optimize the boot time and run the boot animation on the small core
|
||||
on boot
|
||||
write /dev/cpuset/top-app/cpus 0-7
|
||||
write /dev/cpuset/foreground/cpus 0-7
|
||||
write /dev/cpuset/foreground/boost/cpus 0-7
|
||||
write /dev/cpuset/system-background/cpus 0-7
|
||||
write /dev/cpuset/background/cpus 0-3
|
||||
#endif /* VENDOR_EDIT */
|
||||
|
||||
on property:vendor.display.lcd_density=560
|
||||
setprop dalvik.vm.heapgrowthlimit 256m
|
||||
setprop dalvik.vm.heapgrowthlimit 384m
|
||||
|
||||
on property:vendor.display.lcd_density=640
|
||||
setprop dalvik.vm.heapgrowthlimit 512m
|
||||
|
@ -176,24 +149,16 @@ on boot && property:persist.vendor.usb.controller.default=*
|
|||
on property:vendor.usb.controller=*
|
||||
setprop sys.usb.controller ${vendor.usb.controller}
|
||||
|
||||
#jack.liz@MM.audio, 2020/10/20, add for widvine licenses
|
||||
#ifdef/* VENDOR_EDIT */
|
||||
on property:sys.boot_completed=1
|
||||
copy /vendor/etc/OnePlus_Widevine_2020_10_12.pfm /mnt/vendor/persist/data/pfm/licenses/OnePlus_Widevine_2020_10_12.pfm
|
||||
chmod 0600 /mnt/vendor/persist/data/pfm/licenses/OnePlus_Widevine_2020_10_12.pfm
|
||||
chown system system /mnt/vendor/persist/data/pfm/licenses/OnePlus_Widevine_2020_10_12.pfm
|
||||
#endif /* VENDOR_EDIT */
|
||||
|
||||
on init && property:ro.boot.mode=charger
|
||||
mount_all /vendor/etc/charger_fw_fstab.qti --early
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
wait /sys/class/power_supply/battery
|
||||
|
||||
on charger
|
||||
mount_all /vendor/etc/charger_fstab.qti --early
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
#restart charger after ADSP is out of reset
|
||||
restart charger
|
||||
start qcom-post-boot
|
||||
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor schedutil
|
||||
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor schedutil
|
||||
write /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq 1286400
|
||||
write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor schedutil
|
||||
write /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq 1324800
|
||||
|
||||
write /sys/devices/system/cpu/cpu1/online 0
|
||||
write /sys/devices/system/cpu/cpu2/online 0
|
||||
write /sys/devices/system/cpu/cpu3/online 0
|
||||
|
@ -203,16 +168,10 @@ on charger
|
|||
write /sys/devices/system/cpu/cpu7/online 0
|
||||
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
||||
stop oemlogkit
|
||||
stop vendor.ipacm
|
||||
start vendor.power_off_alarm
|
||||
setprop sys.usb.controller a600000.dwc3
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
service vendor.lowi /vendor/bin/lowirpcd
|
||||
class core
|
||||
user system
|
||||
group system wakelock
|
||||
capabilities BLOCK_SUSPEND
|
||||
start vendor.power_off_alarm
|
||||
setprop sys.usb.controller 4e00000.dwc3
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
#pd-mapper
|
||||
service vendor.pd_mapper /vendor/bin/pd-mapper
|
||||
|
@ -233,13 +192,22 @@ service vendor.per_proxy /vendor/bin/pm-proxy
|
|||
group system
|
||||
disabled
|
||||
|
||||
#service vendor.mdm_helper /vendor/bin/mdm_helper
|
||||
# class core
|
||||
# group system wakelock
|
||||
# disabled
|
||||
|
||||
service vendor.mdm_launcher /vendor/bin/sh /vendor/bin/init.mdm.sh
|
||||
class core
|
||||
oneshot
|
||||
|
||||
on property:init.svc.vendor.per_mgr=running
|
||||
start vendor.per_proxy
|
||||
|
||||
on property:sys.shutdown.requested=*
|
||||
stop vendor.per_proxy
|
||||
|
||||
#yuquan.fei@yuquan.fei, 2020/07/29, use cnss_diag to grab WiFi log
|
||||
on property:vold.decrypt=trigger_restart_framework
|
||||
#on property:vold.decrypt=trigger_restart_framework
|
||||
# start vendor.cnss_diag
|
||||
#endif /* VENDOR_EDIT */
|
||||
|
@ -251,28 +219,3 @@ service vendor.cnss_diag /system/vendor/bin/cnss_diag -q -f -t HELIUM
|
|||
disabled
|
||||
oneshot
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
# ajinath@SYSTEM, 2020/01/16, [OSP-2080] Recovery boot reason
|
||||
on property:oem.rbr.log.clean=1
|
||||
rm /op2/rbr_log/.last_init_boot_failed.log.busy
|
||||
rm /op2/rbr_log/.last_init_boot_failed.log.done
|
||||
rm /op2/rbr_log/last_init_boot_failed.log
|
||||
rm /op2/rbr_log/last_init_boot_failed.1.log
|
||||
rm /op2/rbr_log/last_system_boot_failed.log
|
||||
setprop oem.rbr.log.clean 0
|
||||
#endif /* VENDOR_EDIT */
|
||||
|
||||
# ifdef VENDOR_EDIT
|
||||
# george.yi, 2020/3/24, [OSP-4664] add for oemlogkit pull xlog to sdcard
|
||||
on property:persist.sys.oemlog.pullxlog=true
|
||||
exec u:r:installd:s0 -- /system_ext/bin/pull_xlog.sh
|
||||
setprop persist.sys.oemlog.pullxlog false
|
||||
# endif /* VENDOR_EDIT */
|
||||
|
||||
# steven.guo@display add LTM license
|
||||
#ifdef/* VENDOR_EDIT */
|
||||
on property:sys.boot_completed=1
|
||||
copy /vendor/etc/OnePlus_QC_LTM_Commercial_SM8350_2021_01_19.pfm /mnt/vendor/persist/data/pfm/licenses/OnePlus_QC_LTM_Commercial_SM8350_2021_01_19.pfm
|
||||
chmod 0600 /mnt/vendor/persist/data/pfm/licenses/OnePlus_QC_LTM_Commercial_SM8350_2021_01_19.pfm
|
||||
chown system system /mnt/vendor/persist/data/pfm/licenses/OnePlus_QC_LTM_Commercial_SM8350_2021_01_19.pfm
|
||||
#endif /* VENDOR_EDIT */
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#nfc uicc control
|
||||
on init
|
||||
setprop persist.vendor.radio.uicc_se_enabled false
|
||||
on property:ro.boot.product.hardware.sku=9
|
||||
setprop persist.vendor.radio.uicc_se_enabled true
|
||||
|
|
|
@ -87,4 +87,4 @@ service vendor.imsdaemon /vendor/bin/imsdaemon
|
|||
class main
|
||||
user radio
|
||||
group radio wifi inet vendor_qti_diag log
|
||||
disabled
|
||||
disabled
|
|
@ -171,6 +171,10 @@ firmware_directories /mnt/vendor/persist/copy/ /vendor/firmware_mnt/image/
|
|||
/dev/block/by-name/param 0660 root system
|
||||
#endif VENDOR_EDIT
|
||||
|
||||
# narci.gu@SYSTEM, 2020/12/08, add for serial number writing by wifi adb
|
||||
/dev/block/sde72 0600 system system
|
||||
/dev/block/bootdevice/by-name/reserve1 0600 system system
|
||||
|
||||
#QDSS
|
||||
/dev/byte-cntr 0660 system oem_2902
|
||||
/dev/mhi_qdss 0660 system oem_2902
|
||||
|
@ -189,7 +193,7 @@ firmware_directories /mnt/vendor/persist/copy/ /vendor/firmware_mnt/image/
|
|||
/dev/wcnss_ctrl 0660 system system
|
||||
/sys/devices/soc/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-* rps_cpus 0660 system system
|
||||
/sys/devices/soc/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-* rps_cpus 0660 system system
|
||||
/sys/devices/platform/soc/18800000.qcom,icnss/net/wlan*/queues/rx-* rps_cpus 0660 system system
|
||||
/sys/devices/platform/soc/*.qcom,icnss/net/wlan*/queues/rx-* rps_cpus 0660 system system
|
||||
/sys/devices/platform/soc/1c00000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan*/queues/rx-* rps_cpus 0660 system system
|
||||
/dev/spidev0.0 0660 system audio
|
||||
/dev/i2c-7 0660 system audio
|
||||
|
@ -318,6 +322,9 @@ firmware_directories /mnt/vendor/persist/copy/ /vendor/firmware_mnt/image/
|
|||
/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/gro_flush_timeout 0660 system system
|
||||
/sys/devices/virtual/net/bond0 queues/rx-0/rps_cpus 0660 system system
|
||||
|
||||
#NFC
|
||||
/dev/st21nfc 0660 nfc nfc
|
||||
|
||||
#nfc permissions
|
||||
/dev/nfc-nci 0660 nfc nfc
|
||||
/dev/nq-nci 0660 nfc nfc
|
||||
|
|
Loading…
Reference in a new issue