13 Commits
bka ... vic

Author SHA1 Message Date
Deivid21
aa9fb3625a sm6375-common: Add TurboPowerOverlays from stock
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Naxo79 <nacho79.garcia@gmail.com>
Change-Id: Ia262182e86757e16ac6e06d37aa59c0683f98943
Signed-off-by: Naxo79 <nacho79.garcia@gmail.com>
2025-09-11 23:18:47 -03:00
Deivid21
5ab9f50116 sm6375-common: Increase dalviik-healp memory limits
Change-Id: I547b98e6d705d8481a3451a64569c695be86092e
2025-09-11 23:18:47 -03:00
EmanuelCN
480a0cd7ec sm6375-common: rootdir: rm package cache on early boot
* Because Android won't do it on a dirty flash so certain elements will be broken if something is changed in UI.

Change-Id: I451ab965efba78ed4bd679575143fcdaa11177c0
2025-09-11 23:18:46 -03:00
Deivid21
f544c28fff sm6375-common: rootdir: Switch filesystem type to EroFS
Change-Id: I3aef02d148c3ab03ea6db8b3f319bb1ae87d5208
2025-09-11 23:18:46 -03:00
Deivid21
7c788e7ce2 sm6375-common: Init changes for Evolution-X
Change-Id: I0a11fec0a77d5fd26f50a13aa26dcdc80f648020
2025-09-11 23:18:16 -03:00
Alexander Koskovich
79c5e467b7 sm6375-common: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2025-09-10 16:16:13 +03:00
Yumi Yukimura
34de82e5ce sm6375-common: Cleanup more flags
These are gone after bp conversion for display and media

Change-Id: I1169adf12d717417f5f328ebbcc01ecc9b911889
2025-09-10 16:16:08 +03:00
Sebastiano Barezzi
e2babf167f sm6375-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2025-09-10 16:16:03 +03:00
Michael Bestas
6512fd9a75 sm6375-common: Remove no longer used display flags
Change-Id: Ifc4e10703d3424607b9dc8bcc8e417d1c88cc2f3
2025-09-10 16:15:58 +03:00
Michael Bestas
a0ae42f465 sm6375-common: Build LiveDisplay sysfs HAL
Change-Id: I7c5bd2cb2eaa94ce789d8c4444eff93e2ad7d8a1
2025-09-05 15:11:17 +03:00
Michael Bestas
754a8260a6 sm6375-common: Build LiveDisplay SDM HAL
Change-Id: I0e403c9d7455cba1d356e4901a4dd4184d483f5b
2025-09-05 10:30:02 +03:00
Michael Bestas
0c7d84c92b sm6375-common: Update to fogos_g V1UGS35H.75-14-13-1
Change-Id: I0a297a6cec7c0d3feb6cd758daf73938c6165bd4
2025-08-28 00:06:22 +00:00
Michael Bestas
2b28552357 sm6375-common: Update to fogos_g V1UGS35H.75-14-3-3
Change-Id: I07181c1f9f57b8214ae3fe4100ac7a7595f531cb
2025-07-28 05:53:22 +03:00
23 changed files with 265 additions and 55 deletions

View File

@@ -88,17 +88,6 @@ BOARD_SUPPORTS_OPENSOURCE_STHAL := true
BOARD_SUPPORTS_SOUND_TRIGGER := true
BOARD_USES_ALSA_AUDIO := true
# Display
TARGET_USES_COLOR_METADATA := true
TARGET_USES_DISPLAY_RENDER_INTENTS := true
TARGET_USES_GRALLOC1 := true
TARGET_USES_GRALLOC4 := true
TARGET_USES_HWC2 := true
TARGET_USES_ION := true
# DRM
TARGET_ENABLE_MEDIADRM_64 := true
# Filesystem
TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/config.fs
@@ -117,15 +106,15 @@ DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
BOARD_USES_METADATA_PARTITION := true
# Partitions
-include vendor/lineage/config/BoardConfigReservedSize.mk
# -include vendor/lineage/config/BoardConfigReservedSize.mk
BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296
BOARD_DTBOIMG_PARTITION_SIZE := 25165824
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296
BOARD_BUILD_VENDOR_RAMDISK_IMAGE := true
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := erofs
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := erofs
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := erofs
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := erofs
BOARD_MOT_DP_GROUP_PARTITION_LIST := product system system_ext vendor
BOARD_SUPER_PARTITION_GROUPS := mot_dp_group
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
@@ -133,6 +122,9 @@ TARGET_COPY_OUT_PRODUCT := product
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
TARGET_COPY_OUT_VENDOR := vendor
BOARD_EROFS_COMPRESSOR := lz4
BOARD_EROFS_PCLUSTER_SIZE := 262144
# Properties
TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop
TARGET_PRODUCT_PROP += $(COMMON_PATH)/product.prop

View File

@@ -10,7 +10,6 @@ PRODUCT_PACKAGES += \
vendor_firmware_mnt_mountpoint \
vendor_fsg_mountpoint
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Enable project quotas and casefolding for emulated storage without sdcardfs
@@ -46,13 +45,13 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_ven
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
FILESYSTEM_TYPE_system=erofs \
POSTINSTALL_OPTIONAL_system=true
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
FILESYSTEM_TYPE_vendor=erofs \
POSTINSTALL_OPTIONAL_vendor=true
PRODUCT_PACKAGES += \
@@ -198,6 +197,14 @@ PRODUCT_COPY_FILES += \
# Kernel
PRODUCT_ENABLE_UFFD_GC := true
# LiveDisplay
PRODUCT_PACKAGES += \
vendor.lineage.livedisplay-service.sdm \
vendor.lineage.livedisplay-service.sysfs
$(call soong_config_set,livedisplay_sdm,enable_dm,false)
$(call soong_config_set,livedisplay_sysfs,enable_se,true)
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/blair/media_codecs_performance_blair.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_blair.xml \

60
evolution.dependencies Normal file
View File

@@ -0,0 +1,60 @@
[
{
"repository": "hardware_motorola",
"target_path": "hardware/motorola",
"remote": "evo-devices"
},
{
"repository": "kernel_motorola_sm6375",
"target_path": "kernel/motorola/sm6375",
"remote": "evo-devices"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotCamera-common",
"target_path": "vendor/motorola/MotCamera-common",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotCameraAI-common",
"target_path": "vendor/motorola/MotCameraAI-common",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotCamera3AI-sm6375",
"target_path": "vendor/motorola/MotCamera3AI-sm6375",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotCamera4-sm6375",
"target_path": "vendor/motorola/MotCamera4-sm6375",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotoPhotoEditor",
"target_path": "vendor/motorola/MotoPhotoEditor",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotoSignatureApp",
"target_path": "vendor/motorola/MotoSignatureApp",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid21/proprietary_vendor_motorola_MotorolaSettingsProvider",
"target_path": "vendor/motorola/MotorolaSettingsProvider",
"remote": "gitlab",
"branch": "android-15"
},
{
"repository": "Deivid-21s-Sources/proprietary_vendor_motorola_sm6375-common",
"target_path": "vendor/motorola/sm6375-common",
"remote": "github-non-los",
"branch": "lineage-22.2"
}
]

View File

@@ -1,10 +0,0 @@
[
{
"repository": "android_kernel_motorola_sm6375",
"target_path": "kernel/motorola/sm6375"
},
{
"repository": "android_hardware_motorola",
"target_path": "hardware/motorola"
}
]

View File

@@ -1,4 +1,4 @@
# All unpinned blobs are extracted from fogos_g V1UG35H.75-14-9
# All unpinned blobs are extracted from fogos_g V1UGS35H.75-14-13-1
# ADSP
vendor/bin/adsprpcd

View File

@@ -0,0 +1,12 @@
//
// SPDX-FileCopyrightText: The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
phony {
name: "TurboPowerOverlay",
required: [
"TurboPowerOverlaySettingsLib",
"TurboPowerOverlaySystemUI",
]
}

View File

@@ -0,0 +1,9 @@
//
// SPDX-FileCopyrightText: The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "TurboPowerOverlaySettingsLib",
vendor: true,
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.lineageparts.overlay.motorola">
<overlay
android:isStatic="true"
android:priority="500"
android:targetPackage="org.lineageos.lineageparts" />
</manifest>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- [CHAR_LIMIT=20] Battery use screen. Battery status shown in chart label when charging speed is fast. -->
<string name="battery_info_status_charging_fast">TurboPower conectado</string>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- [CHAR_LIMIT=20] Battery use screen. Battery status shown in chart label when charging speed is fast. -->
<string name="battery_info_status_charging_fast">TurboPower conectado</string>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- [CHAR_LIMIT=20] Battery use screen. Battery status shown in chart label when charging speed is fast. -->
<string name="battery_info_status_charging_fast">TurboPower connected</string>
</resources>

View File

@@ -0,0 +1,9 @@
//
// SPDX-FileCopyrightText: The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "TurboPowerOverlaySystemUI",
vendor: true,
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.overlay.motorola">
<overlay
android:isStatic="true"
android:priority="500"
android:targetPackage="com.android.systemui" />
</manifest>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- When the lock screen is showing and the phone plugged in, and the battery
is not fully charged, and it's plugged into a fast charger, say that it's charging fast. -->
<string name="keyguard_plugged_in_charging_fast"><xliff:g id="percentage">%s</xliff:g> • TurboPower conectado</string>
</resources>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- When the lock screen is showing and the phone plugged in, and the battery
is not fully charged, and it's plugged into a fast charger, say that it's charging fast. -->
<string name="keyguard_plugged_in_charging_fast"><xliff:g id="percentage">%s</xliff:g> • TurboPower conectado</string>
</resources>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- When the lock screen is showing and the phone plugged in, and the battery
is not fully charged, and it's plugged into a fast charger, say that it's charging fast. -->
<string name="keyguard_plugged_in_charging_fast"><xliff:g id="percentage">%s</xliff:g> • TurboPower connected</string>
</resources>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Indication on the keyguard that is shown when the device is charging rapidly. Should match keyguard_plugged_in_charging_fast [CHAR LIMIT=50]-->
<string name="keyguard_indication_charging_time_fast"><xliff:g id="percentage">%2$s</xliff:g> • TurboPower conectado (<xliff:g id="charging_time_left" example="4 hours and 2 minutes">%1$s</xliff:g> hasta la carga completa)</string>
</resources>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Indication on the keyguard that is shown when the device is charging rapidly. Should match keyguard_plugged_in_charging_fast [CHAR LIMIT=50]-->
<string name="keyguard_indication_charging_time_fast"><xliff:g id="percentage">%2$s</xliff:g> • TurboPower conectado (<xliff:g id="charging_time_left" example="4 hours and 2 minutes">%1$s</xliff:g> até a carga completa)</string>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Indication on the keyguard that is shown when the device is charging rapidly. Should match keyguard_plugged_in_charging_fast [CHAR LIMIT=50]-->
<string name="keyguard_indication_charging_time_fast"><xliff:g id="percentage">%2$s</xliff:g> • TurboPower connected (<xliff:g id="charging_time_left" example="4 hours and 2 minutes">%1$s</xliff:g> until full)</string>
</resources>

View File

@@ -35,9 +35,13 @@
# 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,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
system /system ext4 ro,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey
system_ext /system_ext erofs ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
system_ext /system_ext ext4 ro,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
product /product erofs ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
product /product ext4 ro,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
vendor /vendor erofs ro wait,slotselect,avb=vbmeta,logical,first_stage_mount
vendor /vendor ext4 ro,discard wait,slotselect,avb=vbmeta,logical,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,data=ordered,barrier=1 wait,check,formattable,first_stage_mount
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,data=ordered,barrier=1 wait

View File

@@ -1,31 +1,31 @@
on property:ro.vendor.hw.ram=4GB
setprop dalvik.vm.heapstartsize 8m
setprop dalvik.vm.heapgrowthlimit 256m
setprop dalvik.vm.heapsize 512m
setprop dalvik.vm.heaptargetutilization 0.75
setprop dalvik.vm.heapminfree 512k
setprop dalvik.vm.heapmaxfree 8m
on property:ro.vendor.hw.ram=6GB
setprop dalvik.vm.heapstartsize 12m
setprop dalvik.vm.heapgrowthlimit 256m
setprop dalvik.vm.heapsize 512m
setprop dalvik.vm.heaptargetutilization 0.5
setprop dalvik.vm.heapminfree 6m
setprop dalvik.vm.heaptargetutilization 0.55
setprop dalvik.vm.heapminfree 8m
setprop dalvik.vm.heapmaxfree 24m
on property:ro.vendor.hw.ram=8GB
on property:ro.vendor.hw.ram=6GB
setprop dalvik.vm.heapstartsize 16m
setprop dalvik.vm.heapgrowthlimit 256m
setprop dalvik.vm.heapsize 512m
setprop dalvik.vm.heaptargetutilization 0.5
setprop dalvik.vm.heapgrowthlimit 384m
setprop dalvik.vm.heapsize 768m
setprop dalvik.vm.heaptargetutilization 0.55
setprop dalvik.vm.heapminfree 8m
setprop dalvik.vm.heapmaxfree 32m
setprop dalvik.vm.heapmaxfree 40m
on property:ro.vendor.hw.ram=8GB
setprop dalvik.vm.heapstartsize 24m
setprop dalvik.vm.heapgrowthlimit 512m
setprop dalvik.vm.heapsize 1024m
setprop dalvik.vm.heaptargetutilization 0.5
setprop dalvik.vm.heapminfree 12m
setprop dalvik.vm.heapmaxfree 64m
on property:ro.vendor.hw.ram=12GB
setprop dalvik.vm.heapstartsize 16m
setprop dalvik.vm.heapgrowthlimit 256m
setprop dalvik.vm.heapsize 512m
setprop dalvik.vm.heaptargetutilization 0.5
setprop dalvik.vm.heapminfree 8m
setprop dalvik.vm.heapmaxfree 32m
setprop dalvik.vm.heapstartsize 40m
setprop dalvik.vm.heapgrowthlimit 768m
setprop dalvik.vm.heapsize 1536m
setprop dalvik.vm.heaptargetutilization 0.4
setprop dalvik.vm.heapminfree 32m
setprop dalvik.vm.heapmaxfree 80m

View File

@@ -41,6 +41,10 @@ on early-init
# Change ownership of sysfs power control node
chown system graphics /sys/class/drm/card0/device/power/control
# Workarround for cache
rm /data/resource-cache
rm /data/system/package_cache
#Disable UFS clock scaling
write /sys/bus/platform/devices/4804000.ufshc/clkscale_enable 0

View File

@@ -154,11 +154,11 @@ ro.crypto.volume.metadata.method=dm-default-key
dalvik.vm.dex2oat-threads=6
dalvik.vm.dex2oat64.enabled=true
dalvik.vm.heapgrowthlimit=256m
dalvik.vm.heapmaxfree=8m
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=24m
dalvik.vm.heapminfree=8m
dalvik.vm.heapsize=512m
dalvik.vm.heapstartsize=8m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapstartsize=12m
dalvik.vm.heaptargetutilization=0.55
# Display
vendor.display.comp_mask=0