sm7325-common: update to S1RG32.53-18-11
Change-Id: I4bea9b6ebe78c4fc87c89405b43bb51467575be5
This commit is contained in:
parent
782cc6aa56
commit
f2a8de29f1
30 changed files with 798 additions and 449 deletions
|
|
@ -31,6 +31,11 @@
|
|||
#=============================================================================
|
||||
|
||||
function configure_zram_parameters() {
|
||||
# Moto yangbq2: Skip this if we are using zram from fstab.
|
||||
using_zram_from_fstab=`getprop ro.boot.using_zram_from_fstab`
|
||||
if [ "$using_zram_from_fstab" == "true" ]; then
|
||||
return
|
||||
fi
|
||||
MemTotalStr=`cat /proc/meminfo | grep MemTotal`
|
||||
MemTotal=${MemTotalStr:16:8}
|
||||
|
||||
|
|
@ -123,7 +128,6 @@ function configure_memory_parameters() {
|
|||
|
||||
configure_zram_parameters
|
||||
configure_read_ahead_kb_values
|
||||
echo 0 > /proc/sys/vm/page-cluster
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#=============================================================================
|
||||
# Copyright (c) 2020 Qualcomm Technologies, Inc.
|
||||
# Copyright (c) 2020-2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
|
@ -125,7 +125,6 @@ function configure_memory_parameters() {
|
|||
|
||||
configure_zram_parameters
|
||||
configure_read_ahead_kb_values
|
||||
echo 0 > /proc/sys/vm/page-cluster
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
|
||||
# Disable wsf beacause we are using efk.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#! /vendor/bin/sh
|
||||
|
||||
# Copyright (c) 2012-2013,2016,2018-2020 The Linux Foundation. All rights reserved.
|
||||
# Copyright (c) 2012-2013,2016,2018-2021 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:
|
||||
|
|
@ -255,6 +255,9 @@ case "$target" in
|
|||
# 196610 is decimal for 0x30002 to report version 3.2
|
||||
case "$soc_hwid" in
|
||||
294|295|296|297|298|313|353|354|363|364)
|
||||
# Disable adsprpcd_sensorspd daemon
|
||||
setprop vendor.fastrpc.disable.adsprpcd_sensorspd.daemon 1
|
||||
|
||||
setprop vendor.opengles.version 196610
|
||||
if [ $soc_hwid = 354 ]
|
||||
then
|
||||
|
|
@ -367,6 +370,8 @@ case "$target" in
|
|||
setprop vendor.display.enhance_idle_time 1
|
||||
setprop vendor.netflix.bsp_rev ""
|
||||
;;
|
||||
518)
|
||||
;;
|
||||
*)
|
||||
# default case is for bengal
|
||||
setprop vendor.netflix.bsp_rev "Q6115-31409-1"
|
||||
|
|
@ -492,6 +497,14 @@ case "$product" in
|
|||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$product" in
|
||||
"msmnile_gvmgh")
|
||||
setprop vendor.display.lcd_density 160
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
# Setup display nodes & permissions
|
||||
# HDMI can be fb1 or fb2
|
||||
# Loop through the sysfs nodes and determine
|
||||
|
|
|
|||
|
|
@ -64,8 +64,17 @@ function 8953_sched_dcvs_eas()
|
|||
for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo 85 > $cpubw/bw_hwmon/io_percent
|
||||
echo 34 > $cpubw/bw_hwmon/io_percent
|
||||
echo 0 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
echo 20 > $cpubw/bw_hwmon/hist_memory
|
||||
echo 10 > $cpubw/bw_hwmon/hyst_length
|
||||
echo 1600 > $cpubw/bw_hwmon/idle_mbps
|
||||
echo 20 > $cpubw/bw_hwmon/low_power_delay
|
||||
echo 34 > $cpubw/bw_hwmon/low_power_io_percent
|
||||
echo "1611 3221 5859 6445 7104" > $cpubw/bw_hwmon/mbps_zones
|
||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||
echo 250 > $cpubw/bw_hwmon/up_scale
|
||||
echo 1611 > $cpubw/min_freq
|
||||
done
|
||||
done
|
||||
else
|
||||
|
|
@ -117,8 +126,8 @@ function 8917_sched_dcvs_eas()
|
|||
for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo 85 > $cpubw/bw_hwmon/io_percent
|
||||
echo 0 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
echo 20 > $cpubw/bw_hwmon/io_percent
|
||||
echo 30 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
done
|
||||
done
|
||||
else
|
||||
|
|
@ -191,8 +200,8 @@ function 8937_sched_dcvs_eas()
|
|||
for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo 85 > $cpubw/bw_hwmon/io_percent
|
||||
echo 0 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
echo 20 > $cpubw/bw_hwmon/io_percent
|
||||
echo 30 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
done
|
||||
done
|
||||
else
|
||||
|
|
@ -905,6 +914,13 @@ function enable_swap() {
|
|||
fi
|
||||
}
|
||||
|
||||
function disable_ppr()
|
||||
{
|
||||
if [ -f /sys/module/process_reclaim/parameters/enable_process_reclaim ]; then
|
||||
echo 0 > /sys/module/process_reclaim/parameters/enable_process_reclaim
|
||||
fi
|
||||
}
|
||||
|
||||
function configure_memory_parameters() {
|
||||
# Set Memory parameters.
|
||||
#
|
||||
|
|
@ -2414,6 +2430,10 @@ case "$target" in
|
|||
|
||||
# Set Memory parameters
|
||||
configure_memory_parameters
|
||||
|
||||
if [ $KernelVersionA -ge 4 ] && [ $KernelVersionB -ge 19 ]; then
|
||||
disable_ppr
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
case "$soc_id" in
|
||||
|
|
@ -2687,6 +2707,10 @@ case "$target" in
|
|||
echo 1 > /proc/sys/kernel/power_aware_timer_migration
|
||||
# Set Memory parameters
|
||||
configure_memory_parameters
|
||||
|
||||
if [ $KernelVersionA -ge 4 ] && [ $KernelVersionB -ge 19 ]; then
|
||||
disable_ppr
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
|
@ -2712,28 +2736,30 @@ case "$target" in
|
|||
#disable sched_boost in 8937
|
||||
echo 0 > /proc/sys/kernel/sched_boost
|
||||
|
||||
for devfreq_gov in /sys/class/devfreq/qcom,mincpubw*/governor
|
||||
do
|
||||
echo "cpufreq" > $devfreq_gov
|
||||
done
|
||||
|
||||
for devfreq_gov in /sys/class/devfreq/soc:qcom,cpubw/governor
|
||||
do
|
||||
echo "bw_hwmon" > $devfreq_gov
|
||||
for cpu_io_percent in /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/io_percent
|
||||
if [ $KernelVersionA -le 4 ] && [ $KernelVersionB -le 9 ]; then
|
||||
for devfreq_gov in /sys/class/devfreq/qcom,mincpubw*/governor
|
||||
do
|
||||
echo 20 > $cpu_io_percent
|
||||
echo "cpufreq" > $devfreq_gov
|
||||
done
|
||||
for cpu_guard_band in /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/guard_band_mbps
|
||||
do
|
||||
echo 30 > $cpu_guard_band
|
||||
done
|
||||
done
|
||||
|
||||
for gpu_bimc_io_percent in /sys/class/devfreq/soc:qcom,gpubw/bw_hwmon/io_percent
|
||||
do
|
||||
echo 40 > $gpu_bimc_io_percent
|
||||
done
|
||||
for devfreq_gov in /sys/class/devfreq/soc:qcom,cpubw/governor
|
||||
do
|
||||
echo "bw_hwmon" > $devfreq_gov
|
||||
for cpu_io_percent in /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/io_percent
|
||||
do
|
||||
echo 20 > $cpu_io_percent
|
||||
done
|
||||
for cpu_guard_band in /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/guard_band_mbps
|
||||
do
|
||||
echo 30 > $cpu_guard_band
|
||||
done
|
||||
done
|
||||
|
||||
for gpu_bimc_io_percent in /sys/class/devfreq/soc:qcom,gpubw/bw_hwmon/io_percent
|
||||
do
|
||||
echo 40 > $gpu_bimc_io_percent
|
||||
done
|
||||
fi
|
||||
|
||||
# disable thermal core_control to update interactive gov and core_ctl settings
|
||||
echo 0 > /sys/module/msm_thermal/core_control/enabled
|
||||
|
|
@ -2784,6 +2810,9 @@ case "$target" in
|
|||
echo 1 > /proc/sys/kernel/power_aware_timer_migration
|
||||
# Set Memory parameters
|
||||
configure_memory_parameters
|
||||
if [ $KernelVersionA -ge 4 ] && [ $KernelVersionB -ge 19 ]; then
|
||||
disable_ppr
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
||||
|
|
@ -2808,8 +2837,8 @@ case "$target" in
|
|||
for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo 85 > $cpubw/bw_hwmon/io_percent
|
||||
echo 0 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
echo 20 > $cpubw/bw_hwmon/io_percent
|
||||
echo 30 > $cpubw/bw_hwmon/guard_band_mbps
|
||||
done
|
||||
done
|
||||
else
|
||||
|
|
@ -2991,6 +3020,10 @@ case "$target" in
|
|||
# Set Memory parameters
|
||||
configure_memory_parameters
|
||||
|
||||
if [ $KernelVersionA -ge 4 ] && [ $KernelVersionB -ge 19 ]; then
|
||||
disable_ppr
|
||||
fi
|
||||
|
||||
#disable sched_boost
|
||||
echo 0 > /proc/sys/kernel/sched_boost
|
||||
|
||||
|
|
@ -3420,7 +3453,7 @@ case "$target" in
|
|||
fi
|
||||
|
||||
case "$soc_id" in
|
||||
"394" )
|
||||
"394" | "467" | "468" )
|
||||
|
||||
# Core control parameters on big
|
||||
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
|
||||
|
|
@ -4221,6 +4254,109 @@ case "$target" in
|
|||
;;
|
||||
esac
|
||||
|
||||
#power/perf tunings for khaje
|
||||
case "$soc_id" in
|
||||
"518" )
|
||||
|
||||
# Core control parameters on big
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
||||
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
|
||||
echo 40 > /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres
|
||||
echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
|
||||
echo 100 > /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms
|
||||
echo 4 > /sys/devices/system/cpu/cpu4/core_ctl/task_thres
|
||||
|
||||
# Setting b.L scheduler parameters
|
||||
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
|
||||
|
||||
# cpuset settings
|
||||
echo 0-3 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||
|
||||
|
||||
# configure governor settings for little cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us
|
||||
echo 1516800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
|
||||
echo 691200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/rtg_boost_freq
|
||||
|
||||
# configure governor settings for big cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us
|
||||
echo 1344000 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
|
||||
echo 1056000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
|
||||
echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/rtg_boost_freq
|
||||
|
||||
echo "0:1190000" > /sys/devices/system/cpu/cpu_boost/input_boost_freq
|
||||
echo 80 > /sys/devices/system/cpu/cpu_boost/input_boost_ms
|
||||
|
||||
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
||||
|
||||
# sched_load_boost as -6 is equivalent to target load as 85. It is per cpu tunable.
|
||||
echo -6 > /sys/devices/system/cpu/cpu0/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu1/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu2/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu3/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu4/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu5/sched_load_boost
|
||||
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/cpu0/cpufreq/schedutil/hispeed_load
|
||||
echo 85 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
|
||||
|
||||
# Set Memory parameters
|
||||
configure_memory_parameters
|
||||
|
||||
# Enable bus-dcvs
|
||||
|
||||
for device in /sys/devices/platform/soc
|
||||
do
|
||||
for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo 50 > $cpubw/polling_interval
|
||||
echo 762 > $cpubw/min_freq
|
||||
echo "2288 3440 4173 5195 5859 7759 10322 11863 13763 15960" > $cpubw/bw_hwmon/mbps_zones
|
||||
echo 85 > $cpubw/bw_hwmon/io_percent
|
||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||
echo 90 > $cpubw/bw_hwmon/decay_rate
|
||||
echo 190 > $cpubw/bw_hwmon/bw_step
|
||||
echo 20 > $cpubw/bw_hwmon/hist_memory
|
||||
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
|
||||
done
|
||||
|
||||
done
|
||||
# memlat specific settings are moved to seperate file under
|
||||
# device/target specific folder
|
||||
setprop vendor.dcvs.prop 1
|
||||
|
||||
# colcoation v3 disabled
|
||||
echo 0 > /proc/sys/kernel/sched_min_task_util_for_boost
|
||||
echo 0 > /proc/sys/kernel/sched_min_task_util_for_colocation
|
||||
|
||||
# Turn off scheduler boost at the end
|
||||
echo 0 > /proc/sys/kernel/sched_boost
|
||||
|
||||
echo N > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/idle_enabled
|
||||
echo N > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/idle_enabled
|
||||
echo N > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/suspend_enabled
|
||||
echo N > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/suspend_enabled
|
||||
# Turn on sleep modes
|
||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
# Scuba perf/power tunings
|
||||
case "$soc_id" in
|
||||
"441" | "471" | "473" | "474" )
|
||||
|
|
@ -5092,186 +5228,206 @@ esac
|
|||
|
||||
case "$target" in
|
||||
"msmnile")
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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 10 > /proc/sys/kernel/sched_group_downmigrate
|
||||
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
||||
|
||||
# cpuset parameters
|
||||
echo 0-3 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||
target_varient=`getprop ro.build.product`
|
||||
if [ "$target_varient" == "msmnile_gvmq" ]; then
|
||||
echo 4-7 > /dev/cpuset/background/cpus
|
||||
echo 4-7 > /dev/cpuset/system-background/cpus
|
||||
|
||||
# Turn off scheduler boost at the end
|
||||
echo 0 > /proc/sys/kernel/sched_boost
|
||||
# Enable oom_reaper
|
||||
if [ -f /sys/module/lowmemorykiller/parameters/oom_reaper ]; then
|
||||
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
||||
else
|
||||
echo 1 > /proc/sys/vm/reap_mem_on_sigkill
|
||||
fi
|
||||
# Disable wsf, 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 governor settings for silver cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 1209600 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq
|
||||
echo 576000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/pl
|
||||
|
||||
# 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/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 1612800 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/hispeed_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/pl
|
||||
|
||||
# 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/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 1612800 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/pl
|
||||
|
||||
# configure input boost settings
|
||||
echo "0:1324800" > /sys/module/cpu_boost/parameters/input_boost_freq
|
||||
echo 120 > /sys/module/cpu_boost/parameters/input_boost_ms
|
||||
|
||||
# Disable wsf, beacause we are using efk.
|
||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||
|
||||
echo 0-3 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||
|
||||
# Enable oom_reaper
|
||||
if [ -f /sys/module/lowmemorykiller/parameters/oom_reaper ]; then
|
||||
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
||||
else
|
||||
# Disable wsf, beacause we are using efk.
|
||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||
# Enable oom_reaper
|
||||
echo 1 > /proc/sys/vm/reap_mem_on_sigkill
|
||||
fi
|
||||
|
||||
# Enable bus-dcvs
|
||||
for device in /sys/devices/platform/soc
|
||||
do
|
||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo "2288 4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||
echo 50 > $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/guard_band_mbps
|
||||
echo 250 > $cpubw/bw_hwmon/up_scale
|
||||
echo 1600 > $cpubw/bw_hwmon/idle_mbps
|
||||
echo 14236 > $cpubw/max_freq
|
||||
echo 40 > $cpubw/polling_interval
|
||||
done
|
||||
else
|
||||
# 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
|
||||
|
||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $llccbw/governor
|
||||
echo "1720 2929 3879 5931 6881 7980" > $llccbw/bw_hwmon/mbps_zones
|
||||
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 6881 > $llccbw/max_freq
|
||||
echo 40 > $llccbw/polling_interval
|
||||
done
|
||||
# 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
|
||||
|
||||
for npubw in $device/*npu-npu-ddr-bw/devfreq/*npu-npu-ddr-bw
|
||||
do
|
||||
echo 1 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||
echo "bw_hwmon" > $npubw/governor
|
||||
echo "1720 2929 3879 5931 6881 7980" > $npubw/bw_hwmon/mbps_zones
|
||||
echo 4 > $npubw/bw_hwmon/sample_ms
|
||||
echo 80 > $npubw/bw_hwmon/io_percent
|
||||
echo 20 > $npubw/bw_hwmon/hist_memory
|
||||
echo 6 > $npubw/bw_hwmon/hyst_length
|
||||
echo 30 > $npubw/bw_hwmon/down_thres
|
||||
echo 0 > $npubw/bw_hwmon/guard_band_mbps
|
||||
echo 250 > $npubw/bw_hwmon/up_scale
|
||||
echo 0 > $npubw/bw_hwmon/idle_mbps
|
||||
echo 40 > $npubw/polling_interval
|
||||
echo 0 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||
# Disable Core control on silver
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/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 10 > /proc/sys/kernel/sched_group_downmigrate
|
||||
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
||||
|
||||
echo 0-3 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||
|
||||
|
||||
# Turn off scheduler boost at the end
|
||||
echo 0 > /proc/sys/kernel/sched_boost
|
||||
|
||||
# configure governor settings for silver cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 1209600 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq
|
||||
echo 576000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/pl
|
||||
|
||||
# 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/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 1612800 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/hispeed_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/pl
|
||||
|
||||
# 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/up_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 1612800 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/pl
|
||||
|
||||
# configure input boost settings
|
||||
echo "0:1324800" > /sys/module/cpu_boost/parameters/input_boost_freq
|
||||
echo 120 > /sys/module/cpu_boost/parameters/input_boost_ms
|
||||
|
||||
# Disable wsf, beacause we are using efk.
|
||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||
|
||||
# Enable oom_reaper
|
||||
if [ -f /sys/module/lowmemorykiller/parameters/oom_reaper ]; then
|
||||
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
||||
else
|
||||
echo 1 > /proc/sys/vm/reap_mem_on_sigkill
|
||||
fi
|
||||
|
||||
# Enable bus-dcvs
|
||||
for device in /sys/devices/platform/soc
|
||||
do
|
||||
for cpubw in $device/*cpu-cpu-llcc-bw/devfreq/*cpu-cpu-llcc-bw
|
||||
do
|
||||
echo "bw_hwmon" > $cpubw/governor
|
||||
echo "2288 4577 7110 9155 12298 14236 15258" > $cpubw/bw_hwmon/mbps_zones
|
||||
echo 4 > $cpubw/bw_hwmon/sample_ms
|
||||
echo 50 > $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/guard_band_mbps
|
||||
echo 250 > $cpubw/bw_hwmon/up_scale
|
||||
echo 1600 > $cpubw/bw_hwmon/idle_mbps
|
||||
echo 14236 > $cpubw/max_freq
|
||||
echo 40 > $cpubw/polling_interval
|
||||
done
|
||||
|
||||
for llccbw in $device/*cpu-llcc-ddr-bw/devfreq/*cpu-llcc-ddr-bw
|
||||
do
|
||||
echo "bw_hwmon" > $llccbw/governor
|
||||
echo "1720 2929 3879 5931 6881 7980" > $llccbw/bw_hwmon/mbps_zones
|
||||
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 6881 > $llccbw/max_freq
|
||||
echo 40 > $llccbw/polling_interval
|
||||
done
|
||||
|
||||
for npubw in $device/*npu-npu-ddr-bw/devfreq/*npu-npu-ddr-bw
|
||||
do
|
||||
echo 1 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||
echo "bw_hwmon" > $npubw/governor
|
||||
echo "1720 2929 3879 5931 6881 7980" > $npubw/bw_hwmon/mbps_zones
|
||||
echo 4 > $npubw/bw_hwmon/sample_ms
|
||||
echo 80 > $npubw/bw_hwmon/io_percent
|
||||
echo 20 > $npubw/bw_hwmon/hist_memory
|
||||
echo 6 > $npubw/bw_hwmon/hyst_length
|
||||
echo 30 > $npubw/bw_hwmon/down_thres
|
||||
echo 0 > $npubw/bw_hwmon/guard_band_mbps
|
||||
echo 250 > $npubw/bw_hwmon/up_scale
|
||||
echo 0 > $npubw/bw_hwmon/idle_mbps
|
||||
echo 40 > $npubw/polling_interval
|
||||
echo 0 > /sys/devices/virtual/npu/msm_npu/pwr
|
||||
done
|
||||
done
|
||||
|
||||
# memlat specific settings are moved to seperate file under
|
||||
# device/target specific folder
|
||||
setprop vendor.dcvs.prop 1
|
||||
# memlat specific settings are moved to seperate file under
|
||||
# device/target specific folder
|
||||
setprop vendor.dcvs.prop 1
|
||||
|
||||
if [ -f /sys/devices/soc0/hw_platform ]; then
|
||||
hw_platform=`cat /sys/devices/soc0/hw_platform`
|
||||
else
|
||||
hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform`
|
||||
fi
|
||||
|
||||
if [ -f /sys/devices/soc0/platform_subtype_id ]; then
|
||||
platform_subtype_id=`cat /sys/devices/soc0/platform_subtype_id`
|
||||
fi
|
||||
|
||||
case "$hw_platform" in
|
||||
"MTP" | "Surf" | "RCM" )
|
||||
# Start Host based Touch processing
|
||||
case "$platform_subtype_id" in
|
||||
"0" | "1" | "2" | "3" | "4")
|
||||
start_hbtp
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"HDK" )
|
||||
if [ -d /sys/kernel/hbtpsensor ] ; then
|
||||
start_hbtp
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
configure_memory_parameters
|
||||
target_type=`getprop ro.hardware.type`
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_id=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
if [ "$target_type" == "automotive" ]; then
|
||||
# update frequencies
|
||||
if [ "$soc_id" == "340" ] | [ "$soc_id" == "405" ]; then #sa8195
|
||||
configure_automotive_sku_parameters_sa8195
|
||||
else #sa8155
|
||||
configure_automotive_sku_parameters
|
||||
fi
|
||||
if [ -f /sys/devices/soc0/hw_platform ]; then
|
||||
hw_platform=`cat /sys/devices/soc0/hw_platform`
|
||||
else
|
||||
hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform`
|
||||
fi
|
||||
|
||||
if [ -f /sys/devices/soc0/platform_subtype_id ]; then
|
||||
platform_subtype_id=`cat /sys/devices/soc0/platform_subtype_id`
|
||||
fi
|
||||
|
||||
case "$hw_platform" in
|
||||
"MTP" | "Surf" | "RCM" )
|
||||
# Start Host based Touch processing
|
||||
case "$platform_subtype_id" in
|
||||
"0" | "1" | "2" | "3" | "4")
|
||||
start_hbtp
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"HDK" )
|
||||
if [ -d /sys/kernel/hbtpsensor ] ; then
|
||||
start_hbtp
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
configure_memory_parameters
|
||||
target_type=`getprop ro.hardware.type`
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_id=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
if [ "$target_type" == "automotive" ]; then
|
||||
# update frequencies
|
||||
if [ "$soc_id" == "340" ] | [ "$soc_id" == "405" ]; then #sa8195
|
||||
configure_automotive_sku_parameters_sa8195
|
||||
else #sa8155
|
||||
configure_automotive_sku_parameters
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ] || [ "$soc_id" -eq 475 ] || [ "$soc_id" -eq 515 ]; then
|
||||
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
|
||||
|
|
@ -39,7 +39,7 @@ else
|
|||
for i in 0 1 2 3 4 5 6 7 8 9
|
||||
do
|
||||
devname=`cat /sys/bus/iio/devices/iio:device$i/name`
|
||||
if [[ "$devname" == *smb* ]] || [[ "$devname" == *qg* ]] || [[ "$devname" == *div2_cp* ]]; then
|
||||
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
|
||||
|
|
|
|||
|
|
@ -43,12 +43,16 @@ fi
|
|||
target_qssi=`getprop vendor.media.target.qssi`
|
||||
target=`getprop ro.board.platform`
|
||||
build_codename=`getprop vendor.media.system.build_codename`
|
||||
product=`getprop ro.build.product`
|
||||
|
||||
case "$target" in
|
||||
"lahaina")
|
||||
case "$soc_hwid" in
|
||||
475|515)
|
||||
setprop vendor.media.target_variant "_yupik_v0"
|
||||
setprop vendor.netflix.bsp_rev "Q7325-SPY-33758-1"
|
||||
if [ $build_codename -le "12" ]; then
|
||||
setprop vendor.netflix.bsp_rev "Q7325-SPY-33758-1"
|
||||
fi
|
||||
sku_ver=`cat /sys/devices/platform/soc/aa00000.qcom,vidc/sku_version` 2> /dev/null
|
||||
if [ $sku_ver -eq 1 ]; then
|
||||
setprop vendor.media.target_variant "_yupik_v1"
|
||||
|
|
@ -56,7 +60,7 @@ case "$target" in
|
|||
;;
|
||||
450)
|
||||
setprop vendor.media.target_variant "_shima_v3"
|
||||
if [ $build_codename -eq "11" ]; then
|
||||
if [ $build_codename -le "12" ]; then
|
||||
setprop vendor.netflix.bsp_rev "Q875-32774-1"
|
||||
fi
|
||||
sku_ver=`cat /sys/devices/platform/soc/aa00000.qcom,vidc/sku_version` 2> /dev/null
|
||||
|
|
@ -66,13 +70,16 @@ case "$target" in
|
|||
setprop vendor.media.target_variant "_shima_v2"
|
||||
fi
|
||||
;;
|
||||
497|498)
|
||||
setprop vendor.media.target_variant "_yupik_iot"
|
||||
;;
|
||||
*)
|
||||
if [ $target_qssi == "true" ]; then
|
||||
setprop vendor.media.target_variant "_lahaina_vendor"
|
||||
else
|
||||
setprop vendor.media.target_variant "_lahaina"
|
||||
fi
|
||||
if [ $build_codename -eq "11" ]; then
|
||||
if [ $build_codename -le "12" ]; then
|
||||
setprop vendor.netflix.bsp_rev "Q875-32408-1"
|
||||
fi
|
||||
;;
|
||||
|
|
@ -82,10 +89,13 @@ case "$target" in
|
|||
case "$soc_hwid" in
|
||||
507)
|
||||
setprop vendor.media.target_variant "_blair"
|
||||
if [ $build_codename -le "12" ]; then
|
||||
setprop vendor.netflix.bsp_rev "Q4350-32962-1"
|
||||
fi
|
||||
;;
|
||||
454|472)
|
||||
setprop vendor.media.target_variant "_holi"
|
||||
if [ $build_codename -eq "11" ]; then
|
||||
if [ $build_codename -le "12" ]; then
|
||||
setprop vendor.netflix.bsp_rev "Q4350-32962-1"
|
||||
fi
|
||||
;;
|
||||
|
|
@ -93,8 +103,24 @@ case "$target" in
|
|||
;;
|
||||
"msmnile")
|
||||
setprop vendor.media.target_variant "_msmnile"
|
||||
if [ $product == "msmnile_gvmq" ]; then
|
||||
case "$soc_hwid" in
|
||||
460)
|
||||
setprop vendor.media.target_variant "_direwolf"
|
||||
;;
|
||||
377)
|
||||
setprop vendor.media.target_variant "_sm6150"
|
||||
;;
|
||||
362|405)
|
||||
setprop vendor.media.target_variant "_msmnile"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
"sm6150")
|
||||
setprop vendor.media.target_variant "_sm6150"
|
||||
;;
|
||||
"direwolf")
|
||||
setprop vendor.media.target_variant "_direwolf"
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -15,10 +15,13 @@ setprop ro.vendor.qti.soc_id $soc_id
|
|||
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
|
||||
setprop ro.vendor.qti.soc_model SM8350
|
||||
elif [ "$soc_id" -eq 450 ]; then
|
||||
setprop ro.vendor.qti.soc_name shima
|
||||
setprop ro.vendor.qti.soc_model SM7350
|
||||
elif [ "$soc_id" -eq 475 ] || [ "$soc_id" -eq 499 ] ||
|
||||
[ "$soc_id" -eq 497 ] || [ "$soc_id" -eq 498 ] ||
|
||||
[ "$soc_id" -eq 515 ]; then
|
||||
setprop ro.vendor.qti.soc_name yupik
|
||||
setprop ro.vendor.qti.soc_model SM7325
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
on charger
|
||||
stop vendor.sensors
|
||||
wait /sys/class/power_supply/battery
|
||||
start vendor.thermal-com
|
||||
start system_suspend
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ on property:ro.boot.default_usb_mode=device && property:vendor.usb.controller=*
|
|||
setprop sys.usb.controller ${vendor.usb.controller}
|
||||
write /sys/class/udc/${vendor.usb.controller}/device/../mode peripheral
|
||||
|
||||
on early-boot
|
||||
# Permission for Health Storage HAL
|
||||
chown system system /sys/devices/platform/soc/1d84000.ufshc/manual_gc
|
||||
chown system system /sys/devices/platform/soc/1d84000.ufshc/ufshid/trigger
|
||||
#sync power supply with healthd
|
||||
wait /sys/class/power_supply/battery
|
||||
wait /sys/class/power_supply/usb
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ on post-fs-data
|
|||
mkdir /data/vendor/bug2go 0770 log log
|
||||
|
||||
# Setup folder for aplogd
|
||||
mkdir /data/vendor/aplogd 0750 log log
|
||||
mkdir /data/vendor/aplogd 0770 log log
|
||||
|
||||
# Subsystem RAM-dumps
|
||||
mkdir /data/vendor/ss-ram-dumps 0750 system log
|
||||
|
|
@ -411,3 +411,13 @@ service vendor.sensors-hal-2-0-multihal /vendor/bin/hw/android.hardware.sensors@
|
|||
writepid /dev/cpuset/system-background/tasks
|
||||
capabilities BLOCK_SUSPEND
|
||||
rlimit rtprio 10 10
|
||||
|
||||
# from hardware/interfaces/sensors/2.1/multihal
|
||||
# to add input and uhid group access
|
||||
service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@2.1-service.multihal
|
||||
class hal
|
||||
user system
|
||||
group system wakelock context_hub input uhid
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
capabilities BLOCK_SUSPEND
|
||||
rlimit rtprio 10 10
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
on init
|
||||
mount configfs none /config
|
||||
mkdir /config/usb_gadget/g1 0770
|
||||
mkdir /config/usb_gadget/g1 0775
|
||||
mkdir /config/usb_gadget/g2 0770
|
||||
mkdir /config/usb_gadget/g1/strings/0x409 0770
|
||||
mkdir /config/usb_gadget/g2/strings/0x409 0770
|
||||
|
|
@ -77,18 +77,28 @@ on init
|
|||
"
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/wWidth 640
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/wHeight 360
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/dwMaxVideoFrameBufferSize 345600
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/dwMinBitRate 41472000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/dwMaxBitRate 82944000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/dwMaxVideoFrameBufferSize 460800
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/dwMinBitRate 55296000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/360p/dwMaxBitRate 110592000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p/dwFrameInterval \
|
||||
"500000
|
||||
666666
|
||||
"
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p/wWidth 640
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p/wHeight 480
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p/dwMaxVideoFrameBufferSize 614400
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p/dwMinBitRate 73728000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/480p/dwMaxBitRate 98304000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwFrameInterval \
|
||||
"1000000
|
||||
"
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/wWidth 1280
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/wHeight 720
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwMaxVideoFrameBufferSize 1382400
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwMinBitRate 110592000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwMaxBitRate 165888000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwMaxVideoFrameBufferSize 1843200
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwMinBitRate 147456000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed/u/720p/dwMaxBitRate 147456000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwFrameInterval \
|
||||
|
|
@ -100,6 +110,16 @@ on init
|
|||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMaxVideoFrameBufferSize 345600
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMinBitRate 41472000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMaxBitRate 82944000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwFrameInterval \
|
||||
"333333
|
||||
666666
|
||||
"
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/wWidth 640
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/wHeight 480
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMaxVideoFrameBufferSize 460800
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMinBitRate 55296000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMaxBitRate 110592000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwFrameInterval \
|
||||
"333333
|
||||
|
|
@ -110,6 +130,16 @@ on init
|
|||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize 1382400
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMinBitRate 165888000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMaxBitRate 331776000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p/dwFrameInterval \
|
||||
"333333
|
||||
666666
|
||||
"
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p/wWidth 1280
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p/wHeight 960
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p/dwMaxVideoFrameBufferSize 1843200
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p/dwMinBitRate 221184000
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/960p/dwMaxBitRate 442368000
|
||||
mkdir /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p
|
||||
write /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwFrameInterval \
|
||||
"333333
|
||||
|
|
@ -572,6 +602,46 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=ncm,webcam,adb && pro
|
|||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=readyfor && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "readyfor"
|
||||
rm /config/usb_gadget/g1/configs/b.1/f1
|
||||
rm /config/usb_gadget/g1/configs/b.1/f2
|
||||
rm /config/usb_gadget/g1/configs/b.1/f3
|
||||
rm /config/usb_gadget/g1/configs/b.1/f4
|
||||
rm /config/usb_gadget/g1/configs/b.1/f5
|
||||
rm /config/usb_gadget/g1/configs/b.1/f6
|
||||
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 0x22b8
|
||||
write /config/usb_gadget/g1/idProduct 0x2e46
|
||||
symlink /config/usb_gadget/g1/functions/${vendor.usb.rndis.func.name}.rndis /config/usb_gadget/g1/configs/b.1/f1
|
||||
write /config/usb_gadget/g1/configs/b.1/f1/wceis 1
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=readyfor,adb && property:sys.usb.configfs=1
|
||||
start adbd
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=readyfor,adb && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "readyfor_adb"
|
||||
rm /config/usb_gadget/g1/configs/b.1/f1
|
||||
rm /config/usb_gadget/g1/configs/b.1/f2
|
||||
rm /config/usb_gadget/g1/configs/b.1/f3
|
||||
rm /config/usb_gadget/g1/configs/b.1/f4
|
||||
rm /config/usb_gadget/g1/configs/b.1/f5
|
||||
rm /config/usb_gadget/g1/configs/b.1/f6
|
||||
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 0x22b8
|
||||
write /config/usb_gadget/g1/idProduct 0x2e47
|
||||
symlink /config/usb_gadget/g1/functions/${vendor.usb.rndis.func.name}.rndis /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/configs/b.1/f1/wceis 1
|
||||
write /config/usb_gadget/g1/UDC ${sys.usb.controller}
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=ptp && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/idProduct 0x2e83
|
||||
write /config/usb_gadget/g1/idVendor 0x22b8
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ on post-fs-data
|
|||
mkdir /data/vendor/pwr 0700 root root
|
||||
|
||||
# Create directory used by media clients
|
||||
mkdir /data/vendor/media 0770 mediacodec media
|
||||
mkdir /data/vendor/media 0775 mediacodec media
|
||||
|
||||
# Create /data/vendor/tzstorage directory for SFS listener
|
||||
mkdir /data/vendor/tzstorage 0770 system system
|
||||
|
|
|
|||
|
|
@ -9,3 +9,4 @@ on early-init
|
|||
# Set ro.boot.product.vendor.sku to soc_name
|
||||
exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.qcv.sh
|
||||
setprop ro.boot.product.vendor.sku ${ro.vendor.qti.soc_name}
|
||||
setprop ro.soc.model ${ro.vendor.qti.soc_model}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2012-2015, 2017-2019, The Linux Foundation. All rights reserved.
|
||||
# Copyright (c) 2012-2015, 2017-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:
|
||||
|
|
@ -32,10 +32,7 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
|
||||
# the DIAG device node is not world writable/readable.
|
||||
/dev/diag 0660 system oem_2901
|
||||
/dev/ttydiag0 0660 system oem_2901
|
||||
/dev/ttydiag1 0660 system oem_2901
|
||||
/dev/ttydiag2 0660 system oem_2901
|
||||
/dev/ttydiag3 0660 system oem_2901
|
||||
/dev/mhi_*_pipe_4 0660 system system
|
||||
|
||||
/dev/genlock 0666 system system
|
||||
/dev/wlan 0660 wifi wifi
|
||||
|
|
@ -44,6 +41,7 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/dev/kgsl-2d0 0666 root root
|
||||
/dev/kgsl-2d1 0666 root root
|
||||
/dev/ion 0664 system system
|
||||
/dev/membuf 0664 system system
|
||||
/dev/rtc0 0660 system system
|
||||
/dev/smd0 0660 system system
|
||||
/dev/smd4 0660 system system
|
||||
|
|
@ -61,6 +59,11 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/dev/ipa_adpl 0660 system oem_2905
|
||||
/dev/synx_device 0660 root camera
|
||||
/dev/hab 0666 system system
|
||||
/dev/hgsl 0666 system system
|
||||
/dev/iio:device* 0664 system system
|
||||
|
||||
#permissions for UFS RPMB BSG device node
|
||||
/dev/0:0:0:49476 0600 system system
|
||||
|
||||
#permissions for CSVT
|
||||
/dev/smd11 0660 radio radio
|
||||
|
|
@ -131,7 +134,6 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/dev/cvp* 0660 system camera
|
||||
/dev/media* 0660 system camera
|
||||
/dev/v4l-subdev* 0660 system camera
|
||||
/dev/cci_intf 0660 system camera
|
||||
/dev/qseecom 0660 system drmrpc
|
||||
/dev/qce 0660 system drmrpc
|
||||
/dev/smcinvoke 0660 system drmrpc
|
||||
|
|
@ -144,12 +146,12 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/dev/sp_nvm 0660 system system
|
||||
/dev/sp_ssr 0660 system system
|
||||
/dev/sp_keymaster 0660 system system
|
||||
/dev/sp_keymaster_ssr 0660 system system
|
||||
/dev/sec_nvm_* 0660 system system
|
||||
/dev/cryptoapp 0660 system system
|
||||
/dev/spdaemon_ssr 0660 system system
|
||||
/dev/iuicc 0660 system system
|
||||
/dev/iuicc0 0660 system system
|
||||
/dev/iuicc1 0660 system system
|
||||
/dev/spu_hal_ssr 0660 system system
|
||||
/dev/iuicc* 0660 system system
|
||||
/dev/gemini0 0660 system camera
|
||||
/dev/jpeg0 0660 system camera
|
||||
/dev/jpeg1 0660 system camera
|
||||
|
|
@ -172,13 +174,19 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
#qvr
|
||||
/dev/qvr_external_sensor_ioctl 0660 system system
|
||||
/sys/kernel/qvr_external_sensor/fd 0660 system system
|
||||
/dev/bus/usb/* 0660 root usb
|
||||
/dev/hidraw* 0660 root usb
|
||||
|
||||
# wlan
|
||||
/dev/wcnss_wlan 0660 system system
|
||||
/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/*.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
|
||||
/sys/devices/platform/soc/17a10040.qcom,wcn6750/net/wlan*/queues/rx-* rps_cpus 0660 system system
|
||||
/dev/spidev0.0 0660 system audio
|
||||
/dev/i2c-7 0660 system audio
|
||||
/dev/msm_camera/* 0660 system camera
|
||||
/dev/gemini/ 0660 system camera
|
||||
/dev/mercury0 0660 system camera
|
||||
|
|
@ -231,6 +239,8 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/dev/i2c-5 0660 media media
|
||||
/dev/avtimer 0660 system audio
|
||||
/dev/spidev2.0 0660 system audio
|
||||
/dev/spidev22.0 0660 system audio
|
||||
/dev/spidev10.0 0660 system audio
|
||||
|
||||
# DVB devices
|
||||
/dev/dvb/adapter0/demux* 0440 media media
|
||||
|
|
@ -262,13 +272,8 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system
|
||||
/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system
|
||||
/sys/devices/virtual/input/input* poll 0660 root input
|
||||
/sys/devices/virtual/input/input* pollrate_ms 0660 root input
|
||||
/sys/devices/virtual/input/input* enable 0660 root input
|
||||
/sys/devices/virtual/input/input* enable_wakeup 0660 root input
|
||||
/sys/devices/virtual/input/input* flush 0660 root input
|
||||
/sys/devices/virtual/input/input* max_latency 0660 root input
|
||||
/sys/devices/virtual/input/input* poll_delay 0660 root input
|
||||
/sys/devices/virtual/input/input* poll 0660 input system
|
||||
/sys/devices/virtual/input/input* pollrate_ms 0660 input system
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch 0440 system drmrpc
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch_enable 0660 system drmrpc
|
||||
/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch 0440 system drmrpc
|
||||
|
|
@ -289,7 +294,7 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/sys/devices/virtual/input/input* enable_ps_sensor 0660 system input
|
||||
/sys/devices/virtual/input/input* set_delay_ms 0660 system input
|
||||
/sys/devices/virtual/input/input* do_flush 0660 system input
|
||||
/dev/laser 0660 system camera
|
||||
/dev/stmvl53l5 0660 system camera
|
||||
|
||||
# vm_bms
|
||||
/dev/vm_bms 0660 system system
|
||||
|
|
@ -333,6 +338,19 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/sys/class/fts/touch_aoi aoi_set 0660 root system
|
||||
/sys/class/fts/touch_aoi power_set 0660 root system
|
||||
|
||||
# Goodix fingerprint device
|
||||
/dev/goodix_fp 0660 system system
|
||||
|
||||
# EgisTech fingerprint device
|
||||
/dev/esfp0 0660 system system
|
||||
|
||||
# Change permission for FPC fingerprint
|
||||
/sys/class/fingerprint/fpc1020 nav 0440 system system
|
||||
/sys/class/fingerprint/fpc1020 irq 0440 system system
|
||||
/sys/class/fingerprint/fpc1020 irq_cnt 0440 system system
|
||||
/sys/class/fingerprint/fpc1020 dev_enable 0220 system system
|
||||
/sys/class/fingerprint/fpc1020 vendor 0444 system system
|
||||
|
||||
#ImproveTouch device
|
||||
/dev/hbtp_input 0660 system system
|
||||
/dev/hbtp_vm 0660 system system
|
||||
|
|
@ -352,7 +370,14 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/dev/block/platform/soc/8804000.sdhci/by-name/frp 0600 system system
|
||||
|
||||
# Add device block for MISC
|
||||
/dev/block/platform/soc/7464900.sdhci/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/624000.ufshc/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/1da4000.ufshc/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/c0c4000.sdhci/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/7c4000.sdhci/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/4744000.sdhci/by-name/misc 0660 root system
|
||||
/dev/block/platform/soc/4804000.ufshc/by-name/misc 0660 root system
|
||||
|
||||
# Kmsg device
|
||||
/dev/kmsg 0620 root system
|
||||
|
|
@ -361,12 +386,15 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/sys/class/leds/red delay_on 0640 system system
|
||||
/sys/class/leds/red delay_off 0640 system system
|
||||
/sys/class/leds/red breath 0640 system system
|
||||
/sys/class/leds/red trigger 0640 system system
|
||||
/sys/class/leds/green delay_on 0640 system system
|
||||
/sys/class/leds/green delay_off 0640 system system
|
||||
/sys/class/leds/green breath 0640 system system
|
||||
/sys/class/leds/green trigger 0640 system system
|
||||
/sys/class/leds/blue delay_on 0640 system system
|
||||
/sys/class/leds/blue delay_off 0640 system system
|
||||
/sys/class/leds/blue breath 0640 system system
|
||||
/sys/class/leds/blue trigger 0640 system system
|
||||
|
||||
# NPU device
|
||||
/dev/msm_npu 0644 system system
|
||||
|
|
@ -410,29 +438,73 @@ firmware_directories /vendor/firmware_mnt/image/
|
|||
/sys/class/graphics/fb0 modes 0664 system graphics
|
||||
/sys/class/graphics/fb0 mode 0664 system graphics
|
||||
/sys/class/graphics/fb0 msm_cmd_autorefresh_en 0664 system graphics
|
||||
*/
|
||||
|
||||
/sys/devices/platform/soc/ae00000.qcom,mdss_mdp power/control 0664 system graphics
|
||||
|
||||
#asm330 sensor
|
||||
#common sensors files
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* buffer/enable 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* buffer/length 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* buffer/watermark 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* discharded_samples 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* current_timestamp_clock 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* hwfifo_flush 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* hwfifo_watermark 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* hwfifo_watermark_max 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* mount_matrix 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* name 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* sampling_frequency 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* sampling_frequency_available 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_timestamp_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_timestamp_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_timestamp_type 0664 system system
|
||||
|
||||
# standard iio accel attributes
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_scale_available 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_x_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_x_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_y_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_y_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_z_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_accel_z_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_x_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_x_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_x_type 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_y_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_y_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_y_type 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_z_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_z_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_accel_z_type 0664 system system
|
||||
|
||||
# standard iio gyro attributes
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_scale_available 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_x_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_x_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_y_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_y_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_z_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_anglvel_z_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_x_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_x_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_x_type 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_y_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_y_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_y_type 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_z_en 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_z_index 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* scan_elements/in_anglvel_z_type 0664 system system
|
||||
|
||||
|
||||
# standard iio temp attributes
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_offset 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_raw 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_scale 0664 system system
|
||||
/sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_scale_available 0664 system system
|
||||
|
||||
# I2C
|
||||
/dev/i2c-* 0660 system system
|
||||
|
||||
# Egistec fingerprint
|
||||
/dev/esfp0 0660 system system
|
||||
|
||||
# Goodix FPS
|
||||
/dev/goodix_fp 0664 system system
|
||||
|
||||
# Change permission for FPC fingerprint
|
||||
/sys/class/fingerprint/fpc1020 nav 0440 system system
|
||||
/sys/class/fingerprint/fpc1020 irq 0440 system system
|
||||
/sys/class/fingerprint/fpc1020 irq_cnt 0440 system system
|
||||
/sys/class/fingerprint/fpc1020 dev_enable 0220 system system
|
||||
/sys/class/fingerprint/fpc1020 vendor 0444 system system
|
||||
|
||||
# Motorola: Add for QVR(qvrservice) to access the glass usb device
|
||||
/dev/bus/usb/001/* 0660 system system
|
||||
/dev/bus/usb/002/* 0660 system system
|
||||
|
||||
# Motorola: Add for HIDRAW to access the glass usb device
|
||||
/dev/hidraw* 0660 uhid uhid
|
||||
|
||||
# NFC ST Driver permissions
|
||||
/dev/st21nfc 0660 nfc nfc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue