Compare commits

..
5 Commits
Author SHA1 Message Date
akifakif32andVayruz Rafli 3a069b438c acheron: Remove SMS workaround hexpatch for libsec-ril
Change-Id: I81a8d63ea90c7f71ae49d6326caca8764c823420
2026-07-05 16:16:15 +07:00
Vayruz Rafli 090f801d0e acheron: Bring back SamsungDAP
Change-Id: Ica682659386aebc75803daf278956bb5a22fb609
2026-07-05 16:16:15 +07:00
Michael BestasandVayruz Rafli 0c698a4dcb acheron: Patch some blobs to depend on libtinyxml2-v34.so
libtinyxml2 10.1.0 update which landed in BP4A contains ABI
incompatible changes which cause runtime crashes.

Change-Id: Icb38978769e358811638ef7d714643f11b36a03e
2026-07-05 16:16:15 +07:00
Bruno MartinsandVayruz Rafli 420a4ebc02 acheron: Remove QTI BT stack bits
Change-Id: I3e95ce06f401834cd1f944d541f9a440e56e46af
2026-07-05 16:16:15 +07:00
peternmullerandVayruz Rafli 070c9a75f0 acheron: Update Adreno blobs from AOSPA (530.55)
Change-Id: I931adca205d3df8a6c53fc0f62dddf8f6e7d34b3
2026-07-05 16:16:14 +07:00
62 changed files with 230 additions and 1249 deletions
+216 -31
View File
@@ -1018,7 +1018,6 @@ cc_prebuilt_library_shared {
"libllvm-glnext",
"libcutils",
"libhardware",
"libnativewindow",
"vendor.qti.hardware.display.mapper@2.0",
"android.hardware.graphics.mapper@2.0",
"vendor.qti.hardware.display.mapper@3.0",
@@ -1026,6 +1025,9 @@ cc_prebuilt_library_shared {
"vendor.qti.hardware.display.mapperextensions@1.1",
"libhidlbase",
"libutils",
"libnativewindow",
"vendor.qti.hardware.display.mapper@4.0",
"android.hardware.graphics.mapper@4.0",
"libc++",
"libc",
"libm",
@@ -1044,7 +1046,6 @@ cc_prebuilt_library_shared {
"libllvm-glnext",
"libcutils",
"libhardware",
"libnativewindow",
"vendor.qti.hardware.display.mapper@2.0",
"android.hardware.graphics.mapper@2.0",
"vendor.qti.hardware.display.mapper@3.0",
@@ -1052,6 +1053,9 @@ cc_prebuilt_library_shared {
"vendor.qti.hardware.display.mapperextensions@1.1",
"libhidlbase",
"libutils",
"libnativewindow",
"vendor.qti.hardware.display.mapper@4.0",
"android.hardware.graphics.mapper@4.0",
"libc++",
"libc",
"libm",
@@ -1122,6 +1126,7 @@ cc_prebuilt_library_shared {
"liblog",
"libgsl",
"libutils",
"libnativewindow",
"libvndksupport",
"libgralloc.qti",
"libgralloctypes",
@@ -1145,6 +1150,7 @@ cc_prebuilt_library_shared {
"liblog",
"libgsl",
"libutils",
"libnativewindow",
"libvndksupport",
"libgralloc.qti",
"libgralloctypes",
@@ -1679,6 +1685,59 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libadreno_app_profiles",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libadreno_app_profiles.so",
],
shared_libs: [
"libcutils",
"libhardware",
"libutils",
"libhidlbase",
"libhidlmemory",
"android.hidl.memory@1.0",
"vendor.qti.qspmhal@1.0_vendor",
"libdl",
"libz",
"liblog",
"libc++",
"libc",
"libm",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libadreno_app_profiles.so",
],
shared_libs: [
"libcutils",
"libhardware",
"libutils",
"libhidlbase",
"libhidlmemory",
"android.hidl.memory@1.0",
"vendor.qti.qspmhal@1.0_vendor",
"libdl",
"libz",
"liblog",
"libc++",
"libc",
"libm",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libadreno_utils",
owner: "samsung",
@@ -2091,6 +2150,47 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libc2d30_bltlib",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libc2d30_bltlib.so",
],
shared_libs: [
"libgsl",
"libcutils",
"libutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libc2d30_bltlib.so",
],
shared_libs: [
"libgsl",
"libcutils",
"libutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libcacertclient",
owner: "samsung",
@@ -3850,6 +3950,76 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libkcl",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libkcl.so",
],
shared_libs: [
"libc++",
"libc",
"libm",
"libdl",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libkcl.so",
],
shared_libs: [
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libkernelmanager",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libkernelmanager.so",
],
shared_libs: [
"libc++",
"libc",
"libm",
"libdl",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libkernelmanager.so",
],
shared_libs: [
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "liblbs_core",
owner: "samsung",
@@ -3922,7 +4092,6 @@ cc_prebuilt_library_shared {
],
shared_libs: [
"libgsl",
"liblog",
"libc++",
"libc",
"libm",
@@ -3935,7 +4104,6 @@ cc_prebuilt_library_shared {
],
shared_libs: [
"libgsl",
"liblog",
"libc++",
"libc",
"libm",
@@ -8525,6 +8693,50 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.qti.qspmhal@1.0_vendor",
stem: "vendor.qti.qspmhal@1.0",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/vendor.qti.qspmhal@1.0.so",
],
shared_libs: [
"libhidlbase",
"liblog",
"libutils",
"libcutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/vendor.qti.qspmhal@1.0.so",
],
shared_libs: [
"libhidlbase",
"liblog",
"libutils",
"libcutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.samsung.hardware.bluetooth.a2dp@1.0",
owner: "samsung",
@@ -10413,33 +10625,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libc2d30_bltlib",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libc2d30_bltlib.so",
],
shared_libs: [
"libgsl",
"libcutils",
"libutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libcamera_nn_stub",
owner: "samsung",
+10 -14
View File
@@ -22,18 +22,8 @@ PRODUCT_COPY_FILES += \
vendor/samsung/acheron/proprietary/vendor/etc/init/android.hardware.gnss@2.1-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.gnss@2.1-service-qti.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/dataadpl.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/dataadpl.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/hw/init.samsung.bsp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.samsung.bsp.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/hw/init.samsung.display.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.samsung.display.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/hw/init.samsung.power.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.samsung.power.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/hw/init.samsung.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.samsung.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.audio.samsung.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.audio.samsung.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.fingerprint.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.fingerprint.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.nfc.samsung.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.nfc.samsung.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.qti.qcv.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qti.qcv.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.time_daemon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.time_daemon.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.vendor.onebinary.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vendor.onebinary.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.vendor.rilcommon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vendor.rilcommon.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init.vendor.sensors.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vendor.sensors.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/init_thermal-engine.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init_thermal-engine.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/ipa_fws.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ipa_fws.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/ipacm-diag.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ipacm-diag.rc \
@@ -51,16 +41,14 @@ PRODUCT_COPY_FILES += \
vendor/samsung/acheron/proprietary/vendor/etc/init/vendor.qti.rmt_storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.rmt_storage.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/vendor.qti.tftp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.tftp.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/vendor.samsung.hardware.thermal@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.samsung.hardware.thermal@1.0-service.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/vendor.samsung.rilchip.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.samsung.rilchip.qcom.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/vendor.sensors.sscrpcd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.sensors.sscrpcd.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/wifi_qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/wifi_qcom.rc \
vendor/samsung/acheron/proprietary/vendor/etc/init/wifi_sec.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/wifi_sec.rc \
vendor/samsung/acheron/proprietary/vendor/etc/izat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat.conf \
vendor/samsung/acheron/proprietary/vendor/etc/locale/plmn_delta_eng.bin:$(TARGET_COPY_OUT_VENDOR)/etc/locale/plmn_delta_eng.bin \
vendor/samsung/acheron/proprietary/vendor/etc/locale/plmn_delta_zh-rCN.bin:$(TARGET_COPY_OUT_VENDOR)/etc/locale/plmn_delta_zh-rCN.bin \
vendor/samsung/acheron/proprietary/vendor/etc/locale/plmn_delta_zh-rHK.bin:$(TARGET_COPY_OUT_VENDOR)/etc/locale/plmn_delta_zh-rHK.bin \
vendor/samsung/acheron/proprietary/vendor/etc/locale/plmn_delta_zh-rTW.bin:$(TARGET_COPY_OUT_VENDOR)/etc/locale/plmn_delta_zh-rTW.bin \
vendor/samsung/acheron/proprietary/vendor/etc/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf \
vendor/samsung/acheron/proprietary/vendor/etc/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
vendor/samsung/acheron/proprietary/vendor/etc/mtu-conf.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mtu-conf.xml \
vendor/samsung/acheron/proprietary/vendor/etc/nfc/sec_s3nrn4v_hwreg.bin:$(TARGET_COPY_OUT_VENDOR)/etc/nfc/sec_s3nrn4v_hwreg.bin \
vendor/samsung/acheron/proprietary/vendor/etc/nfc/sec_s3nrn4v_swreg.bin:$(TARGET_COPY_OUT_VENDOR)/etc/nfc/sec_s3nrn4v_swreg.bin \
@@ -140,6 +128,10 @@ PRODUCT_COPY_FILES += \
vendor/samsung/acheron/proprietary/vendor/firmware/wlan/qca_cld/bdwlan.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/bdwlan.bin \
vendor/samsung/acheron/proprietary/vendor/firmware/wlan/qca_cld/regdb.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/regdb.bin \
vendor/samsung/acheron/proprietary/vendor/firmware/wlanmdsp.mbn:$(TARGET_COPY_OUT_VENDOR)/firmware/wlanmdsp.mbn \
vendor/samsung/acheron/proprietary/vendor/gpu/kbc/sequence_manifest.bin:$(TARGET_COPY_OUT_VENDOR)/gpu/kbc/sequence_manifest.bin \
vendor/samsung/acheron/proprietary/vendor/gpu/kbc/unified_kbcs_32.bin:$(TARGET_COPY_OUT_VENDOR)/gpu/kbc/unified_kbcs_32.bin \
vendor/samsung/acheron/proprietary/vendor/gpu/kbc/unified_kbcs_64.bin:$(TARGET_COPY_OUT_VENDOR)/gpu/kbc/unified_kbcs_64.bin \
vendor/samsung/acheron/proprietary/vendor/gpu/kbc/unified_ksqs.bin:$(TARGET_COPY_OUT_VENDOR)/gpu/kbc/unified_ksqs.bin \
vendor/samsung/acheron/proprietary/vendor/lib/camera/com.samsung.sensormodule.0_1_lsi_s5kgw1p.bin:$(TARGET_COPY_OUT_VENDOR)/lib/camera/com.samsung.sensormodule.0_1_lsi_s5kgw1p.bin \
vendor/samsung/acheron/proprietary/vendor/lib/camera/com.samsung.sensormodule.1_0_sony_imx616.bin:$(TARGET_COPY_OUT_VENDOR)/lib/camera/com.samsung.sensormodule.1_0_sony_imx616.bin \
vendor/samsung/acheron/proprietary/vendor/lib/camera/com.samsung.sensormodule.1_1_lsi_s5kgd2.bin:$(TARGET_COPY_OUT_VENDOR)/lib/camera/com.samsung.sensormodule.1_1_lsi_s5kgd2.bin \
@@ -190,6 +182,7 @@ PRODUCT_PACKAGES += \
libacdbloader \
libacdbrtac \
libadiertac \
libadreno_app_profiles \
libadreno_utils \
libadsp_default_listener \
libadsprpc \
@@ -200,6 +193,7 @@ PRODUCT_PACKAGES += \
libbthost_if \
libbtnv \
libc++_shared \
libc2d30_bltlib \
libcacertclient \
libcdfw \
libcdfw_remote_api \
@@ -241,6 +235,8 @@ PRODUCT_PACKAGES += \
libizat_client_api \
libizat_core \
libjnihelper \
libkcl \
libkernelmanager \
liblbs_core \
libllvm-glnext \
libllvm-qcom \
@@ -345,6 +341,7 @@ PRODUCT_PACKAGES += \
vendor.qti.hardware.vpp@1.1 \
vendor.qti.hardware.vpp@1.2 \
vendor.qti.hardware.vpp@1.3 \
vendor.qti.qspmhal@1.0_vendor \
vendor.samsung.hardware.bluetooth.a2dp@1.0 \
vendor.samsung.hardware.bluetooth@2.0 \
vendor.samsung.hardware.gnss@2.0 \
@@ -408,7 +405,6 @@ PRODUCT_PACKAGES += \
libaudio_soundtrigger \
libaudioparsers \
libbatterylistener \
libc2d30_bltlib \
libcamera_nn_stub \
libcamxfdalgov7 \
libcamxfdalgov8 \
-128
View File
@@ -1,128 +0,0 @@
# 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.
#
#
on early-init
on init
symlink /dev/block/bootdevice/by-name/param /dev/block/param
# GPIO
chown root system /sys/class/secgpio_check/secgpio_check_all/check_requested_gpio
# CONFIG_SEC_DEBUG ++
# reset_reason
chown system system /proc/reset_reason
chmod 0440 /proc/reset_reason
chown system system /proc/reset_reason_extra_info
chmod 0400 /proc/reset_reason_extra_info
chown system system /proc/reset_summary
chmod 0400 /proc/reset_summary
chown system system /proc/reset_klog
chmod 0400 /proc/reset_klog
chown system system /proc/reset_tzlog
chmod 0400 /proc/reset_tzlog
chown system system /proc/store_lastkmsg
chmod 0440 /proc/store_lastkmsg
chown system system /proc/auto_comment
chmod 0400 /proc/auto_comment
chown system system /proc/reset_rwc
chmod 0440 /proc/reset_rwc
chown system system /proc/reset_history
chmod 0400 /proc/reset_history
# ERR.p(extend rr.p)
chown system system /proc/extra
chmod 0440 /proc/extra
# hw param ap info
chown system system /sys/class/sec/sec_hw_param/ap_info
chmod 0400 /sys/class/sec/sec_hw_param/ap_info
# hw param ddr info
chown system system /sys/class/sec/sec_hw_param/ddr_info
chmod 0400 /sys/class/sec/sec_hw_param/ddr_info
# hw param eye read info
chown system system /sys/class/sec/sec_hw_param/eye_rd_info
chmod 0400 /sys/class/sec/sec_hw_param/eye_rd_info
# hw param eye write1 info
chown system system /sys/class/sec/sec_hw_param/eye_wr1_info
chmod 0400 /sys/class/sec/sec_hw_param/eye_wr1_info
# hw param eye write2 info
chown system system /sys/class/sec/sec_hw_param/eye_wr2_info
chmod 0400 /sys/class/sec/sec_hw_param/eye_wr2_info
# hw param eye dcc info
chown system system /sys/class/sec/sec_hw_param/eye_dcc_info
chmod 0400 /sys/class/sec/sec_hw_param/eye_dcc_info
# hw param ap health
chown system system /sys/class/sec/sec_hw_param/ap_health
chmod 0600 /sys/class/sec/sec_hw_param/ap_health
# hw param last dcvs
chown system system /sys/class/sec/sec_hw_param/last_dcvs
chmod 0400 /sys/class/sec/sec_hw_param/last_dcvs
# hw param extra info
chown system system /sys/class/sec/sec_hw_param/extra_info
chmod 0400 /sys/class/sec/sec_hw_param/extra_info
# hw param extrb info
chown system system /sys/class/sec/sec_hw_param/extrb_info
chmod 0400 /sys/class/sec/sec_hw_param/extrb_info
# hw param extrc info
chown system system /sys/class/sec/sec_hw_param/extrc_info
chmod 0400 /sys/class/sec/sec_hw_param/extrc_info
# hw param extrt info
chown system system /sys/class/sec/sec_hw_param/extrt_info
chmod 0400 /sys/class/sec/sec_hw_param/extrt_info
# hw param extrm info
chown system system /sys/class/sec/sec_hw_param/extrm_info
chmod 0400 /sys/class/sec/sec_hw_param/extrm_info
# sdcard ramdump
chown system system /sys/module/sec_debug/parameters/dump_sink
chmod 0640 /sys/module/sec_debug/parameters/dump_sink
chown system system /sys/module/sec_debug/parameters/reboot_multicmd
chmod 0400 /sys/module/sec_debug/parameters/reboot_multicmd
chown system system /proc/rdx_bootdev
chmod 0220 /proc/rdx_bootdev
# CONFIG_SEC_DEBUG --
on late-init
on post-fs
on late-fs
on post-fs-data
on boot
# Permissions for sec_debug
chown root system /sys/class/sec/sec_debug/recovery_cause
on shutdown
# service definition
# on property triggers
-494
View File
@@ -1,494 +0,0 @@
# Copyright (C) 2018 The Android Open Source Project
#
# Display configuration common for all android devices
#
on init
# Permissions for Display
# Brightness Permission
chown system system /sys/class/backlight/panel0-backlight/brightness
chmod 0664 /sys/class/backlight/panel0-backlight/brightness
chown system system /sys/class/backlight/panel1-backlight/brightness
chmod 0664 /sys/class/backlight/panel1-backlight/brightness
chown system system /sys/class/leds/lcd-backlight/brightness
chmod 0664 /sys/class/leds/lcd-backlight/brightness
# HMT
chown system system /sys/class/lcd/panel/hmt_on
chmod 0660 /sys/class/lcd/panel/hmt_on
chown system system /sys/class/lcd/panel/hmt_bright
chmod 0660 /sys/class/lcd/panel/hmt_bright
chown system system /sys/class/mdnie/mdnie/hmt_color_temperature
chmod 0660 /sys/class/mdnie/mdnie/hmt_color_temperature
chown system system /sys/class/lcd/panel1/hmt_on
chmod 0660 /sys/class/lcd/panel1/hmt_on
chown system system /sys/class/lcd/panel1/hmt_bright
chmod 0660 /sys/class/lcd/panel1/hmt_bright
chown system system /sys/class/mdnie/mdnie1/hmt_color_temperature
chmod 0660 /sys/class/mdnie/mdnie1/hmt_color_temperature
# mDNIe
chown system system /sys/class/mdnie/mdnie/lcdtype
chown system system /sys/class/mdnie/mdnie/lcd_power
chown system media_rw /sys/class/mdnie/mdnie/scenario
chmod 0660 /sys/class/mdnie/mdnie/scenario
chown system system /sys/class/mdnie/mdnie/tuning
chown system media_rw /sys/class/mdnie/mdnie/outdoor
chown system system /sys/class/mdnie/mdnie/mdnie_temp
chown system media_rw /sys/class/mdnie/mdnie/mode
chown system system /sys/class/mdnie/mdnie/negative
chown system media_rw /sys/class/mdnie/mdnie/playspeed
chown system media_rw /sys/class/mdnie/mdnie/accessibility
chown system system /sys/class/mdnie/mdnie/cabc
chown system system /sys/class/mdnie/mdnie/bypass
chmod 0660 /sys/class/mdnie/mdnie/bypass
chown system media_rw /sys/class/mdnie/mdnie/sensorRGB
chmod 0660 /sys/class/mdnie/mdnie/sensorRGB
chown system media_rw /sys/class/mdnie/mdnie/mdnie_ldu
chmod 0660 /sys/class/mdnie/mdnie/mdnie_ldu
chown system media_rw /sys/class/mdnie/mdnie/night_mode
chmod 0660 /sys/class/mdnie/mdnie/night_mode
chown system system /sys/class/mdnie/mdnie/color_lens
chmod 0660 /sys/class/mdnie/mdnie/color_lens
chown system media_rw /sys/class/mdnie/mdnie/hdr
chmod 0660 /sys/class/mdnie/mdnie/hdr
chown system media_rw /sys/class/mdnie/mdnie/whiteRGB
chmod 0660 /sys/class/mdnie/mdnie/whiteRGB
chown system system /sys/class/mdnie/mdnie/light_notification
chmod 0660 /sys/class/mdnie/mdnie/light_notification
chown system system /sys/class/mdnie/mdnie/afc
chmod 0660 /sys/class/mdnie/mdnie/afc
chown system system /sys/class/mdnie/mdnie1/lcdtype
chown system system /sys/class/mdnie/mdnie1/lcd_power
chown system media_rw /sys/class/mdnie/mdnie1/scenario
chmod 0660 /sys/class/mdnie/mdnie1/scenario
chown system system /sys/class/mdnie/mdnie1/tuning
chown system media_rw /sys/class/mdnie/mdnie1/outdoor
chown system system /sys/class/mdnie/mdnie1/mdnie_temp
chown system media_rw /sys/class/mdnie/mdnie1/mode
chown system system /sys/class/mdnie/mdnie1/negative
chown system media_rw /sys/class/mdnie/mdnie1/playspeed
chown system media_rw /sys/class/mdnie/mdnie1/accessibility
chown system system /sys/class/mdnie/mdnie1/cabc
chown system system /sys/class/mdnie/mdnie1/bypass
chmod 0660 /sys/class/mdnie/mdnie1/bypass
chown system media_rw /sys/class/mdnie/mdnie1/sensorRGB
chmod 0660 /sys/class/mdnie/mdnie1/sensorRGB
chown system media_rw /sys/class/mdnie/mdnie1/mdnie_ldu
chmod 0660 /sys/class/mdnie/mdnie1/mdnie_ldu
chown system media_rw /sys/class/mdnie/mdnie1/night_mode
chmod 0660 /sys/class/mdnie/mdnie1/night_mode
chown system system /sys/class/mdnie/mdnie1/color_lens
chmod 0660 /sys/class/mdnie/mdnie1/color_lens
chown system media_rw /sys/class/mdnie/mdnie1/hdr
chmod 0660 /sys/class/mdnie/mdnie1/hdr
chown system media_rw /sys/class/mdnie/mdnie1/whiteRGB
chmod 0660 /sys/class/mdnie/mdnie1/whiteRGB
chown system system /sys/class/mdnie/mdnie1/light_notification
chmod 0660 /sys/class/mdnie/mdnie1/light_notification
chown system system /sys/class/mdnie/mdnie1/afc
chmod 0660 /sys/class/mdnie/mdnie1/afc
mkdir /efs/afc 0700 system system
chmod 700 /efs/afc
mkdir /efs/etc 0700 system system
chmod 700 /efs/etc
# adaptive control
chown system system /sys/class/lcd/panel/adaptive_control
chmod 0660 /sys/class/lcd/panel/adaptive_control
chown system system /sys/class/lcd/panel1/adaptive_control
chmod 0660 /sys/class/lcd/panel1/adaptive_control
# CCB (color waekness)
chown system system /sys/class/backlight/panel/weakness_ccb
chmod 0660 /sys/class/backlight/panel/weakness_ccb
chown system system /sys/class/backlight/panel1/weakness_ccb
chmod 0660 /sys/class/backlight/panel1/weakness_ccb
# weakness_hbm_comp (Gallery Max brightness == 2)
chown system system /sys/class/backlight/panel/weakness_hbm_comp
chmod 0660 /sys/class/backlight/panel/weakness_hbm_comp
chown system system /sys/class/backlight/panel1/weakness_hbm_comp
chmod 0660 /sys/class/backlight/panel1/weakness_hbm_comp
# AOD(Always On Display)
chown system system /sys/class/lcd/panel/alpm
chmod 0660 /sys/class/lcd/panel/alpm
chown system system /sys/class/lcd/panel1/alpm
chmod 0660 /sys/class/lcd/panel1/alpm
# Active Clock in AOD
chown system system /dev/act_clk
chmod 0660 /dev/act_clk
# Self Display in AOD
chown system system /dev/self_display
chmod 0660 /dev/self_display
chown system system /dev/self_display1
chmod 0660 /dev/self_display1
# Self Move in IDLE
chown system system /sys/class/lcd/panel/self_move
chmod 0660 /sys/class/lcd/panel/self_move
chown system system /sys/class/lcd/panel1/self_move
chmod 0660 /sys/class/lcd/panel1/self_move
# MAFPC
chown system system /dev/mafpc
chmod 0660 /dev/mafpc
chown system system /dev/mafpc1
chmod 0660 /dev/mafpc1
chown system system /sys/class/lcd/panel/mafpc_check
chmod 0660 /sys/class/lcd/panel/mafpc_check
chown system system /sys/class/lcd/panel1/mafpc_check
chmod 0660 /sys/class/lcd/panel1/mafpc_check
# POC
mkdir /efs/etc/poc 0700 system system
chmod 700 /efs/etc/poc
mkdir /cache/poc 0700 system system
chmod 700 /cache/poc
chown system system /dev/poc
chmod 0660 /dev/poc
chown system system /sys/class/lcd/panel/poc
chmod 0660 /sys/class/lcd/panel/poc
chown system system /sys/class/lcd/panel1/poc
chmod 0660 /sys/class/lcd/panel1/poc
# HMT
chown system system /sys/class/lcd/panel/hmt_on
chmod 0660 /sys/class/lcd/panel/hmt_on
chown system system /sys/class/lcd/panel/hmt_bright
chmod 0660 /sys/class/lcd/panel/hmt_bright
chown system system /sys/class/mdnie/mdnie/hmt_color_temperature
chmod 0660 /sys/class/mdnie/mdnie/hmt_color_temperature
chown system system /sys/class/lcd/panel1/hmt_on
chmod 0660 /sys/class/lcd/panel1/hmt_on
chown system system /sys/class/lcd/panel1/hmt_bright
chmod 0660 /sys/class/lcd/panel1/hmt_bright
chown system system /sys/class/mdnie/mdnie1/hmt_color_temperature
chmod 0660 /sys/class/mdnie/mdnie1/hmt_color_temperature
setprop sys.daydream.connected 0
# chown system system /sys/class/graphics/fb0/msm_cmd_autorefresh_en
# chmod 0660 /sys/class/graphics/fb0/msm_cmd_autorefresh_en
# IRC
chown system system /sys/class/lcd/panel/irc_mode
chmod 0660 /sys/class/lcd/panel/irc_mode
chown system system /sys/class/lcd/panel1/irc_mode
chmod 0660 /sys/class/lcd/panel1/irc_mode
# MCD_MODE
chown system system /sys/class/lcd/panel/mcd_mode
chmod 0660 /sys/class/lcd/panel/mcd_mode
chown system system /sys/class/lcd/panel1/mcd_mode
chmod 0660 /sys/class/lcd/panel1/mcd_mode
# BRIGHTDOT
chown system system /sys/class/lcd/panel/brightdot
chmod 0660 /sys/class/lcd/panel/brightdot
chown system system /sys/class/lcd/panel1/brightdot
chmod 0660 /sys/class/lcd/panel1/brightdot
# MCD_RESISTANCE
chown system system /sys/class/lcd/panel/mcd_resistance
chmod 0660 /sys/class/lcd/panel/mcd_resistance
chown system system /sys/class/lcd/panel1/mcd_resistance
chmod 0660 /sys/class/lcd/panel1/mcd_resistance
# GAMMA_FLASH
chown system system /sys/class/lcd/panel/gamma_flash
chmod 0660 /sys/class/lcd/panel/gamma_flash
chown system system /sys/class/lcd/panel1/gamma_flash
chmod 0660 /sys/class/lcd/panel1/gamma_flash
# X-Talk
chown system system /sys/class/lcd/panel/xtalk_mode
chmod 0660 /sys/class/lcd/panel/xtalk_mode
chown system system /sys/class/lcd/panel1/xtalk_mode
chmod 0660 /sys/class/lcd/panel1/xtalk_mode
# MST
chown system system /sys/class/lcd/panel/mst
chmod 0660 /sys/class/lcd/panel/mst
chown system system /sys/class/lcd/panel1/mst
chmod 0660 /sys/class/lcd/panel1/mst
# DDI H/W Cursor
chown system system /sys/class/lcd/panel/hw_cursor
chmod 0660 /sys/class/lcd/panel/hw_cursor
chown system system /sys/class/lcd/panel1/hw_cursor
chmod 0660 /sys/class/lcd/panel1/hw_cursor
# Gram Checksum Test
chown system system /sys/class/lcd/panel/gct
chmod 0660 /sys/class/lcd/panel/gct
chown system system /sys/class/lcd/panel1/gct
chmod 0660 /sys/class/lcd/panel1/gct
# Gray Spot Test
chown system system /sys/class/lcd/panel/grayspot
chmod 0660 /sys/class/lcd/panel/grayspot
chown system system /sys/class/lcd/panel1/grayspot
chmod 0660 /sys/class/lcd/panel1/grayspot
# POC
chown system system /sys/class/lcd/panel/poc
chmod 0660 /sys/class/lcd/panel/poc
chown system system /sys/class/lcd/panel1/poc
chmod 0660 /sys/class/lcd/panel1/poc
# POC_MCA
chown system system /sys/class/lcd/panel/poc_mca
chmod 0440 /sys/class/lcd/panel/poc_mca
chown system system /sys/class/lcd/panel1/poc_mca
chmod 0440 /sys/class/lcd/panel1/poc_mca
# POC_INFO
chown system system /sys/class/lcd/panel/poc_info
chmod 0440 /sys/class/lcd/panel/poc_info
chown system system /sys/class/lcd/panel1/poc_info
chmod 0440 /sys/class/lcd/panel1/poc_info
# POC OFF
chown system system /sys/class/lcd/panel/poc_onoff
chmod 0660 /sys/class/lcd/panel/poc_onoff
chown system system /sys/class/lcd/panel1/poc_onoff
chmod 0660 /sys/class/lcd/panel1/poc_onoff
# IRC OFF
chown system system /sys/class/lcd/panel/irc_onoff
chmod 0660 /sys/class/lcd/panel/irc_onoff
chown system system /sys/class/lcd/panel1/irc_onoff
chmod 0660 /sys/class/lcd/panel1/irc_onoff
# ISC Defect Test
chown system system /sys/class/lcd/panel/isc_defect
chmod 0660 /sys/class/lcd/panel/isc_defect
chown system system /sys/class/lcd/panel1/isc_defect
chmod 0660 /sys/class/lcd/panel1/isc_defect
# LCD Big Data (DPUI / DPCI)
chown system system /sys/class/lcd/panel/dpui
chown system system /sys/class/lcd/panel/dpui_dbg
chown system system /sys/class/lcd/panel/dpci
chown system system /sys/class/lcd/panel/dpci_dbg
chown system system /sys/class/lcd/panel1/dpui
chown system system /sys/class/lcd/panel1/dpui_dbg
chown system system /sys/class/lcd/panel1/dpci
chown system system /sys/class/lcd/panel1/dpci_dbg
# Panel
chown system system /sys/class/lcd/panel/window_type
chown radio system /sys/class/lcd/panel/power_reduce
chown radio system /sys/class/lcd/panel/siop_enable
chown radio system /sys/class/lcd/panel/temperature
chown radio system /sys/class/lcd/panel/tuning
chown radio system /sys/class/lcd/panel/lux
chown radio system /sys/class/lcd/panel/partial_disp
chmod 0660 /sys/class/lcd/panel/partial_disp
chown radio system /sys/class/lcd/panel/cover_control
chmod 0660 /sys/class/lcd/panel/cover_control
chown system system /sys/class/lcd/panel/ldu_correction
chmod 0660 /sys/class/lcd/panel/ldu_correction
chown radio system /sys/class/lcd/panel/force_flip
chown system system /sys/class/lcd/panel1/window_type
chown radio system /sys/class/lcd/panel1/power_reduce
chown radio system /sys/class/lcd/panel1/siop_enable
chown radio system /sys/class/lcd/panel1/temperature
chown radio system /sys/class/lcd/panel1/tuning
chown radio system /sys/class/lcd/panel1/lux
chown radio system /sys/class/lcd/panel1/partial_disp
chmod 0660 /sys/class/lcd/panel1/partial_disp
chown radio system /sys/class/lcd/panel1/cover_control
chmod 0660 /sys/class/lcd/panel1/cover_control
chown system system /sys/class/lcd/panel1/ldu_correction
chmod 0660 /sys/class/lcd/panel1/ldu_correction
chown radio system /sys/class/lcd/panel1/force_flip
# COPR
chown system system /sys/class/lcd/panel/copr_roi
chmod 0660 /sys/class/lcd/panel/copr_roi
chown system system /sys/class/lcd/panel/read_copr
chmod 0660 /sys/class/lcd/panel/read_copr
chown system system /sys/class/lcd/panel/copr
chmod 0660 /sys/class/lcd/panel/copr
chown system system /sys/class/lcd/panel/brt_avg
chmod 0440 /sys/class/lcd/panel/brt_avg
chown system system /sys/class/lcd/panel1/copr_roi
chmod 0660 /sys/class/lcd/panel1/copr_roi
chown system system /sys/class/lcd/panel1/read_copr
chmod 0660 /sys/class/lcd/panel1/read_copr
chown system system /sys/class/lcd/panel1/copr
chmod 0660 /sys/class/lcd/panel1/copr
chown system system /sys/class/lcd/panel1/brt_avg
chmod 0440 /sys/class/lcd/panel1/brt_avg
# SELF MASK
chown system system /sys/class/lcd/panel/self_mask
chmod 0660 /sys/class/lcd/panel/self_mask
chown system system /sys/class/lcd/panel1/self_mask
chmod 0660 /sys/class/lcd/panel1/self_mask
chown system system /sys/class/lcd/panel/self_mask_check
chmod 0660 /sys/class/lcd/panel/self_mask_check
chown system system /sys/class/lcd/panel1/self_mask_check
chmod 0660 /sys/class/lcd/panel1/self_mask_check
# DYNAMIC HLPM
chown system system /sys/class/lcd/panel/dynamic_hlpm
chmod 0660 /sys/class/lcd/panel/dynamic_hlpm
chown system system /sys/class/lcd/panel1/dynamic_hlpm
chmod 0660 /sys/class/lcd/panel1/dynamic_hlpm
# LCD DYNAMIC FPS USE TE
chown system system /sys/class/lcd/panel/dynamic_fps_use_te
chmod 0660 /sys/class/lcd/panel/dynamic_fps_use_te
chown system system /sys/class/lcd/panel1/dynamic_fps_use_te
chmod 0660 /sys/class/lcd/panel1/dynamic_fps_use_te
# SPI intf select
chown system system /sys/class/lcd/panel/spi_if_sel
chmod 0660 /sys/class/lcd/panel/spi_if_sel
# CCD state Test
chown system system /sys/class/lcd/panel/ccd_state
chmod 0660 /sys/class/lcd/panel/ccd_state
chown system system /sys/class/lcd/panel1/ccd_state
chmod 0660 /sys/class/lcd/panel1/ccd_state
# FINGERPRINT MASK
chown system system /sys/class/lcd/panel/mask_brightness
chmod 0660 /sys/class/lcd/panel/mask_brightness
chown system system /sys/class/lcd/panel/actual_mask_brightness
chmod 0440 /sys/class/lcd/panel/actual_mask_brightness
chown system system /sys/class/lcd/panel1/mask_brightness
chmod 0660 /sys/class/lcd/panel1/mask_brightness
chown system system /sys/class/lcd/panel1/actual_mask_brightness
chmod 0440 /sys/class/lcd/panel1/actual_mask_brightness
# UB CONN DET
chown system system /sys/class/lcd/panel/conn_det
chmod 0660 /sys/class/lcd/panel/conn_det
chown system system /sys/class/lcd/panel1/conn_det
chmod 0660 /sys/class/lcd/panel1/conn_det
# TE CHECK
chown system system /sys/class/lcd/panel/te_check
chmod 0660 /sys/class/lcd/panel/te_check
chown system system /sys/class/lcd/panel1/te_check
chmod 0660 /sys/class/lcd/panel1/te_check
# DIA
chown system system /sys/class/lcd/panel/dia
chmod 0660 /sys/class/lcd/panel/dia
chown system system /sys/class/lcd/panel1/dia
chmod 0660 /sys/class/lcd/panel1/dia
# dynamic_freq
chown system system /sys/class/lcd/panel/dynamic_freq
chmod 0660 /sys/class/lcd/panel/dynamic_freq
chown system system /sys/class/lcd/panel1/dynamic_freq
chmod 0660 /sys/class/lcd/panel1/dynamic_freq
# Finger Print Green Circle
chown system system /sys/class/lcd/panel/fp_green_circle
chmod 0660 /sys/class/lcd/panel/fp_green_circle
chown system system /sys/class/lcd/panel1/fp_green_circle
chmod 0660 /sys/class/lcd/panel1/fp_green_circle
# Window Color
chown system system /sys/class/lcd/panel/window_color
chmod 0660 /sys/class/lcd/panel/window_color
chown system system /sys/class/lcd/panel1/window_color
chmod 0660 /sys/class/lcd/panel1/window_color
# Demux_stress Test
chown system system /sys/class/lcd/panel/demux_stress
chmod 0660 /sys/class/lcd/panel/demux_stress
chown system system /sys/class/lcd/panel1/demux_stress
chmod 0660 /sys/class/lcd/panel1/demux_stress
# VRR
chown system system /sys/class/lcd/panel/vrr
chmod 0440 /sys/class/lcd/panel/vrr
chown system system /sys/class/lcd/panel/vrr_state
chmod 0440 /sys/class/lcd/panel/vrr_state
chown system system /sys/class/lcd/panel/vrr_lfd
chmod 0660 /sys/class/lcd/panel/vrr_lfd
chown system system /sys/class/drm/card0/device/perf_mode
chmod 0666 /sys/class/drm/card0/device/perf_mode
# Motto
chown system system /sys/class/lcd/panel/motto/swing
chmod 0660 /sys/class/lcd/panel/motto/swing
chown system system /sys/class/lcd/panel/motto/emphasis
chmod 0660 /sys/class/lcd/panel/motto/emphasis
# ioctl_power_ctrl
chown system system /sys/class/lcd/panel/ioctl_power_ctrl
chmod 0440 /sys/class/lcd/panel/ioctl_power_ctrl
# CELL ID
chown system system /sys/class/lcd/panel/cell_id
# SVC
chown system system /sys/class/lcd/panel/SVC_OCTA_DDI_CHIPID
chmod 0440 /sys/class/lcd/panel/SVC_OCTA_DDI_CHIPID
chown system system /sys/class/lcd/panel1/SVC_OCTA_DDI_CHIPID
chmod 0440 /sys/class/lcd/panel1/SVC_OCTA_DDI_CHIPID
-121
View File
@@ -1,121 +0,0 @@
# 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.power.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
# 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
-62
View File
@@ -1,62 +0,0 @@
# Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
on post-fs-data
# Permissions for audio
chown system radio /sys/class/audio/earjack/key_state
chown system radio /sys/class/audio/earjack/mic_adc
chown system radio /sys/class/audio/earjack/select_jack
chown system radio /sys/class/audio/earjack/state
on property:sys.boot_completed=1
# TI Amp Calibration/Validation
chown system audio /sys/class/tas25xx/calib/calibration
chown system audio /sys/class/tas25xx/calib/cstatus
chown system audio /sys/class/tas25xx/calib/cstatus_r
chown system audio /sys/class/tas25xx/calib/rdc
chown system audio /sys/class/tas25xx/calib/rdc_r
chown system audio /sys/class/tas25xx/calib/temp
chown system audio /sys/class/tas25xx/calib/temp_r
chown system audio /sys/class/tas25xx/valid/status
chown system audio /sys/class/tas25xx/valid/status_r
chown system audio /sys/class/tas25xx/valid/validation
mkdir /efs/tas25xx 0770 audioserver audio
chown audioserver audio /efs/tas25xx/calib_re
chown audioserver audio /efs/tas25xx/amb_temp
chown audioserver audio /efs/tas25xx/calib_re_r
chown audioserver audio /efs/tas25xx/amb_temp_r
chmod 0660 /efs/tas25xx/calib_re
chmod 0660 /efs/tas25xx/amb_temp
chmod 0660 /efs/tas25xx/calib_re_r
chmod 0660 /efs/tas25xx/amb_temp_r
# DBMDx
chmod 0660 /dev/dbmdx-1
chown system audio /dev/dbmdx-1
chown system audio /sys/class/voicep/dbmdx/va_mic_mode
-37
View File
@@ -1,37 +0,0 @@
on boot
# Fingerprint sensor
chmod 0660 /dev/esfp0
chown system system /dev/esfp0
chmod 0660 /dev/goodix_fp
chown system system /dev/goodix_fp
chmod 0660 /dev/qbt2000_fd
chmod 0660 /dev/qbt2000_ipc
chmod 0660 /dev/qbtspi
chown system system /dev/qbt2000_fd
chown system system /dev/qbt2000_ipc
chown system system /dev/qbtspi
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/position
chown system radio /sys/class/fingerprint/fingerprint/cbgecnt
chown system radio /sys/class/fingerprint/fingerprint/intcnt
chown system radio /sys/class/fingerprint/fingerprint/resetcnt
chown system radio /sys/class/fingerprint/fingerprint/wuhbtest
chown system radio /sys/class/fingerprint/fingerprint/rb
mkdir /data/vendor/misc 0770 system system
mkdir /data/vendor/misc/qti_fp 0770 system system
mkdir /data/vendor/misc/qti_fp/bg_estimation 0770 system system
mkdir /data/vendor/misc/qti_fp/calib_test 0770 system system
mkdir /data/vendor/misc/qti_fp/template 0770 system system
mkdir /data/vendor/biometrics 0770 system system
mkdir /data/vendor/fpSnrTest 0770 system system
mkdir /efs/biometrics 0770 system system
mkdir /efs/biometrics/meta 0770 system system
-36
View File
@@ -1,36 +0,0 @@
on late-init
# PVDD enable
write /sys/class/nfc_sec/pvdd "1"
on post-fs-data
write /sys/class/nfc_sec/pvdd "2"
# NFC KEY
mkdir /data/vendor/nfc 0770 nfc nfc
# NFC driver permission
chmod 0660 /dev/p3
chown system system /dev/p3
chmod 0660 /dev/p61
chown system system /dev/p61
chmod 0660 /dev/st54spi
chown system system /dev/st54spi
on boot
write /sys/class/nfc_sec/pvdd "3"
# NFC driver permission
chmod 0660 /dev/sec-nfc
chown nfc nfc /dev/sec-nfc
chmod 0660 /dev/p3
chown system system /dev/p3
chmod 0660 /dev/pn547
chown nfc nfc /dev/pn547
chmod 0660 /dev/p61
chown system system /dev/p61
chmod 0660 /dev/st21nfc
chown nfc nfc /dev/st21nfc
chmod 0660 /dev/st54spi
chown system system /dev/st54spi
# For NFC hardware SKU
on boot && property:ro.boot.nfc.feature.chipname=*
setprop ro.vendor.nfc.feature.chipname ${ro.boot.nfc.feature.chipname}
-14
View File
@@ -1,14 +0,0 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
# service can not be overwritten except SPRINT
# Thus, rilcarrier is imported before common rc, like init.rilchip.rc
on fs
copy /mnt/vendor/efs/factory.prop /efs/imei/factory.prop
chown root root /efs/imei/factory.prop
chmod 0600 /efs/imei/factory.prop
-35
View File
@@ -1,35 +0,0 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
# service can not be overwritten except SPRINT
# Thus, rilcarrier is imported before common rc, like init.rilchip.rc
on post-fs-data
mkdir /data/vendor/secradio 0770 radio radio
on property:vts.native_server.on=*
setprop vendor.vts.native_server.on ${vts.native_server.on}
service network_config /vendor/bin/secril_config_svc NetworkConfig
user radio
group radio
oneshot
disabled
service sim_config /vendor/bin/secril_config_svc SimConfig
user radio
group radio
oneshot
disabled
on fs
chown radio radio /mnt/vendor/efs/factory.prop
chmod 0600 /mnt/vendor/efs/factory.prop
exec_start sim_config
on post-fs-data
exec_start network_config
setprop ro.telephony.default_network ${ro.vendor.radio.default_network}
-52
View File
@@ -1,52 +0,0 @@
# Copyright (c) 2019 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2009-2012, 2014-2019, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# # Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# # Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# # Neither the name of The Linux Foundation nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
on early-boot
write /sys/kernel/boot_slpi/boot 1
chown system system /mnt/vendor/persist/sensors
chown system system /mnt/vendor/persist/sensors/sns.reg
chown system system /mnt/vendor/persist/sensors/sensors_list.txt
chown system system /mnt/vendor/persist/sensors/registry
chown system system /mnt/vendor/persist/sensors/registry/registry
chown system system /mnt/vendor/persist/sensors/registry/registry/sensors_registry
chown system system /mnt/vendor/persist/sensors/sensors_settings
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_config
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_version
chown system system /mnt/vendor/persist/sensors/registry/config
chmod 0664 /mnt/vendor/persist/sensors/sensors_settings
chown system system /sys/kernel/boot_adsp/ssr
on post-fs-data && property:ro.build.type=userdebug
#sensors log dir
mkdir /data/vendor/sensors 0777 system system
mkdir /data/vendor/sensors/scripts 0777 system system
@@ -1,47 +0,0 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
service ril-daemon /vendor/bin/hw/rild
class main
user radio
group radio cache inet misc audio log oem_2901 system drmrpc vpn readproc wakelock net_admin
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW SYS_ADMIN CHOWN SYS_TIME
socket sap_uim_socket1 stream 660 bluetooth bluetooth
service irsc_util_oem /vendor/bin/irsc_util "/vendor/etc/sec_config_oem"
class core
user root
oneshot
# Avoid running ril-daemon services on qualcomm model
service vendor.ril-daemon /vendor/bin/hw/rild-dummy
override
service vendor.ril-daemon1 /vendor/bin/hw/rild-dummy
override
service vendor.ril-daemon2 /vendor/bin/hw/rild-dummy
override
service vendor.ril-daemon3 /vendor/bin/hw/rild-dummy
override
# Disable vendor.embmsslServer to fix VTS failure
# as vendor.embmsslServer is not running even though it has interface
service vendor.embmsslServer /vendor/bin/embmsslServer
override
on property:init.svc.vendor.netmgrd=running && property:ro.vendor.use_data_netmgrd=false
stop vendor.netmgrd
# To enable QMS logs
on post-fs-data
mkdir /data/vendor/qms_logs 0775 radio system
mkdir /data/vendor/qms_logs/main 0775 radio system
mkdir /data/vendor/qms_logs/other 0775 radio system
mkdir /data/vendor/qms_logs/config 0775 radio system
copy /vendor/etc/qms_log_config /data/vendor/qms_logs/config/qms_log_config
chmod 0666 /data/vendor/qms_logs/config/qms_log_config
-62
View File
@@ -1,62 +0,0 @@
on post-fs-data
# for boot_wlan
chown wifi wifi /sys/kernel/boot_wlan/boot_wlan
chmod 0640 /sys/kernel/boot_wlan/boot_wlan
# for WIFI qcwlanstate
chown wifi wifi /sys/wifi/qcwlanstate
chmod 0644 /sys/wifi/qcwlanstate
chown wifi wifi /sys/wifi/wifiver
chmod 0640 /sys/wifi/wifiver
chown wifi wifi /sys/wifi/softap
chmod 0640 /sys/wifi/softap
symlink /data/vendor/ramdump /data/vendor/log/wifi/ramdump
chown system wifi /data/vendor/log/wifi/ramdump
# for WIFI Antenna
write /data/vendor/conn/.wificable.info E
chown system root /data/vendor/conn/.wificable.info
chmod 0666 /data/vendor/conn/.wificable.info
chown wifi root /sys/wifi/wificable
chmod 0664 /sys/wifi/wificable
# for WIFI TRP/TIS
chown wifi wifi /data/vendor/conn/.psm.info
chmod 0644 /data/vendor/conn/.psm.info
chown wifi wifi /sys/wifi/pm
chmod 0640 /sys/wifi/pm
# for WIFI Antenna Selection
chown wifi wifi /data/vendor/conn/.ant.info
chmod 0644 /data/vendor/conn/.ant.info
chown wifi wifi /sys/wifi/ant
chmod 0640 /sys/wifi/ant
on property:vendor.wlan.ramdump_mode=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
stop vendor.ss_ramdump
on property:vendor.wlan.ramdump_mode=2
write /sys/module/subsystem_restart/parameters/enable_ramdumps 2
stop vendor.ss_ramdump
#start vendor.ss_ramdump
on property:vendor.wlan.ramdump_mode=3
write /sys/module/subsystem_restart/parameters/enable_ramdumps 3
stop vendor.ss_ramdump
#start vendor.ss_ramdump
on property:sys.boot_completed=1
chown wifi wifi /sys/module/wlan/parameters/fwpath
chmod 0644 /sys/module/wlan/parameters/fwpath
chown wifi wifi /sys/module/wlan/parameters/con_mode
chmod 0644 /sys/module/wlan/parameters/con_mode
on boot
# for wlan FTM app
service ftm_ptt /system/bin/ftm_ptt -d
user root
group radio system
disabled
-83
View File
@@ -1,83 +0,0 @@
# Wi-Fi init file
on post-fs-data
mkdir /data/vendor/conn 0771 wifi wifi
mkdir /data/vendor/wifi 0771 wifi wifi
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
mkdir /data/vendor/log/wifi 0770 wifi system
# for WIFI TRP/TIS
chown wifi wifi /data/vendor/conn/.psm.info
chmod 0640 /data/vendor/conn/.psm.info
# for WIFI Antenna Selection
chown wifi wifi /data/vendor/conn/.ant.info
chmod 0640 /data/vendor/conn/.ant.info
# for WIFI Version
chown wifi wifi /data/vendor/conn/.wifiver.info
chmod 0644 /data/vendor/conn/.wifiver.info
# for WIFI MEMDUMP
# The default value of below memdump file is set in SecProductFeature
#write /data/vendor/conn/.memdump.info 2
chown wifi wifi /data/vendor/conn/.memdump.info
chmod 0640 /data/vendor/conn/.memdump.info
# for WIFI hotspot
chown wifi wifi /data/vendor/conn/.softap.info
chmod 0644 /data/vendor/conn/.softap.info
chown system wifi /vendor/etc/wifi/indoorchannel.info
chmod 0664 /vendor/etc/wifi/indoorchannel.info
# for updating the supported feature
chown wifi wifi /data/vendor/conn/.feature.info
chmod 0640 /data/vendor/conn/.feature.info
chown wifi wifi /sys/wifi/feature
chmod 0640 /sys/wifi/feature
# for WIFI MAC
mkdir /mnt/vendor/efs/wifi 0775 system wifi
chmod 0775 /mnt/vendor/efs/wifi
chown system wifi /mnt/vendor/efs/wifi/.mac.info
chmod 0664 /mnt/vendor/efs/wifi/.mac.info
chown wifi wifi /mnt/vendor/efs/wifi/.mac.cob
chmod 0644 /mnt/vendor/efs/wifi/.mac.cob
chown wifi wifi /sys/wifi/mac_addr
chmod 0640 /sys/wifi/mac_addr
chown wifi wifi /sys/wifi/dump_in_progress
chmod 0660 /sys/wifi/dump_in_progress
start macloader
on boot
setprop wifi.interface wlan0
# start for WiFi MFG (TestMode)
service mfgloader /vendor/bin/hw/mfgloader
class wlanfactorytest
user wifi
group wifi inet net_raw net_admin
capabilities NET_ADMIN NET_RAW SYS_MODULE
disabled
oneshot
service macloader /vendor/bin/hw/macloader
class main
user wifi
group wifi inet net_raw net_admin
capabilities NET_ADMIN NET_RAW SYS_MODULE
disabled
oneshot
service wlandutservice /system/bin/wlandutservice
class wlanfactorytest
user system
group system wifi net_raw net_admin inet
capabilities NET_ADMIN NET_RAW
disabled
oneshot
# end of WiFi MFG (TestMode)
@@ -1,5 +1,4 @@
# Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
# Copyright (c) 2017, 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
@@ -28,34 +27,6 @@
#
#
on early-init
on init
on late-init
on post-fs
on late-fs
on post-fs-data
on boot
chown radio system /sys/power/cpufreq_max_limit
chown radio system /sys/power/cpufreq_min_limit
chown radio system /sys/power/cpufreq_table
chown radio system /sys/power/over_limit
chmod 664 /sys/power/cpufreq_max_limit
chmod 664 /sys/power/cpufreq_min_limit
chmod 444 /sys/power/cpufreq_table
chmod 664 /sys/power/over_limit
write /sys/power/pm_debug_messages 1
chown radio system /sys/module/lpm_levels/parameters/secdebug
chmod 664 /sys/module/lpm_levels/parameters/secdebug
on shutdown
# service definition
# on property triggers
PRIO=1,1,0,0,0,0,0,0
#arch_timer, arm-pmu, arch_mem_timer
IGNORED_IRQ=19,21,38
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.