49 Commits
bka ... vic

Author SHA1 Message Date
Atakan
a20c55e212 sm7325-common: Ship prebuilt audio hal extensions
These extensions have dependencies on Samsung specific libraries such as libsecaudioinfo or libsamsungVoipResampler.

Ship prebuilts to be sure everything is fine under the hood.

Change-Id: Ic1ec29a1a19f3e1a9c1d93426eb2f1bca06b4a01
2025-10-03 13:35:19 +07:00
Atakan
9b866f15ea sm7325-common: Align audio flags with prebuilt hal
Change-Id: I8c3e7c5e18b05494e831155a4242c3667bf702d2
2025-10-03 13:35:15 +07:00
anhdat1024
35fa2d6cb5 sm7325-common: overlay: Adjust status bar start padding
Change-Id: If815c593e0bfcc77946e1fea6b9454660a0004c4
2025-10-03 13:20:58 +07:00
anhdat1024
3d933ac125 sm7325-common: overlay: Adjust carrier text margin
Change-Id: I3208fb334df86e0ac6cb3e9b292a6822b13fe7d7
2025-10-03 13:20:58 +07:00
Simon1511
e7aefdb908 Revert "sm7325-common: rootdir: move goodix_fp permissions to early-init"
This reverts commit 5310153bca.

Fixed by https://review.lineageos.org/c/LineageOS/android_hardware_samsung/+/434076

Change-Id: I604036ccc73edc448278aa0b06f0c22effffb812
2025-10-03 13:20:58 +07:00
anhdat1024
9820b42d06 sm7325-common: Initialize for EvolutionX 10.X
Change-Id: I993dcecb1263e122e157162278a9f0a66d27df89
2025-10-03 13:20:27 +07:00
Bruno Martins
fc0db8e84a sm7325-common: Move to Samsung common LiveDisplay HAL
Change-Id: I5df8cede62b050f9e562e680d171768d4c9ad26c
2025-10-03 12:26:25 +07:00
Bruno Martins
94cd56de96 sm7325-common: sepolicy: Migrate to LiveDisplay QTI domain
Change-Id: I59f1e145cab525a69065296778ec4e48645bd439
2025-10-03 12:26:04 +07:00
Bruno Martins
8a5d6e586d sm7325-common: overlay: Update color modes
Change-Id: Id99196a894eff5ce7a6eb83399495a6ad5f8884a
2025-10-03 12:25:53 +07:00
Bruno Martins
ba7e829f91 sm7325-common: Move to Samsung common Touch HAL
Change-Id: I5c4de6e4956e316600e327b725b863ddf9e63fc1
2025-10-03 12:25:43 +07:00
LuK1337
86990e11e9 sm7325-common: Migrate to lineagehealth IFastCharge
Change-Id: Ia2f1f213de2f2e5afd913e5de38712fddc386b49
2025-10-03 12:25:34 +07:00
Bruno Martins
5e5cb751cb sm7325-common: Set vendor init lib via soong config
Change-Id: I8f7e6b987bee58dbf09ca9ad7cfd5a7e99e19c3b
2025-10-03 12:24:16 +07:00
Bruno Martins
6b0191fc61 sm7325-common: touch: Use pragma once directive
Change-Id: I3a3404a0ffa8ae9da845ba422adc0ff2ab0590ef
2025-10-03 12:23:44 +07:00
Bruno Martins
37b1cadbe8 sm7325-common: touch: Migrate to AIDL
Change-Id: Ibbac9b4320fc64c5b6f365b8e9bd977d71d0d4dd
2025-10-03 12:23:36 +07:00
Bruno Martins
ddbeac45c5 sm7325-common: touch: Fix access node for gestures support check
Change-Id: Idfed98d2c0d940abeb15f98dea65bad1b0bcafb6
2025-10-03 12:23:22 +07:00
Bruno Martins
e56f967349 sm7325-common: touch: Properly check if gestures are supported
Considering that only "Single Tap" gesture support is currently
implemented here, it is more proper to check if the corresponding
command is listed as available.

Change-Id: I94697d572c8d5cf04fabfd76c6db9c25257aad29
2025-10-03 12:23:01 +07:00
Atakan
36bdb60e16 sm7325-common: touch: Add HighTouchPollingRate
Change-Id: I3a9629660baa874ab958ba5640951d4f62d669d7
2025-10-03 12:22:43 +07:00
DY3413
f3cb4c7f64 sm7325-common: touch: Use samsung_header_path_defaults
Reference: Ibdfd255efafd471e59dfec0860ace40c21a6e27f
Change-Id: If6d25ec56dc46a4527480f13d6a084e4cca4fe44
Signed-off-by: DY3413 <milosix3413@gmail.com>
2025-10-03 12:22:34 +07:00
Bruno Martins
1319de6729 sm7325-common: touch: Include VINTF fragment
Change-Id: I477318ba43537e43d1a19a6183abc8b893f8c1cf
2025-10-03 12:22:25 +07:00
Atakan
f339c415bc sm7325-common: livedisplay: Stop controlling ALPM
ALPM controls display LPM for AoD and should be controlled by Doze services, not by the user.

Import AdaptiveBacklight from hardware_samsung to give proper control to the user.

Change-Id: I51860027c4c4ae062945dd982f9ae69e1ba1cf2d
2025-10-03 12:22:15 +07:00
Atakan
21afb50c85 sm7325-common: livedisplay: Add DisplayModes
Change-Id: Ic8288ad9f4de5f7f7615ced8ac855feeac5dbfce
2025-10-03 12:22:07 +07:00
Bruno Martins
2aa3a069ce sm7325-common: livedisplay: Use pragma once directive
Change-Id: Icb26f68f769ccd202d415d6e4df3568694514fc1
2025-10-03 12:21:54 +07:00
Cosmin Tanislav
086303e2a5 sm7325-common: livedisplay: Use VINTF fragment
Change-Id: I5f48fda01125933db7dccc76902675efef1fb2e5
2025-10-03 12:21:22 +07:00
tilt-rgb
f5d7430a9e sm7325-common: Fix Spatial Audio 2025-08-10 08:24:58 +07:00
anhdat1024
7bb5181d56 sm7325-common: overlay: Enable screen-off UDFPS unlock
Allows devices with Under Display FingerPrint Sensor to unlock while the screen is off.
2025-08-10 08:24:58 +07:00
ShevT
b58fed1df8 sm7325-common: overlay: Allow restart SystemUI 2025-08-10 08:24:58 +07:00
justinntime
8d5beab76f sm7325-common: overlay: Update qs panel padding top 2025-08-10 08:24:57 +07:00
Tilt
4205e75a5c sm7325-common: Track hardware/samsung-extra 2025-08-10 08:24:57 +07:00
kamikaonashi
1c2735dfbc sm7325-common: Add charging bypass manual toggle [2/2] 2025-08-10 08:24:57 +07:00
emilchung
15d12bff40 sm7325-common: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
2025-08-10 08:24:57 +07:00
Andy Hung
413a753905 sm7325-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread.
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of
android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of
android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Merged-In: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56

Change-Id: I21697423e8c20b34040c5a6641126918b0d75bb5
2025-08-10 08:24:57 +07:00
Andy Hung
a2a68bbe66 sm7325-common: rootdir: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Merged-In: If56e449a9c6f1a49e372591893d8714534574e3a
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
2025-08-10 08:24:56 +07:00
koko-07870
8e4eebbbd5 sm7325-common: Add flash control app
- App to modify flash intesity

Signed-off-by: koko-07870 <ko282ko82@gmail.com>
Co-authored-by: Soo-Hwan Na <whiteshell2544@naver.com>
2025-08-10 08:24:56 +07:00
swiitchOFF
56ef533035 sm7325-common: audio: Sync with Spatial Audio 2025-08-10 08:24:56 +07:00
justinntime
a7bcab7617 sm7325-common: sepolicy: Introduce Charging info tile functionality [2/2] 2025-08-10 08:24:56 +07:00
just_inntime
46f1374693 sm7325-common: sepolicy: Update parts thermal access 2025-08-10 08:24:56 +07:00
just_inntime
e14b765a0e sm7325-common: Introduce parts [2/2]
Based on XiaomiParts for peridot
Special thanks to kenway214
2025-08-10 08:24:56 +07:00
swiitchOFF
d5119be483 sm7325-common: Include Sony Dolby Atmos
* Using dolby from: https://github.com/swiitch-OFF-Lab/hardware_dolby
[1]: sm8350-common: Add dolby volume listener effect
[2]: sm8350-common: audio: Bring all stream effects

Co-Authored-By: HELLBOY017 <abhaygill017@gmail.com>
Signed-off-by: swiitchOFF <120115258+swiitchOFF@users.noreply.github.com>
2025-08-10 08:24:56 +07:00
Tilt
64b601b3a8 sm7325-common: Uprev manifest target level to 6 and set kernel target level to 5
Signed-off-by: tilt-rgb <lesma_chan@pm.me>
2025-08-10 08:24:55 +07:00
tilt-rgb
05416f8d1c sm7325-common: manifest_yupik => manifest_lahaina
* Needed for dolby compatibility

Signed-off-by: tilt-rgb <lesma_chan@pm.me>
2025-08-10 08:24:55 +07:00
Hakam Assouad
b410754e3a sm7325-common: audio: Drop 24 and 32 bit recording support 2025-08-10 08:24:55 +07:00
Anh Dat
2ee39b72d5 sm7325-common: Add crdroid.dependencies 2025-08-10 08:24:55 +07:00
Simon1511
21667ce404 sm7325-common: rootdir: add bind mounts for M526B/BR BL rev7
Change-Id: I91cf27c5cc5adc4bfa65e11a163df0a2ead59293
2025-08-10 08:24:55 +07:00
Anh Dat
6a0fa982bd sm7325-common: rootdir: add bind mounts for A528N BL rev7 2025-08-10 08:24:55 +07:00
Anh Dat
31c3a5cc1a sm7325-common: Migrate Lineage Health to soong_config_set 2025-08-10 08:24:54 +07:00
anhdat1024
eb5a66a1ac sm7325-common: Rename lineage.dependencies to crdroid.dependencies 2025-08-10 08:24:54 +07:00
anhdat1024
9a20be388a sm7325-common: overlay: Update padding for status bar and QS panel, keyguard carrier context 2025-08-10 08:24:54 +07:00
anhdat1024
5bf3318dd3 sm7325-common: overlay: Set screen recorder and AOD max refresh rate to 60Hz and Refine status bar padding top 2025-08-10 08:24:54 +07:00
anhdat1024
f87759b0df sm7325-common: overlay: Adjust status bar height and corner padding 2025-08-10 08:24:14 +07:00
58 changed files with 687 additions and 421 deletions

View File

@@ -18,6 +18,8 @@ LOCAL_PATH := $(call my-dir)
ifneq ($(filter a52sxq m52xq a73xq,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)
FIRMWARE_MODEM_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware-modem

View File

@@ -157,17 +157,32 @@ AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
BOARD_SUPPORTS_SOUND_TRIGGER := true
TARGET_PROVIDES_AUDIO_EXTNS := true
# Camera
SOONG_CONFIG_NAMESPACES += samsungCameraVars
SOONG_CONFIG_samsungCameraVars += \
extra_ids \
needs_sec_reserved_field
# ID=54 is macro
SOONG_CONFIG_samsungCameraVars_extra_ids := 54
SOONG_CONFIG_samsungCameraVars_needs_sec_reserved_field := true
# HIDL manifests
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/configs/manifest_lahaina.xml
DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
$(COMMON_PATH)/configs/framework_compatibility_matrix.xml \
hardware/samsung/vintf/samsung_framework_compatibility_matrix.xml \
hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml
hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \
vendor/lineage/config/device_framework_matrix.xml
# QCOM
BOARD_USES_QCOM_HARDWARE := true
# Samsung
BOARD_VENDOR := samsung
# DRM
TARGET_ENABLE_MEDIADRM_64 := true
@@ -190,24 +205,26 @@ ENABLE_VENDOR_RIL_SERVICE := true
# Recovery
BOARD_HAS_DOWNLOAD_MODE := true
BOARD_INCLUDE_RECOVERY_DTBO := true
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/init/fstab.qcom
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
BOARD_RECOVERY_MKBOOTIMG_ARGS += --header_version 2
TARGET_USES_MKE2FS := true
BOARD_USES_FULL_RECOVERY_IMAGE := true
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/recovery/root/fstab.qcom
# Releasetools
TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_samsung_sm7325
TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH)/releasetools
# SePolicy
include device/lineage/sepolicy/libperfmgr/sepolicy.mk
include device/qcom/sepolicy_vndr/SEPolicy.mk
include hardware/samsung-ext/interfaces/sepolicy/SEPolicy.mk
BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
PRODUCT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private
PRODUCT_PUBLIC_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/public
# Vibrator
$(call soong_config_set,samsungVibratorVars,duration_amplitude,true)
# WiFi
BOARD_WLAN_DEVICE := qcwcn
BOARD_HOSTAPD_DRIVER := NL80211

View File

@@ -90,6 +90,7 @@
<libhw library="visualizer_hw" uuid="7a8044a0-1a71-11e3-a184-0002a5d5c51b"/>
</effectProxy>
<effect name="downmix" library="downmix" uuid="93f04452-e4fe-41cc-91f9-e475b6d1d69f"/>
<effect name="hw_acc" library="offload_bundle" uuid="7d1580bd-297f-4683-9239-e475b6d1d69f"/>
<effect name="loudness_enhancer" library="loudness_enhancer" uuid="fa415329-2034-4bea-b5dc-5b381c8d1e2c"/>
<effect name="dynamics_processing" library="dynamics_processing" uuid="e0e6539b-1781-7261-676f-6d7573696340"/>
<effect name="aec" library="audio_pre_processing" uuid="0f8d0d2a-59e5-45fe-b6e4-248c8a799109"/>

View File

@@ -37,7 +37,6 @@ PRODUCT_ENABLE_UFFD_GC := false
# Init files and fstab
PRODUCT_PACKAGES += \
fstab.qcom \
fstab.ramplus \
init.audio.samsung.rc \
init.fingerprint.rc \
@@ -77,7 +76,8 @@ PRODUCT_PACKAGES += \
init.qti.qcv.sh
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom
# Audio
PRODUCT_PACKAGES += \
@@ -123,9 +123,6 @@ PRODUCT_PACKAGES += \
vendor.qti.hardware.camera.device@1.0.vendor \
libui_shim.vendor
$(call soong_config_set_bool,samsungCameraVars,needs_sec_reserved_field,true)
$(call soong_config_set,samsungCameraVars,extra_ids,54)
# CAS
PRODUCT_PACKAGES += \
android.hardware.cas@1.2-service
@@ -194,7 +191,7 @@ PRODUCT_PACKAGES += \
$(call soong_config_set,lineage_health,charging_control_charging_path,/sys/class/power_supply/battery/batt_slate_mode)
$(call soong_config_set,lineage_health,charging_control_charging_enabled,0)
$(call soong_config_set,lineage_health,charging_control_charging_disabled,1)
$(call soong_config_set_bool,lineage_health,charging_control_supports_bypass,false)
$(call soong_config_set,lineage_health,charging_control_supports_bypass,false)
$(call soong_config_set,lineage_health,fast_charge_node,/sys/class/sec/switch/afc_disable)
$(call soong_config_set,lineage_health,fast_charge_value_none,1)
$(call soong_config_set,lineage_health,fast_charge_value_fast_charge,0)
@@ -244,7 +241,7 @@ $(call soong_config_set,samsungVars,target_keymaster4_library,//vendor/samsung/s
# LiveDisplay
PRODUCT_PACKAGES += \
vendor.lineage.livedisplay-service.samsung-qcom
vendor.lineage.livedisplay@2.0-service.samsung-qcom
# Media
PRODUCT_PACKAGES += \
@@ -286,7 +283,7 @@ PRODUCT_PACKAGES += \
ifeq ($(TARGET_HAVE_SEC_NFC),true)
PRODUCT_PACKAGES += \
android.hardware.nfc-service.sec
android.hardware.nfc@1.2-service.samsung
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/nfc/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-sec-vendor.conf
@@ -313,6 +310,7 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.biometrics.face.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
@@ -417,8 +415,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.vibrator-service.samsung
$(call soong_config_set_bool,samsungVibratorVars,duration_amplitude,true)
# Tether
PRODUCT_PACKAGES += \
ipacm \

View File

@@ -8,6 +8,7 @@
<name>IDevicesFactory</name>
<instance>default</instance>
</interface>
<fqname>@7.0::IDevicesFactory/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.audio.effect</name>
@@ -17,6 +18,17 @@
<name>IEffectsFactory</name>
<instance>default</instance>
</interface>
<fqname>@7.0::IEffectsFactory/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.biometrics.face</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBiometricsFace</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IBiometricsFace/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.bluetooth</name>
@@ -26,6 +38,7 @@
<name>IBluetoothHci</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IBluetoothHci/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.gatekeeper</name>
@@ -35,6 +48,7 @@
<name>IGatekeeper</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IGatekeeper/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.keymaster</name>
@@ -44,6 +58,7 @@
<name>IKeymasterDevice</name>
<instance>default</instance>
</interface>
<fqname>@4.0::IKeymasterDevice/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.media.c2</name>
@@ -74,6 +89,11 @@
<name>IRadioConfig</name>
<instance>default</instance>
</interface>
<fqname>@1.1::IRadioConfig/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.radio.deprecated</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>android.hardware.soundtrigger</name>
@@ -83,6 +103,7 @@
<name>ISoundTriggerHw</name>
<instance>default</instance>
</interface>
<fqname>@2.3::ISoundTriggerHw/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.tetheroffload.config</name>
@@ -92,6 +113,7 @@
<name>IOffloadConfig</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IOffloadConfig/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.tetheroffload.control</name>
@@ -101,131 +123,24 @@
<name>IOffloadControl</name>
<instance>default</instance>
</interface>
<fqname>@1.1::IOffloadControl/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>com.qualcomm.qti.dpm.api</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>com.qualcomm.qti.imscmservice</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>com.qualcomm.qti.uceservice</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.cacert</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.capabilityconfigstore</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ICapabilityConfigStore</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.dsp</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IDspService</name>
<instance>dspservice</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.iop</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IIop</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.qseecom</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IQSEECom</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.trustedui</name>
<transport>hwbinder</transport>
<fqname>@1.1::ITrustedInput/default</fqname>
<fqname>@1.1::ITrustedInput/qtee-vm</fqname>
<fqname>@1.2::ITrustedUI/default</fqname>
<fqname>@1.2::ITrustedUI/qtee-vm</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.wifi.wifilearner</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IWifiStats</name>
<instance>wifiStats</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.bluetooth</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehBluetooth</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.bluetooth.a2dp</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISehBluetoothAudioOffload</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.gnss</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehGnss</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio</name>
<transport>hwbinder</transport>
<version>2.2</version>
<interface>
<name>ISehRadio</name>
<instance>slot1</instance>
<instance>slot2</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.bridge</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehBridge</name>
<instance>slot1</instance>
<instance>slot2</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.channel</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehChannel</name>
<instance>epdgd</instance>
<instance>epdgd2</instance>
<instance>imsd</instance>
<instance>imsd2</instance>
</interface>
</hal>
<hal format="aidl">
<name>vendor.lineage.livedisplay</name>
<version>1</version>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IAdaptiveBacklight</name>
<instance>default</instance>
@@ -259,5 +174,227 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.data.factory</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.cacert</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IService</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IService/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.capabilityconfigstore</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ICapabilityConfigStore</name>
<instance>default</instance>
</interface>
<fqname>@1.0::ICapabilityConfigStore/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.data.connection</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.data.latency</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.dsp</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IDspService</name>
<instance>dspservice</instance>
</interface>
<fqname>@1.0::IDspService/dspservice</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.embmssl</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.factory</name>
<transport>hwbinder</transport>
<version>1.1</version>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.iop</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IIop</name>
<instance>default</instance>
</interface>
<fqname>@2.0::IIop/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.mwqemadapter</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.perf</name>
<transport>hwbinder</transport>
<version>2.2</version>
<interface>
<name>IPerf</name>
<instance>default</instance>
</interface>
<fqname>@2.2::IPerf/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.qseecom</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IQSEECom</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IQSEECom/default</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.am</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.ims</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.internal.deviceinfo</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.lpa</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.qcrilhook</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.qtiradio</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.uim</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.uim_remote_client</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.hardware.radio.uim_remote_server</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.trustedui</name>
<transport>hwbinder</transport>
<fqname>@1.1::ITrustedInput/default</fqname>
<fqname>@1.1::ITrustedInput/qtee-vm</fqname>
<fqname>@1.2::ITrustedUI/default</fqname>
<fqname>@1.2::ITrustedUI/qtee-vm</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.hardware.wifi.wifilearner</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IWifiStats</name>
<instance>wifiStats</instance>
</interface>
<fqname>@1.0::IWifiStats/wifiStats</fqname>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.ims.callinfo</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.imsrtpservice</name>
<transport>hwbinder</transport>
</hal>
<hal format="hidl" override="true">
<name>vendor.qti.power.pasrmanager</name>
<transport>hwbinder</transport>
<version>1.0</version>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.bluetooth</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehBluetooth</name>
<instance>default</instance>
</interface>
<fqname>@2.0::ISehBluetooth/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.bluetooth.a2dp</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISehBluetoothAudioOffload</name>
<instance>default</instance>
</interface>
<fqname>@1.0::ISehBluetoothAudioOffload/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.gnss</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehGnss</name>
<instance>default</instance>
</interface>
<fqname>@2.0::ISehGnss/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio</name>
<transport>hwbinder</transport>
<version>2.2</version>
<interface>
<name>ISehRadio</name>
<instance>slot1</instance>
<instance>slot2</instance>
</interface>
<fqname>@2.2::ISehRadio/slot1</fqname>
<fqname>@2.2::ISehRadio/slot2</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.bridge</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehBridge</name>
<instance>slot1</instance>
<instance>slot2</instance>
</interface>
<fqname>@2.0::ISehBridge/slot1</fqname>
<fqname>@2.0::ISehBridge/slot2</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.radio.channel</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISehChannel</name>
<instance>epdgd</instance>
<instance>epdgd2</instance>
<instance>imsd</instance>
<instance>imsd2</instance>
</interface>
<fqname>@2.0::ISehChannel/epdgd</fqname>
<fqname>@2.0::ISehChannel/epdgd2</fqname>
<fqname>@2.0::ISehChannel/imsd</fqname>
<fqname>@2.0::ISehChannel/imsd2</fqname>
</hal>
<kernel target-level="5"/>
</manifest>

View File

@@ -37,11 +37,11 @@ FW_FILE_NAME="sec_s3nrn4v_firmware.bin"
## RF Register for S3NRN4V
#RFREG_FILE="/vendor/etc/nfc/sec_s3nrn4v_hwreg.bin"
RF_HW_DIR_PATH="/vendor/etc/nfc/"
RF_HW_FILE_NAME="sec_s3nrn4v_hwreg.bin"
RF_DIR_PATH="/vendor/etc/nfc/"
RF_FILE_NAME="sec_s3nrn4v_hwreg.bin"
RF_SW_DIR_PATH="/vendor/etc/nfc/"
RF_SW_FILE_NAME="sec_s3nrn4v_swreg.bin"
SW_OPT_DIR_PATH="/vendor/etc/nfc/"
SW_OPT_FILE_NAME="sec_s3nrn4v_swreg.bin"
## --------------- Part-III : Configuration for MW --------------------------------##
####################################################################################
# III-1) Driver path

View File

@@ -2,24 +2,24 @@
{
"repository": "kernel_samsung_sm7325",
"target_path": "kernel/samsung/sm7325",
"branch": "bka"
"branch": "vic"
},
{
"remote": "github-non-los",
"repository": "LineageOS/android_hardware_samsung",
"target_path": "hardware/samsung",
"branch": "lineage-23.1"
"branch": "lineage-22.2"
},
{
"remote": "github-non-los",
"repository": "LineageOS/android_hardware_samsung_slsi_nfc",
"target_path": "hardware/samsung_slsi/nfc",
"branch": "lineage-23.1"
"repository": "LineageOS/android_hardware_samsung_nfc",
"target_path": "hardware/samsung/nfc",
"branch": "lineage-23.0"
},
{
"repository": "vendor_samsung_sm7325-common",
"target_path": "vendor/samsung/sm7325-common",
"branch": "bka"
"branch": "vic"
},
{
"remote": "github-non-los",
@@ -30,6 +30,6 @@
{
"repository": "hardware_samsung-extra_interfaces",
"target_path": "hardware/samsung-ext/interfaces",
"branch": "bka"
"branch": "vic"
}
]

View File

@@ -1,221 +1,29 @@
//
// Copyright (C) 2025 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2023 The LineageOS Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
prebuilt_etc {
name: "fstab.qcom",
src: "fstab.qcom",
soc_specific: true,
}
prebuilt_etc {
name: "fstab.ramplus",
src: "fstab.ramplus",
vendor: true,
}
prebuilt_etc {
name: "init.audio.samsung.rc",
src: "init.audio.samsung.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.fingerprint.rc",
src: "init.fingerprint.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.nfc.samsung.rc",
src: "init.nfc.samsung.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.qcom.rc",
src: "init.qcom.rc",
sub_dir: "init/hw",
vendor: true,
}
prebuilt_etc {
name: "init.qti.kernel.rc",
src: "init.qti.kernel.rc",
sub_dir: "init/hw",
vendor: true,
}
prebuilt_etc {
name: "init.qti.media.rc",
src: "init.qti.media.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.ramplus.rc",
src: "init.ramplus.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.samsung.bsp.rc",
src: "init.samsung.bsp.rc",
sub_dir: "init/hw",
vendor: true,
}
prebuilt_etc {
name: "init.samsung.display.rc",
src: "init.samsung.display.rc",
sub_dir: "init/hw",
vendor: true,
}
prebuilt_etc {
name: "init.samsung.rc",
src: "init.samsung.rc",
sub_dir: "init/hw",
vendor: true,
}
prebuilt_etc {
name: "init.target.rc",
src: "init.target.rc",
sub_dir: "init/hw",
vendor: true,
}
prebuilt_etc {
name: "init.vendor.onebinary.rc",
src: "init.vendor.onebinary.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "vendor.samsung.rilchip.qcom.rc",
src: "vendor.samsung.rilchip.qcom.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.vendor.rilcommon.rc",
src: "init.vendor.rilcommon.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "init.vendor.sensors.rc",
src: "init.vendor.sensors.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "wifi_firmware.rc",
src: "wifi_firmware.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "ueventd.qcom.rc",
src: "ueventd.qcom.rc",
filename: "ueventd.rc",
vendor: true,
}
prebuilt_etc {
name: "wifi_qcom_wcn6750.rc",
src: "wifi_qcom_wcn6750.rc",
sub_dir: "init",
vendor: true,
}
prebuilt_etc {
name: "wifi_sec.rc",
src: "wifi_sec.rc",
sub_dir: "init",
vendor: true,
}
sh_binary {
name: "init.class_main.sh",
src: "init.class_main.sh",
vendor: true,
}
sh_binary {
name: "init.kernel.post_boot.sh",
src: "init.kernel.post_boot.sh",
vendor: true,
}
sh_binary {
name: "init.kernel.post_boot-yupik.sh",
src: "init.kernel.post_boot-yupik.sh",
vendor: true,
}
sh_binary {
name: "init.qcom.class_core.sh",
src: "init.qcom.class_core.sh",
vendor: true,
}
sh_binary {
name: "init.qcom.early_boot.sh",
src: "init.qcom.early_boot.sh",
vendor: true,
}
sh_binary {
name: "init.qcom.post_boot.sh",
src: "init.qcom.post_boot.sh",
vendor: true,
}
sh_binary {
name: "init.qcom.sh",
src: "init.qcom.sh",
vendor: true,
}
sh_binary {
name: "init.qti.chg_policy.sh",
src: "init.qti.chg_policy.sh",
vendor: true,
}
sh_binary {
name: "init.qti.kernel.sh",
src: "init.qti.kernel.sh",
vendor: true,
}
sh_binary {
name: "init.qti.media.sh",
src: "init.qti.media.sh",
vendor: true,
}
sh_binary {
name: "init.qti.qcv.sh",
src: "init.qti.qcv.sh",
vendor: true,
}
sh_binary {
name: "vendor_modprobe.sh",
src: "vendor_modprobe.sh",
vendor: true,
cc_library_static {
name: "libinit_samsung_sm7325",
recovery_available: true,
srcs: ["init_sm7325.cpp"],
whole_static_libs: ["libbase"],
include_dirs: [
"system/libbase/include",
"system/core/init"
],
shared_libs: [
"libbase",
],
}

View File

@@ -1,29 +0,0 @@
//
// Copyright (C) 2023 The LineageOS Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
cc_library_static {
name: "libinit_samsung_sm7325",
recovery_available: true,
srcs: ["init_sm7325.cpp"],
whole_static_libs: ["libbase"],
include_dirs: [
"system/libbase/include",
"system/core/init"
],
shared_libs: [
"libbase",
],
}

View File

@@ -1345,11 +1345,7 @@
<!-- Whether the new Auto Selection Network UI should be shown -->
<bool name="config_enableNewAutoSelectNetworkUI">true</bool>
<!-- Number of physical SIM slots on the device. This includes both eSIM and pSIM slots, and
is not necessarily the same as the number of phones/logical modems supported by the device.
For example, a multi-sim device can have 2 phones/logical modems, but 3 physical slots,
or a single SIM device can have 1 phones/logical modems, but 2 physical slots (one eSIM
and one pSIM) -->
<integer name="config_num_physical_slots">2</integer>
<!-- Whether devices suports in-display fingerprint when screen is off -->
<bool name="config_supportScreenOffUdfps">true</bool>
</resources>

View File

@@ -38,9 +38,6 @@
-->
<dimen name="status_bar_height_landscape">100px</dimen>
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">70px</dimen>
<!-- Default paddings for content around the corners. -->
<dimen name="rounded_corner_content_padding">50px</dimen>

View File

@@ -58,20 +58,20 @@ vendor/lib/lib_soundaliveresampler.so
vendor/lib/lib_SoundAlive_SRC384_ver320.so
vendor/lib/librecordalive.so
vendor/lib/lib_SamsungRec_07010.so
vendor/lib/libexthwplugin.so
vendor/lib/libsndmonitor.so
vendor/lib/libbatterylistener.so
vendor/lib/liba2dpoffload.so
vendor/lib/libexthwplugin.so;MODULE_SUFFIX=_vendor
vendor/lib/libsndmonitor.so;MODULE_SUFFIX=_vendor
vendor/lib/libbatterylistener.so;MODULE_SUFFIX=_vendor
vendor/lib/liba2dpoffload.so;MODULE_SUFFIX=_vendor
vendor/lib/libadm.so
vendor/lib/libcomprcapture.so
vendor/lib/libhdmiedid.so
vendor/lib/libhdmipassthru.so
vendor/lib/libhfp.so
vendor/lib/libcomprcapture.so;MODULE_SUFFIX=_vendor
vendor/lib/libhdmiedid.so;MODULE_SUFFIX=_vendor
vendor/lib/libhdmipassthru.so;MODULE_SUFFIX=_vendor
vendor/lib/libhfp.so;MODULE_SUFFIX=_vendor
vendor/lib/libqtigef.so
vendor/lib/libcirrusspkrprot.so
vendor/lib/libcirrusspkrprot.so;MODULE_SUFFIX=_vendor
vendor/lib/libsurround_3mic_proc.so
vendor/lib/libdrc.so
vendor/lib/libspkrprot.so
vendor/lib/libspkrprot.so;MODULE_SUFFIX=_vendor
vendor/lib/libprofileparamstorage.so
vendor/lib/libspatializerparamstorage.so
vendor/lib/spatializer-aidl-V1-cpp.so

View File

@@ -47,7 +47,7 @@ odm /odm ext4 ro wait,logical,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic,sync wait,formattable,first_stage_mount,check
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678,inlinecrypt latemount,wait,check,formattable,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/1d84000.ufshc,checkpoint=fs,keydirectory=/metadata/vold/metadata_encryption
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678,inlinecrypt latemount,wait,check,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/1d84000.ufshc,checkpoint=fs
/dev/block/bootdevice/by-name/apnhlos /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
/dev/block/bootdevice/by-name/modem /vendor/firmware-modem vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
/dev/block/bootdevice/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check

View File

@@ -18,7 +18,7 @@ import common
import re
def FullOTA_Assertions(info):
OTA_Assertions(info, info.input_zip)
OTA_Assertions(info)
return
def FullOTA_InstallEnd(info):
@@ -26,16 +26,15 @@ def FullOTA_InstallEnd(info):
return
def IncrementalOTA_Assertions(info):
OTA_Assertions(info, info.input_zip)
OTA_Assertions(info)
return
def IncrementalOTA_InstallEnd(info):
info.input_zip = info.target_zip
OTA_InstallEnd(info)
return
def OTA_Assertions(info, input_zip):
android_info = input_zip.read("OTA/android-info.txt")
def OTA_Assertions(info):
android_info = info.input_zip.read("OTA/android-info.txt")
m = re.search(r'require\s+version-bootloader-min\s*=\s*(\S+)', android_info.decode('utf-8'))
if m:
bootloader_version = m.group(1)

262
rootdir/Android.mk Normal file
View File

@@ -0,0 +1,262 @@
LOCAL_PATH := $(call my-dir)
# Init files
include $(CLEAR_VARS)
LOCAL_MODULE := fstab.ramplus
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/fstab.ramplus
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.audio.samsung.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.audio.samsung.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.fingerprint.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.fingerprint.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.nfc.samsung.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.nfc.samsung.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.qcom.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qti.kernel.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.qti.kernel.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qti.media.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.qti.media.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.ramplus.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.ramplus.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.samsung.bsp.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.samsung.bsp.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.samsung.display.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.samsung.display.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.samsung.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.samsung.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.target.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.target.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.vendor.onebinary.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.vendor.onebinary.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := vendor.samsung.rilchip.qcom.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/vendor.samsung.rilchip.qcom.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.vendor.rilcommon.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.vendor.rilcommon.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.vendor.sensors.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.vendor.sensors.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := wifi_firmware.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/wifi_firmware.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := ueventd.qcom.rc
LOCAL_MODULE_STEM := ueventd.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/ueventd.qcom.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := wifi_qcom_wcn6750.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/wifi_qcom_wcn6750.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := wifi_sec.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/wifi_sec.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
include $(BUILD_PREBUILT)
# /vendor/bin scripts
include $(CLEAR_VARS)
LOCAL_MODULE := init.class_main.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.class_main.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.kernel.post_boot.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.kernel.post_boot.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.kernel.post_boot-yupik.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.kernel.post_boot-yupik.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.class_core.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qcom.class_core.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.early_boot.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qcom.early_boot.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.post_boot.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qcom.post_boot.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qcom.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qti.chg_policy.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qti.chg_policy.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qti.kernel.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qti.kernel.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qti.media.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qti.media.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qti.qcv.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.qti.qcv.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := vendor_modprobe.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/vendor_modprobe.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/bin
include $(BUILD_PREBUILT)

61
rootdir/etc/fstab.qcom Normal file
View File

@@ -0,0 +1,61 @@
# Copyright (c) 2019 The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) 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.
#
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. 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 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER 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.
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
system /system ext4 ro wait,logical,first_stage_mount
system /system f2fs ro wait,logical,first_stage_mount
system /system erofs ro wait,logical,first_stage_mount
vendor /vendor ext4 ro wait,logical,first_stage_mount
product /product ext4 ro wait,logical,first_stage_mount
odm /odm ext4 ro wait,logical,first_stage_mount
/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic,sync wait,formattable,first_stage_mount,check
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678,inlinecrypt latemount,wait,check,fileencryption=aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized,quota,reservedsize=128M,sysfs_path=/sys/devices/platform/soc/1d84000.ufshc,checkpoint=fs,keydirectory=/metadata/vold/metadata_encryption
/dev/block/bootdevice/by-name/apnhlos /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
/dev/block/bootdevice/by-name/modem /vendor/firmware-modem vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
/dev/block/bootdevice/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
/dev/block/bootdevice/by-name/sec_efs /efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait
# VOLD:samsung/common/fstab_non_AB.samsung
/devices/platform/soc/8804000.sdhci/mmc_host* auto auto defaults wait,voldmanaged=sdcard:auto,encryptable=userdata
/devices/platform/soc/*.ssusb/*.dwc3/xhci-hcd.*.auto* auto auto defaults voldmanaged=usb:auto
# Samsung ODE

View File

@@ -23,6 +23,7 @@ type sysfs_wifi_writable, sysfs_type, rw_fs_type, fs_type;
type biometrics_vendor_data_file, file_type, data_file_type;
type conn_vendor_data_file, file_type, data_file_type;
type radio_vendor_data_file, file_type, data_file_type;
type gatekeeper_vendor_data_file, file_type, data_file_type;
# EFS types
type app_efs_file, file_type;

View File

@@ -2,6 +2,7 @@
/data/vendor/biometrics(/.*)? u:object_r:biometrics_vendor_data_file:s0
/data/vendor/conn(/.*)? u:object_r:conn_vendor_data_file:s0
/data/vendor/secradio(/.*)? u:object_r:radio_vendor_data_file:s0
/data/vendor/gatekeeper(/.*)? u:object_r:gatekeeper_vendor_data_file:s0
# DEV
/dev/block/platform/soc/1d84000.ufshc/by-name/dsp u:object_r:dsp_block_device:s0
@@ -21,6 +22,7 @@
/dev/goodix_fp u:object_r:fp_sensor_device:s0
# NFC
/dev/sec-nfc u:object_r:nfc_device:s0
/dev/pn547 u:object_r:nfc_device:s0
# qos
@@ -57,11 +59,11 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.widevine u:object_r:hal_drm_widevine_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@[0-9]\.[0-9]-service\.samsung u:object_r:hal_keymaster_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.power(@[0-9]\.[0-9])?-service\.pixel-libperfmgr u:object_r:hal_power_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc-service\.sec u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@[0-9]\.[0-9]-service\.samsung u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/nxp\.android\.hardware\.nfc@[0-9]\.[0-9]-service u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0
/(vendor|system/vendor)/bin/secril_config_svc u:object_r:secril_config_svc_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay-service.samsung-qcom u:object_r:hal_lineage_livedisplay_qti_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_qti_exec:s0
/(vendor|system/vendor)/bin/hw/android.hardware.biometrics.fingerprint-service.samsung u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor.samsung.hardware.thermal@1.0-service u:object_r:hal_thermal_default_exec:s0
/(vendor|system/vendor)/bin/hw/android.hardware.sensors-service.samsung-multihal u:object_r:hal_sensors_default_exec:s0

View File

@@ -0,0 +1 @@
allow hal_gatekeeper_default gatekeeper_vendor_data_file:dir { read open };

View File

@@ -37,6 +37,7 @@ allow hal_power_default vendor_sysfs_devfreq:file { write open };
allow hal_power_default property_socket:sock_file write;
unix_socket_connect(hal_power_default, property, init)
set_prop(hal_power_default, vendor_power_prop)
# for lcd_onoff node
allow hal_power_default { sysfs_sensors vendor_sysfs_sensors }:dir search;

View File

@@ -1,2 +1,8 @@
# NFC
vendor_internal_prop(vendor_nfc_prop)
# power
vendor_internal_prop(vendor_power_prop)
# qseecom
vendor_internal_prop(vendor_qseecomd_prop)

View File

@@ -12,6 +12,9 @@ ro.vendor.nfc. u:object_r:vendor_nfc_prop:s0
# Perf
ro.vendor.extension_library u:object_r:vendor_mpctl_prop:s0
# Power
vendor.powerhal. u:object_r:vendor_power_prop:s0
# RIL
ro.vendor.multisim. u:object_r:vendor_radio_prop:s0
ro.vendor.radio. u:object_r:vendor_radio_prop:s0

View File

@@ -1,6 +1,9 @@
# Tee
set_prop(tee, vendor_qseecomd_prop)
allow tee gatekeeper_vendor_data_file:dir { write add_name read open search };
allow tee gatekeeper_vendor_data_file:file { create write open read getattr };
# This is for randomly generated TEE directories in /efs
allow tee efs_file:dir { search read write open add_name };
allow tee efs_file:file { read write open getattr create };

View File

@@ -7,8 +7,10 @@ allow vendor_init system_file:file { read getattr open };
allow vendor_init block_device:lnk_file setattr;
set_prop(vendor_init, vendor_power_prop)
dontaudit vendor_init cache_file:dir search;
dontaudit vendor_init default_prop:file read;
allow vendor_init vts_status_prop:file read;
allow vendor_init vts_status_prop:file read;