Compare commits
49 Commits
bka
...
bka-qpr1-t
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40d748bdfb | ||
|
|
01382d110c | ||
|
|
f362246f21 | ||
|
|
d30cecd69c | ||
|
|
cf796efb0c | ||
|
|
b38a2023da | ||
|
|
6bf883612b | ||
|
|
0a5a8ea3d1 | ||
|
|
3ce2e1eaae | ||
|
|
438f79b00a | ||
|
|
64cd772851 | ||
|
|
7305d8ba2a | ||
|
|
c618541481 | ||
|
|
191d44ded3 | ||
|
|
93a3a83e7d | ||
|
|
ead25708b5 | ||
|
|
81b53f9d3d | ||
|
|
584698d084 | ||
|
|
508098b22b | ||
|
|
b36e0cf1e1 | ||
|
|
b575bb826e | ||
|
|
933e54a408 | ||
|
|
818609d2fe | ||
|
|
a209c75e08 | ||
|
|
3be4155918 | ||
|
|
3801ecf576 | ||
|
|
e7cb328abd | ||
|
|
3d8d01fd97 | ||
|
|
4931887cfd | ||
|
|
799ed23477 | ||
|
|
ef946dfe64 | ||
|
|
5f8743ccec | ||
|
|
97a8e65feb | ||
|
|
8f22cccf78 | ||
|
|
a35cd5aab8 | ||
|
|
4e78dc490a | ||
|
|
28b7431808 | ||
|
|
9ed87a4fd3 | ||
|
|
96061f4030 | ||
|
|
f7bd884aba | ||
|
|
d6bdadb536 | ||
|
|
b95c85b27c | ||
|
|
c51c0500dd | ||
|
|
bbba502921 | ||
|
|
35b8653618 | ||
|
|
058aa60736 | ||
|
|
3abe5213c0 | ||
|
|
ff63814398 | ||
|
|
caa0830e8a |
@@ -6,6 +6,9 @@
|
||||
soong_namespace {
|
||||
imports: [
|
||||
"hardware/xiaomi",
|
||||
"hardware/google/interfaces",
|
||||
"hardware/google/pixel",
|
||||
"hardware/lineage/interfaces/power-libperfmgr",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
DEVICE_PATH := device/xiaomi/redwood
|
||||
KERNEL_PATH := device/xiaomi/redwood-kernel
|
||||
|
||||
BUILD_BROKEN_DUP_RULES := true
|
||||
BOARD_VENDOR := xiaomi
|
||||
|
||||
# A/B
|
||||
AB_OTA_PARTITIONS += \
|
||||
@@ -52,6 +52,9 @@ TARGET_NO_BOOTLOADER := true
|
||||
TARGET_SCREEN_DENSITY := 440
|
||||
USE_OPENGL_RENDERER := true
|
||||
|
||||
# Dolby Atmos
|
||||
include vendor/oneplus/dolby/BoardConfigDolby.mk
|
||||
|
||||
# Filesystem
|
||||
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs
|
||||
|
||||
@@ -61,15 +64,16 @@ 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
|
||||
vendor/oneplus/dolby/vintf/dolby_framework_compatibility_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,)
|
||||
$(if $(TARGET_NFC_SUPPORTED_SKUS),$(DEVICE_PATH)/hidl/manifest_no_nfc.xml,) \
|
||||
vendor/oneplus/dolby/vintf/dolby_manifest.xml
|
||||
|
||||
ifneq ($(TARGET_NFC_SUPPORTED_SKUS),)
|
||||
ODM_MANIFEST_SKUS += $(TARGET_NFC_SUPPORTED_SKUS)
|
||||
@@ -159,14 +163,11 @@ TARGET_USERIMAGES_SPARSE_F2FS_DISABLED := true
|
||||
# Platform
|
||||
TARGET_BOARD_PLATFORM := lahaina
|
||||
|
||||
# Power
|
||||
TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp
|
||||
|
||||
# Properties
|
||||
TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
|
||||
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
|
||||
TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/system_ext.prop
|
||||
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
||||
TARGET_ODM_PROP += $(DEVICE_PATH)/properties/odm.prop
|
||||
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/properties/system.prop
|
||||
TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/properties/system_ext.prop
|
||||
TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
|
||||
|
||||
# QCOM
|
||||
BOARD_USES_QCOM_HARDWARE := true
|
||||
@@ -183,9 +184,10 @@ TARGET_USERIMAGES_USE_F2FS := true
|
||||
ENABLE_VENDOR_RIL_SERVICE := true
|
||||
|
||||
# Security patch level
|
||||
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
|
||||
VENDOR_SECURITY_PATCH := 2025-11-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
|
||||
@@ -208,9 +210,9 @@ BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 1
|
||||
# WiFi
|
||||
BOARD_WLAN_DEVICE := qcwcn
|
||||
BOARD_HOSTAPD_DRIVER := NL80211
|
||||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
||||
BOARD_HOSTAPD_PRIVATE_LIB := //hardware/qcom-caf/wlan/qcwcn:lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
||||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := //hardware/qcom-caf/wlan/qcwcn:lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
||||
WIFI_DRIVER_DEFAULT := wlan
|
||||
WIFI_DRIVER_STATE_CTRL_PARAM := "/dev/wlan"
|
||||
WIFI_DRIVER_STATE_OFF := "OFF"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--- Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. -->
|
||||
<!--- Copyright (c) 2018-2019, 2021 The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
@@ -43,20 +43,10 @@
|
||||
<library name="audio_pre_processing" path="libqcomvoiceprocessing.so"/>
|
||||
<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-->
|
||||
<!-- DOLBY DAP -->
|
||||
<library name="dap_sw" path="libswdap_v3_6.so"/>
|
||||
<library name="dap_hw" path="libhwdap_v3_6.so"/>
|
||||
<!-- DOLBY END -->
|
||||
</libraries>
|
||||
<effects>
|
||||
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
|
||||
@@ -104,30 +94,29 @@
|
||||
<effect name="voice_helper" library="volume_listener" uuid="0ace5c08-0590-11e5-ae9e-0025b32654a0"/>
|
||||
<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-->
|
||||
<!-- DOLBY DAP -->
|
||||
<effectProxy name="dap" library="proxy" uuid="9d4921da-8225-4f29-aefa-39537a04bcaa">
|
||||
<libsw library="dap_sw" uuid="6ab06da4-c516-4611-8166-452799218539"/>
|
||||
<libhw library="dap_hw" uuid="a0c30891-8246-4aef-b8ad-d53e26da0253"/>
|
||||
</effectProxy>
|
||||
<!-- DOLBY END -->
|
||||
</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,12 +113,6 @@ 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>
|
||||
@@ -349,11 +343,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,immersive_out"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_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,immersive_out"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,dsd_compress_passthrough"/>
|
||||
<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,immersive_out"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,dsd_compress_passthrough"/>
|
||||
<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"
|
||||
@@ -367,9 +361,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,immersive_out"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
|
||||
<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,immersive_out"/>
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
|
||||
<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 -->
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<permissions>
|
||||
<library name="camerax-vendor-extensions.jar"
|
||||
file="/system/framework/camerax-vendor-extensions.jar" />
|
||||
</permissions>
|
||||
341
configs/powerhint.json
Normal file
341
configs/powerhint.json
Normal file
@@ -0,0 +1,341 @@
|
||||
{
|
||||
"Nodes": [
|
||||
{
|
||||
"Name": "CPULittleClusterMaxFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
|
||||
"Values": [
|
||||
"1804800",
|
||||
"1516800"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPULittleClusterMinFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"1804800",
|
||||
"1324800",
|
||||
"691200"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterMaxFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq",
|
||||
"Values": [
|
||||
"2400000",
|
||||
"1651200"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterMinFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"2400000",
|
||||
"1516800",
|
||||
"1228800",
|
||||
"691200"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigPlusClusterMaxFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq",
|
||||
"Values": [
|
||||
"2400000",
|
||||
"1516800",
|
||||
"1324800"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigPlusClusterMinFreq",
|
||||
"Path": "/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq",
|
||||
"Values": [
|
||||
"2400000",
|
||||
"1324800",
|
||||
"806400"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "UclampTAMin",
|
||||
"Path": "/dev/cpuctl/top-app/cpu.uclamp.min",
|
||||
"Values": [
|
||||
"30",
|
||||
"0"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUMaxFreq",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel",
|
||||
"Values": [
|
||||
"0",
|
||||
"2"
|
||||
],
|
||||
"Comments": [
|
||||
"0 => 550000000",
|
||||
"2 => 320000000"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "GPUMinFreq",
|
||||
"Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel",
|
||||
"Values": [
|
||||
"1",
|
||||
"3"
|
||||
],
|
||||
"Comments": [
|
||||
"1 => 450000000",
|
||||
"3 => 180000000"
|
||||
],
|
||||
"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": "INTERACTION",
|
||||
"Node": "UclampTAMin",
|
||||
"Duration": 58,
|
||||
"Value": "30"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWHystTriggerCount",
|
||||
"Duration": 58,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWHystLength",
|
||||
"Duration": 58,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWHistMemory",
|
||||
"Duration": 58,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBWMinFreq",
|
||||
"Duration": 58,
|
||||
"Value": "9155"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "LLCCBWMinFreq",
|
||||
"Duration": 58,
|
||||
"Value": "3879"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBigClusterMinFreq",
|
||||
"Duration": 1000,
|
||||
"Value": "2400000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBigPlusClusterMinFreq",
|
||||
"Duration": 1000,
|
||||
"Value": "2400000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPULittleClusterMinFreq",
|
||||
"Duration": 1000,
|
||||
"Value": "1804800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWHystTriggerCount",
|
||||
"Duration": 1000,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWHystLength",
|
||||
"Duration": 1000,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWHistMemory",
|
||||
"Duration": 1000,
|
||||
"Value": "0"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "CPUBWMinFreq",
|
||||
"Duration": 1000,
|
||||
"Value": "12298"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "LLCCBWMinFreq",
|
||||
"Duration": 1000,
|
||||
"Value": "6515"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "GPUForceClkOn",
|
||||
"Duration": 1000,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "GPUForceRailOn",
|
||||
"Duration": 1000,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "GPUIdleTimer",
|
||||
"Duration": 1000,
|
||||
"Value": "10000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "EXPENSIVE_RENDERING",
|
||||
"Node": "PowerHALRenderingState",
|
||||
"Duration": 0,
|
||||
"Value": "EXPENSIVE_RENDERING"
|
||||
},
|
||||
{
|
||||
"PowerHint": "EXPENSIVE_RENDERING",
|
||||
"Node": "GPUMinFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "PowerHALMainState",
|
||||
"Duration": 0,
|
||||
"Value": "SUSTAINED_PERFORMANCE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "CPUBigClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1651200"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "CPUBigPlusClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1516800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "CPULittleClusterMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "1516800"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "GPUMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
libqti-perfd-client.so
|
||||
libadsprpc.so
|
||||
libcdsprpc.so
|
||||
libsdsprpc.so
|
||||
|
||||
45
device.mk
45
device.mk
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2023 The LineageOS Project
|
||||
# Copyright (C) 2024 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
|
||||
@@ -33,6 +36,9 @@ $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
||||
# Add common definitions for Qualcomm
|
||||
$(call inherit-product, hardware/qcom-caf/common/common.mk)
|
||||
|
||||
# Inherit Dolby Atmos
|
||||
$(call inherit-product, vendor/oneplus/dolby/dolby.mk)
|
||||
|
||||
# API
|
||||
PRODUCT_SHIPPING_API_LEVEL := 31
|
||||
|
||||
@@ -71,6 +77,8 @@ PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
|
||||
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
|
||||
|
||||
$(call soong_config_set_bool,android_hardware_audio,skip_speaker_layout_channel_mask_field,true)
|
||||
|
||||
# A/B
|
||||
AB_OTA_POSTINSTALL_CONFIG += \
|
||||
RUN_POSTINSTALL_system=true \
|
||||
@@ -145,14 +153,10 @@ 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_bool,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 \
|
||||
@@ -193,6 +197,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 \
|
||||
@@ -200,9 +207,6 @@ 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 \
|
||||
@@ -332,7 +336,7 @@ 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_bool,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)
|
||||
|
||||
@@ -346,6 +350,8 @@ PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/media/yupik/media_codecs_yupik_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_yupik_v1.xml \
|
||||
$(LOCAL_PATH)/media/yupik/media_profiles_yupik_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_yupik_v1.xml
|
||||
|
||||
$(call soong_config_set_bool,stagefright,target_disable_thumbnail_block_model,true)
|
||||
|
||||
# Mlipay
|
||||
PRODUCT_PACKAGES += \
|
||||
vendor.xiaomi.hardware.mlipay@1.0.vendor \
|
||||
@@ -433,18 +439,17 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power-service-qti \
|
||||
android.hardware.power@1.2.vendor \
|
||||
vendor.qti.hardware.perf@2.2.vendor
|
||||
android.hardware.power-service.lineage-libperfmgr \
|
||||
libqti-perfd-client
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libssl.vendor
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
||||
$(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
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/qcom/opensource/power/config/lahaina/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
|
||||
$(call soong_config_set,power_libperfmgr,mode_extension_lib,//$(LOCAL_PATH):libperfmgr-ext-xiaomi)
|
||||
|
||||
# QTI
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -482,6 +487,10 @@ PRODUCT_PACKAGES += \
|
||||
vendor.qti.hardware.display.mapper@1.1.vendor \
|
||||
vendor.qti.hardware.memtrack-service
|
||||
|
||||
# Shim
|
||||
PRODUCT_PACKAGES += \
|
||||
libmisightjson_shim
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
|
||||
@@ -500,6 +509,10 @@ 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
|
||||
|
||||
31
evolution.dependencies
Normal file
31
evolution.dependencies
Normal file
@@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"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" : "bka"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "LineageOS/android_hardware_xiaomi",
|
||||
"target_path": "hardware/xiaomi",
|
||||
"branch" : "lineage-23.1"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "thepriyanshujangid/vendor_oneplus_dolby",
|
||||
"target_path": "vendor/oneplus/dolby",
|
||||
"branch" : "sixteen"
|
||||
},
|
||||
{
|
||||
"remote" : "github-non-los",
|
||||
"repository" : "thepriyanshujangid/vendor_xiaomi_redwood-miuicamera",
|
||||
"target_path": "vendor/xiaomi/redwood-miuicamera",
|
||||
"branch" : "sixteen"
|
||||
}
|
||||
]
|
||||
@@ -19,6 +19,7 @@ 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',
|
||||
@@ -40,11 +41,6 @@ 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,
|
||||
}
|
||||
|
||||
@@ -82,6 +78,9 @@ blob_fixups: blob_fixups_user_type = {
|
||||
.clear_symbol_version('remote_handle_close')
|
||||
.clear_symbol_version('remote_handle_invoke')
|
||||
.clear_symbol_version('remote_handle_open'),
|
||||
'vendor/lib64/libmisight.so': blob_fixup()
|
||||
.add_needed('libjsoncpp_shim.so')
|
||||
.add_needed('libmisightjson_shim.so'),
|
||||
'vendor/lib64/libsensor_cal_v2.so': blob_fixup()
|
||||
.add_needed('libjsoncpp_shim.so'),
|
||||
('vendor/lib/hw/audio.primary.lahaina.so', 'vendor/lib/libaudioroute_ext.so'): blob_fixup()
|
||||
|
||||
@@ -377,16 +377,6 @@ 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>
|
||||
|
||||
@@ -46,14 +46,6 @@ 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>
|
||||
@@ -551,24 +543,6 @@ 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>
|
||||
@@ -1003,15 +977,4 @@ 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>
|
||||
|
||||
@@ -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.9.0.UMSMIXM release-keys" \
|
||||
BuildFingerprint=POCO/redwood_global/redwood:14/UKQ1.240624.001/OS2.0.9.0.UMSMIXM:user/release-keys \
|
||||
BuildDesc="redwood_global-user 14 UKQ1.240624.001 OS2.0.16.0.UMSMIXM release-keys" \
|
||||
BuildFingerprint=POCO/redwood_global/redwood:14/UKQ1.240624.001/OS2.0.16.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
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020 The LineageOS 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.
|
||||
-->
|
||||
<resources>
|
||||
<bool name="call_recording_enabled">true</bool>
|
||||
<integer name="call_recording_audio_source">4</integer>
|
||||
</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>
|
||||
11
power/Android.bp
Normal file
11
power/Android.bp
Normal file
@@ -0,0 +1,11 @@
|
||||
cc_library_static {
|
||||
name: "libperfmgr-ext-xiaomi",
|
||||
defaults: ["android.hardware.power-ndk_shared"],
|
||||
vendor: true,
|
||||
srcs: [
|
||||
"power-mode.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
],
|
||||
}
|
||||
@@ -19,10 +19,11 @@
|
||||
#define TOUCH_IOC_SETMODE TOUCH_MAGIC + SET_CUR_VALUE
|
||||
|
||||
namespace aidl {
|
||||
namespace android {
|
||||
namespace google {
|
||||
namespace hardware {
|
||||
namespace power {
|
||||
namespace impl {
|
||||
namespace pixel {
|
||||
|
||||
using ::aidl::android::hardware::power::Mode;
|
||||
|
||||
@@ -53,5 +54,6 @@ bool setDeviceSpecificMode(Mode type, bool enabled) {
|
||||
} // namespace impl
|
||||
} // namespace power
|
||||
} // namespace hardware
|
||||
} // namespace android
|
||||
} // namespace google
|
||||
} // namespace aidl
|
||||
} // namespace pixel
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# 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,9 +1,6 @@
|
||||
# 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
|
||||
21
properties/product.prop
Normal file
21
properties/product.prop
Normal file
@@ -0,0 +1,21 @@
|
||||
# Audio
|
||||
af.fast_track_multiplier=1
|
||||
audio.deep_buffer.media=true
|
||||
audio.offload.min.duration.secs=30
|
||||
audio.offload.video=true
|
||||
ro.af.client_heap_size_kbyte=7168
|
||||
|
||||
# FUSE passthrough
|
||||
persist.sys.fuse.passthrough.enable=true
|
||||
|
||||
# LMK tuning
|
||||
ro.lmk.filecache_min_kb=153600
|
||||
ro.lmk.kill_timeout_ms=50
|
||||
ro.lmk.stall_limit_critical=40
|
||||
ro.lmk.swap_free_low_percentage=100
|
||||
|
||||
# Phantom process monitoring
|
||||
persist.sys.fflag.override.settings_enable_monitor_phantom_procs=false
|
||||
|
||||
# RescueParty (Disable it due to high risk of data loss)
|
||||
persist.sys.disable_rescue=true
|
||||
@@ -1,9 +1,6 @@
|
||||
# Bluetooth
|
||||
vendor.bluetooth.soc=hastings
|
||||
|
||||
# Camera
|
||||
ro.camerax.extensions.enabled=true
|
||||
|
||||
# CNE
|
||||
persist.vendor.cne.feature=1
|
||||
|
||||
@@ -13,10 +10,6 @@ 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
|
||||
@@ -1,3 +1,6 @@
|
||||
# Bluetooth
|
||||
persist.vendor.btstack.enable.lpa=true
|
||||
|
||||
# DPM
|
||||
persist.vendor.dpm.feature=11
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
# Adaptive Suspend
|
||||
suspend.short_suspend_threshold_millis=5000
|
||||
|
||||
# Audio
|
||||
aaudio.hw_burst_min_usec=2000
|
||||
aaudio.mmap_exclusive_policy=2
|
||||
aaudio.mmap_policy=1
|
||||
af.fast_track_multiplier=1
|
||||
persist.vendor.audio.ambisonic.auto.profile=false
|
||||
persist.vendor.audio.ambisonic.capture=false
|
||||
persist.vendor.audio.apptype.multirec.enabled=false
|
||||
persist.vendor.audio.avs.afe_api_version=9
|
||||
persist.vendor.audio.bcl.enabled=false
|
||||
persist.vendor.audio.fluence.speaker=true
|
||||
persist.vendor.audio.fluence.tmic.enabled=false
|
||||
persist.vendor.audio.fluence.voicecall=true
|
||||
persist.vendor.audio.fluence.voicecomm=true
|
||||
persist.vendor.audio.fluence.voicerec=false
|
||||
persist.vendor.audio.fluence.voicerec=true
|
||||
persist.vendor.audio.ha_proxy.enabled=true
|
||||
persist.vendor.audio.ras.enabled=false
|
||||
persist.vendor.audio.ring.filter.mask=0
|
||||
persist.vendor.audio.speaker.prot.enable=false
|
||||
persist.vendor.audio.spv4.enable=true
|
||||
@@ -47,57 +45,39 @@ 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
|
||||
vendor.audio.feature.anc_headset.enable=false
|
||||
vendor.audio.feature.audiozoom.enable=false
|
||||
vendor.audio.feature.battery_listener.enable=true
|
||||
vendor.audio.feature.compr_cap.enable=false
|
||||
vendor.audio.feature.compr_voip.enable=false
|
||||
vendor.audio.feature.compress_in.enable=true
|
||||
vendor.audio.feature.compress_meta_data.enable=true
|
||||
vendor.audio.feature.concurrent_capture.enable=true
|
||||
vendor.audio.feature.custom_stereo.enable=true
|
||||
vendor.audio.feature.deepbuffer_as_primary.enable=false
|
||||
vendor.audio.feature.display_port.enable=true
|
||||
vendor.audio.feature.dsm_feedback.enable=false
|
||||
vendor.audio.feature.dynamic_ecns.enable=false
|
||||
vendor.audio.feature.ext_hw_plugin.enable=false
|
||||
vendor.audio.feature.external_dsp.enable=false
|
||||
vendor.audio.feature.external_speaker.enable=false
|
||||
vendor.audio.feature.external_speaker_tfa.enable=false
|
||||
vendor.audio.feature.fluence.enable=true
|
||||
vendor.audio.feature.fm.enable=true
|
||||
vendor.audio.feature.hdmi_edid.enable=true
|
||||
vendor.audio.feature.hdmi_passthrough.enable=true
|
||||
vendor.audio.feature.hfp.enable=true
|
||||
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=true
|
||||
vendor.audio.feature.maxx_audio.enable=false
|
||||
vendor.audio.feature.kpi_optimize.enable=false
|
||||
vendor.audio.feature.multi_voice_session.enable=true
|
||||
vendor.audio.feature.power_mode.enable=false
|
||||
vendor.audio.feature.ras.enable=true
|
||||
vendor.audio.feature.record_play_concurency.enable=false
|
||||
vendor.audio.feature.snd_mon.enable=true
|
||||
vendor.audio.feature.spkr_prot.enable=false
|
||||
vendor.audio.feature.src_trkn.enable=true
|
||||
vendor.audio.feature.ssrec.enable=true
|
||||
vendor.audio.feature.usb_offload.enable=true
|
||||
vendor.audio.feature.usb_offload_burst_mode.enable=true
|
||||
vendor.audio.feature.usb_offload_sidetone_volume.enable=false
|
||||
vendor.audio.feature.vbat.enable=true
|
||||
vendor.audio.feature.wsa.enable=false
|
||||
vendor.audio.hal.output.suspend.supported=false
|
||||
vendor.audio.hw.aac.encoder=true
|
||||
vendor.audio.offload.buffer.size.kb=256
|
||||
vendor.audio.offload.gapless.enabled=true
|
||||
vendor.audio.offload.multiaac.enable=true
|
||||
vendor.audio.offload.multiple.enabled=false
|
||||
vendor.audio.offload.passthrough=false
|
||||
vendor.audio.offload.track.enable=false
|
||||
vendor.audio.safx.pbe.enabled=false
|
||||
vendor.audio.usb.disable.sidetone=true
|
||||
@@ -176,8 +156,6 @@ persist.vendor.dpmhalservice.enable=1
|
||||
vendor.gatekeeper.disable_spu=true
|
||||
|
||||
# Graphics
|
||||
debug.egl.hw=0
|
||||
debug.mdpcomp.logs=0
|
||||
debug.sf.enable_advanced_sf_phase_offset=1
|
||||
debug.sf.enable_gl_backpressure=0
|
||||
debug.sf.enable_transaction_tracing=false
|
||||
@@ -185,7 +163,6 @@ debug.sf.high_fps_early_gl_phase_offset_ns=-4000000
|
||||
debug.sf.high_fps_early_phase_offset_ns=-4000000
|
||||
debug.sf.high_fps_late_app_phase_offset_ns=1000000
|
||||
debug.sf.high_fps_late_sf_phase_offset_ns=-4000000
|
||||
debug.sf.hw=0
|
||||
debug.sf.auto_latch_unsignaled=0
|
||||
debug.sf.latch_unsignaled=1
|
||||
debug.sf.defer_refresh_rate_when_off=1
|
||||
@@ -201,6 +178,7 @@ ro.hardware.egl=adreno
|
||||
ro.hardware.vulkan=adreno
|
||||
ro.hwui.render_ahead=20
|
||||
ro.opengles.version=196610
|
||||
ro.surface_flinger.blur_disabled_by_default=true
|
||||
ro.surface_flinger.enable_frame_rate_override=false
|
||||
ro.surface_flinger.has_HDR_display=true
|
||||
ro.surface_flinger.has_wide_color_display=true
|
||||
@@ -208,7 +186,7 @@ ro.surface_flinger.max_frame_buffer_acquired_buffers=3
|
||||
ro.surface_flinger.max_virtual_display_dimension=4096
|
||||
ro.surface_flinger.protected_contents=true
|
||||
ro.surface_flinger.set_touch_timer_ms=200
|
||||
ro.surface_flinger.set_idle_timer_ms=80
|
||||
ro.surface_flinger.set_idle_timer_ms=1100
|
||||
ro.surface_flinger.set_display_power_timer_ms=1000
|
||||
ro.surface_flinger.use_color_management=true
|
||||
ro.surface_flinger.use_content_detection_for_refresh_rate=true
|
||||
@@ -254,6 +232,7 @@ ro.vendor.perf.scroll_opt=true
|
||||
persist.radio.multisim.config=dsds
|
||||
persist.vendor.data.iwlan.enable=true
|
||||
persist.vendor.data.mode=concurrent
|
||||
persist.vendor.radio.add_power_save=1
|
||||
persist.vendor.radio.apm_sim_not_pwdn=1
|
||||
persist.vendor.radio.custom_ecc=1
|
||||
persist.vendor.radio.data_ltd_sys_ind=1
|
||||
@@ -272,7 +251,7 @@ persist.vendor.qti.telephony.vt_cam_interface=2
|
||||
ro.telephony.block_binder_thread_on_incoming_calls=false
|
||||
ro.telephony.call_ring.multiple=false
|
||||
ro.telephony.default_cdma_sub=0
|
||||
ro.telephony.default_network=33,33
|
||||
ro.telephony.default_network=26,26
|
||||
ro.vendor.radio.5g=3
|
||||
ro.vendor.use_data_netmgrd=true
|
||||
telephony.lteOnCdmaDevice=1
|
||||
@@ -293,7 +272,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
|
||||
@@ -1,4 +1,4 @@
|
||||
# All unpinned blobs below are extracted from redwood_global-user-14-UKQ1.240624.001-OS2.0.9.0.UMSMIXM-release-keys
|
||||
# All unpinned blobs below are extracted from redwood_global-user-14-UKQ1.240624.001-OS2.0.16.0.UMSMIXM-release-keys
|
||||
|
||||
# ACDB
|
||||
vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb
|
||||
@@ -98,7 +98,6 @@ 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
|
||||
@@ -490,9 +489,6 @@ 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
|
||||
@@ -644,46 +640,45 @@ 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
|
||||
# Display - from sunstone V816.0.8.0.UMQMIXM
|
||||
vendor/etc/display/DPU660.xml|b26dd73e361546d89bf3d7082a471703dc6ac2cb
|
||||
vendor/etc/display/DPU670.xml|e5131a60ceff29ca5eb561eec7eddadef1d0486f
|
||||
vendor/etc/display/DPU720.xml|4e54e8712d65773eb87867bf64a4cb98ea9bb8c3
|
||||
vendor/etc/display/DPU7__.xml|c056f3cb9fa123ca3de5b2a9775c184dddf25b9d
|
||||
vendor/lib64/libdisplayqos.so|aa222f4c1a2d2fb60944c44f8a82621d6bc75184
|
||||
vendor/lib64/libdisplayskuutils.so|37e4d543c696a5c9f0c1b44fd7299a0bc7dba5e8
|
||||
vendor/lib64/libdpps.so|9caf32a0d3636af579ea6e1a6c5638a16ed19444
|
||||
vendor/lib64/libqrtrclient.so|2474a708487c269c04afffbf755fff1686c6011c
|
||||
vendor/lib64/libdisplayskuutils.so|d467f3bcaeafa6ed9de62afe2c00a3be46f4bb0f
|
||||
vendor/lib64/libdpps.so|b7d8458a66fd8510a7a490c1eebd3bac3fb159ec
|
||||
vendor/lib64/libqrtrclient.so|51c55fea28fa475ae9b2c64592f32802e6ba6c25
|
||||
vendor/lib64/libqseed3.so|d62c37baf259250cadfcff8734e82054ed87bb96
|
||||
vendor/lib64/librcmask.so|8feb479fe590b6aec282ce3342574d9113f80516
|
||||
vendor/lib64/libsdm-color.so|a83576915a146492d430711e273b9af9a95d4fed
|
||||
vendor/lib64/libsdm-color.so|1c416b205c996575d26a41c5d7a9d07728f9134a
|
||||
vendor/lib64/libsdm-colormgr-algo.so|5416a3b9b0735099c9b86f451f41386711787ea4
|
||||
vendor/lib64/libsdm-diag.so|393c9ad3e3ad3210515900627f65bf6e3633226e
|
||||
vendor/lib64/libsdm-disp-vndapis.so|dc3ff8c971bbcb0d1b9e5079324d1d1d05a1fd39
|
||||
vendor/lib64/libsdmextension.so|4c32026ff8cb1270081881d4def7a2ad05ad0b80
|
||||
vendor/lib64/libsdmextension.so|161a19a7e915174ff31a2ed05acbf0fc98368bb8
|
||||
vendor/lib64/libtinyxml2_1.so|11ceb3f1e7650c41621d47e5ec5567c8f466086e
|
||||
|
||||
# Display HDR - from AOSPA
|
||||
# Display HDR - from sunstone V816.0.8.0.UMQMIXM
|
||||
vendor/lib64/libhdr_tm.so|7954c5cd5c0b23fe8d0609361c22d24c59f1448b
|
||||
|
||||
# Display postprocessing - from AOSPA
|
||||
vendor/bin/hw/vendor.display.color@1.0-service|347fda7fe824e405829e1772739e999937421a58
|
||||
vendor/bin/ppd|4fcb818e39c813570fdbfaa9726274986e190e04
|
||||
vendor/bin/qdcmss|2dd2d71247c85a1bb6b3168d53cd844cb387f75c
|
||||
vendor/etc/init/qdcmss.rc|53d78d686678c4f923a9ec4ace7d4d3575b13788
|
||||
vendor/etc/init/vendor.display.color@1.0-service.rc|5ad673f879b3685a0e79b5633437e5499cb94f48
|
||||
vendor/lib64/libdisp-aba.so|3ff1c1d30d96c3ce3608378b2afcc75b892845cb
|
||||
vendor/lib64/libqdcm-mode-parser.so|207143ab4dda0886bde2a0333d7a1bcd7af6f8e1
|
||||
vendor/lib64/libsnapdragoncolor-manager.so|e7f55a1ba843bb570afa6bbf16bb61dc01ec74ea
|
||||
vendor/lib64/libsnapdragoncolor-qdcm.so|673c41753603bacb197674df567723dfd928384e
|
||||
vendor/lib64/vendor.display.color@1.0.so|e4d0789135f4443f1250ad71f6834ba76aabfda3
|
||||
vendor/lib64/vendor.display.color@1.1.so|d3fa33b1ab48ab19c007b3375a6394e39dcafe2a
|
||||
vendor/lib64/vendor.display.color@1.2.so|9434641533178e5dc241d9f8acd46d1c994baab1
|
||||
vendor/lib64/vendor.display.color@1.3.so|17aef0a47a32a3ab9964fcdb298f17953c9d5ddf
|
||||
vendor/lib64/vendor.display.color@1.4.so|f3b9e213aea44092e3c461ad88565ad31a767a53
|
||||
vendor/lib64/vendor.display.color@1.5.so|89346bfcc7c25f41e20456691b7e9e55c4248988
|
||||
vendor/lib64/vendor.display.postproc@1.0.so|7c0cab3cead6f2d2f45539be5b480f3057d8f62e
|
||||
# Display postprocessing
|
||||
vendor/bin/hw/vendor.display.color@1.0-service
|
||||
vendor/bin/ppd
|
||||
vendor/bin/qdcmss
|
||||
vendor/etc/init/qdcmss.rc
|
||||
vendor/etc/init/vendor.display.color@1.0-service.rc
|
||||
vendor/lib64/libdisp-aba.so
|
||||
vendor/lib64/libqdcm-mode-parser.so
|
||||
vendor/lib64/libsnapdragoncolor-manager.so
|
||||
vendor/lib64/libsnapdragoncolor-qdcm.so
|
||||
vendor/lib64/vendor.display.color@1.0.so
|
||||
vendor/lib64/vendor.display.color@1.1.so
|
||||
vendor/lib64/vendor.display.color@1.2.so
|
||||
vendor/lib64/vendor.display.color@1.3.so
|
||||
vendor/lib64/vendor.display.color@1.4.so
|
||||
vendor/lib64/vendor.display.color@1.5.so
|
||||
vendor/lib64/vendor.display.postproc@1.0.so
|
||||
|
||||
# DPM
|
||||
system/framework/tcmclient.jar
|
||||
@@ -793,37 +788,37 @@ vendor/lib64/vendor.qti.gnss@4.0-service.so
|
||||
vendor/lib64/vendor.qti.gnss@4.0.so
|
||||
vendor/lib64/vendor.qti.hardware.qccsyshal@1.0.so
|
||||
|
||||
# Graphics (Adreno) - from AOSPA
|
||||
vendor/lib/egl/eglSubDriverAndroid.so|c4133b15d0a36f0775418724e09ce76681baa16d
|
||||
vendor/lib/egl/libEGL_adreno.so;SYMLINK=vendor/lib/libEGL_adreno.so|0b6e09ba4dd6aaf221444fcc9adc40d2e597364a
|
||||
vendor/lib/egl/libGLESv1_CM_adreno.so|5ab7196d4c8ae861ff484cb6b1f4b5ac3c9738b4
|
||||
vendor/lib/egl/libGLESv2_adreno.so;SYMLINK=vendor/lib/libGLESv2_adreno.so|f911273ad25fe2d0ee5a1336fcb603a04a06e1a1
|
||||
vendor/lib/egl/libq3dtools_adreno.so;SYMLINK=vendor/lib/libq3dtools_adreno.so|994551fb9b829caf80bb7a8f84b4b89cb3104ed9
|
||||
vendor/lib/egl/libq3dtools_esx.so|d6a9c80dab61e9bddf120b01753166c3ef5d23d7
|
||||
vendor/lib/hw/vulkan.adreno.so|267e7821c594c0db7dde56b7ef53ceb5980716e1
|
||||
vendor/lib/libC2D2.so|1c89e545a5dabc94d27db32031594a792d91d6fd
|
||||
vendor/lib/libCB.so|22585f517683171c74dbc58e561611c796f061b3
|
||||
vendor/lib/libOpenCL.so|d5642e23207996dbbc13273927127ecf04fced53
|
||||
vendor/lib/libadreno_utils.so|668fb9acb7ecab7452bfc665250f851a25b6521d
|
||||
vendor/lib/libc2d30_bltlib.so|b98194a7b600b8a23d5e21edf14f3ee0b82f77d5
|
||||
vendor/lib/libgsl.so|bf7ceef8536752db323775d5a6a093b3f209e8f2
|
||||
vendor/lib/libllvm-glnext.so|60c4a1792b96932ca027060a939a7ef155e52e01
|
||||
vendor/lib/libllvm-qcom.so|01afd4f1a88d6fcd4e2123aa2e13add8ad4339fc
|
||||
vendor/lib64/egl/eglSubDriverAndroid.so|2692fd8aac6a9fd49faace2213b2631f7595afad
|
||||
vendor/lib64/egl/libEGL_adreno.so;SYMLINK=vendor/lib64/libEGL_adreno.so|74766c6648c64e6af2944fe1a983f1e70f548cbe
|
||||
vendor/lib64/egl/libGLESv1_CM_adreno.so|b9e14710b9c2be024e1fdf77d60266423e484047
|
||||
vendor/lib64/egl/libGLESv2_adreno.so;SYMLINK=vendor/lib64/libGLESv2_adreno.so|a031aad0bcfd0b47d9ce0e2b2871df60a5af48b6
|
||||
vendor/lib64/egl/libq3dtools_adreno.so;SYMLINK=vendor/lib64/libq3dtools_adreno.so|172810bc218ab55fe95f628ab1c0d37833eb0021
|
||||
vendor/lib64/egl/libq3dtools_esx.so|5b1f30484211b84f802d3aaccddd728cd0dcbc70
|
||||
vendor/lib64/hw/vulkan.adreno.so|ce27b014f47e93fa55096f5d50d686fbe12c3e8f
|
||||
vendor/lib64/libC2D2.so|0b4aa67ef7e86df61a1bfd7dfd4680e0f0d7104c
|
||||
vendor/lib64/libCB.so|c458543bc706d0dcfac756a6e86e2654592f8b16
|
||||
vendor/lib64/libOpenCL.so|76d6d5f9e89d896665fdd06cbede3e21c92c8068
|
||||
vendor/lib64/libadreno_utils.so|240872ec23febc6ca7b254dbb38b7218b86f6dd5
|
||||
vendor/lib64/libc2d30_bltlib.so|e330210916d482cdbf6fe942145a664679fa9c88
|
||||
vendor/lib64/libgsl.so|8fd5b9c8e17c876544d416b694d7c2e8c96fe146
|
||||
vendor/lib64/libllvm-glnext.so|864e52831a8c18e10da5674288c371598f4d4173
|
||||
vendor/lib64/libllvm-qcom.so|f6af31fb74163e3341918c861bece94b8feecc08
|
||||
# Graphics
|
||||
vendor/lib/egl/eglSubDriverAndroid.so
|
||||
vendor/lib/egl/libEGL_adreno.so;SYMLINK=vendor/lib/libEGL_adreno.so
|
||||
vendor/lib/egl/libGLESv1_CM_adreno.so
|
||||
vendor/lib/egl/libGLESv2_adreno.so;SYMLINK=vendor/lib/libGLESv2_adreno.so
|
||||
vendor/lib/egl/libq3dtools_adreno.so;SYMLINK=vendor/lib/libq3dtools_adreno.so
|
||||
vendor/lib/egl/libq3dtools_esx.so
|
||||
vendor/lib/hw/vulkan.adreno.so
|
||||
vendor/lib/libC2D2.so
|
||||
vendor/lib/libCB.so
|
||||
vendor/lib/libOpenCL.so
|
||||
vendor/lib/libadreno_utils.so
|
||||
vendor/lib/libc2d30_bltlib.so
|
||||
vendor/lib/libgsl.so
|
||||
vendor/lib/libllvm-glnext.so
|
||||
vendor/lib/libllvm-qcom.so
|
||||
vendor/lib64/egl/eglSubDriverAndroid.so
|
||||
vendor/lib64/egl/libEGL_adreno.so;SYMLINK=vendor/lib64/libEGL_adreno.so
|
||||
vendor/lib64/egl/libGLESv1_CM_adreno.so
|
||||
vendor/lib64/egl/libGLESv2_adreno.so;SYMLINK=vendor/lib64/libGLESv2_adreno.so
|
||||
vendor/lib64/egl/libq3dtools_adreno.so;SYMLINK=vendor/lib64/libq3dtools_adreno.so
|
||||
vendor/lib64/egl/libq3dtools_esx.so
|
||||
vendor/lib64/hw/vulkan.adreno.so
|
||||
vendor/lib64/libC2D2.so
|
||||
vendor/lib64/libCB.so
|
||||
vendor/lib64/libOpenCL.so
|
||||
vendor/lib64/libadreno_utils.so
|
||||
vendor/lib64/libc2d30_bltlib.so
|
||||
vendor/lib64/libgsl.so
|
||||
vendor/lib64/libllvm-glnext.so
|
||||
vendor/lib64/libllvm-qcom.so
|
||||
|
||||
# Graphics firmware
|
||||
vendor/firmware/a660_gmu.bin
|
||||
@@ -979,46 +974,6 @@ 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
|
||||
@@ -1047,35 +1002,6 @@ 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
|
||||
@@ -1278,6 +1204,7 @@ vendor/bin/hw/vendor.xiaomi.hardware.citsensorservice@1.1-service
|
||||
vendor/etc/init/vendor.xiaomi.hardware.citsensorservice@1.1-service.rc
|
||||
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.citsensorservice@1.1-service.xml
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so
|
||||
vendor/lib64/libmisight.so
|
||||
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0.so
|
||||
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.1.so
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ 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.
|
||||
@@ -51,7 +53,9 @@ function configure_zram_parameters() {
|
||||
let zRamSizeMB=4096
|
||||
fi
|
||||
|
||||
echo lz4kd > /sys/block/zram0/comp_algorithm
|
||||
if [ "$low_ram" == "true" ]; then
|
||||
echo lz4 > /sys/block/zram0/comp_algorithm
|
||||
fi
|
||||
|
||||
if [ -f /sys/block/zram0/disksize ]; then
|
||||
if [ -f /sys/block/zram0/use_dedup ]; then
|
||||
@@ -73,21 +77,6 @@ function configure_zram_parameters() {
|
||||
fi
|
||||
}
|
||||
|
||||
function configure_read_ahead_kb_values() {
|
||||
dmpts=$(ls /sys/block/*/queue/read_ahead_kb | grep -e dm -e mmc)
|
||||
ra_kb=128
|
||||
|
||||
if [ -f /sys/block/mmcblk0/bdi/read_ahead_kb ]; then
|
||||
echo $ra_kb > /sys/block/mmcblk0/bdi/read_ahead_kb
|
||||
fi
|
||||
if [ -f /sys/block/mmcblk0rpmb/bdi/read_ahead_kb ]; then
|
||||
echo $ra_kb > /sys/block/mmcblk0rpmb/bdi/read_ahead_kb
|
||||
fi
|
||||
for dm in $dmpts; do
|
||||
echo $ra_kb > $dm
|
||||
done
|
||||
}
|
||||
|
||||
function configure_memory_parameters() {
|
||||
# Set Memory parameters.
|
||||
#
|
||||
@@ -111,8 +100,7 @@ function configure_memory_parameters() {
|
||||
ProductName=`getprop ro.product.name`
|
||||
|
||||
configure_zram_parameters
|
||||
configure_read_ahead_kb_values
|
||||
echo 60 > /proc/sys/vm/swappiness
|
||||
echo 80 > /proc/sys/vm/swappiness
|
||||
|
||||
# Disable wsf beacause we are using efk.
|
||||
# wsf Range : 1..1000. So set to bare minimum value 1.
|
||||
@@ -123,9 +111,6 @@ function configure_memory_parameters() {
|
||||
if [ $MemTotal -le 8388608 ]; then
|
||||
echo 0 > /proc/sys/vm/watermark_boost_factor
|
||||
fi
|
||||
|
||||
#Spawn kswapd threads which can help in fast reclaiming of pages
|
||||
echo 1 > /proc/sys/vm/kswapd_threads
|
||||
}
|
||||
|
||||
rev=`cat /sys/devices/soc0/revision`
|
||||
@@ -133,95 +118,27 @@ ddr_type=`od -An -tx /proc/device-tree/memory/ddr_device_type`
|
||||
ddr_type4="07"
|
||||
ddr_type5="08"
|
||||
|
||||
# Core control parameters for gold
|
||||
# Prefer CPU4 for isolation based on the thermal characteristics.
|
||||
echo 1 0 0 > /sys/devices/system/cpu/cpu4/core_ctl/not_preferred
|
||||
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
|
||||
echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
|
||||
echo 30 > /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres
|
||||
echo 100 > /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms
|
||||
echo 3 > /sys/devices/system/cpu/cpu4/core_ctl/task_thres
|
||||
|
||||
# Core control parameters for gold+
|
||||
echo 0 > /sys/devices/system/cpu/cpu7/core_ctl/min_cpus
|
||||
echo 60 > /sys/devices/system/cpu/cpu7/core_ctl/busy_up_thres
|
||||
echo 30 > /sys/devices/system/cpu/cpu7/core_ctl/busy_down_thres
|
||||
echo 100 > /sys/devices/system/cpu/cpu7/core_ctl/offline_delay_ms
|
||||
echo 1 > /sys/devices/system/cpu/cpu7/core_ctl/task_thres
|
||||
|
||||
# Controls how many more tasks should be eligible to run on gold CPUs
|
||||
# w.r.t number of gold CPUs available to trigger assist (max number of
|
||||
# tasks eligible to run on previous cluster minus number of CPUs in
|
||||
# the previous cluster).
|
||||
#
|
||||
# Setting to 1 by default which means there should be at least
|
||||
# 4 tasks eligible to run on gold cluster (tasks running on gold cores
|
||||
# plus misfit tasks on silver cores) to trigger assitance from gold+.
|
||||
echo 1 > /sys/devices/system/cpu/cpu7/core_ctl/nr_prev_assist_thresh
|
||||
|
||||
# Disable Core control on silver
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
|
||||
|
||||
# Setting b.L scheduler parameters
|
||||
echo 71 95 > /proc/sys/kernel/sched_upmigrate
|
||||
echo 65 85 > /proc/sys/kernel/sched_downmigrate
|
||||
echo 100 > /proc/sys/kernel/sched_group_upmigrate
|
||||
echo 85 > /proc/sys/kernel/sched_group_downmigrate
|
||||
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
|
||||
|
||||
|
||||
echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus
|
||||
|
||||
# cpuset parameters
|
||||
echo 0-1 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/restricted/cpus
|
||||
echo 0-2 > /dev/cpuset/system-background/cpus
|
||||
echo 0-6 > /dev/cpuset/foreground/cpus
|
||||
echo 0-3 > /dev/cpuset/background/cpus
|
||||
echo 0-3 > /dev/cpuset/system-background/cpus
|
||||
|
||||
# configure governor settings for silver cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/up_rate_limit_us
|
||||
echo 1152000 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq
|
||||
echo 691200 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/pl
|
||||
|
||||
# configure input boost settings
|
||||
echo "0:1324800" > /sys/devices/system/cpu/cpu_boost/input_boost_freq
|
||||
echo 200 > /sys/devices/system/cpu/cpu_boost/input_boost_ms
|
||||
|
||||
# configure governor settings for gold cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/up_rate_limit_us
|
||||
echo 1228800 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/hispeed_freq
|
||||
echo 691200 > /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq
|
||||
echo 85 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/hispeed_load
|
||||
echo -6 > /sys/devices/system/cpu/cpu4/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu5/sched_load_boost
|
||||
echo -6 > /sys/devices/system/cpu/cpu6/sched_load_boost
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/rtg_boost_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy4/schedutil/pl
|
||||
|
||||
# configure governor settings for gold+ cluster
|
||||
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy7/scaling_governor
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/down_rate_limit_us
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/up_rate_limit_us
|
||||
echo 1324800 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq
|
||||
echo 806400 > /sys/devices/system/cpu/cpufreq/policy7/scaling_min_freq
|
||||
echo 85 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_load
|
||||
echo -6 > /sys/devices/system/cpu/cpu7/sched_load_boost
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/rtg_boost_freq
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/pl
|
||||
|
||||
# colocation V3 settings
|
||||
echo 691200 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/rtg_boost_freq
|
||||
echo 51 > /proc/sys/kernel/sched_min_task_util_for_boost
|
||||
echo 35 > /proc/sys/kernel/sched_min_task_util_for_colocation
|
||||
echo 20000000 > /proc/sys/kernel/sched_task_unfilter_period
|
||||
|
||||
# Enable conservative pl
|
||||
echo 1 > /proc/sys/kernel/sched_conservative_pl
|
||||
|
||||
# configure RIMPS for L3 DCVS
|
||||
for c0_rimps_l3 in /sys/devices/system/cpu/memlat/c0_memlat/cpu0-cpu-l3-lat
|
||||
|
||||
@@ -191,11 +191,6 @@ 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
|
||||
@@ -226,7 +221,6 @@ 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
|
||||
|
||||
@@ -143,6 +143,10 @@ 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
|
||||
|
||||
2
sepolicy/vendor/file.te
vendored
Normal file
2
sepolicy/vendor/file.te
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Power HAL
|
||||
type vendor_sysfs_msm_subsys, fs_type, sysfs_type;
|
||||
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -31,6 +31,7 @@
|
||||
|
||||
# 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
|
||||
|
||||
27
sepolicy/vendor/genfs_contexts
vendored
27
sepolicy/vendor/genfs_contexts
vendored
@@ -1,6 +1,9 @@
|
||||
# Display
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,dsi-display-primary u:object_r:vendor_sysfs_graphics:s0
|
||||
|
||||
# Graphics
|
||||
genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/idle_state u:object_r:vendor_sysfs_graphics:s0
|
||||
|
||||
# USB
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,ucsi/typec u:object_r:vendor_sysfs_usb_c:s0
|
||||
|
||||
@@ -11,16 +14,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/188101c.qcom,spss/subsys5/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/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
|
||||
genfscon sysfs /devices/platform/soc/988000.spi/spi_master/spi0/spi0.0/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/98900000.qcom,turing/subsys4/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/98900000.qcom,turing/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/990000.i2c/i2c-2/2-005a/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/990000.i2c/i2c-2/2-0028/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/a300000.qcom,turing/subsys7/wakeup u:object_r:sysfs_wakeup:s0
|
||||
@@ -28,19 +24,14 @@ genfscon sysfs /devices/platform/soc/a84000.i2c/i2c-3/3-005a/wakeup u:object_r:s
|
||||
genfscon sysfs /devices/platform/soc/a84000.i2c/i2c-3/3-0028/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/a8c000.spi/spi_master/spi1/spi1.0/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/aab0000.qcom,venus/subsys0/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/aab0000.qcom,venus/subsys9/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/abb0000.qcom,evass/subsys1/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/abb0000.qcom,evass/subsys2/wakeup u:object_r:sysfs_wakeup:s0
|
||||
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-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
|
||||
genfscon sysfs /devices/platform/soc/soc:md_testing_mode/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,ipa_fws/subsys0/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,ipa_fws/subsys3/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,kgsl-hyp/subsys3/wakeup u:object_r:sysfs_wakeup:s0
|
||||
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
|
||||
|
||||
7
sepolicy/vendor/hal_perf_default.te
vendored
7
sepolicy/vendor/hal_perf_default.te
vendored
@@ -1,7 +0,0 @@
|
||||
allow vendor_hal_perf_default hal_audio_default:dir r_dir_perms;
|
||||
allow vendor_hal_perf_default hal_audio_default:file r_file_perms;
|
||||
allow vendor_hal_perf_default hal_fingerprint_default:dir r_dir_perms;
|
||||
allow vendor_hal_perf_default hal_fingerprint_default:file r_file_perms;
|
||||
allow vendor_hal_perf_default hal_camera_default:dir r_dir_perms;
|
||||
allow vendor_hal_perf_default hal_camera_default:file { read open };
|
||||
allow vendor_hal_perf_default vendor_msm_irqbalance_prop:property_service { set };
|
||||
1
sepolicy/vendor/hal_power.te
vendored
Normal file
1
sepolicy/vendor/hal_power.te
vendored
Normal file
@@ -0,0 +1 @@
|
||||
rw_dir_file(hal_power_default, proc)
|
||||
38
sepolicy/vendor/hal_power_default.te
vendored
38
sepolicy/vendor/hal_power_default.te
vendored
@@ -1,3 +1,41 @@
|
||||
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)
|
||||
|
||||
15
shim/Android.bp
Normal file
15
shim/Android.bp
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Copyright (C) 2022-2025 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
cc_library {
|
||||
name: "libmisightjson_shim",
|
||||
srcs: [
|
||||
"libmisightjson/json_value.cpp",
|
||||
],
|
||||
shared_libs: ["libjsoncpp"],
|
||||
compile_multilib: "both",
|
||||
vendor: true,
|
||||
}
|
||||
12
shim/libmisightjson/json_value.cpp
Normal file
12
shim/libmisightjson/json_value.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2024 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <json/value.h>
|
||||
|
||||
extern "C" Json::Value* _ZN4Json5ValueC1Ex(Json::Value* thisptr, Json::Value other) {
|
||||
*thisptr = other;
|
||||
return thisptr;
|
||||
}
|
||||
Reference in New Issue
Block a user