e3q: config.fs: Add vendor_secdir

This resolves an issue where the camera service couldn't write to
/sys/power/wake_lock

Change-Id: I826e60ca996888a603a22dd0fcedd921d28897cb
This commit is contained in:
David Wronek 2025-01-04 20:45:43 +01:00
parent 22ea12362e
commit c025acecd5
10 changed files with 123 additions and 42 deletions

View File

@ -1,3 +1,7 @@
# TODO: Fix this file
[AID_VENDOR_SECDIR]
value:5050
[AID_VENDOR_QTI_DIAG] [AID_VENDOR_QTI_DIAG]
value:2901 value:2901

View File

@ -1,4 +1,12 @@
<compatibility-matrix version="8.0" type="framework"> <compatibility-matrix version="8.0" type="framework">
<hal format="aidl" optional="true">
<name>vendor.samsung.hardware.hyper</name>
<version>2</version>
<interface>
<name>ISehHyPer</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true"> <hal format="aidl" optional="true">
<name>vendor.samsung.hardware.authfw</name> <name>vendor.samsung.hardware.authfw</name>
<interface> <interface>

View File

@ -96,6 +96,11 @@ TARGET_SCREEN_HEIGHT := 3120
TARGET_SCREEN_WIDTH := 1440 TARGET_SCREEN_WIDTH := 1440
# Camera # Camera
PRODUCT_PACKAGES += \
android.hardware.graphics.common-V4-ndk.vendor \
libjpeg.vendor \
libyuv.vendor
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \ frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
@ -277,7 +282,6 @@ PRODUCT_PACKAGES += \
init.qti.write.sh \ init.qti.write.sh \
init.vendor.sensordebug.sh \ init.vendor.sensordebug.sh \
init.vendor.sensordebug.ssr_dump.sh \ init.vendor.sensordebug.ssr_dump.sh \
install-recovery.sh \
qca6234-service.sh \ qca6234-service.sh \
system_dlkm_modprobe.sh \ system_dlkm_modprobe.sh \
ueventd.qcom.rc \ ueventd.qcom.rc \
@ -306,9 +310,9 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.qcom $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.qcom
# Sensors # Sensors
PRODUCT_PACKAGES += \ #PRODUCT_PACKAGES += \
android.hardware.sensors-service.samsung-multihal \ # android.hardware.sensors-service.samsung-multihal \
sensors.dynamic_sensor_hal # sensors.dynamic_sensor_hal
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf $(LOCAL_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf

View File

@ -42,12 +42,13 @@ def lib_fixup_vendor_suffix(lib: str, partition: str, *args, **kwargs):
lib_fixups: lib_fixups_user_type = { lib_fixups: lib_fixups_user_type = {
**lib_fixups, **lib_fixups,
( (
'libsecril-client' 'libsecril-client',
'libhyper'
): lib_fixup_vendor_suffix, ): lib_fixup_vendor_suffix,
( (
'libagmclient', 'libagmclient',
'libpalclient', 'libpalclient',
'libwpa_client', 'libwpa_client'
): lib_fixup_remove, ): lib_fixup_remove,
} }

View File

@ -36,6 +36,7 @@ vendor/lib64/rfs/dsp/snap/libQnnHtpV75Skel.so:vendor/lib/rfsa/adsp/snap/libQnnHt
vendor/etc/LVACFS_Calibration.dat vendor/etc/LVACFS_Calibration.dat
vendor/etc/LVACFS_Configuration.txt vendor/etc/LVACFS_Configuration.txt
vendor/etc/LVACFS_ControlParams.txt vendor/etc/LVACFS_ControlParams.txt
vendor/etc/SoundBoosterParam.txt
vendor/etc/audconf/OPEN/acdb_cal.acdb vendor/etc/audconf/OPEN/acdb_cal.acdb
vendor/etc/audconf/OPEN/workspaceFileXml.qwsp vendor/etc/audconf/OPEN/workspaceFileXml.qwsp
vendor/etc/init/init.audio.samsung.rc vendor/etc/init/init.audio.samsung.rc
@ -152,14 +153,44 @@ vendor/lib64/vendor.qti.hardware.fm@1.0.so
vendor/lib64/vendor.samsung.hardware.bluetooth.audio-impl.so vendor/lib64/vendor.samsung.hardware.bluetooth.audio-impl.so
# Camera # Camera
vendor/bin/hw/android.hardware.camera.provider-V1-external-service
vendor/bin/hw/vendor.samsung.hardware.camera.provider-service_64 vendor/bin/hw/vendor.samsung.hardware.camera.provider-service_64
vendor/etc/DsgpPolicy.csv vendor/etc/DsgpPolicy.csv
vendor/etc/aip/config/PCC_Config-timestamp
vendor/etc/aip/config/pcc_config.json
vendor/etc/aip/model/1129_dummy_1441_cached.dlc
vendor/etc/aip/model/CIGSOL_SWISP_200M_v1.6.2_Exp18_e12850_592x4176_A16W8_cached.dlc
vendor/etc/aip/model/CIGSOL_fp32_ver220923_HTP_FP16_cached.dlc
vendor/etc/aip/model/FP16_dummy_HTP_FP16_cached.dlc
vendor/etc/aip/model/ModelSet2_AIMFISP-timestamp
vendor/etc/aip/model/ModelSet2_eraw_AIMFISP-timestamp
vendor/etc/aip/model/ModelSet_AIMFISP-timestamp
vendor/etc/aip/model/ModelSet_AISR-timestamp
vendor/etc/aip/model/ModelSet_eraw_AIMFISP-timestamp
vendor/etc/aip/model/ModelSet_v-timestamp
vendor/etc/aip/model/aiisp_1x_C2C_cached.dlc
vendor/etc/aip/model/aiisp_1x_T2C_Indoor_cached.dlc
vendor/etc/aip/model/aiisp_1x_T2C_Outdoor_cached.dlc
vendor/etc/aip/model/aiisp_1x_ll_C2C_cached.dlc
vendor/etc/aip/model/aiisp_2x_C2C_cached.dlc
vendor/etc/aip/model/aiisp_2x_ll_C2C_cached.dlc
vendor/etc/aip/model/aiisp_4x_C2C_cached.dlc
vendor/etc/aip/model/mfisp_eraw_model_mf_Tetra_RGB_fp16.dlc
vendor/etc/aip/model/mfisp_eraw_model_nl_Tetra_RGB_fp16.dlc
vendor/etc/aip/model/mfisp_model_ll_Tetra_RGB_fp16.dlc
vendor/etc/aip/model/mfisp_model_mf_Tetra_RGB_fp16.dlc
vendor/etc/aip/model/mfisp_model_nl_Tetra_RGB_fp16.dlc
vendor/etc/aip/model/mfisp_tmodel_ll_Tetra_RGB_fp16.dlc
vendor/etc/aip/model/mfisp_tmodel_nl_Tetra_RGB_fp16.dlc
vendor/etc/beauty/settings.dat
vendor/etc/external_camera_config.xml vendor/etc/external_camera_config.xml
vendor/etc/init/android.hardware.camera.provider-V1-external-service.rc
vendor/etc/init/camera.unihal.rc vendor/etc/init/camera.unihal.rc
vendor/etc/init/vendor.samsung.hardware.camera.provider-service_64.rc vendor/etc/init/vendor.samsung.hardware.camera.provider-service_64.rc
vendor/etc/portrait_data/SRIB_ClatNetLite_INT8_V003_sm8650_vendor.tvm.so vendor/etc/portrait_data/SRIB_ClatNetLite_INT8_V003_sm8650_vendor.tvm.so
vendor/etc/portrait_data/dual_portrait_product.json vendor/etc/portrait_data/dual_portrait_product.json
vendor/etc/portrait_data/single_bokeh_feature_vendor.json vendor/etc/portrait_data/single_bokeh_feature_vendor.json
vendor/etc/sat/arcsat_fusion.config
vendor/etc/str/str_preference_data.dat vendor/etc/str/str_preference_data.dat
vendor/etc/vintf/manifest/vendor.qti.camera.aon-impl.xml vendor/etc/vintf/manifest/vendor.qti.camera.aon-impl.xml
vendor/etc/vintf/manifest/vendor.qti.camera.offlinecamera-impl.xml vendor/etc/vintf/manifest/vendor.qti.camera.offlinecamera-impl.xml
@ -168,6 +199,7 @@ vendor/etc/vintf/manifest/vendor.samsung.hardware.camera.provider-service.xml
vendor/lib64/AIAwbModelFront_v1.0.tflite vendor/lib64/AIAwbModelFront_v1.0.tflite
vendor/lib64/AIAwbModel_v2.3.tflite vendor/lib64/AIAwbModel_v2.3.tflite
vendor/lib64/SWPD_libTsAf.so;FIX_SONAME vendor/lib64/SWPD_libTsAf.so;FIX_SONAME
vendor/lib64/android.hardware.camera.provider-V1-external-impl.so
vendor/lib64/camera.device-external-impl.so;DISABLE_DEPS vendor/lib64/camera.device-external-impl.so;DISABLE_DEPS
vendor/lib64/camera/bitmlconfig.bin vendor/lib64/camera/bitmlconfig.bin
vendor/lib64/camera/camxfl115indices.bin vendor/lib64/camera/camxfl115indices.bin
@ -519,6 +551,7 @@ vendor/lib64/libjump_shot.uniplugin@1.0.so
vendor/lib64/liblivefocus_preview_engine.so vendor/lib64/liblivefocus_preview_engine.so
vendor/lib64/liblivefocus_preview_interface.so vendor/lib64/liblivefocus_preview_interface.so
vendor/lib64/liblocaltm_capture.uniplugin@1.0.so vendor/lib64/liblocaltm_capture.uniplugin@1.0.so
vendor/lib64/liblocaltm_preview.uniplugin@1.0.so
vendor/lib64/libmaskdetection.uniplugin@1.0.so vendor/lib64/libmaskdetection.uniplugin@1.0.so
vendor/lib64/libmcaimegpu.samsung.so vendor/lib64/libmcaimegpu.samsung.so
vendor/lib64/libmctfengine_stub.so vendor/lib64/libmctfengine_stub.so
@ -775,18 +808,25 @@ vendor/lib64/libqsocket.so
vendor/lib64/vendor.qti.diaghal@1.0.so vendor/lib64/vendor.qti.diaghal@1.0.so
# Display # Display
vendor/bin/hw/vendor.qti.hardware.display.color-service
vendor/bin/ppd
vendor/bin/qdcmss vendor/bin/qdcmss
vendor/etc/clstc_config_library.xml vendor/etc/clstc_config_library.xml
vendor/etc/displayconfig/display_id_4630947039571902851.xml
vendor/etc/init/qdcmss.rc vendor/etc/init/qdcmss.rc
vendor/etc/init/vendor.qti.hardware.display.color-service.rc
vendor/etc/snapdragon_color_libs_config.xml vendor/etc/snapdragon_color_libs_config.xml
vendor/etc/vintf/manifest/androd.hardware.camera.provider-external-service.xml
vendor/lib64/hw/vulkan.adreno.so vendor/lib64/hw/vulkan.adreno.so
vendor/lib64/libclstc_algorithm_adapter.so vendor/lib64/libclstc_algorithm_adapter.so
vendor/lib64/libclstc_gcp_adapter.so vendor/lib64/libclstc_gcp_adapter.so
vendor/lib64/libclstc_tm.so vendor/lib64/libclstc_tm.so
vendor/lib64/libdigital-dimming.so vendor/lib64/libdigital-dimming.so
vendor/lib64/libdisp-aba.so
vendor/lib64/libdisplaydebug.so vendor/lib64/libdisplaydebug.so
vendor/lib64/libdisplayqos.so vendor/lib64/libdisplayqos.so
vendor/lib64/libdisplayskuutils.so vendor/lib64/libdisplayskuutils.so
vendor/lib64/libdpps.so
vendor/lib64/libgame_enhance.so vendor/lib64/libgame_enhance.so
vendor/lib64/libhdr_tm.so vendor/lib64/libhdr_tm.so
vendor/lib64/libhdradaptivecustom.so vendor/lib64/libhdradaptivecustom.so
@ -812,6 +852,13 @@ vendor/lib64/libsnapdragoncolor-qdcm.so
vendor/lib64/libtestutils.so vendor/lib64/libtestutils.so
vendor/lib64/libtinyxml2_1.so vendor/lib64/libtinyxml2_1.so
vendor/lib64/libvmfilexfer.so vendor/lib64/libvmfilexfer.so
vendor/lib64/vendor.display.color@1.0.so
vendor/lib64/vendor.display.color@1.1.so
vendor/lib64/vendor.display.color@1.2.so
vendor/lib64/vendor.display.color@1.3.so
vendor/lib64/vendor.display.color@1.4.so
vendor/lib64/vendor.display.color@1.5.so
vendor/lib64/vendor.display.postproc@1.0.so
# Display configs # Display configs
vendor/etc/display/DPU10__.xml vendor/etc/display/DPU10__.xml
@ -842,6 +889,7 @@ vendor/etc/display/qdcm_calib_data_vtdr6130_amoled_qsync_video_mode_dsi_visionox
vendor/etc/display/qdcm_calib_data_vtdr6130_amoled_video_mode_dsi_visionox_panel_with_DSC.json vendor/etc/display/qdcm_calib_data_vtdr6130_amoled_video_mode_dsi_visionox_panel_with_DSC.json
# Dolby # Dolby
vendor/etc/dolby/dax-default.xml
vendor/etc/media_codecs_dolby_audio.xml vendor/etc/media_codecs_dolby_audio.xml
# DSP # DSP
@ -1145,10 +1193,19 @@ vendor/lib64/libisosechw.so
vendor/lib64/libshctrl.so vendor/lib64/libshctrl.so
vendor/lib64/vendor.samsung.hardware.security.hermes-V1-ndk.so vendor/lib64/vendor.samsung.hardware.security.hermes-V1-ndk.so
# Health
vendor/bin/hw/vendor.samsung.hardware.health-service
vendor/etc/init/vendor.samsung.hardware.health-service.rc
vendor/lib64/vendor.samsung.hardware.health-V1-ndk.so
# Hyper # Hyper
vendor/bin/hw/vendor.samsung.hardware.hyper-service
vendor/etc/hyper/config_chipset.json vendor/etc/hyper/config_chipset.json
vendor/etc/hyper/config_hyper_permission.json vendor/etc/hyper/config_hyper_permission.json
vendor/etc/hyper/config_vendor.json vendor/etc/hyper/config_vendor.json
vendor/etc/init/hyper-default-sec.rc
vendor/etc/vintf/manifest/hyper-default-sec.xml
vendor/lib64/libhyper.so;MODULE_SUFFIX=_vendor
vendor/lib64/libhypervintf.so vendor/lib64/libhypervintf.so
vendor/lib64/vendor.samsung.hardware.hyper-V2-ndk.so vendor/lib64/vendor.samsung.hardware.hyper-V2-ndk.so
@ -1465,10 +1522,13 @@ vendor/lib64/libqcbor.so
# Sensors # Sensors
vendor/bin/factory.ssc vendor/bin/factory.ssc
vendor/bin/hw/android.hardware.sensors-service.multihal
vendor/bin/init.qcom.sensors.sh vendor/bin/init.qcom.sensors.sh
vendor/bin/sensors.qti vendor/bin/sensors.qti
vendor/bin/sscrpcd vendor/bin/sscrpcd
vendor/etc/init/android.hardware.sensors-service-multihal.rc
vendor/etc/init/init.vendor.sensors.rc vendor/etc/init/init.vendor.sensors.rc
vendor/etc/init/vendor.sensordebug.rc
vendor/etc/init/vendor.sensors.qti.rc vendor/etc/init/vendor.sensors.qti.rc
vendor/etc/init/vendor.sensors.sscrpcd.rc vendor/etc/init/vendor.sensors.sscrpcd.rc
vendor/etc/sensors/config/akmlib.json vendor/etc/sensors/config/akmlib.json
@ -1512,6 +1572,7 @@ vendor/etc/sensors/config/sns_tilt.json
vendor/etc/sensors/config/sns_tilt_sw_disabled.json vendor/etc/sensors/config/sns_tilt_sw_disabled.json
vendor/etc/sensors/config/sns_tilt_sw_enabled.json vendor/etc/sensors/config/sns_tilt_sw_enabled.json
vendor/etc/sensors/sns_reg_config vendor/etc/sensors/sns_reg_config
vendor/etc/vintf/manifest/android.hardware.sensors-multihal.xml
vendor/lib64/libqsh.so vendor/lib64/libqsh.so
vendor/lib64/libsensorslog.so vendor/lib64/libsensorslog.so
vendor/lib64/libsns_api.so vendor/lib64/libsns_api.so
@ -1598,15 +1659,6 @@ vendor/etc/init/vendor.samsung.hardware.vibrator-default.rc
vendor/etc/vintf/manifest/vendor.samsung.hardware.vibrator-default.xml vendor/etc/vintf/manifest/vendor.samsung.hardware.vibrator-default.xml
vendor/lib64/vendor.samsung.hardware.vibrator-V5-ndk.so vendor/lib64/vendor.samsung.hardware.vibrator-V5-ndk.so
# WFD
vendor/lib64/libmmrtpdecoder_vendor.so
vendor/lib64/libmmrtpencoder_vendor.so
vendor/lib64/libwfdcodecv4l2_proprietary.so
vendor/lib64/libwfdcommonutils_proprietary.so
vendor/lib64/libwfddisplayconfig_vendor.so
vendor/lib64/libwfdmminterface_proprietary.so
vendor/lib64/libwfdutils_proprietary.so
# Wi-Fi # Wi-Fi
vendor/bin/cnss-daemon vendor/bin/cnss-daemon
vendor/bin/cnss_diag;DISABLE_DEPS vendor/bin/cnss_diag;DISABLE_DEPS
@ -1622,6 +1674,36 @@ vendor/etc/wifi/p2p_supplicant_overlay.conf
vendor/etc/wifi/wpa_supplicant.conf vendor/etc/wifi/wpa_supplicant.conf
vendor/etc/wifi/wpa_supplicant_overlay.conf vendor/etc/wifi/wpa_supplicant_overlay.conf
# Wi-Fi Display
vendor/bin/wifidisplayhalservice
vendor/etc/wfdconfig.xml
vendor/lib64/hw/vendor.qti.hardware.wifidisplaysession@1.0-impl.so
vendor/lib64/libmmrtpdecoder_vendor.so
vendor/lib64/libmmrtpencoder_vendor.so
vendor/lib64/libwfdaac_vendor.so
vendor/lib64/libwfdcodecv4l2_proprietary.so
vendor/lib64/libwfdcommonutils_proprietary.so
vendor/lib64/libwfdconfigutils_proprietary.so
vendor/lib64/libwfddisplayconfig_vendor.so
vendor/lib64/libwfdhdcpcp.so
vendor/lib64/libwfdhdcpservice_proprietary.so
vendor/lib64/libwfdmminterface_proprietary.so
vendor/lib64/libwfdmmservice_proprietary.so
vendor/lib64/libwfdmmsrc_proprietary.so
vendor/lib64/libwfdmodulehdcpsession.so
vendor/lib64/libwfdrtsp_vendor.so
vendor/lib64/libwfdsessionmodule.so
vendor/lib64/libwfdsourcesession_proprietary.so
vendor/lib64/libwfdsourcesm_proprietary.so
vendor/lib64/libwfduibcinterface_vendor.so
vendor/lib64/libwfduibcsink_vendor.so
vendor/lib64/libwfduibcsinkinterface_vendor.so
vendor/lib64/libwfduibcsrc_vendor.so
vendor/lib64/libwfduibcsrcinterface_vendor.so
vendor/lib64/libwfdutils_proprietary.so
vendor/lib64/vendor.qti.hardware.wifidisplaysession@1.0.so
vendor/lib64/vendor.qti.hardware.wifidisplaysessionl@1.0-halimpl.so
# Widevine DRM # Widevine DRM
vendor/bin/hw/vendor.samsung.hardware.security.widevine.keyprov-service vendor/bin/hw/vendor.samsung.hardware.security.widevine.keyprov-service
vendor/etc/init/vendor.samsung.hardware.security.widevine.keyprov-service.rc vendor/etc/init/vendor.samsung.hardware.security.widevine.keyprov-service.rc

View File

@ -173,12 +173,6 @@ sh_binary {
vendor: true, vendor: true,
} }
sh_binary {
name: "install-recovery.sh",
src: "bin/install-recovery.sh",
vendor: true,
}
sh_binary { sh_binary {
name: "qca6234-service.sh", name: "qca6234-service.sh",
src: "bin/qca6234-service.sh", src: "bin/qca6234-service.sh",

View File

@ -1,12 +0,0 @@
#!/vendor/bin/sh
if ! applypatch --check EMMC:/dev/block/bootdevice/by-name/recovery$(getprop ro.boot.slot_suffix):110034944:fb67367b173f54e3bc51d601d18084bca70ad952; then
applypatch \
--patch /vendor/recovery-from-boot.p \
--source EMMC:/dev/block/bootdevice/by-name/boot$(getprop ro.boot.slot_suffix):100663296:6bae827ab03d5a9c73d764a2bed3c454358ebd45 \
--target EMMC:/dev/block/bootdevice/by-name/recovery$(getprop ro.boot.slot_suffix):110034944:fb67367b173f54e3bc51d601d18084bca70ad952 && \
(log -t install_recovery "Installing new recovery image: succeeded" && setprop vendor.ota.recovery.status 200) || \
(log -t install_recovery "Installing new recovery image: failed" && setprop vendor.ota.recovery.status 454)
else
log -t install_recovery "Recovery image already installed" && setprop vendor.ota.recovery.status 200
fi

View File

@ -27,13 +27,6 @@
# #
# #
service logger /system/bin/logcat -b all -D -f /metadata/boot_log.txt
class main
user root
group root system
disabled
oneshot
on early-init on early-init
on init on init
@ -41,7 +34,6 @@ on init
on late-init on late-init
on post-fs on post-fs
start logger
on late-fs on late-fs

View File

@ -114,3 +114,11 @@ service factory_ssc /vendor/bin/factory.ssc
on property:sys.boot_completed=1 on property:sys.boot_completed=1
setprop ro.factory.sensor.delay.init 1 setprop ro.factory.sensor.delay.init 1
on property:sys.dexopt.ctrl=true
setprop dalvik.vm.dex2oat-cpu-set "0,1,5,6"
setprop dalvik.vm.dex2oat-threads 4
on property:sys.dexopt.ctrl=false
setprop dalvik.vm.dex2oat-cpu-set ""
set_dex2oat_threads ctrl

View File

@ -64,7 +64,7 @@ vendor.audio.flac.sw.decoder.24bit=true
vendor.audio.hal.boot.timeout.ms=20000 vendor.audio.hal.boot.timeout.ms=20000
vendor.audio.hal.output.suspend.supported=true vendor.audio.hal.output.suspend.supported=true
vendor.audio.hw.aac.encoder=false vendor.audio.hw.aac.encoder=false
vendor.audio.offload.buffer.size.kb=32 vendor.audio.offload.buffer.size.kb=256
vendor.audio.offload.gapless.enabled=true vendor.audio.offload.gapless.enabled=true
vendor.audio.offload.multiaac.enable=true vendor.audio.offload.multiaac.enable=true
vendor.audio.offload.multiple.enabled=false vendor.audio.offload.multiple.enabled=false