Compare commits

...

8 Commits

Author SHA1 Message Date
848b338cc1 socrates: DNM MIUICAMERA
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 12:34:05 +00:00
Arian
1a8cdbe103 socrates: Include MiuiCamera if existing
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:03:15 +00:00
danielml
ffb1bbe898 socrates: media: Remove camcorder profiles for macro and UW cameras
Change-Id: I0218811ca27a1c7ce759d30484f9cc66b02b05f5
Signed-off-by: danielml <daniel@danielml.dev>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:03:02 +00:00
danielml
4f28579579 socrates: Import media_profiles_kalama.xml to the device tree
Change-Id: Ia87b8e7d79a83f9515cc4fc1d7c8940172484304
Signed-off-by: danielml <daniel@danielml.dev>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:03:02 +00:00
Sebastiano Barezzi
2639d0e792 socrates: overlay: Configure additional camera framerates
Change-Id: I51efca86d2169c01fb96af97ef9fe250e2b221ed
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:03:02 +00:00
LuK1337
494124386c socrates: overlay: Configure aux cameras for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:03:02 +00:00
danielml
7a34ee0241 socrates: Set media.profiles.xml from system.prop
Change-Id: I75cf67626e25a52b1e50a26f182e0e4af1e66596
Signed-off-by: danielml <daniel@danielml.dev>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:03:02 +00:00
1151db4993 socrates: initialize Evolution-X 10.x
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2025-02-23 09:02:12 +00:00
12 changed files with 3264 additions and 23 deletions

View File

@ -4,6 +4,9 @@
# SPDX-License-Identifier: Apache-2.0
#
# MIUI Camera
-include device/xiaomi/miuicamera-socrates/BoardConfig.mk
DEVICE_PATH := device/xiaomi/socrates
# A/B
@ -58,6 +61,12 @@ $(call soong_config_set, android_hardware_audio, run_64bit, true)
# Bootloader
TARGET_NO_BOOTLOADER := true
# Camera
MALLOC_SVELTE := true
MALLOC_SVELTE_FOR_LIBC32 := true
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
TARGET_CAMERA_PACKAGE_NAME := com.android.camera
# Display
TARGET_SCREEN_DENSITY := 540
@ -201,8 +210,9 @@ DEVICE_MANIFEST_FILE := \
$(DEVICE_PATH)/configs/vintf/manifest_kalama.xml \
$(DEVICE_PATH)/configs/vintf/manifest_socrates.xml
# Vendor security patch
VENDOR_SECURITY_PATCH := 2025-01-01
# Security patch level
BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# Verified Boot
BOARD_AVB_ENABLE := true

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,9 @@
# SPDX-License-Identifier: Apache-2.0
#
# MIUI Camera
$(call inherit-product-if-exists, device/xiaomi/miuicamera-socrates/device.mk)
# Add common definitions for Qualcomm
$(call inherit-product, hardware/qcom-caf/common/common.mk)
@ -109,6 +112,17 @@ PRODUCT_PACKAGES += \
android.hardware.boot@1.2-impl-qti \
android.hardware.boot@1.2-impl-qti.recovery
# Boot animation
TARGET_SCREEN_HEIGHT := 3200
TARGET_SCREEN_WIDTH := 1440
# Blur
PRODUCT_SYSTEM_EXT_PROPERTIES += \
ro.sf.blurs_are_expensive=1 \
ro.surface_flinger.supports_background_blur=1 \
persist.sys.sf.disable_blurs=1 \
ro.launcher.blur.appLaunch=0
# Camera
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \
@ -204,6 +218,9 @@ PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_profiles_kalama.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_kalama.xml
# ModemManager
PRODUCT_PACKAGES += \
libqesdk_manager_32bit_stub \
@ -238,6 +255,7 @@ PRODUCT_COPY_FILES += \
# Overlay
PRODUCT_PACKAGES += \
ApertureOverlaySocrates \
CarrierConfigOverlaySocrates \
FrameworkResOverlaySocrates \
SystemUIOverlaySocrates \

View File

@ -1,18 +0,0 @@
[
{
"repository": "android_hardware_xiaomi",
"target_path": "hardware/xiaomi"
},
{
"repository": "android_kernel_xiaomi_sm8550",
"target_path": "kernel/xiaomi/sm8550"
},
{
"repository": "android_kernel_xiaomi_sm8550-devicetrees",
"target_path": "kernel/xiaomi/sm8550-devicetrees"
},
{
"repository": "android_kernel_xiaomi_sm8550-modules",
"target_path": "kernel/xiaomi/sm8550-modules"
}
]

View File

@ -11,14 +11,32 @@ $(call inherit-product, build/make/target/product/core_64_bit_only.mk)
# Inherit device-specific configurations
$(call inherit-product, device/xiaomi/socrates/device.mk)
# Inherit LineageOS configurations
# Inherit some common LineageOS / Evolution-X stuff
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
EVO_BUILD_TYPE := MINKAN
# Targets
TARGET_SUPPORT_BOOT_ANIMATIONS := true
TARGET_SUPPORTS_64_BIT_APPS := true
TARGET_USES_BLUR_RECENT := true
TARGET_INCLUDE_ACCORD := false
TARGET_SUPPORTS_QUICK_TAP := true
TARGET_HAS_UDFPS := true
# Extras
TARGET_USES_MIUI_CAMERA := true
# Device identifier
PRODUCT_NAME := lineage_socrates
PRODUCT_DEVICE := socrates
PRODUCT_MODEL := 22127RK46C
PRODUCT_BRAND := Redmi
PRODUCT_MANUFACTURER := Xiaomi
# GMS
WITH_GMS := true
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
# Properties
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildFingerprint=Redmi/socrates/socrates:15/AQ3A.240912.001/OS2.0.102.0.VMKCNXM:user/release-keys

View File

@ -0,0 +1,11 @@
//
// Copyright (C) 2024 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "ApertureOverlaySocrates",
sdk_version: "current",
vendor: true,
}

View File

@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.apertureoverlay.socrates">
<application android:hasCode="false" />
<overlay android:isStatic="true"
android:priority="1"
android:targetPackage="org.lineageos.aperture"
android:targetName="SocratesApertureOverlay" />
</manifest>

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Enable auxiliary cameras selector. -->
<bool name="config_enableAuxCameras">true</bool>
<!-- List of ID of auxiliary cameras that must be ignored by the app. -->
<string-array name="config_ignoredAuxCameraIds">
<item></item>
<!-- <item>0</item> Ultra-wide + main logical camera -->
<!-- <item>1</item> Front camera -->
<item>2</item> <!-- Ultra-wide camera -->
<!-- <item>3</item> Macro camera -->
<item>4</item> <!-- Ultra-wide + main logical camera -->
<item>5</item> <!-- Ultra-wide + main + macro logical camera -->
<item>6</item> <!-- Front camera -->
<item>7</item> <!-- Main camera-->
</string-array>
<!-- An array of triplets made of (camera ID, qualities, framerates).
These video modes will be added to the available
quality/framerate combinations of a camera device.
Make sure the device is able to handle those configurations
and maintain a stable framerate at any condition.
Note that you can't add video qualities that aren't
exposed by the camera, only new framerates.
Valid values of resolution are:
- "sd" (480p)
- "hd" (720p)
- "fhd" (1080p)
- "uhd" (2160p)
Valid values of framerate are:
- "24"
- "30"
- "60"
- "120"
Example:
<string-array name="config_additionalVideoConfigurations">
<item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
</string-array>
-->
<string-array name="config_additionalVideoConfigurations">
<item>0</item> <item>sd|hd|fhd|uhd</item> <item>24|30</item>
<item>1</item> <item>sd|hd|fhd</item> <item>24|30</item>
</string-array>
</resources>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 Evolution X
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- About device screen, build maintainer -->
<string name="build_maintainer_summary">ᴊᴏʜᴀɴ ʟɪᴇʙᴇʀᴛ</string>
<string name="build_maintainer_donate_url">https://t.me/honokascape</string>
</resources>

View File

@ -1531,7 +1531,6 @@ vendor/lib64/qti.video.utils.videobufferlayout.so
vendor/lib64/vendor.qti.hardware.qconfig@1.0.so
# Media configs
odm/etc/media_profiles_kalama.xml
vendor/etc/media_codecs.xml
vendor/etc/media_codecs_c2_audio.xml
vendor/etc/media_codecs_dolby_audio.xml

View File

@ -25,6 +25,9 @@ persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1
# Media
media.settings.xml=/odm/etc/media_profiles_kalama.xml
# QEMU
qemu.hw.mainkeys=0

View File

@ -282,7 +282,6 @@ debug.stagefright.ccodec=4
debug.c2.use_dmabufheaps=1
ro.mediaserver.64b.enable=true
vendor.mm.enable.qcom_parser=16777215
media.settings.xml=/odm/etc/media_profiles_kalama.xml
# OEM unlock
ro.oem_unlock_supported=1