You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
300 lines
15 KiB
300 lines
15 KiB
# Copyright (c) 2013-2018,2020, The Linux Foundation. All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms, with or without
|
|
# modification, are permitted provided that the following conditions are
|
|
# met:
|
|
# * Redistributions of source code must retain the above copyright
|
|
# notice, this list of conditions and the following disclaimer.
|
|
# * Redistributions in binary form must reproduce the above
|
|
# copyright notice, this list of conditions and the following
|
|
# disclaimer in the documentation and/or other materials provided
|
|
# with the distribution.
|
|
# * Neither the name of The Linux Foundation nor the names of its
|
|
# contributors may be used to endorse or promote products derived
|
|
# from this software without specific prior written permission.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED "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.
|
|
#
|
|
#
|
|
|
|
import /vendor/etc/init/hw/init.samsung.bsp.rc
|
|
import /vendor/etc/init/hw/init.samsung.display.rc
|
|
|
|
on early-init
|
|
mkdir /mnt/vendor/efs 0771 radio system
|
|
mkdir /mnt/vendor/persist 0771 root system
|
|
|
|
on init
|
|
symlink /dev/block/bootdevice/by-name/steady /dev/block/steady
|
|
symlink /dev/block/bootdevice/by-name/persistent /dev/block/persistent
|
|
|
|
# Create carrier folder for HiddenMenu
|
|
on post-fs
|
|
mkdir /efs/carrier 0755 system system
|
|
restorecon_recursive /efs
|
|
|
|
restorecon_recursive /mnt/vendor/efs
|
|
chown radio system /mnt/vendor/efs
|
|
chmod 0771 /mnt/vendor/efs
|
|
|
|
chown system radio /efs
|
|
chmod 0771 /efs
|
|
restorecon /efs
|
|
|
|
# carrier partition
|
|
chown system system /carrier
|
|
chmod 0771 /carrier
|
|
restorecon /carrier
|
|
|
|
# Meta event
|
|
chown system radio /sys/class/sensors/sensor_dev/flush
|
|
|
|
# Fingerprint sensor
|
|
chmod 0660 /dev/goodix_fp
|
|
chown system system /dev/goodix_fp
|
|
chown system radio /sys/class/fingerprint/fingerprint/type_check
|
|
chown system radio /sys/class/fingerprint/fingerprint/name
|
|
chown system radio /sys/class/fingerprint/fingerprint/vendor
|
|
chown system radio /sys/class/fingerprint/fingerprint/adm
|
|
chown system radio /sys/class/fingerprint/fingerprint/bfs_values
|
|
chown system radio /sys/class/fingerprint/fingerprint/rb
|
|
mkdir /efs/biometrics 0770 system system
|
|
mkdir /efs/biometrics/meta 0770 system system
|
|
|
|
# spu partition
|
|
chown system system /spu
|
|
chmod 0771 /spu
|
|
restorecon /spu
|
|
|
|
on boot
|
|
# Permission for nfc, eSE driver
|
|
chmod 0660 /dev/pn547
|
|
chmod 0660 /dev/p61
|
|
chown nfc nfc /dev/pn547
|
|
chown system system /dev/p61
|
|
chmod 0660 /dev/sec-nfc
|
|
chown nfc nfc /dev/sec-nfc
|
|
|
|
#Camera Start
|
|
|
|
#Camera SVC
|
|
chown system system /sys/devices/svc/Camera/SVC_front_module
|
|
chown system system /sys/devices/svc/Camera/SVC_rear_module
|
|
chown system system /sys/devices/svc/Camera/SVC_rear_module2
|
|
chown system system /sys/devices/svc/Camera/SVC_rear_module3
|
|
chown system system /sys/devices/svc/Camera/SVC_rear_module4
|
|
|
|
# Camera Dual
|
|
chown system system /sys/class/camera/dual/fallback
|
|
|
|
#Camera Rear
|
|
chown system system /sys/class/camera/rear/cam_ln_test
|
|
chown system system /sys/class/camera/rear/isp_core
|
|
chown system system /sys/class/camera/rear/rear2_afcal
|
|
chown system system /sys/class/camera/rear/rear2_camfw
|
|
chown system system /sys/class/camera/rear/rear2_camfw_full
|
|
chown system system /sys/class/camera/rear/rear2_caminfo
|
|
chown system system /sys/class/camera/rear/rear2_camtype
|
|
chown system system /sys/class/camera/rear/rear2_checkfw_factory
|
|
chown system system /sys/class/camera/rear/rear2_checkfw_user
|
|
chown system system /sys/class/camera/rear/rear2_dualcal
|
|
chown system system /sys/class/camera/rear/rear2_dualcal_extra
|
|
chown system system /sys/class/camera/rear/rear2_dualcal_size
|
|
chown system system /sys/class/camera/rear/rear2_hwparam
|
|
chown system system /sys/class/camera/rear/rear2_moduleid
|
|
chown system system /sys/class/camera/rear/rear2_moduleinfo
|
|
chown system system /sys/class/camera/rear/rear2_mtf_exif
|
|
chown system system /sys/class/camera/rear/rear2_sensorid_exif
|
|
chown system system /sys/class/camera/rear/rear2_tilt
|
|
chown system system /sys/class/camera/rear/rear3_afcal
|
|
chown system system /sys/class/camera/rear/rear3_camfw
|
|
chown system system /sys/class/camera/rear/rear3_camfw_full
|
|
chown system system /sys/class/camera/rear/rear3_caminfo
|
|
chown system system /sys/class/camera/rear/rear3_camtype
|
|
chown system system /sys/class/camera/rear/rear3_dualcal
|
|
chown system system /sys/class/camera/rear/rear3_dualcal_extra
|
|
chown system system /sys/class/camera/rear/rear3_dualcal_size
|
|
chown system system /sys/class/camera/rear/rear3_moduleinfo
|
|
chown system system /sys/class/camera/rear/rear3_hwparam
|
|
chown system system /sys/class/camera/rear/rear3_mtf_exif
|
|
chown system system /sys/class/camera/rear/rear3_paf_cal_check
|
|
chown system system /sys/class/camera/rear/rear3_sensorid_exif
|
|
chown system system /sys/class/camera/rear/rear3_tilt
|
|
chown system system /sys/class/camera/rear/rear_afcal
|
|
chown system system /sys/class/camera/rear/rear_calcheck
|
|
chown system system /sys/class/camera/rear/rear_camfw
|
|
chown system system /sys/class/camera/rear/rear_camfw_full
|
|
chown system system /sys/class/camera/rear/rear_camfw_load
|
|
chown system system /sys/class/camera/rear/rear_caminfo
|
|
chown system system /sys/class/camera/rear/rear_camtype
|
|
chown system system /sys/class/camera/rear/rear_checkfw_factory
|
|
chown system system /sys/class/camera/rear/rear_checkfw_user
|
|
chown system system /sys/class/camera/rear/rear_dualcal
|
|
chown system system /sys/class/camera/rear/rear_dualcal_extra
|
|
chown system system /sys/class/camera/rear/rear_dualcal_size
|
|
chown system system /sys/class/camera/rear/rear_f2_paf_cal_check
|
|
chown system system /sys/class/camera/rear/rear_f2_paf_offset_far
|
|
chown system system /sys/class/camera/rear/rear_f2_paf_offset_mid
|
|
chown system system /sys/class/camera/rear/rear_frs_test
|
|
chown system system /sys/class/camera/rear/rear_hwparam
|
|
chown system system /sys/class/camera/rear/rear_moduleid
|
|
chown system system /sys/class/camera/rear/rear_moduleinfo
|
|
chown system system /sys/class/camera/rear/rear_mtf2_exif
|
|
chown system system /sys/class/camera/rear/rear_mtf_exif
|
|
chown system system /sys/class/camera/rear/rear_paf_cal_check
|
|
chown system system /sys/class/camera/rear/rear_paf_offset_mid
|
|
chown system system /sys/class/camera/rear/rear_sensorid_exif
|
|
chown system system /sys/class/camera/rear/ssrm_camera_info
|
|
chown system system /sys/class/camera/rear/supported_cameraIds
|
|
chown system system /sys/class/camera/rear/rear_paf_offset_far
|
|
chown system system /sys/class/camera/rear/rear4_afcal
|
|
chown system system /sys/class/camera/rear/rear4_camfw
|
|
chown system system /sys/class/camera/rear/rear4_camfw_full
|
|
chown system system /sys/class/camera/rear/rear4_caminfo
|
|
chown system system /sys/class/camera/rear/rear4_camtype
|
|
chown system system /sys/class/camera/rear/rear4_checkfw_factory
|
|
chown system system /sys/class/camera/rear/rear4_checkfw_user
|
|
chown system system /sys/class/camera/rear/rear4_camafcal
|
|
chown system system /sys/class/camera/rear/rear4_mtf_exif
|
|
chown system system /sys/class/camera/rear/rear4_sensorid_exif
|
|
chown system system /sys/class/camera/rear/rear4_moduleid
|
|
chown system system /sys/class/camera/rear/rear4_moduleinfo
|
|
chown system system /sys/class/camera/rear/rear4_caminfo
|
|
chown cameraserver cameraserver /sys/kernel/mm/vmscan/mem_boost_mode
|
|
|
|
# Camera::Rear ToF
|
|
chown system system /sys/class/camera/rear/rear_tof_caminfo
|
|
chown system system /sys/class/camera/rear/rear_tof_moduleinfo
|
|
chown system system /sys/class/camera/rear/rear_tof_camfw
|
|
chown system system /sys/class/camera/rear/rear_tof_camfw_full
|
|
chown system system /sys/class/camera/rear/rear_tof_checkfw_factory
|
|
chown system system /sys/class/camera/rear/rear_tof_sensorid_exif
|
|
chown system system /sys/class/camera/rear/rear_tofcal
|
|
chown system system /sys/class/camera/rear/rear_tofcal_extra
|
|
chown system system /sys/class/camera/rear/rear_tofcal_size
|
|
chown system system /sys/class/camera/rear/rear_tofcal_uid
|
|
chown system system /sys/class/camera/rear/rear_tof_dual_cal
|
|
chown system system /sys/class/camera/rear/rear_tof_cal_result
|
|
chown system system /sys/class/camera/rear/rear_tof_ld_onoff
|
|
chown system system /sys/class/camera/rear/rear_tof_ae_value
|
|
chown system system /sys/class/camera/rear/rear_tof_check_pd
|
|
chown system system /sys/class/camera/rear/rear_tof_fps
|
|
chown system system /sys/class/camera/rear/rear3_moduleid
|
|
chown system system /sys/class/camera/rear/rear_tof_freq
|
|
|
|
#Camera Front
|
|
chown system system /sys/class/camera/front/front_afcal
|
|
chown system system /sys/class/camera/front/front_camfw
|
|
chown system system /sys/class/camera/front/front_camfw_full
|
|
chown system system /sys/class/camera/front/front_caminfo
|
|
chown system system /sys/class/camera/front/front_camtype
|
|
chown system system /sys/class/camera/front/front_checkfw_factory
|
|
chown system system /sys/class/camera/front/front_checkfw_user
|
|
chown system system /sys/class/camera/front/front_hwparam
|
|
chown system system /sys/class/camera/front/front_mipi_clock
|
|
chown system system /sys/class/camera/front/front_moduleid
|
|
chown system system /sys/class/camera/front/front_moduleinfo
|
|
chown system system /sys/class/camera/front/front_mtf_exif
|
|
chown system system /sys/class/camera/front/front_sensorid_exif
|
|
|
|
#Camera Front2
|
|
chown system system /sys/class/camera/front/front2_camtype
|
|
chown system system /sys/class/camera/front/front2_mtf_exif
|
|
|
|
# Camera::Front ToF
|
|
chown system system /sys/class/camera/front/front_tof_caminfo
|
|
chown system system /sys/class/camera/front/front_tof_moduleinfo
|
|
chown system system /sys/class/camera/front/front_tof_camfw
|
|
chown system system /sys/class/camera/front/front_tof_camfw_full
|
|
chown system system /sys/class/camera/front/front_tof_checkfw_factory
|
|
chown system system /sys/class/camera/front/front_tof_sensorid_exif
|
|
chown system system /sys/class/camera/front/front_tofcal
|
|
chown system system /sys/class/camera/front/front_tofcal_extra
|
|
chown system system /sys/class/camera/front/front_tofcal_size
|
|
chown system system /sys/class/camera/front/front_tofcal_uid
|
|
chown system system /sys/class/camera/front/front_tof_dual_cal
|
|
chown system system /sys/class/camera/front/front_tof_cal_result
|
|
chown system system /sys/class/camera/front/front_tof_ld_onoff
|
|
chown system system /sys/class/camera/front/front_tof_ae_value
|
|
chown system system /sys/class/camera/front/front_tof_check_pd
|
|
chown system system /sys/class/camera/front/front_tof_fps
|
|
chown system system /sys/class/camera/front/front_tof_freq
|
|
|
|
#Camera Flash
|
|
chown system system /sys/class/camera/flash/rear_flash
|
|
|
|
# Camera::Ois
|
|
chown system system /sys/class/camera/ois/selftest
|
|
chown system system /sys/class/camera/ois/calibrationtest
|
|
chown system system /sys/class/camera/ois/ois_power
|
|
chown system system /sys/class/camera/ois/ois_rawdata
|
|
chown system system /sys/class/camera/ois/oisfw
|
|
chown system system /sys/class/camera/ois/ois_diff
|
|
chown system system /sys/class/camera/ois/ois_exif
|
|
chown system system /sys/class/camera/ois/autotest
|
|
chown system system /sys/class/camera/ois/autotest_2nd
|
|
chown system system /sys/class/camera/ois/ois_gain_rear
|
|
chown system system /sys/class/camera/ois/ois_gain_rear3
|
|
chown system system /sys/class/camera/ois/ois_supperssion_ratio_rear
|
|
chown system system /sys/class/camera/ois/ois_supperssion_ratio_rear3
|
|
chown system system /sys/class/camera/ois/ois_hall_position
|
|
chown system system /sys/class/camera/ois/reset_check
|
|
chown system system /sys/class/camera/ois/ois_set_mode
|
|
chown system system /sys/class/camera/ois/check_cross_talk
|
|
chown system system /sys/class/camera/ois/rear3_read_cross_talk
|
|
chown system system /sys/class/camera/ois/ois_ext_clk
|
|
|
|
#Camera AF
|
|
chown system system /sys/class/camera/af/af_position
|
|
|
|
# Camera::Adaptive Mipi
|
|
chown system system /sys/class/camera/test/adaptive_test
|
|
|
|
# Camera::EarlyInit
|
|
setprop persist.camera.earlyinit 0
|
|
|
|
#Camera End
|
|
|
|
# Permissions for FMM
|
|
chown system system /sys/class/sec/sec_debug/FMM_lock
|
|
chmod 0660 /sys/class/sec/sec_debug/FMM_lock
|
|
|
|
# Permissions for Performance
|
|
chown root system /sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_clock_mhz
|
|
chown root system /sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/min_clock_mhz
|
|
chmod 0664 /sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_clock_mhz
|
|
chmod 0664 /sys/devices/platform/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/min_clock_mhz
|
|
chown root system /dev/stune/top-app/schedtune.boost
|
|
chmod 0664 /dev/stune/top-app/schedtune.boost
|
|
chown system system /sys/class/input_booster/level
|
|
chown system system /sys/class/input_booster/head
|
|
chown system system /sys/class/input_booster/tail
|
|
chown system system /sys/class/input_booster/touchkey/level
|
|
chown system system /sys/class/input_booster/touchkey/freq
|
|
chown system system /sys/class/input_booster/touchkey/time
|
|
chmod 0664 /sys/class/input_booster/level
|
|
chmod 0664 /sys/class/input_booster/head
|
|
chmod 0664 /sys/class/input_booster/tail
|
|
chmod 0664 /sys/class/input_booster/touchkey/level
|
|
chmod 0664 /sys/class/input_booster/touchkey/freq
|
|
chmod 0664 /sys/class/input_booster/touchkey/time
|
|
chown root system /sys/class/devfreq/soc:qcom,cpu6-cpu-ddr-latfloor/min_freq
|
|
chown root system /sys/class/devfreq/soc:qcom,cpu6-cpu-ddr-latfloor/max_freq
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu6-cpu-ddr-latfloor/min_freq
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu6-cpu-ddr-latfloor/max_freq
|
|
|
|
# FINGERPRINT FRAMEWORK : starts goodixfingerprintd
|
|
service goodixd /vendor/bin/goodixfingerprintd
|
|
class late_start
|
|
user system
|
|
group media_rw system
|
|
|