Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b56e08e86 | ||
|
|
3f03b4f921 | ||
|
|
2febda4e51 | ||
|
|
1fefa918ed | ||
|
|
2f29d17b09 | ||
|
|
b1b446b8d8 | ||
|
|
477c6902be | ||
|
|
bda3e145b0 | ||
|
|
ae8910fe2a | ||
|
|
2c6340b673 | ||
|
|
3f6b75aba6 | ||
|
|
952ac24245 | ||
|
|
3d645b3ab6 | ||
|
|
c506c2c738 | ||
|
|
692ca72490 | ||
|
|
8c88fac4dc | ||
|
|
90bbfdc48a | ||
|
|
481a78f09a | ||
|
|
da045dd6fa | ||
|
|
3feec4ac55 | ||
|
|
c89df40da8 | ||
|
|
2593aaf3cc | ||
|
|
061e0952b8 | ||
|
|
4d704a1ff9 | ||
|
|
4133eb03cf | ||
|
|
eb4d039dcc | ||
|
|
54b4ed4665 | ||
|
|
ba058be394 |
@@ -6,9 +6,6 @@
|
||||
soong_namespace {
|
||||
imports: [
|
||||
"hardware/xiaomi",
|
||||
"hardware/google/interfaces",
|
||||
"hardware/google/pixel",
|
||||
"hardware/lineage/interfaces/power-libperfmgr",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -5,11 +5,10 @@
|
||||
#
|
||||
|
||||
DEVICE_PATH := device/xiaomi/redwood
|
||||
KERNEL_PATH := device/xiaomi/redwood-kernel
|
||||
|
||||
BUILD_BROKEN_DUP_RULES := true
|
||||
|
||||
BOARD_VENDOR := xiaomi
|
||||
|
||||
# A/B
|
||||
AB_OTA_PARTITIONS += \
|
||||
boot \
|
||||
@@ -49,11 +48,6 @@ TARGET_BOOTLOADER_BOARD_NAME := redwood
|
||||
# Bootloader
|
||||
TARGET_NO_BOOTLOADER := true
|
||||
|
||||
# Camera
|
||||
TARGET_CAMERA_SERVICE_EXT_LIB := //$(DEVICE_PATH):libcameraservice_extension.xiaomi_redwood
|
||||
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
|
||||
TARGET_CAMERA_PACKAGE_NAME := com.android.camera
|
||||
|
||||
# Display
|
||||
TARGET_SCREEN_DENSITY := 440
|
||||
USE_OPENGL_RENDERER := true
|
||||
@@ -67,12 +61,12 @@ BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
|
||||
# HIDL
|
||||
DEVICE_MATRIX_FILE := $(DEVICE_PATH)/hidl/compatibility_matrix.xml
|
||||
|
||||
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
|
||||
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
|
||||
$(DEVICE_PATH)/hidl/vendor_framework_compatibility_matrix.xml \
|
||||
$(DEVICE_PATH)/hidl/xiaomi_framework_compatibility_matrix.xml \
|
||||
vendor/lineage/config/device_framework_matrix.xml
|
||||
|
||||
DEVICE_MANIFEST_FILE := \
|
||||
DEVICE_MANIFEST_FILE += \
|
||||
$(DEVICE_PATH)/hidl/manifest_lahaina.xml \
|
||||
$(DEVICE_PATH)/hidl/manifest_xiaomi.xml \
|
||||
$(if $(TARGET_NFC_SUPPORTED_SKUS),$(DEVICE_PATH)/hidl/manifest_no_nfc.xml,)
|
||||
@@ -95,9 +89,6 @@ BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
|
||||
|
||||
TARGET_KERNEL_ADDITIONAL_FLAGS := TARGET_PRODUCT=$(PRODUCT_DEVICE)
|
||||
TARGET_KERNEL_NO_GCC := true
|
||||
TARGET_KERNEL_SOURCE := kernel/xiaomi/redwood
|
||||
TARGET_KERNEL_CONFIG := vendor/xiaomi-qgki_defconfig vendor/debugfs.config
|
||||
TARGET_KERNEL_CONFIG += vendor/redwood.config
|
||||
|
||||
BOARD_KERNEL_CMDLINE += androidboot.console=ttyMSM0
|
||||
BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom
|
||||
@@ -115,11 +106,12 @@ BOARD_KERNEL_CMDLINE += ip6table_raw.raw_before_defrag=1
|
||||
BOARD_KERNEL_CMDLINE += kpti=off
|
||||
BOARD_KERNEL_CMDLINE += androidboot.init_fatal_reboot_target=recovery
|
||||
|
||||
# Lineage Health
|
||||
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/qcom-battery/input_suspend
|
||||
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED := 0
|
||||
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED := 1
|
||||
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
|
||||
# Kernel Pre-compiled
|
||||
TARGET_NO_KERNEL_OVERRIDE := true
|
||||
TARGET_KERNEL_SOURCE := $(KERNEL_PATH)/kernel-headers
|
||||
BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img
|
||||
BOARD_PREBUILT_DTBIMAGE_DIR := $(KERNEL_PATH)/dtb
|
||||
BOARD_MKBOOTIMG_ARGS += --dtb $(BOARD_PREBUILT_DTBIMAGE_DIR)/01_dtbdump_Qualcomm_Technologies,_Inc._Yupik_SoC.dtb
|
||||
|
||||
# Partitions
|
||||
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
|
||||
@@ -168,7 +160,7 @@ TARGET_USERIMAGES_SPARSE_F2FS_DISABLED := true
|
||||
TARGET_BOARD_PLATFORM := lahaina
|
||||
|
||||
# Power
|
||||
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(DEVICE_PATH):libperfmgr-ext-xiaomi
|
||||
TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp
|
||||
|
||||
# Properties
|
||||
TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
|
||||
@@ -191,10 +183,9 @@ TARGET_USERIMAGES_USE_F2FS := true
|
||||
ENABLE_VENDOR_RIL_SERVICE := true
|
||||
|
||||
# Security patch level
|
||||
VENDOR_SECURITY_PATCH := 2025-06-01
|
||||
VENDOR_SECURITY_PATCH := 2025-09-01
|
||||
|
||||
# Sepolicy
|
||||
include device/lineage/sepolicy/libperfmgr/sepolicy.mk
|
||||
include device/qcom/sepolicy_vndr/SEPolicy.mk
|
||||
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private
|
||||
|
||||
@@ -30,6 +30,9 @@
|
||||
<libraries>
|
||||
<library name="bundle" path="libbundlewrapper.so"/>
|
||||
<library name="reverb" path="libreverbwrapper.so"/>
|
||||
<library name="qcbassboost" path="libqcbassboost.so"/>
|
||||
<library name="qcvirt" path="libqcvirt.so"/>
|
||||
<library name="qcreverb" path="libqcreverb.so"/>
|
||||
<library name="visualizer_sw" path="libvisualizer.so"/>
|
||||
<library name="visualizer_hw" path="libqcomvisualizer.so"/>
|
||||
<library name="downmix" path="libdownmix.so"/>
|
||||
@@ -41,14 +44,27 @@
|
||||
<library name="volume_listener" path="libvolumelistener.so"/>
|
||||
<library name="audiosphere" path="libasphere.so"/>
|
||||
<library name="shoebox" path="libshoebox.so"/>
|
||||
<!--DOLBY DAP-->
|
||||
<library name="dap" path="libswdap.so"/>
|
||||
<library name="dvl" path="libdlbvol.so"/>
|
||||
<!--DOLBY END-->
|
||||
<!--DOLBY GAME-->
|
||||
<library name="gamedap" path="libswgamedap.so"/>
|
||||
<!--DOLBY END-->
|
||||
<!--DOLBY VQE-->
|
||||
<library name="vqe" path="libswvqe.so"/>
|
||||
<!--DOLBY END-->
|
||||
<!--Spatial Audio-->
|
||||
<library name="spatializer" path="libspatialaudio.so"/>
|
||||
<!--Spatial Audio-->
|
||||
</libraries>
|
||||
<effects>
|
||||
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
|
||||
<libsw library="bundle" uuid="8631f300-72e2-11df-b57e-0002a5d5c51b"/>
|
||||
<libsw library="qcbassboost" uuid="23aca180-44bd-11e2-bcfd-0800200c9a66"/>
|
||||
<libhw library="offload_bundle" uuid="2c4a8c24-1581-487f-94f6-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="virtualizer" library="proxy" uuid="d3467faa-acc7-4d34-acaf-0002a5d5c51b">
|
||||
<libsw library="bundle" uuid="1d4033c0-8557-11df-9f2d-0002a5d5c51b"/>
|
||||
<libsw library="qcvirt" uuid="e6c98a16-22a3-11e2-b87b-f23c91aec05e"/>
|
||||
<libhw library="offload_bundle" uuid="509a4498-561a-4bea-b3b1-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="equalizer" library="proxy" uuid="c8e70ecd-48ca-456e-8a4f-0002a5d5c51b">
|
||||
@@ -57,19 +73,19 @@
|
||||
</effectProxy>
|
||||
<effect name="volume" library="bundle" uuid="119341a0-8469-11df-81f9-0002a5d5c51b"/>
|
||||
<effectProxy name="reverb_env_aux" library="proxy" uuid="48404ac9-d202-4ccc-bf84-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="4a387fc0-8ab3-11df-8bad-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="a8c1e5f3-293d-43cd-95ec-d5e26c02e217"/>
|
||||
<libhw library="offload_bundle" uuid="79a18026-18fd-4185-8233-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="reverb_env_ins" library="proxy" uuid="b707403a-a1c1-4291-9573-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="c7a511a0-a3bb-11df-860e-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="791fff8b-8129-4655-83a4-59bc61034c3a"/>
|
||||
<libhw library="offload_bundle" uuid="eb64ea04-973b-43d2-8f5e-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="reverb_pre_aux" library="proxy" uuid="1b78f587-6d1c-422e-8b84-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="f29a1400-a3bb-11df-8ddc-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="53ef1db5-c0c0-445b-b060-e34d20ebb70a"/>
|
||||
<libhw library="offload_bundle" uuid="6987be09-b142-4b41-9056-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="reverb_pre_ins" library="proxy" uuid="f3e178d2-ebcb-408e-8357-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="172cdf00-a3bc-11df-a72f-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="b08a0e38-22a5-11e2-b87b-f23c91aec05e"/>
|
||||
<libhw library="offload_bundle" uuid="aa2bebf6-47cf-4613-9bca-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="visualizer" library="proxy" uuid="1d0a1a53-7d5d-48f2-8e71-27fbd10d842c">
|
||||
@@ -89,23 +105,29 @@
|
||||
<effect name="notification_helper" library="volume_listener" uuid="0b776dde-0590-11e5-81ba-0025b32654a0"/>
|
||||
<effect name="audiosphere" library="audiosphere" uuid="184e62ab-2d19-4364-9d1b-c0a40733866c"/>
|
||||
<effect name="shoebox" library="shoebox" uuid="1eab784c-1a36-4b2a-b7fc-e34c44cab89e"/>
|
||||
<!--DOLBY DAP-->
|
||||
<effect name="dap" library="dap" uuid="9d4921da-8225-4f29-aefa-39537a04bcaa"/>
|
||||
<effect name="dlb_music_listener" library="dvl" uuid="40f66c8b-5aa5-4345-8919-53ec431aaa98"/>
|
||||
<effect name="dlb_ring_listener" library="dvl" uuid="21d14087-558a-4f21-94a9-5002dce64bce"/>
|
||||
<effect name="dlb_alarm_listener" library="dvl" uuid="6aff229c-30c6-4cc8-9957-dbfe5c1bd7f6"/>
|
||||
<effect name="dlb_system_listener" library="dvl" uuid="874db4d8-051d-4b7b-bd95-a3bebc837e9e"/>
|
||||
<effect name="dlb_notification_listener" library="dvl" uuid="1f0091e3-6ad8-40fe-9b09-5948f9a26e7e"/>
|
||||
<effect name="dlb_voice_call_listener" library="dvl" uuid="58d13383-b41d-05df-d94e-bb23db293260"/>
|
||||
<!--DOLBY END-->
|
||||
<!--DOLBY GAME-->
|
||||
<effect name="gamedap" library="gamedap" uuid="3783c334-d3a0-4d13-874f-0032e5fb80e2"/>
|
||||
<!--DOLBY END-->
|
||||
<!--DOLBY VQE-->
|
||||
<effect name="vqe" library="vqe" uuid="64a0f614-7fa4-48b8-b081-d59dc954616f"/>
|
||||
<!--DOLBY END-->
|
||||
<!--Spatial Audio-->
|
||||
<effect name="spatializer" library="spatializer" uuid="cc4677de-ff72-11eb-9a03-0242ac130003"/>
|
||||
<!--Spatial Audio-->
|
||||
</effects>
|
||||
<postprocess>
|
||||
<stream type="music">
|
||||
<apply effect="music_helper"/>
|
||||
</stream>
|
||||
<stream type="ring">
|
||||
<apply effect="ring_helper"/>
|
||||
</stream>
|
||||
<stream type="alarm">
|
||||
<apply effect="alarm_helper"/>
|
||||
</stream>
|
||||
<stream type="voice_call">
|
||||
<apply effect="voice_helper"/>
|
||||
</stream>
|
||||
<stream type="notification">
|
||||
<apply effect="notification_helper"/>
|
||||
</stream>
|
||||
</postprocess>
|
||||
<preprocess>
|
||||
<stream type="voice_communication">
|
||||
|
||||
@@ -113,6 +113,12 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="hifi_playback" role="source" />
|
||||
<!--Spatial Audio-->
|
||||
<mixPort name="immersive_out" role="source" flags="AUDIO_OUTPUT_FLAG_SPATIALIZER">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
<!--Spatial Audio-->
|
||||
</mixPort>
|
||||
<mixPort name="compress_passthrough" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING">
|
||||
</mixPort>
|
||||
@@ -343,11 +349,11 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<route type="mix" sink="Earpiece"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="Speaker"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,immersive_out"/>
|
||||
<route type="mix" sink="Wired Headset"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,dsd_compress_passthrough"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,dsd_compress_passthrough,immersive_out"/>
|
||||
<route type="mix" sink="Wired Headphones"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,dsd_compress_passthrough"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,dsd_compress_passthrough,immersive_out"/>
|
||||
<route type="mix" sink="Line"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="HDMI"
|
||||
@@ -361,9 +367,9 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<route type="mix" sink="USB Device Out"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback,immersive_out"/>
|
||||
<route type="mix" sink="USB Headset Out"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback,immersive_out"/>
|
||||
<route type="mix" sink="Telephony Tx"
|
||||
sources="voice_tx,incall_music_uplink"/>
|
||||
<route type="mix" sink="voice_rx"
|
||||
|
||||
55
configs/displayconfig/display_id_4630946480857061762.xml
Normal file
55
configs/displayconfig/display_id_4630946480857061762.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
|
||||
<!-- MIUI ADD:Build_MIUIBuildFrame -->
|
||||
<displayConfiguration>
|
||||
<!-- Global Brightness-Nit mapping -->
|
||||
<screenBrightnessMap>
|
||||
<point>
|
||||
<value>0.001709819</value>
|
||||
<nits>2.0</nits>
|
||||
</point>
|
||||
<point>
|
||||
<value>0.49975574</value>
|
||||
<nits>500.0</nits>
|
||||
</point>
|
||||
<point>
|
||||
<value>1.0</value>
|
||||
<nits>900.0</nits>
|
||||
</point>
|
||||
</screenBrightnessMap>
|
||||
<!-- root node for HBM-->
|
||||
<highBrightnessMode enabled="true">
|
||||
<!-- Transition point brightness from normal to HBM mode -->
|
||||
<transitionPoint>0.49975574</transitionPoint>
|
||||
<!-- Minimum lux to enter HBM -->
|
||||
<minimumLux>6001</minimumLux>
|
||||
<!-- Time limitation for HBM-->
|
||||
<timing>
|
||||
<timeWindowSecs>0</timeWindowSecs>
|
||||
<timeMaxSecs>0</timeMaxSecs>
|
||||
<timeMinSecs>0</timeMinSecs>
|
||||
</timing>
|
||||
<!--Refresh rate limitation when the device is in HBM -->
|
||||
<!-- <refreshRate>
|
||||
<minimum>0</minimum>
|
||||
<maximum>0</maximum>
|
||||
</refreshRate> -->
|
||||
<!-- Thermal limitation for HBM -->
|
||||
<thermalStatusLimit>critical</thermalStatusLimit>
|
||||
<!-- Low power mode limitation for HBM -->
|
||||
<allowInLowPowerMode>true</allowInLowPowerMode>
|
||||
<minimumHdrPercentOfScreen>0</minimumHdrPercentOfScreen>
|
||||
<sdrHdrRatioMap>
|
||||
<point>
|
||||
<sdrNits>2.0</sdrNits>
|
||||
<hdrRatio>2.25</hdrRatio>
|
||||
</point>
|
||||
<point>
|
||||
<sdrNits>900.0</sdrNits>
|
||||
<hdrRatio>2.25</hdrRatio>
|
||||
</point>
|
||||
</sdrHdrRatioMap>
|
||||
</highBrightnessMode>
|
||||
<ambientLightHorizonLong>3000</ambientLightHorizonLong>
|
||||
<ambientLightHorizonShort>1000</ambientLightHorizonShort>
|
||||
</displayConfiguration>
|
||||
<!-- END Build_MIUIBuildFrame -->
|
||||
55
configs/displayconfig/display_id_4630946622257352578.xml
Normal file
55
configs/displayconfig/display_id_4630946622257352578.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
|
||||
<!-- MIUI ADD:Build_MIUIBuildFrame -->
|
||||
<displayConfiguration>
|
||||
<!-- Global Brightness-Nit mapping -->
|
||||
<screenBrightnessMap>
|
||||
<point>
|
||||
<value>0.001709819</value>
|
||||
<nits>2.0</nits>
|
||||
</point>
|
||||
<point>
|
||||
<value>0.49975574</value>
|
||||
<nits>500.0</nits>
|
||||
</point>
|
||||
<point>
|
||||
<value>1.0</value>
|
||||
<nits>900.0</nits>
|
||||
</point>
|
||||
</screenBrightnessMap>
|
||||
<!-- root node for HBM-->
|
||||
<highBrightnessMode enabled="true">
|
||||
<!-- Transition point brightness from normal to HBM mode -->
|
||||
<transitionPoint>0.49975574</transitionPoint>
|
||||
<!-- Minimum lux to enter HBM -->
|
||||
<minimumLux>6001</minimumLux>
|
||||
<!-- Time limitation for HBM-->
|
||||
<timing>
|
||||
<timeWindowSecs>0</timeWindowSecs>
|
||||
<timeMaxSecs>0</timeMaxSecs>
|
||||
<timeMinSecs>0</timeMinSecs>
|
||||
</timing>
|
||||
<!--Refresh rate limitation when the device is in HBM -->
|
||||
<!-- <refreshRate>
|
||||
<minimum>0</minimum>
|
||||
<maximum>0</maximum>
|
||||
</refreshRate> -->
|
||||
<!-- Thermal limitation for HBM -->
|
||||
<thermalStatusLimit>critical</thermalStatusLimit>
|
||||
<!-- Low power mode limitation for HBM -->
|
||||
<allowInLowPowerMode>true</allowInLowPowerMode>
|
||||
<minimumHdrPercentOfScreen>0</minimumHdrPercentOfScreen>
|
||||
<sdrHdrRatioMap>
|
||||
<point>
|
||||
<sdrNits>2.0</sdrNits>
|
||||
<hdrRatio>2.25</hdrRatio>
|
||||
</point>
|
||||
<point>
|
||||
<sdrNits>900.0</sdrNits>
|
||||
<hdrRatio>2.25</hdrRatio>
|
||||
</point>
|
||||
</sdrHdrRatioMap>
|
||||
</highBrightnessMode>
|
||||
<ambientLightHorizonLong>3000</ambientLightHorizonLong>
|
||||
<ambientLightHorizonShort>1000</ambientLightHorizonShort>
|
||||
</displayConfiguration>
|
||||
<!-- END Build_MIUIBuildFrame -->
|
||||
5
configs/permissions/camerax-vendor-extensions.xml
Normal file
5
configs/permissions/camerax-vendor-extensions.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<permissions>
|
||||
<library name="camerax-vendor-extensions.jar"
|
||||
file="/system/framework/camerax-vendor-extensions.jar" />
|
||||
</permissions>
|
||||
@@ -1,606 +0,0 @@
|
||||
{
|
||||
"Nodes": [
|
||||
{
|
||||
"Name": "CPULittleClusterMaxFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1612800"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPULittleClusterMinFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1708800",
|
||||
"1305600",
|
||||
"691200"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPULittleClusterUpRateLimit",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us",
|
||||
"Values": [
|
||||
"500",
|
||||
"2000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPULittleClusterDownRateLimit",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us",
|
||||
"Values": [
|
||||
"20000",
|
||||
"2000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterMaxFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1324800"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterMinFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1324800",
|
||||
"1075200",
|
||||
"710400"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterUpRateLimit",
|
||||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us",
|
||||
"Values": [
|
||||
"500",
|
||||
"2000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterDownRateLimit",
|
||||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us",
|
||||
"Values": [
|
||||
"10000",
|
||||
"2000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigPlusClusterMaxFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1555200"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigPlusClusterMinFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"9999999",
|
||||
"1075200",
|
||||
"844800"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigPlusClusterUpRateLimit",
|
||||
"Path": "/sys/devices/system/cpu/cpu7/cpufreq/schedutil/up_rate_limit_us",
|
||||
"Values": [
|
||||
"500",
|
||||
"2000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigPlusClusterDownRateLimit",
|
||||
"Path": "/sys/devices/system/cpu/cpu7/cpufreq/schedutil/down_rate_limit_us",
|
||||
"Values": [
|
||||
"5000",
|
||||
"2000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "UclampTAMin",
|
||||
"Path": "/dev/cpuctl/top-app/cpu.uclamp.min",
|
||||
"Values": [
|
||||
"0",
|
||||
"25",
|
||||
"50"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "UclampTALatency",
|
||||
"Path": "/dev/cpuctl/top-app/cpu.uclamp.latency_sensitive",
|
||||
"Values": [
|
||||
"1",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "UclampFgMin",
|
||||
"Path": "/dev/cpuctl/foreground/cpu.uclamp.min",
|
||||
"Values": [
|
||||
"0",
|
||||
"50"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "SchedPreferSpread",
|
||||
"Path": "/proc/sys/kernel/sched_prefer_spread",
|
||||
"Values": [
|
||||
"4",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "SchedBusyHystNs",
|
||||
"Path": "/proc/sys/kernel/sched_busy_hyst_ns",
|
||||
"Values": [
|
||||
"99000000",
|
||||
"3000000",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "SchedBusyHystEnableCPUs",
|
||||
"Path": "/proc/sys/kernel/sched_busy_hysteresis_enable_cpus",
|
||||
"Values": [
|
||||
"255",
|
||||
"15",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "SchedMinTaskUtilForBoost",
|
||||
"Path": "/proc/sys/kernel/sched_min_task_util_for_boost",
|
||||
"Values": [
|
||||
"0",
|
||||
"51"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "SchedMinTaskUtilForColoc",
|
||||
"Path": "/proc/sys/kernel/sched_min_task_util_for_colocation",
|
||||
"Values": [
|
||||
"0",
|
||||
"35"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUMaxFreq",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq",
|
||||
"Values": [
|
||||
"840000000",
|
||||
"540000000",
|
||||
"443000000"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUMinFreq",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq",
|
||||
"Values": [
|
||||
"540000000",
|
||||
"379000000",
|
||||
"315000000"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUForceRailOn",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/force_rail_on",
|
||||
"Values": [
|
||||
"1",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUForceClkOn",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/force_clk_on",
|
||||
"Values": [
|
||||
"1",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUIdleTimer",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/idle_timer",
|
||||
"Values": [
|
||||
"10000",
|
||||
"58"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBWHystTriggerCount",
|
||||
"Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/bw_hwmon/hyst_trigger_count",
|
||||
"Values": [
|
||||
"0",
|
||||
"3"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBWHistMemory",
|
||||
"Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/bw_hwmon/hist_memory",
|
||||
"Values": [
|
||||
"0",
|
||||
"20"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBWHystLength",
|
||||
"Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/bw_hwmon/hyst_length",
|
||||
"Values": [
|
||||
"0",
|
||||
"10"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBWMinFreq",
|
||||
"Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/min_freq",
|
||||
"Values": [
|
||||
"12298",
|
||||
"9155",
|
||||
"4577"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "LLCCBWMinFreq",
|
||||
"Path": "/sys/class/devfreq/soc:qcom,cpu-llcc-ddr-bw/min_freq",
|
||||
"Values": [
|
||||
"6515",
|
||||
"3879",
|
||||
"762"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "PowerHALMainState",
|
||||
"Path": "vendor.powerhal.state",
|
||||
"Values": [
|
||||
"SUSTAINED_PERFORMANCE",
|
||||
""
|
||||
],
|
||||
"Type": "Property"
|
||||
},
|
||||
{
|
||||
"Name": "PowerHALRenderingState",
|
||||
"Path": "vendor.powerhal.rendering",
|
||||
"Values": [
|
||||
"EXPENSIVE_RENDERING",
|
||||
""
|
||||
],
|
||||
"Type": "Property"
|
||||
}
|
||||
],
|
||||
"Actions": [
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "PowerHALMainState",
|
||||
"Duration": 0,
|
||||
"Value": "SUSTAINED_PERFORMANCE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "CPUBigClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1324800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "CPUBigPlusClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1555200"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "CPULittleClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1612800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "GPUMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "540000000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBigClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1324800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPULittleClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1708800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "UclampTAMin",
|
||||
"Duration": 0,
|
||||
"Value": "25"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "UclampTALatency",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "SchedPreferSpread",
|
||||
"Duration": 0,
|
||||
"Value": "4"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "SchedBusyHystNs",
|
||||
"Duration": 0,
|
||||
"Value": "99000000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "SchedBusyHystEnableCPUs",
|
||||
"Duration": 0,
|
||||
"Value": "255"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "SchedMinTaskUtilForBoost",
|
||||
"Duration": 0,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "SchedMinTaskUtilForColoc",
|
||||
"Duration": 0,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWHystTriggerCount",
|
||||
"Duration": 0,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWHystLength",
|
||||
"Duration": 0,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWHistMemory",
|
||||
"Duration": 0,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9155"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "LLCCBWMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "3879"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "CPULittleClusterUpRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "500"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "CPULittleClusterDownRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "20000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "CPUBigClusterUpRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "500"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "CPUBigClusterDownRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "10000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "CPUBigPlusClusterUpRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "500"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "CPUBigPlusClusterDownRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "5000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "SchedBusyHystNs",
|
||||
"Duration": 0,
|
||||
"Value": "3000000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "SchedBusyHystEnableCPUs",
|
||||
"Duration": 0,
|
||||
"Value": "15"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBigClusterMinFreq",
|
||||
"Duration": 3000,
|
||||
"Value": "9999999"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPULittleClusterMinFreq",
|
||||
"Duration": 3000,
|
||||
"Value": "9999999"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "UclampFgMin",
|
||||
"Duration": 3000,
|
||||
"Value": "50"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWHystTriggerCount",
|
||||
"Duration": 3000,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWHystLength",
|
||||
"Duration": 3000,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWHistMemory",
|
||||
"Duration": 3000,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWMinFreq",
|
||||
"Duration": 3000,
|
||||
"Value": "12298"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "GPUForceClkOn",
|
||||
"Duration": 3000,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "GPUForceRailOn",
|
||||
"Duration": 3000,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "GPUIdleTimer",
|
||||
"Duration": 3000,
|
||||
"Value": "10000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "LLCCBWMinFreq",
|
||||
"Duration": 3000,
|
||||
"Value": "6515"
|
||||
},
|
||||
{
|
||||
"PowerHint": "EXPENSIVE_RENDERING",
|
||||
"Node": "PowerHALRenderingState",
|
||||
"Duration": 0,
|
||||
"Value": "EXPENSIVE_RENDERING"
|
||||
},
|
||||
{
|
||||
"PowerHint": "EXPENSIVE_RENDERING",
|
||||
"Node": "GPUMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "540000000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "Flipendo",
|
||||
"Node": "CPULittleClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1612800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "Flipendo",
|
||||
"Node": "CPUBigClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1324800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "Flipendo",
|
||||
"Node": "CPUBigPlusClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1555200"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
"Node": "CPUBigClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1075200"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
"Node": "CPULittleClusterMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "9999999"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
"Node": "GPUMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "379000000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
"Node": "CPULittleClusterDownRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "2000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
"Node": "CPUBigClusterDownRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "2000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "GAME",
|
||||
"Node": "CPUBigPlusClusterDownRateLimit",
|
||||
"Duration": 0,
|
||||
"Value": "2000"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
libqti-perfd-client.so
|
||||
libadsprpc.so
|
||||
libcdsprpc.so
|
||||
libsdsprpc.so
|
||||
|
||||
47
device.mk
47
device.mk
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2024 The LineageOS Project
|
||||
# Copyright (C) 2023 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
@@ -7,6 +7,9 @@
|
||||
# NFC
|
||||
TARGET_NFC_SUPPORTED_SKUS := redwood
|
||||
|
||||
# Run the script before copying files
|
||||
$(shell bash vendor/xiaomi/redwood-miuicamera/vendorsetup.sh)
|
||||
|
||||
# Inherit from those products. Most specific first.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
TARGET_SUPPORTS_OMX_SERVICE := false
|
||||
@@ -145,6 +148,14 @@ 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
|
||||
|
||||
$(call soong_config_set,camera,override_format_from_reserved,true)
|
||||
$(call soong_config_set,camera,package_name,com.android.camera)
|
||||
$(call soong_config_set,libcameraservice,ext_lib,libcameraservice_extension.xiaomi_redwood)
|
||||
|
||||
# Camera Extensions permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/permissions/camerax-vendor-extensions.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/camerax-vendor-extensions.xml
|
||||
|
||||
# Codec2
|
||||
PRODUCT_PACKAGES += \
|
||||
libcodec2_vndk.vendor \
|
||||
@@ -185,6 +196,9 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
hardware/qcom-caf/sm8350/display/config/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/displayconfig/,$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/)
|
||||
|
||||
# Dex to make OTA go faster
|
||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
||||
dalvik.vm.boot-dex2oat-cpu-set=1,2,3,4,5,6,7 \
|
||||
@@ -192,6 +206,9 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
||||
dalvik.vm.image-dex2oat-cpu-set=0,1,2,3,4,5,6,7 \
|
||||
dalvik.vm.image-dex2oat-threads=8
|
||||
|
||||
# Dolby
|
||||
$(call inherit-product, hardware/dolby/dolby.mk)
|
||||
|
||||
# DRM
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.drm@1.3.vendor \
|
||||
@@ -300,7 +317,7 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# IR
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.ir-service.xiaomi
|
||||
android.hardware.ir-service.lineage
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
|
||||
@@ -308,6 +325,9 @@ PRODUCT_COPY_FILES += \
|
||||
# Kernel
|
||||
PRODUCT_ENABLE_UFFD_GC := true
|
||||
PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
|
||||
LOCAL_KERNEL := device/xiaomi/redwood-kernel/Image
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_KERNEL):kernel
|
||||
|
||||
# Keymaster
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -317,6 +337,11 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
vendor.lineage.health-service.default
|
||||
|
||||
$(call soong_config_set,lineage_health,charging_control_charging_path,/sys/class/qcom-battery/input_suspend)
|
||||
$(call soong_config_set,lineage_health,charging_control_supports_bypass,false)
|
||||
$(call soong_config_set,lineage_health,charging_control_charging_disabled,1)
|
||||
$(call soong_config_set,lineage_health,charging_control_charging_enabled,0)
|
||||
|
||||
# Media
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/media/init.qti.media.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.media.sh \
|
||||
@@ -414,15 +439,18 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power-service.lineage-libperfmgr \
|
||||
libqti-perfd-client
|
||||
android.hardware.power-service-qti \
|
||||
android.hardware.power@1.2.vendor \
|
||||
vendor.qti.hardware.perf@2.2.vendor
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libssl.vendor
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json \
|
||||
$(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
|
||||
$(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/qcom/opensource/power/config/lahaina/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
|
||||
|
||||
# QTI
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -478,10 +506,6 @@ PRODUCT_COPY_FILES += \
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH) \
|
||||
hardware/google/interfaces \
|
||||
hardware/google/pixel \
|
||||
hardware/lineage/interfaces/power-libperfmgr \
|
||||
hardware/qcom-caf/common/libqti-perfd-client \
|
||||
hardware/xiaomi
|
||||
|
||||
# Telephony
|
||||
@@ -495,6 +519,9 @@ PRODUCT_PACKAGES += \
|
||||
telephony-ext \
|
||||
xiaomi-telephony-stub
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
qcrilNrDb_vendor
|
||||
|
||||
PRODUCT_BOOT_JARS += \
|
||||
telephony-ext \
|
||||
xiaomi-telephony-stub
|
||||
|
||||
37
evolution.dependencies
Normal file
37
evolution.dependencies
Normal file
@@ -0,0 +1,37 @@
|
||||
[
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "Evolution-X/vendor_evolution-priv_keys",
|
||||
"target_path": "vendor/evolution-priv/keys",
|
||||
"branch" : "master"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "thepriyanshujangid/device_xiaomi_redwood-kernel",
|
||||
"target_path": "device/xiaomi/redwood-kernel",
|
||||
"branch" : "Scarlet"
|
||||
},
|
||||
{
|
||||
"repository" : "vendor_xiaomi_redwood",
|
||||
"target_path": "vendor/xiaomi/redwood",
|
||||
"branch" : "vic"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "LineageOS/android_hardware_xiaomi",
|
||||
"target_path": "hardware/xiaomi",
|
||||
"branch" : "lineage-22.2"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "thepriyanshujangid/hardware_dolby",
|
||||
"target_path": "hardware/dolby",
|
||||
"branch" : "sony_moto-ui"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "thepriyanshujangid/vendor_xiaomi_redwood-miuicamera",
|
||||
"target_path": "vendor/xiaomi/redwood-miuicamera",
|
||||
"branch" : "sixteen"
|
||||
}
|
||||
]
|
||||
@@ -19,7 +19,6 @@ from extract_utils.main import (
|
||||
|
||||
namespace_imports = [
|
||||
'device/xiaomi/redwood',
|
||||
'hardware/qcom-caf/common/libqti-perfd-client',
|
||||
'hardware/qcom-caf/sm8350',
|
||||
'hardware/qcom-caf/wlan',
|
||||
'hardware/xiaomi',
|
||||
@@ -41,6 +40,11 @@ lib_fixups: lib_fixups_user_type = {
|
||||
'libmmosal',
|
||||
'vendor.qti.diaghal@1.0',
|
||||
'vendor.qti.imsrtpservice@3.0',
|
||||
'vendor.xiaomi.hardware.displayfeature@1.0',
|
||||
'vendor.xiaomi.hardware.misys@1.0',
|
||||
'vendor.xiaomi.hardware.misys@2.0',
|
||||
'vendor.xiaomi.hardware.misys@3.0',
|
||||
'vendor.xiaomi.hardware.misys@4.0',
|
||||
): lib_fixup_vendor_suffix,
|
||||
}
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright (C) 2007 The Android Open Source 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.
|
||||
#
|
||||
|
||||
# If you don't need to do a full clean build but would like to touch
|
||||
# a file or delete some intermediate files, add a clean step to the end
|
||||
# of the list. These steps will only be run once, if they haven't been
|
||||
# run before.
|
||||
#
|
||||
# E.g.:
|
||||
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
|
||||
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
|
||||
#
|
||||
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
|
||||
# files that are missing or have been moved.
|
||||
#
|
||||
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
|
||||
# Use $(OUT_DIR) to refer to the "out" directory.
|
||||
#
|
||||
# If you need to re-do something that's already mentioned, just copy
|
||||
# the command and add it to the bottom of the list. E.g., if a change
|
||||
# that you made last week required touching a file and a change you
|
||||
# made today requires touching the same file, just copy the old
|
||||
# touch step and add it to the end of the list.
|
||||
#
|
||||
# ************************************************
|
||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||
# ************************************************
|
||||
|
||||
# For example:
|
||||
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
|
||||
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
|
||||
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
|
||||
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
|
||||
|
||||
# ************************************************
|
||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||
# ************************************************
|
||||
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libloc_api*)
|
||||
@@ -141,8 +141,11 @@ public:
|
||||
unordered_set<KEY>* goneKeys, unordered_set<VAL>* goneVals) {
|
||||
for (auto key : keys) {
|
||||
auto iter = mMap.find(key);
|
||||
if (iter != mMap.end() && trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) {
|
||||
goneKeys->insert(iter->first);
|
||||
if (iter != mMap.end()) {
|
||||
KEY goneKey = iter->first;
|
||||
if (trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) {
|
||||
goneKeys->insert(goneKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -377,6 +377,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<!-- Perf HAL service -->
|
||||
<hal format="hidl">
|
||||
<name>vendor.qti.hardware.perf</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.2</version>
|
||||
<interface>
|
||||
<name>IPerf</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<!-- bluetooth -->
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.bluetooth</name>
|
||||
|
||||
@@ -8,4 +8,9 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal>
|
||||
<name>vendor.xiaomi.hardware.displayfeature</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::IDisplayFeature/default</fqname>
|
||||
</hal>
|
||||
</manifest>
|
||||
|
||||
@@ -46,6 +46,14 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<instance>objectTracker</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.qti.hardware.perf</name>
|
||||
<version>2.0-2</version>
|
||||
<interface>
|
||||
<name>IPerf</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.display.color</name>
|
||||
<version>1.0-6</version>
|
||||
@@ -543,6 +551,24 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<!-- Memory PASR HAL -->
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.qti.memory.pasrmanager</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0-1</version>
|
||||
<interface>
|
||||
<name>IPasrManager</name>
|
||||
<instance>pasrhal</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.qti.power.pasrmanager</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IPasrManager</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>android.hardware.radio.config</name>
|
||||
<version>1.0-1</version>
|
||||
@@ -977,4 +1003,15 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.xiaomi.hardware.misys</name>
|
||||
<version>1.0</version>
|
||||
<version>2.0</version>
|
||||
<version>3.0</version>
|
||||
<version>4.0</version>
|
||||
<interface>
|
||||
<name>IMiSys</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</compatibility-matrix>
|
||||
|
||||
@@ -52,4 +52,12 @@
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl" optional="true">
|
||||
<name>vendor.xiaomi.hardware.displayfeature</name>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IDisplayFeature</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</compatibility-matrix>
|
||||
|
||||
@@ -26,11 +26,13 @@ PRODUCT_SYSTEM_NAME := redwood_global
|
||||
PRODUCT_SYSTEM_DEVICE := redwood
|
||||
|
||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
BuildDesc="redwood_global-user 14 UKQ1.240624.001 OS2.0.7.0.UMSMIXM release-keys" \
|
||||
BuildFingerprint=POCO/redwood_global/redwood:14/UKQ1.240624.001/OS2.0.7.0.UMSMIXM:user/release-keys \
|
||||
BuildDesc="redwood_global-user 14 UKQ1.240624.001 OS2.0.11.0.UMSMIXM release-keys" \
|
||||
BuildFingerprint=POCO/redwood_global/redwood:14/UKQ1.240624.001/OS2.0.11.0.UMSMIXM:user/release-keys \
|
||||
DeviceName=$(PRODUCT_SYSTEM_DEVICE) \
|
||||
DeviceProduct=$(PRODUCT_SYSTEM_NAME)
|
||||
|
||||
# Exclude apps
|
||||
TARGET_DISABLE_MATLOG := true
|
||||
TARGET_EXCLUDES_AUDIOFX := true
|
||||
# Evolution specific Flags
|
||||
EVO_BUILD_TYPE := Official
|
||||
TARGET_BOOT_ANIMATION_RES := 1080
|
||||
WITH_GMS := true
|
||||
TARGET_DISABLE_EPPE := true
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Include href="media_codecs_dolby_audio.xml" />
|
||||
<Settings>
|
||||
<Domain name="telephony" enabled="true" />
|
||||
<Setting name="max-video-encoder-input-buffers" value="11" />
|
||||
|
||||
5
odm.prop
5
odm.prop
@@ -1,6 +1,9 @@
|
||||
# Camera
|
||||
ro.camerax.extensions.enabled=true
|
||||
|
||||
# Qcom
|
||||
ro.vendor.qti.va_odm.support=1
|
||||
|
||||
# SKU properties
|
||||
ro.product.property_source_order=odm,product,vendor,system_ext,system
|
||||
import /odm/etc/${ro.boot.hwc}_build.prop
|
||||
import /odm/etc/${ro.boot.hwc}_build.prop
|
||||
|
||||
@@ -578,10 +578,12 @@
|
||||
|
||||
<!-- Indicate available ColorDisplayManager.COLOR_MODE_xxx. -->
|
||||
<integer-array name="config_availableColorModes">
|
||||
<item>0</item> <!-- COLOR_MODE_NATURAL -->
|
||||
<item>1</item> <!-- COLOR_MODE_BOOSTED -->
|
||||
<item>2</item> <!-- COLOR_MODE_SATURATED -->
|
||||
<item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
|
||||
<item>258</item> <!-- vivid -->
|
||||
<item>256</item> <!-- saturated -->
|
||||
<item>257</item> <!-- standard -->
|
||||
<item>269</item> <!-- original -->
|
||||
<item>268</item> <!-- p3 -->
|
||||
<item>267</item> <!-- srgb -->
|
||||
</integer-array>
|
||||
|
||||
<!-- Color mode to use when accessibility transforms are enabled. This color mode must be
|
||||
@@ -589,30 +591,6 @@
|
||||
regularly selected color mode will be used if this value is negative. -->
|
||||
<integer name="config_accessibilityColorMode">2</integer>
|
||||
|
||||
<!-- The following two arrays specify which color space to use for display composition when a
|
||||
certain color mode is active.
|
||||
Composition color spaces are defined in android.view.Display.COLOR_MODE_xxx, and color
|
||||
modes are defined in ColorDisplayManager.COLOR_MODE_xxx and
|
||||
ColorDisplayManager.VENDOR_COLOR_MODE_xxx.
|
||||
The color space COLOR_MODE_DEFAULT (0) lets the system select the most appropriate
|
||||
composition color space for currently displayed content. Other values (e.g.,
|
||||
COLOR_MODE_SRGB) override system selection; these other color spaces must be supported by
|
||||
the device for for display composition.
|
||||
If a color mode does not have a corresponding color space specified in this array, the
|
||||
currently set composition color space will not be modified.-->
|
||||
<integer-array name="config_displayCompositionColorModes">
|
||||
<item>0</item> <!-- COLOR_MODE_NATURAL -->
|
||||
<item>1</item> <!-- COLOR_MODE_BOOSTED -->
|
||||
<item>2</item> <!-- COLOR_MODE_SATURATED -->
|
||||
<item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
|
||||
</integer-array>
|
||||
<integer-array name="config_displayCompositionColorSpaces">
|
||||
<item>0</item> <!-- COLOR_MODE_DEFAULT -->
|
||||
<item>0</item> <!-- COLOR_MODE_DEFAULT -->
|
||||
<item>0</item> <!-- COLOR_MODE_DEFAULT -->
|
||||
<item>9</item> <!-- COLOR_MODE_DISPLAY_P3 -->
|
||||
</integer-array>
|
||||
|
||||
<!-- Whether or not wcg mode should be enabled on this device -->
|
||||
<bool name="config_enableWcgMode">true</bool>
|
||||
|
||||
@@ -632,4 +610,10 @@
|
||||
|
||||
<!-- Whether the device supports Smart Pixels -->
|
||||
<bool name="config_supportSmartPixels">true</bool>
|
||||
|
||||
<!-- The list of components which should be automatically disabled for a specific package. -->
|
||||
<string-array name="config_disabledComponents" translatable="false">
|
||||
<item>com.google.android.gms/com.google.android.gms.nearby.messages.service.NearbyMessagesService</item>
|
||||
<item>com.google.android.gms/com.google.android.gms.nearby.discovery.service.DiscoveryService</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -54,4 +54,28 @@
|
||||
<string name="config_batteryDesignCapacity">/sys/class/power_supply/battery/charge_full_design</string>
|
||||
<string name="config_batteryChargeCycles">/sys/class/power_supply/battery/cycle_count</string>
|
||||
<bool name="config_supportBatteryHealth">true</bool>
|
||||
|
||||
<!-- Display settings screen, Color mode options. Must be the same length and order as
|
||||
config_color_mode_options_values below. Only the values that also appear in
|
||||
frameworks/base/core/res/res/values/config.xml's config_availableColorModes are shown. -->
|
||||
<string-array name="config_color_mode_options_strings" translatable="false">
|
||||
<item>Vivid</item>
|
||||
<item>Saturated</item>
|
||||
<item>Standard</item>
|
||||
<item>Original</item>
|
||||
<item>P3</item>
|
||||
<item>sRGB</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Display settings screen, Color mode options. Must be the same length and order as
|
||||
config_color_mode_options_strings above. Only the values that also appear in
|
||||
frameworks/base/core/res/res/values/config.xml's config_availableColorModes are shown. -->
|
||||
<integer-array name="config_color_mode_options_values" translatable="false">
|
||||
<item>258</item>
|
||||
<item>256</item>
|
||||
<item>257</item>
|
||||
<item>269</item>
|
||||
<item>268</item>
|
||||
<item>267</item>
|
||||
</integer-array>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- ROM maintainer name -->
|
||||
<string name="build_maintainer_summary">𝙿𝚁𝙸𝚈𝙰𝙽𝚂𝙷𝚄</string>
|
||||
<string name="build_maintainer_donate_url" translatable="false">https://paypal.me/thepriyanshujangid</string>
|
||||
|
||||
</resources>
|
||||
@@ -1,11 +0,0 @@
|
||||
cc_library_static {
|
||||
name: "libperfmgr-ext-xiaomi",
|
||||
vendor: true,
|
||||
srcs: [
|
||||
"power-mode.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"android.hardware.power-V6-ndk",
|
||||
"libbase",
|
||||
],
|
||||
}
|
||||
@@ -19,11 +19,10 @@
|
||||
#define TOUCH_IOC_SETMODE TOUCH_MAGIC + SET_CUR_VALUE
|
||||
|
||||
namespace aidl {
|
||||
namespace google {
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace power {
|
||||
namespace impl {
|
||||
namespace pixel {
|
||||
|
||||
using ::aidl::android::hardware::power::Mode;
|
||||
|
||||
@@ -54,6 +53,5 @@ bool setDeviceSpecificMode(Mode type, bool enabled) {
|
||||
} // namespace impl
|
||||
} // namespace power
|
||||
} // namespace hardware
|
||||
} // namespace google
|
||||
} // namespace android
|
||||
} // namespace aidl
|
||||
} // namespace pixel
|
||||
|
||||
@@ -1,8 +1,2 @@
|
||||
# FUSE passthrough
|
||||
persist.sys.fuse.passthrough.enable=true
|
||||
|
||||
# FUN time
|
||||
persist.sys.usb.config=mtp,adb
|
||||
ro.adb.secure=0
|
||||
ro.debuggable=1
|
||||
ro.secure=0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# All unpinned blobs below are extracted from redwood_global-user-14-UKQ1.240624.001-OS2.0.7.0.UMSMIXM-release-keys
|
||||
# All unpinned blobs below are extracted from redwood_global-user-14-UKQ1.240624.001-OS2.0.11.0.UMSMIXM-release-keys
|
||||
|
||||
# ACDB
|
||||
vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb
|
||||
@@ -95,7 +95,13 @@ vendor/firmware/aw882xx_acf.bin
|
||||
system_ext/etc/permissions/audiosphere.xml
|
||||
system_ext/framework/audiosphere.jar
|
||||
vendor/lib/soundfx/libasphere.so
|
||||
vendor/lib/soundfx/libqcbassboost.so
|
||||
vendor/lib/soundfx/libqcreverb.so
|
||||
vendor/lib/soundfx/libqcvirt.so
|
||||
vendor/lib/soundfx/libshoebox.so
|
||||
vendor/lib64/soundfx/libqcbassboost.so
|
||||
vendor/lib64/soundfx/libqcreverb.so
|
||||
vendor/lib64/soundfx/libqcvirt.so
|
||||
|
||||
# Audio Hardware
|
||||
vendor/lib/hw/audio.primary.lahaina.so
|
||||
@@ -484,6 +490,9 @@ vendor/etc/camera/xiaomi/thirdpartyjpegsnapshot.json
|
||||
vendor/etc/camera/xiaomi/thirdpartysnapshot.json
|
||||
vendor/etc/camera/xiaomiSceneDetection.xml
|
||||
|
||||
# Camera Extensions
|
||||
system_ext/framework/camerax-vendor-extensions.jar:system/framework/camerax-vendor-extensions.jar;BOOT_JAR
|
||||
|
||||
# Camera-firmware
|
||||
vendor/firmware/CAMERA_ICP.elf
|
||||
vendor/firmware/CAMERA_ICP_170.elf
|
||||
@@ -625,6 +634,18 @@ vendor/etc/mdss_dsi_m20_42_0d_0b_dsc_vid_mi.xml
|
||||
vendor/etc/qdcm_calib_data_xiaomi_36_02_0a_video_mode_dsc_dsi_panel.xml
|
||||
vendor/etc/qdcm_calib_data_xiaomi_42_0d_0b_video_mode_dsc_dsi_panel.xml
|
||||
|
||||
# Display feature
|
||||
vendor/bin/displayfeature
|
||||
vendor/bin/hw/vendor.xiaomi.hardware.displayfeature@1.0-service
|
||||
vendor/etc/init/vendor.xiaomi.hardware.displayfeature@1.0-service.rc
|
||||
vendor/lib64/hw/displayfeature.default.so
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.displayfeature@1.0-impl.so
|
||||
vendor/lib64/libclient2slpi.notifier.so
|
||||
vendor/lib64/libdisplayfeature.so
|
||||
vendor/lib64/libdisplayfeatureservice.so
|
||||
vendor/lib64/libmi-stc-HW-modulate.so
|
||||
vendor/lib64/vendor.xiaomi.hardware.displayfeature@1.0.so;MODULE_SUFFIX=_vendor
|
||||
|
||||
# Display - from AOSPA
|
||||
vendor/etc/display/DPU660.xml|b26dd73e361546d89bf3d7082a471703dc6ac2cb
|
||||
vendor/etc/display/DPU670.xml|e5131a60ceff29ca5eb561eec7eddadef1d0486f
|
||||
@@ -958,6 +979,46 @@ vendor/firmware/vpu20_1v.mbn
|
||||
vendor/firmware/vpu20_1v.mdt
|
||||
vendor/firmware/vpu20_1v_unsigned.mbn
|
||||
|
||||
# MiSys
|
||||
system/etc/permissions/vendor.xiaomi.hardware.misys-V1.0-java-permission.xml
|
||||
system/etc/permissions/vendor.xiaomi.hardware.misys-V2.0-java-permission.xml
|
||||
system/etc/permissions/vendor.xiaomi.hardware.misys-V4.0-java-permission.xml
|
||||
system/etc/permissions/vendor.xiaomi.hardware.misys.V3_0-permission.xml
|
||||
system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar;BOOT_JAR
|
||||
system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar;BOOT_JAR
|
||||
system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar;BOOT_JAR
|
||||
system/framework/vendor.xiaomi.hardware.misys.V3_0.jar;BOOT_JAR
|
||||
system/lib64/libmisys_jni.xiaomi.so
|
||||
system/lib64/vendor.xiaomi.hardware.misys@1.0.so
|
||||
system/lib64/vendor.xiaomi.hardware.misys@2.0.so
|
||||
system/lib64/vendor.xiaomi.hardware.misys@3.0.so
|
||||
system/lib64/vendor.xiaomi.hardware.misys@4.0.so
|
||||
vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
|
||||
vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
|
||||
vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
|
||||
vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
|
||||
vendor/etc/init/vendor.xiaomi.hardware.misys@1.0-service.rc
|
||||
vendor/etc/init/vendor.xiaomi.hardware.misys@2.0-service.rc
|
||||
vendor/etc/init/vendor.xiaomi.hardware.misys@3.0-service.rc
|
||||
vendor/etc/init/vendor.xiaomi.hardware.misys@4.0-service.rc
|
||||
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@1.0.xml
|
||||
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@2.0.xml
|
||||
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@3.0.xml
|
||||
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@4.0.xml
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so
|
||||
vendor/lib64/libcheckpid.so
|
||||
vendor/lib64/liblogwrap_vendor.so
|
||||
vendor/lib64/libmicuttlefish_fs.so
|
||||
vendor/lib64/libmicuttlefish_utils.so
|
||||
vendor/lib64/libmivsock_utils.so
|
||||
vendor/lib64/vendor.xiaomi.hardware.misys@1.0.so;MODULE_SUFFIX=_vendor
|
||||
vendor/lib64/vendor.xiaomi.hardware.misys@2.0.so;MODULE_SUFFIX=_vendor
|
||||
vendor/lib64/vendor.xiaomi.hardware.misys@3.0.so;MODULE_SUFFIX=_vendor
|
||||
vendor/lib64/vendor.xiaomi.hardware.misys@4.0.so;MODULE_SUFFIX=_vendor
|
||||
|
||||
# Mlipay
|
||||
vendor/bin/mlipayd@1.1
|
||||
vendor/etc/init/vendor.xiaomi.hardware.mlipay@1.1-service.rc
|
||||
@@ -986,6 +1047,35 @@ vendor/etc/libnfc-nxp_RF.conf
|
||||
# NVRAM
|
||||
vendor/bin/nv_mac
|
||||
|
||||
# Perf
|
||||
vendor/bin/hw/vendor.qti.hardware.perf@2.2-service
|
||||
vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc
|
||||
vendor/etc/perf/commonresourceconfigs.xml
|
||||
vendor/etc/perf/perfboostsconfig.xml
|
||||
vendor/etc/perf/perfconfigstore.xml
|
||||
vendor/etc/perf/targetconfig.xml
|
||||
vendor/etc/perf/targetresourceconfigs.xml
|
||||
vendor/lib/libperfconfig.so
|
||||
vendor/lib/libperfgluelayer.so
|
||||
vendor/lib/libperfioctl.so
|
||||
vendor/lib/libqti-perfd-client.so
|
||||
vendor/lib/libqti-perfd.so
|
||||
vendor/lib/libqti-util.so
|
||||
vendor/lib/libqti-utils.so
|
||||
vendor/lib/vendor.qti.memory.pasrmanager@1.0.so
|
||||
vendor/lib/vendor.qti.memory.pasrmanager@1.1.so
|
||||
vendor/lib64/liblearningmodule.so
|
||||
vendor/lib64/libmeters.so
|
||||
vendor/lib64/libperfconfig.so
|
||||
vendor/lib64/libperfgluelayer.so
|
||||
vendor/lib64/libperfioctl.so
|
||||
vendor/lib64/libqti-perfd-client.so
|
||||
vendor/lib64/libqti-perfd.so
|
||||
vendor/lib64/libqti-util.so
|
||||
vendor/lib64/libqti-utils.so
|
||||
vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so
|
||||
vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so
|
||||
|
||||
# Peripheral manager
|
||||
vendor/bin/pm-proxy
|
||||
vendor/bin/pm-service
|
||||
@@ -1078,23 +1168,22 @@ vendor/etc/init/shsusrd.rc
|
||||
vendor/etc/init/ssgtzd.rc
|
||||
vendor/etc/init/vendor.qti.rmt_storage.rc
|
||||
vendor/etc/init/vendor.qti.tftp.rc
|
||||
vendor/etc/qcril_database/qcrilNr.db
|
||||
vendor/etc/qcril_database/upgrade/config/10.0_config.sql
|
||||
vendor/etc/qcril_database/upgrade/config/6.0_config.sql
|
||||
vendor/etc/qcril_database/upgrade/config/7.0_config.sql
|
||||
vendor/etc/qcril_database/upgrade/config/8.0_config.sql
|
||||
vendor/etc/qcril_database/upgrade/config/9.0_config.sql
|
||||
vendor/etc/qcril_database/upgrade/other/0_initial_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/10_version_update_ecc_table.sql
|
||||
vendor/etc/qcril_database/upgrade/other/1_version_intro_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/2_version_add_wps_config_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/3_version_update_wps_config_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/4_version_update_ecc_table_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/5_version_update_ecc_table_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/6_version_change_property_table_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/7_version_update_ecc_table_qcrilnr.sql
|
||||
vendor/etc/qcril_database/upgrade/other/8_version_update_ecc_table.sql
|
||||
vendor/etc/qcril_database/upgrade/other/9_version_update_ecc_table.sql
|
||||
vendor/etc/qcril_database/upgrade/config/10.0_config.sql;FILEGROUP=proprietary_rildb_config_sql_files
|
||||
vendor/etc/qcril_database/upgrade/config/6.0_config.sql;FILEGROUP=proprietary_rildb_config_sql_files
|
||||
vendor/etc/qcril_database/upgrade/config/7.0_config.sql;FILEGROUP=proprietary_rildb_config_sql_files
|
||||
vendor/etc/qcril_database/upgrade/config/8.0_config.sql;FILEGROUP=proprietary_rildb_config_sql_files
|
||||
vendor/etc/qcril_database/upgrade/config/9.0_config.sql;FILEGROUP=proprietary_rildb_config_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/0_initial_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/10_version_update_ecc_table.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/1_version_intro_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/2_version_add_wps_config_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/3_version_update_wps_config_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/4_version_update_ecc_table_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/5_version_update_ecc_table_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/6_version_change_property_table_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/7_version_update_ecc_table_qcrilnr.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/8_version_update_ecc_table.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/qcril_database/upgrade/other/9_version_update_ecc_table.sql;FILEGROUP=proprietary_rildb_other_sql_files
|
||||
vendor/etc/seccomp_policy/qcrilnr@2.0.policy
|
||||
vendor/etc/ssg/ta_config.json
|
||||
vendor/etc/ssg/tz_whitelist.json
|
||||
|
||||
37
qcril-database/Android.bp
Normal file
37
qcril-database/Android.bp
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
filegroup {
|
||||
name: "rildb_config_sql_files",
|
||||
srcs: [
|
||||
"config/10.1_config.sql",
|
||||
],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "qcril_config_database",
|
||||
enabled: true,
|
||||
srcs: [
|
||||
"//vendor/xiaomi/redwood:proprietary_rildb_config_sql_files",
|
||||
"//vendor/xiaomi/redwood:proprietary_rildb_other_sql_files",
|
||||
":rildb_config_sql_files",
|
||||
],
|
||||
tools: [
|
||||
"generate_qcril_db",
|
||||
],
|
||||
cmd: "$(location generate_qcril_db) $(out) $(in)",
|
||||
out: ["qcrilNr.db"],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "qcrilNrDb_vendor",
|
||||
filename: "qcrilNr.db",
|
||||
src: ":qcril_config_database",
|
||||
relative_install_path: "qcril_database",
|
||||
vendor: true,
|
||||
required: [
|
||||
"10.1_config.sql",
|
||||
],
|
||||
}
|
||||
8
qcril-database/config/10.1_config.sql
Normal file
8
qcril-database/config/10.1_config.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
CREATE TABLE IF NOT EXISTS qcril_properties_table (property TEXT PRIMARY KEY NOT NULL, def_val TEXT, value TEXT);
|
||||
INSERT OR REPLACE INTO qcril_properties_table(property, def_val) VALUES('qcrildb_version',10.1);
|
||||
UPDATE qcril_properties_table SET def_val="false" WHERE property="persist.vendor.radio.redir_party_num";
|
||||
11
qcril-database/config/Android.bp
Normal file
11
qcril-database/config/Android.bp
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
prebuilt_etc {
|
||||
name: "10.1_config.sql",
|
||||
src: "10.1_config.sql",
|
||||
relative_install_path: "qcril_database/upgrade/config",
|
||||
vendor: true,
|
||||
}
|
||||
@@ -34,8 +34,6 @@ function configure_zram_parameters() {
|
||||
MemTotalStr=`cat /proc/meminfo | grep MemTotal`
|
||||
MemTotal=${MemTotalStr:16:8}
|
||||
|
||||
low_ram=`getprop ro.config.low_ram`
|
||||
|
||||
# Zram disk - 75% for Go and < 2GB devices .
|
||||
# For >2GB Non-Go devices, size = 50% of RAM size. Limit the size to 4GB.
|
||||
# And enable lz4 zram compression for Go targets.
|
||||
@@ -53,9 +51,7 @@ function configure_zram_parameters() {
|
||||
let zRamSizeMB=4096
|
||||
fi
|
||||
|
||||
if [ "$low_ram" == "true" ]; then
|
||||
echo lz4 > /sys/block/zram0/comp_algorithm
|
||||
fi
|
||||
echo lz4kd > /sys/block/zram0/comp_algorithm
|
||||
|
||||
if [ -f /sys/block/zram0/disksize ]; then
|
||||
if [ -f /sys/block/zram0/use_dedup ]; then
|
||||
@@ -343,8 +339,8 @@ do
|
||||
done
|
||||
done
|
||||
|
||||
# set s2idle as default suspend mode
|
||||
echo s2idle > /sys/power/mem_sleep
|
||||
# set deep as default suspend mode
|
||||
echo deep > /sys/power/mem_sleep
|
||||
|
||||
configure_memory_parameters
|
||||
|
||||
|
||||
@@ -191,6 +191,11 @@ on post-fs-data
|
||||
# Create /data/time folder for time-services
|
||||
mkdir /data/vendor/time/ 0700 system system
|
||||
|
||||
# Create PERFD deamon related dirs
|
||||
mkdir /data/vendor/perfd 0770 root system
|
||||
chmod 2770 /data/vendor/perfd
|
||||
rm /data/vendor/perfd/default_values
|
||||
|
||||
mkdir /data/vendor/secure_element 0777 system system
|
||||
|
||||
# Mark the copy complete flag to not completed
|
||||
@@ -221,6 +226,7 @@ on post-fs-data
|
||||
setprop vold.post_fs_data_done 1
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
setprop vendor.post_boot.parsed 1
|
||||
# Enable UFS clock scaling back
|
||||
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 1
|
||||
# Enable UFS auto_hibern8 back
|
||||
@@ -235,20 +241,6 @@ on property:sys.boot_completed=1
|
||||
# Reinit lmkd to reconfigure lmkd properties
|
||||
setprop lmkd.reinit 1
|
||||
|
||||
# Power hal
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpu7/cpufreq/schedutil/up_rate_limit_us
|
||||
chown system system /sys/devices/system/cpu/cpu7/cpufreq/schedutil/down_rate_limit_us
|
||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us
|
||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us
|
||||
chmod 0664 /sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us
|
||||
chmod 0664 /sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us
|
||||
chmod 0664 /sys/devices/system/cpu/cpu7/cpufreq/schedutil/up_rate_limit_us
|
||||
chmod 0664 /sys/devices/system/cpu/cpu7/cpufreq/schedutil/down_rate_limit_us
|
||||
|
||||
service vendor.qrtr-ns /vendor/bin/qrtr-ns -f
|
||||
class core
|
||||
user vendor_qrtr
|
||||
|
||||
@@ -143,10 +143,6 @@ on boot
|
||||
|
||||
write /sys/block/sda/queue/wbt_lat_usec 75000
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Enable PowerHAL hint processing
|
||||
setprop vendor.powerhal.init 1
|
||||
|
||||
on init && property:ro.boot.mode=charger
|
||||
mount_all /vendor/etc/charger_fstab.qcom --early
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
@@ -193,10 +189,6 @@ service vendor.nv_mac /vendor/bin/nv_mac
|
||||
group system inet net_admin wifi net_raw
|
||||
oneshot
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# STOP EATING MY BATTERY AFTER 100H OF UPTIME FUCK YOU
|
||||
stop statsd
|
||||
|
||||
service citsensor-hal-1-1 /vendor/bin/hw/vendor.xiaomi.hardware.citsensorservice@1.1-service
|
||||
class late_start
|
||||
user system
|
||||
|
||||
2
sepolicy/vendor/file.te
vendored
2
sepolicy/vendor/file.te
vendored
@@ -1,2 +0,0 @@
|
||||
# Power HAL
|
||||
type vendor_sysfs_msm_subsys, fs_type, sysfs_type;
|
||||
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -31,7 +31,6 @@
|
||||
|
||||
# Power
|
||||
/dev/xiaomi-touch u:object_r:vendor_touchfeature_device:s0
|
||||
/vendor/bin/hw/android\.hardware\.power-service\.lineage-libperfmgr u:object_r:hal_power_default_exec:s0
|
||||
|
||||
# Powershare
|
||||
/vendor/bin/hw/vendor\.lineage\.powershare@1\.0-service\.xiaomi u:object_r:hal_lineage_powershare_default_exec:s0
|
||||
|
||||
10
sepolicy/vendor/genfs_contexts
vendored
10
sepolicy/vendor/genfs_contexts
vendored
@@ -12,12 +12,9 @@ genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.q
|
||||
# Wakeup nodes
|
||||
genfscon sysfs /devices/platform/goodix_ts.0/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/17300000.qcom,lpass/subsys6/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/17300000.qcom,lpass/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/188101c.qcom,spss/subsys5/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/188101c.qcom,spss/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/4080000.qcom,mss/subsys8/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/5c00000.qcom,ssc/subsys7/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/5c00000.qcom,ssc/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/890000.qcom,qup_uart/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/984000.i2c/i2c-0/0-0028/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/wakeup u:object_r:sysfs_wakeup:s0
|
||||
@@ -37,7 +34,6 @@ genfscon sysfs /devices/platform/soc/abb0000.qcom,evass/subsys2/wakeup u:object_
|
||||
genfscon sysfs /devices/platform/soc/abb0000.qcom,evass/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/b0000000.qcom,cnss-qca6490/subsys10/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/b0000000.qcom,cnss-qca6490/subsys8/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pmk8350@0:pon_pbs@800/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-03/c440000.qcom,spmi:qcom,pm8350b@3:qcom,amoled/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:fingerprint_goodix/wakeup/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:goodix_fp/wakeup u:object_r:sysfs_wakeup:s0
|
||||
@@ -48,9 +44,3 @@ genfscon sysfs /devices/platform/soc/soc:qcom,kgsl-hyp/subsys3/wakeup u:object_r
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,kgsl-hyp/subsys4/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,trustedvm@d0800000/subsys1/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,trustedvm@d0800000/subsys2/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/2c00000.qcom,kgsl-3d0 u:object_r:vendor_sysfs_msm_subsys:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,cpu-cpu-llcc-bw u:object_r:vendor_sysfs_msm_subsys:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,cpu-llcc-ddr-bw u:object_r:vendor_sysfs_msm_subsys:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,dsi-display u:object_r:vendor_sysfs_graphics:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,gpubw u:object_r:vendor_sysfs_msm_subsys:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,gpubw/devfreq u:object_r:vendor_sysfs_msm_subsys:s0
|
||||
|
||||
3
sepolicy/vendor/hal_ir_default.te
vendored
3
sepolicy/vendor/hal_ir_default.te
vendored
@@ -1,3 +0,0 @@
|
||||
type lirc_device, dev_type;
|
||||
|
||||
allow hal_ir_default lirc_device:chr_file rw_file_perms;
|
||||
1
sepolicy/vendor/hal_power.te
vendored
1
sepolicy/vendor/hal_power.te
vendored
@@ -1 +0,0 @@
|
||||
rw_dir_file(hal_power_default, proc)
|
||||
38
sepolicy/vendor/hal_power_default.te
vendored
38
sepolicy/vendor/hal_power_default.te
vendored
@@ -1,41 +1,3 @@
|
||||
type vendor_touchfeature_device, dev_type;
|
||||
|
||||
allow hal_power_default vendor_touchfeature_device:chr_file rw_file_perms;
|
||||
|
||||
allow hal_power_default vendor_sysfs_kgsl:lnk_file rw_file_perms;
|
||||
|
||||
allow hal_power_default {
|
||||
vendor_sysfs_devfreq
|
||||
vendor_sysfs_msm_subsys
|
||||
}:dir search;
|
||||
|
||||
allow hal_power_default {
|
||||
input_device
|
||||
vendor_latency_device
|
||||
}:chr_file rw_file_perms;
|
||||
|
||||
allow hal_power_default {
|
||||
cgroup
|
||||
proc
|
||||
sysfs_devices_system_cpu
|
||||
vendor_sysfs_graphics
|
||||
vendor_sysfs_devfreq
|
||||
vendor_sysfs_kgsl
|
||||
vendor_sysfs_scsi_host
|
||||
}:{
|
||||
file
|
||||
lnk_file
|
||||
} rw_file_perms;
|
||||
|
||||
allow hal_power_default {
|
||||
cgroup
|
||||
input_device
|
||||
vendor_sysfs_devfreq
|
||||
}:dir r_dir_perms;
|
||||
|
||||
|
||||
# Rule for hal_power_default to access graphics composer process
|
||||
unix_socket_connect(hal_power_default, vendor_pps, hal_graphics_composer_default);
|
||||
|
||||
# To get/set powerhal state propert
|
||||
set_prop(hal_power_default, vendor_power_prop)
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# Bluetooth
|
||||
vendor.bluetooth.soc=hastings
|
||||
|
||||
# Camera
|
||||
ro.camerax.extensions.enabled=true
|
||||
|
||||
# CNE
|
||||
persist.vendor.cne.feature=1
|
||||
|
||||
@@ -10,6 +13,10 @@ debug.hwui.skia_atrace_enabled=false
|
||||
# Display
|
||||
debug.cpurend.vsync=false
|
||||
|
||||
# Deep Sleep
|
||||
pm.sleep_mode=1
|
||||
vendor.post_boot.parsed=1s
|
||||
|
||||
# Graphics
|
||||
debug.sf.disable_backpressure=1
|
||||
debug.sf.enable_hwc_vds=0
|
||||
|
||||
10
vendor.prop
10
vendor.prop
@@ -47,8 +47,6 @@ ro.vendor.audio.soundtrigger.xiaomievent=1
|
||||
ro.vendor.audio.soundtrigger=sva
|
||||
ro.vendor.audio.us.proximity=true
|
||||
vendor.audio.adm.buffering.ms=6
|
||||
vendor.audio.dolby.ds2.enabled=false
|
||||
vendor.audio.dolby.ds2.hardbypass=false
|
||||
vendor.audio.enable.mirrorlink=false
|
||||
vendor.audio.feature.a2dp_offload.enable=true
|
||||
vendor.audio.feature.afe_proxy.enable=true
|
||||
@@ -78,7 +76,7 @@ vendor.audio.feature.hifi_audio.enable=false
|
||||
vendor.audio.feature.hwdep_cal.enable=false
|
||||
vendor.audio.feature.incall_music.enable=true
|
||||
vendor.audio.feature.keep_alive.enable=true
|
||||
vendor.audio.feature.kpi_optimize.enable=false
|
||||
vendor.audio.feature.kpi_optimize.enable=true
|
||||
vendor.audio.feature.maxx_audio.enable=false
|
||||
vendor.audio.feature.multi_voice_session.enable=true
|
||||
vendor.audio.feature.power_mode.enable=false
|
||||
@@ -194,9 +192,9 @@ debug.sf.defer_refresh_rate_when_off=1
|
||||
debug.sf.treat_170m_as_sRGB=1
|
||||
debug.sf.set_idle_timer_ms=3000
|
||||
debug.sf.frame_rate_multiple_threshold=60
|
||||
persist.sys.sf.color_mode=9
|
||||
persist.sys.sf.color_mode=0
|
||||
persist.sys.sf.color_saturation=1.0
|
||||
persist.sys.sf.native_mode=2
|
||||
persist.sys.sf.native_mode=268
|
||||
debug.sf.predict_hwc_composition_strategy=0
|
||||
ro.config.avoid_gfx_accel=true
|
||||
ro.hardware.egl=adreno
|
||||
@@ -269,7 +267,6 @@ persist.vendor.radio.hidl_dev_service=true
|
||||
persist.vendor.radio.manual_nw_rej_ct=1
|
||||
persist.vendor.radio.procedure_bytes=SKIP
|
||||
persist.vendor.radio.rat_on=combine
|
||||
persist.vendor.radio.redir_party_num=1
|
||||
persist.vendor.radio.sib16_support=1
|
||||
persist.vendor.qti.telephony.vt_cam_interface=2
|
||||
ro.telephony.block_binder_thread_on_incoming_calls=false
|
||||
@@ -296,7 +293,6 @@ ro.incremental.enable=yes
|
||||
vendor.sys.thermal.data.path=/data/vendor/thermal/
|
||||
|
||||
# USB
|
||||
persist.vendor.usb.config=mtp,adb
|
||||
vendor.usb.use_ffs_mtp=1
|
||||
|
||||
# Wifi
|
||||
|
||||
Reference in New Issue
Block a user