Compare commits
8 Commits
lineage-22
...
vic
Author | SHA1 | Date | |
---|---|---|---|
848b338cc1 | |||
|
1a8cdbe103 | ||
|
ffb1bbe898 | ||
|
4f28579579 | ||
|
2639d0e792 | ||
|
494124386c | ||
|
7a34ee0241 | ||
1151db4993 |
@ -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
|
||||
|
3133
configs/media/media_profiles_kalama.xml
Normal file
3133
configs/media/media_profiles_kalama.xml
Normal file
File diff suppressed because it is too large
Load Diff
18
device.mk
18
device.mk
@ -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 \
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
@ -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
|
||||
|
11
overlay/ApertureOverlaySocrates/Android.bp
Normal file
11
overlay/ApertureOverlaySocrates/Android.bp
Normal 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,
|
||||
}
|
8
overlay/ApertureOverlaySocrates/AndroidManifest.xml
Normal file
8
overlay/ApertureOverlaySocrates/AndroidManifest.xml
Normal 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>
|
50
overlay/ApertureOverlaySocrates/res/values/config.xml
Normal file
50
overlay/ApertureOverlaySocrates/res/values/config.xml
Normal 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>
|
10
overlay/SettingsOverlaySocrates/res/values/strings.xml
Normal file
10
overlay/SettingsOverlaySocrates/res/values/strings.xml
Normal 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>
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user