Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions platform/sm8550/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Copyright (c) 2026 Salvo Giangreco
# SPDX-License-Identifier: GPL-3.0-or-later

# Platform configuration file for Samsung Snapdragon 8 Gen 2 devices (sm8550)
TARGET_BOARD_API_LEVEL=33
TARGET_PRODUCT_SHIPPING_API_LEVEL=33

# Partitions
TARGET_BOOT_PARTITION_SIZE=100663296
TARGET_DTBO_PARTITION_SIZE=25165824
TARGET_VENDOR_BOOT_PARTITION_SIZE=100663296
TARGET_INIT_BOOT_PARTITION_SIZE=6291456
TARGET_CACHE_PARTITION_SIZE=838860800

# Dynamic partitions
TARGET_USE_DYNAMIC_PARTITIONS=true
TARGET_SUPER_PARTITION_SIZE=12266242048
TARGET_SUPER_GROUP_NAME="qti_dynamic_partitions"
TARGET_QTI_DYNAMIC_PARTITIONS_SIZE=12262047744

# OS
TARGET_OS_SINGLE_SYSTEM_IMAGE="qssi"
TARGET_OS_BUILD_SYSTEM_EXT_PARTITION=true

# SEC Product Feature
TARGET_AUDIO_CONFIG_RECORDALIVE_LIB_VERSION="08020"
TARGET_AUDIO_SUPPORT_ACH_RINGTONE=true
TARGET_AUDIO_SUPPORT_DUAL_SPEAKER=true
TARGET_AUDIO_SUPPORT_VIRTUAL_VIBRATION=true
TARGET_CAMERA_SUPPORT_CAMERAX_EXTENSION=true
TARGET_CAMERA_SUPPORT_CUTOUT_PROTECTION=false
TARGET_CAMERA_SUPPORT_MASS_APP_FLAVOR=false
TARGET_CAMERA_SUPPORT_SDK_SERVICE=true
TARGET_COMMON_CONFIG_MDNIE_MODE="65303"
TARGET_COMMON_SUPPORT_EMBEDDED_SIM=true
TARGET_COMMON_SUPPORT_HDR_EFFECT=true
TARGET_DVFSAPP_CONFIG_DVFS_POLICY_FILENAME="dvfs_policy_default"
TARGET_FINGERPRINT_CONFIG_SENSOR="google_touch_display_ultrasonic"
TARGET_LCD_CONFIG_COLOR_WEAKNESS_SOLUTION="3"
TARGET_LCD_CONFIG_CONTROL_AUTO_BRIGHTNESS="5"
TARGET_LCD_CONFIG_HFR_DEFAULT_REFRESH_RATE="120"
TARGET_LCD_CONFIG_HFR_MODE="2"
TARGET_LCD_CONFIG_HFR_SUPPORTED_REFRESH_RATE="24,10,30,48,60,96,120"
TARGET_LCD_CONFIG_SEAMLESS_BRT="84,91"
TARGET_LCD_CONFIG_SEAMLESS_LUX="200,2500"
TARGET_LCD_SUPPORT_MDNIE_HW=true
TARGET_RIL_FEATURES="onebinary satellite_carrier"
TARGET_RIL_SIM_CONFIG_MULTISIM_TRAYCOUNT="2"
TARGET_RIL_SUPPORT_WATERPROOF_SIM_TRAY_MSG=true
TARGET_SECURITY_CONFIG_ESE_CHIP_VENDOR="NXP"
TARGET_SECURITY_CONFIG_ESE_COS_NAME="JCOP6.3U"
TARGET_WLAN_CONFIG_CONNECTION_PERSONALIZATION="2"
TARGET_WLAN_CONFIG_CPU_CSTATE_DISABLE_THRESHOLD="100"
TARGET_WLAN_CONFIG_DATA_ACTIVITY_AFFINITY_BOOSTER_THRESHOLD="0"
TARGET_WLAN_CONFIG_DYNAMIC_SWITCH="0"
TARGET_WLAN_CONFIG_L1SS_DISABLE_THRESHOLD="0"
TARGET_WLAN_SUPPORT_80211AX=true
TARGET_WLAN_SUPPORT_80211AX_6GHZ=true
TARGET_WLAN_SUPPORT_APE_SERVICE=true
TARGET_WLAN_SUPPORT_LOWLATENCY=true
TARGET_WLAN_SUPPORT_MBO=true
TARGET_WLAN_SUPPORT_MOBILEAP_5G_BASEDON_COUNTRY=false
TARGET_WLAN_SUPPORT_MOBILEAP_6G=true
TARGET_WLAN_SUPPORT_MOBILEAP_DUALAP=true
TARGET_WLAN_SUPPORT_MOBILEAP_OWE=true
TARGET_WLAN_SUPPORT_MOBILEAP_POWER_SAVEMODE=true
TARGET_WLAN_SUPPORT_MOBILEAP_PRIORITIZE_TRAFFIC=true
TARGET_WLAN_SUPPORT_MOBILEAP_WIFI_CONCURRENCY=true
TARGET_WLAN_SUPPORT_MOBILEAP_WIFISHARING_LITE=false
TARGET_WLAN_SUPPORT_SWITCH_FOR_INDIVIDUAL_APPS=true
TARGET_WLAN_SUPPORT_TWT_CONTROL=true
TARGET_WLAN_SUPPORT_WIFI_TO_CELLULAR=true
22 changes: 22 additions & 0 deletions platform/sm8550/debloat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2026 Salvo Giangreco

# SPDX-License-Identifier: GPL-3.0-or-later

# Debloat list for Snapdragon 8 Gen 2 devices (sm8550)
# - Add entries inside the specific partition containing that file (<PARTITION>_DEBLOAT+="")
# - DO NOT add the partition name at the start of any entry (eg. "/system/dpolicy_system")
# - DO NOT add a slash at the start of any entry (eg. "/dpolicy_system")

# GameDriver
SYSTEM_DEBLOAT+="
system/priv-app/GameDriver-SM8450
"

# system_ext cleanup
SYSTEM_EXT_DEBLOAT+="
etc/permissions/com.qti.location.sdk.xml
etc/permissions/com.qualcomm.location.xml
etc/permissions/privapp-permissions-com.qualcomm.location.xml
framework/com.qti.location.sdk.jar
priv-app/com.qualcomm.location
"
82 changes: 82 additions & 0 deletions platform/sm8550/installer/recovery.fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright (c) 2018-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 erofs ro wait,avb=vbmeta,logical,first_stage_mount
system /system f2fs ro wait,avb=vbmeta,logical,first_stage_mount
system /system ext4 ro wait,avb=vbmeta,logical,first_stage_mount
vendor /vendor erofs ro wait,avb,logical,first_stage_mount
system_ext /system_ext erofs ro wait,avb=vbmeta,logical,first_stage_mount
vendor_dlkm /vendor_dlkm erofs ro wait,avb=vbmeta,logical,first_stage_mount
product /product erofs ro wait,avb,logical,first_stage_mount
odm /odm erofs ro wait,avb,logical,first_stage_mount
system_dlkm /system_dlkm erofs ro wait,avb,logical,first_stage_mount
system_dlkm /system_dlkm f2fs ro wait,avb,logical,first_stage_mount
system_dlkm /system_dlkm ext4 ro wait,avb,logical,first_stage_mount

/dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic,sync wait,first_stage_mount,formattable,check
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678 wait,encryptable=footer,length=-16384,fscompress
/dev/block/bootdevice/by-name/cache /cache ext4 defaults recoveryonly
/dev/block/bootdevice/by-name/sec_efs /efs ext4 defaults recoveryonly
/dev/block/bootdevice/by-name/sec_efs /sec_efs ext4 defaults recoveryonly
/dev/block/bootdevice/by-name/carrier /carrier ext4 defaults recoveryonly
/dev/block/bootdevice/by-name/apnhlos /modem emmc defaults recoveryonly
/dev/block/bootdevice/by-name/modem /mdm emmc defaults recoveryonly
/dev/block/bootdevice/by-name/dsp /dsp emmc defaults recoveryonly
/dev/block/bootdevice/by-name/misc /misc emmc defaults recoveryonly

# Samsung ODE
/dev/block/bootdevice/by-name/keydata /keydata ext4 defaults recoveryonly
/dev/block/bootdevice/by-name/keyrefuge /keyrefuge f2fs defaults recoveryonly

#Auto-generated code by FOTA Portal
/dev/block/bootdevice/by-name/dtbo /dtbo emmc default recoveryonly
/dev/block/bootdevice/by-name/prism /prism ext4 ro recoveryonly
/dev/block/bootdevice/by-name/optics /optics ext4 ro recoveryonly
/dev/block/bootdevice/by-name/vbmeta_system /vbmeta_system emmc default recoveryonly
/dev/block/bootdevice/by-name/vendor_boot /vendor_boot emmc default recoveryonly
/dev/block/bootdevice/by-name/vbmeta_samsung /vbmeta_samsung emmc default recoveryonly
/dev/block/bootdevice/by-name/imagefv /imagefv emmc default recoveryonly
/dev/block/mmcblk0p1 /sdcard sdfat defaults recoveryonly
/dev/block/bootdevice/by-name/init_boot /init_boot emmc default recoveryonly
/dev/block/bootdevice/by-name/vm-bootsys /vm-bootsys ext4 default recoveryonly
/dev/block/bootdevice/by-name/qweslicstore /qweslicstore emmc default recoveryonly




17 changes: 17 additions & 0 deletions platform/sm8550/patches/camera/customize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
echo "Add stock camera libs"
BLOBS_LIST="
system/etc/public.libraries-arcsoft.txt
system/etc/public.libraries-camera.samsung.txt
system/lib64/libacz_hhdr.arcsoft.so
system/lib64/libaiclearzoom_raw.arcsoft.so
system/lib64/libaiclearzoomraw_wrapper_v1.camera.samsung.so
system/lib64/libae_bracket_hdr.arcsoft.so
system/lib64/libsuperresolution_raw.arcsoft.so
system/lib64/libsuperresolutionraw_wrapper_v2.camera.samsung.so
system/lib64/libSwIsp_core.camera.samsung.so
system/lib64/libSwIsp_wrapper_v1.camera.samsung.so
"
for blob in $BLOBS_LIST
do
ADD_TO_WORK_DIR "$TARGET_FIRMWARE" "system" "$blob" 0 0 644 "u:object_r:system_lib_file:s0"
done
4 changes: 4 additions & 0 deletions platform/sm8550/patches/camera/module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id=camera
name=Camera fix
author=salvogiangri, gyabii
description=Various camera-related patches.
2 changes: 2 additions & 0 deletions platform/sm8550/patches/edge_lighting/customize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Fix Edge lighting corner radius
SET_PROP "system" "ro.factory.model" "$(GET_PROP "vendor" "ro.product.vendor.model")"
4 changes: 4 additions & 0 deletions platform/sm8550/patches/edge_lighting/module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id=edge_lighting
name=Edge lighting fix
author=salvogiangri
description=Fixes Edge lighting corner radius.
9 changes: 9 additions & 0 deletions platform/sm8550/sff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2026 Salvo Giangreco
# SPDX-License-Identifier: GPL-3.0-or-later

# SEC Floating Feature configuration file for Snapdragon 8 Gen 2 devices (sm8550)

# Enable Wallpaper AOD feature
SEC_FLOATING_FEATURE_LCD_CONFIG_AOD_BRIGHTNESS_ANIMATION=1
SEC_FLOATING_FEATURE_LCD_CONFIG_AOD_FULLSCREEN=1
SEC_FLOATING_FEATURE_LCD_CONFIG_AOD_REFRESH_RATE=1
Loading
Loading