From 3be0a82348e5096007c4c00afca496870f84ed1a Mon Sep 17 00:00:00 2001 From: Ethan Chen Date: Sun, 19 Apr 2020 02:06:36 -0700 Subject: [PATCH 001/111] dre: Remove wigig components Change-Id: If730bffdf749f30ddf0dfeec8ce769848b19b17e --- init/init.qcom.rc | 53 -------------------------------------------- init/ueventd.qcom.rc | 8 ------- 2 files changed, 61 deletions(-) diff --git a/init/init.qcom.rc b/init/init.qcom.rc index fb8364b..27edcfe 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -61,8 +61,6 @@ on early-init chown root system /dev/kmsg chmod 0620 /dev/kmsg - # Load WIGIG platform driver - exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules msm_11ad_proxy on init @@ -154,9 +152,6 @@ on boot mkdir /mnt/vendor/persist/iar_db 0770 system system mkdir /mnt/vendor/spunvm 0770 system system - #Create WIGIG socket area - mkdir /dev/socket/wigig 0770 wifi wifi - setprop wifi.interface wlan0 setprop ro.telephony.call_ring.multiple false @@ -264,13 +259,9 @@ on post-fs-data mkdir /data/vendor/wifi/hostapd 0770 wifi wifi mkdir /data/vendor/wifi/hostapd/ctrl 0770 wifi wifi mkdir /data/vendor/wifi/wpa_supplicant 0770 wifi wifi - mkdir /data/vendor/wifi/wigig_hostapd 0770 wifi wifi mkdir /data/vendor/wifi/wpa 0770 wifi wifi mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi - # Create the directories used by WiGig Sensing - mkdir /data/vendor/sensing 0770 system wifi - # Create the directories used by CnE subsystem mkdir /data/vendor/connectivity 0771 radio radio chown radio radio /data/vendor/connectivity @@ -525,21 +516,6 @@ service qmiproxy /system/bin/qmiproxy group radio diag disabled -service vendor.wigig_supplicant /vendor/bin/hw/wpa_supplicant \ - -iwigig0 -Dnl80211 -c/data/vendor/wifi/wigig_supplicant.conf \ - -m/data/vendor/wifi/wigig_p2p_supplicant.conf \ - -O/data/vendor/wifi/wigig_sockets -dd \ - -e/data/vendor/wifi/wigig_entropy.bin -g@android:wigig/wpa_wigig0 \ - -S wigigsvc - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore - class main - socket wigig/wpa_wigig0 dgram 660 wifi wifi - disabled - oneshot - # Data Migration service vendor.move_wifi_data /system/bin/move_wifi_data.sh class main @@ -548,25 +524,6 @@ service vendor.move_wifi_data /system/bin/move_wifi_data.sh disabled oneshot -service wigignpt /vendor/bin/wigignpt - interface vendor.qti.hardware.wigig.netperftuner@1.0::INetPerfTuner default - class hal - socket wigig/wigignpt stream 660 system wifi - user system - group wifi - capabilities NET_ADMIN - disabled - -on property:persist.vendor.wigig.npt.enable=1 - start wigignpt - -service vendor.sensingdaemon /vendor/bin/sensingdaemon - class hal - socket wigig/sensingdaemon stream 660 system wifi - user system - group wifi - disabled - service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG class late_start disabled @@ -582,11 +539,6 @@ service dhcpcd_p2p /system/bin/dhcpcd -ABKLG disabled oneshot -service dhcpcd_wigig0 /system/bin/dhcpcd -ABKLG - class late_start - disabled - oneshot - service iprenew_wlan0 /system/bin/dhcpcd -n class late_start disabled @@ -602,11 +554,6 @@ service iprenew_p2p /system/bin/dhcpcd -n disabled oneshot -service iprenew_wigig0 /system/bin/dhcpcd -n - class late_start - disabled - oneshot - service ptt_socket_app /system/vendor/bin/ptt_socket_app -d class main user wifi diff --git a/init/ueventd.qcom.rc b/init/ueventd.qcom.rc index e0bbd79..e1f4463 100644 --- a/init/ueventd.qcom.rc +++ b/init/ueventd.qcom.rc @@ -307,14 +307,6 @@ firmware_directories /vendor/firmware_mnt/image/ /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0/queues/rx-* rps_cpus 0660 system system /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/p2p0/queues/rx-* rps_cpus 0660 system system -# wigig -/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/fst_link_loss 0660 wifi wifi -/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/thermal_throttling 0660 system system -/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/snr_thresh 0660 wifi wifi -/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/queues/rx-0/rps_cpus 0660 system system -/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/gro_flush_timeout 0660 system system -/sys/devices/virtual/net/bond0 queues/rx-0/rps_cpus 0660 system system - #nfc permissions /dev/nfc-nci 0660 nfc nfc /dev/nq-nci 0660 nfc nfc From f6865713f287ea9d6c57ddfa3ff919624f6c8f03 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Tue, 18 Apr 2017 06:34:57 +0530 Subject: [PATCH 002/111] dre: Delete dhcpcd init entries, since dhcpcd is no more. Bug: 27192644 Change-Id: I1aa25190c07f027884421d91c1e93f214493382d --- init/init.qcom.rc | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/init/init.qcom.rc b/init/init.qcom.rc index 27edcfe..f93d829 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -524,36 +524,6 @@ service vendor.move_wifi_data /system/bin/move_wifi_data.sh disabled oneshot -service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG - class late_start - disabled - oneshot - -service dhcpcd_bond0 /system/bin/dhcpcd -ABKLG - class late_start - disabled - oneshot - -service dhcpcd_p2p /system/bin/dhcpcd -ABKLG - class late_start - disabled - oneshot - -service iprenew_wlan0 /system/bin/dhcpcd -n - class late_start - disabled - oneshot - -service iprenew_bond0 /system/bin/dhcpcd -n - class late_start - disabled - oneshot - -service iprenew_p2p /system/bin/dhcpcd -n - class late_start - disabled - oneshot - service ptt_socket_app /system/vendor/bin/ptt_socket_app -d class main user wifi @@ -587,16 +557,6 @@ on property:sys.shutdown.requested=* write /sys/kernel/shutdown_wlan/shutdown 1 stop cnss-daemon -service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG - class late_start - disabled - oneshot - -service iprenew_bt-pan /system/bin/dhcpcd -n - class late_start - disabled - oneshot - service ssgqmigd /vendor/bin/ssgqmigd class late_start user radio From 3db65c9ea269fca26c2afb8a8a51644b9e97aba2 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:25:47 -0400 Subject: [PATCH 003/111] Update Android.bp --- Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.bp b/Android.bp index 09b90c7..c27bda7 100644 --- a/Android.bp +++ b/Android.bp @@ -1,6 +1,7 @@ // // Copyright (C) 2021-2024 The LineageOS Project // SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2019-Current A-Team Digital Solutions // soong_namespace { From fe6ea00b68fa23d93f994f8d862e01bd3473efe0 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:26:35 -0400 Subject: [PATCH 004/111] Update Android.mk --- Android.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Android.mk b/Android.mk index 26849b2..4f4275b 100644 --- a/Android.mk +++ b/Android.mk @@ -1,11 +1,9 @@ -# # Copyright (C) 2021-2024 The LineageOS Project -# # SPDX-License-Identifier: Apache-2.0 -# +# Copyright (C) 2019-Current A-Team Digital Solutions LOCAL_PATH := $(call my-dir) ifeq ($(TARGET_DEVICE),dre) include $(call all-makefiles-under,$(LOCAL_PATH)) -endif +endif \ No newline at end of file From a50d4522e502d82297243840c534fa09d9df08cc Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:27:16 -0400 Subject: [PATCH 005/111] Update AndroidProducts.mk --- AndroidProducts.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AndroidProducts.mk b/AndroidProducts.mk index a8984f8..5149227 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # - +# Copyright (C) 2019-Current A-Team Digital Solutions PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/lineage_dre.mk + $(LOCAL_DIR)/bliss_dre.mk From 6926918ff4a9530d01836196378e1effa0ef3fd3 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:28:58 -0400 Subject: [PATCH 006/111] Update BoardConfig.mk --- BoardConfig.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 62aff34..23a1fbf 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,8 +1,6 @@ -# # Copyright (C) 2021-2024 The LineageOS Project -# # SPDX-License-Identifier: Apache-2.0 -# +# Copyright (C) 2019-Current A-Team Digital Solutions DEVICE_PATH := device/oneplus/dre From eb158717693c03d33ebc03df15bf72f180dcc811 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:29:42 -0400 Subject: [PATCH 007/111] Update device.mk --- device.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/device.mk b/device.mk index 29bb92e..97ca327 100644 --- a/device.mk +++ b/device.mk @@ -1,8 +1,6 @@ -# # Copyright (C) 2021-2025 The LineageOS Project -# # SPDX-License-Identifier: Apache-2.0 -# +# Copyright (C) 2019-Current A-Team Digital Solutions # Add common definitions for Qualcomm $(call inherit-product, hardware/qcom-caf/common/common.mk) From 6dfa4f8d34bb8b7c281f6472c580b1ef517aa4e6 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:30:46 -0400 Subject: [PATCH 008/111] Update lineage_dre.mk --- lineage_dre.mk | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lineage_dre.mk b/lineage_dre.mk index 1dcc7e2..3e6cc4f 100644 --- a/lineage_dre.mk +++ b/lineage_dre.mk @@ -1,6 +1,4 @@ -# # Copyright (C) 2021-2023 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 @@ -12,7 +10,7 @@ # 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. -# +# Copyright (C) 2019-Current A-Team Digital Solutions # Inherit from those products. Most specific first. $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) @@ -22,10 +20,10 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) # Inherit from dre device $(call inherit-product, device/oneplus/dre/device.mk) -# Inherit some common Lineage stuff. -$(call inherit-product, vendor/lineage/config/common_full_phone.mk) +# Inherit some common Bliss stuff. +$(call inherit-product, vendor/bliss/config/common_full_phone.mk) -PRODUCT_NAME := lineage_dre +PRODUCT_NAME := bliss_dre PRODUCT_DEVICE := dre PRODUCT_MANUFACTURER := OnePlus PRODUCT_BRAND := OnePlus From 41a45831069f45f5041dafeba65ff7f50a4e880f Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:31:15 -0400 Subject: [PATCH 009/111] Update bliss_dre.mk --- lineage_dre.mk => bliss_dre.mk | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lineage_dre.mk => bliss_dre.mk (100%) diff --git a/lineage_dre.mk b/bliss_dre.mk similarity index 100% rename from lineage_dre.mk rename to bliss_dre.mk From c2e71b09e4e4e4fd2baf893252e8c0d41c02daea Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Tue, 29 Apr 2025 23:21:39 +0100 Subject: [PATCH 010/111] dre: Set vendor init lib via soong config Change-Id: I8f7e6b987bee58dbf09ca9ad7cfd5a7e99e19c3b --- BoardConfig.mk | 3 --- device.mk | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 62aff34..29a5d49 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -86,9 +86,6 @@ DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest_odm.xml -# Init -TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_oplus - # Kernel BOARD_BOOT_HEADER_VERSION := 3 BOARD_KERNEL_BASE := 0x00000000 diff --git a/device.mk b/device.mk index 29bb92e..b5945f0 100644 --- a/device.mk +++ b/device.mk @@ -196,6 +196,8 @@ PRODUCT_PACKAGES += \ ueventd.oplus.rc \ ueventd.qcom.rc +$(call soong_config_set,libinit,vendor_init_lib,//$(LOCAL_PATH):libinit_oplus) + # IPACM PRODUCT_PACKAGES += \ ipacm \ From 6faa3b87cadefd129e23abc5a566dac303969162 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Tue, 29 Apr 2025 23:37:50 +0100 Subject: [PATCH 011/111] dre: Migrate Lineage Health to soong_config_set Change-Id: I2eff39e83b9673aa2989d05de65c646241ba61da --- BoardConfig.mk | 3 --- device.mk | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 29a5d49..e48e98b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -74,9 +74,6 @@ TARGET_SCREEN_DENSITY := 450 # Filesystem TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs -# Health -TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/oplus_chg/battery/mmi_charging_enable - # HIDL DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ hardware/oplus/vintf/device_framework_matrix.xml \ diff --git a/device.mk b/device.mk index b5945f0..45bd517 100644 --- a/device.mk +++ b/device.mk @@ -210,6 +210,8 @@ PRODUCT_ENABLE_UFFD_GC := true PRODUCT_PACKAGES += \ vendor.lineage.health-service.default +$(call soong_config_set,lineage_health,charging_control_charging_path,/sys/class/oplus_chg/battery/mmi_charging_enable) + # LiveDisplay PRODUCT_PACKAGES += \ vendor.lineage.livedisplay@2.1-service.oplus From 26ced05f4377a00ea63278e63098b9b127886709 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 25 Apr 2025 17:36:15 +0100 Subject: [PATCH 012/111] dre: Switch to Touch AIDL Change-Id: I92a19fedb9ea482616c2e3d550e30b69d2a3a5c7 --- BoardConfig.mk | 1 - device.mk | 2 +- manifest_odm.xml | 15 --------------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 manifest_odm.xml diff --git a/BoardConfig.mk b/BoardConfig.mk index e48e98b..88ca7c2 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -81,7 +81,6 @@ DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ vendor/lineage/config/device_framework_matrix.xml DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml -ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest_odm.xml # Kernel BOARD_BOOT_HEADER_VERSION := 3 diff --git a/device.mk b/device.mk index 45bd517..3997ec5 100644 --- a/device.mk +++ b/device.mk @@ -348,7 +348,7 @@ PRODUCT_PACKAGES += \ # Touch PRODUCT_PACKAGES += \ - vendor.lineage.touch@1.0-service.oplus + vendor.lineage.touch-service.oplus PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml diff --git a/manifest_odm.xml b/manifest_odm.xml deleted file mode 100644 index 928a70b..0000000 --- a/manifest_odm.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - vendor.lineage.touch - hwbinder - 1.0 - - IHighTouchPollingRate - default - - - ITouchscreenGesture - default - - - From 5c843d57c8cb0ef8c110e47b2bcb27fedce9b73a Mon Sep 17 00:00:00 2001 From: Yumi Yukimura Date: Tue, 25 Jun 2024 00:19:16 +0800 Subject: [PATCH 013/111] dre: Migrate to QTI USB Gadget AIDL HAL Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710 --- device.mk | 4 +++- vendor.prop | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/device.mk b/device.mk index 3997ec5..d6a799c 100644 --- a/device.mk +++ b/device.mk @@ -364,7 +364,9 @@ PRODUCT_PACKAGES_DEBUG += \ # USB PRODUCT_PACKAGES += \ - android.hardware.usb-service.qti + android.hardware.usb-service.qti \ + android.hardware.usb.gadget-service.qti \ + oplus_usb_compositions.conf PRODUCT_SOONG_NAMESPACES += \ vendor/qcom/opensource/usb/etc diff --git a/vendor.prop b/vendor.prop index 0dae9e2..9f12fc7 100644 --- a/vendor.prop +++ b/vendor.prop @@ -175,7 +175,7 @@ vendor.usb.rmnet.func.name=gsi vendor.usb.rmnet.inst.name=rmnet vendor.usb.rndis.func.name=gsi vendor.usb.use_ffs_mtp=1 -vendor.usb.use_gadget_hal=0 +vendor.usb.use_gadget_hal=1 # WiFi wifi.aware.interface=wifi-aware0 From 100d001f78b3b5bad1eed061c551704c0c1386c4 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 21 Aug 2024 13:05:30 +0100 Subject: [PATCH 014/111] dre: init: Remove USB overriding rules USB gadget HAL takes the place of the init-based configfs rules for setting USB compositions. Change-Id: Icceafaf6cd761220b9b80a5311e067c272f123c7 --- init/init.oplus.rc | 54 +--------------------------------------------- 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/init/init.oplus.rc b/init/init.oplus.rc index edb1745..786b50d 100644 --- a/init/init.oplus.rc +++ b/init/init.oplus.rc @@ -1,5 +1,5 @@ # -# Copyright (C) 2022 The LineageOS Project +# Copyright (C) 2022-2024 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # @@ -52,58 +52,6 @@ on property:vendor.post_boot.parsed=1 write /proc/irq/243/smp_affinity_list 2 write /proc/irq/240/smp_affinity_list 1 -on property:sys.usb.config=adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2769 - -on property:sys.usb.config=mass_storage && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2768 - -on property:sys.usb.config=mtp && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2764 - -on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2765 - -on property:sys.usb.config=ptp && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2771 - -on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2772 - -on property:sys.usb.config=rndis,none && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x276A - -on property:sys.usb.config=rndis,serial_cdev,diag && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2783 - -on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x276C - -on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag,diag_mdm,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x276E - -on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mass_storage,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2767 - -on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,diag,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2775 - -on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,none,adb && property:sys.usb.configfs=1 - write /config/usb_gadget/g1/idVendor 0x22D9 - write /config/usb_gadget/g1/idProduct 0x2766 - service oplus_sensor_fb /odm/bin/oplus_sensor_fb user system group system From 1b3aa6404593cbb0c3565bdf7ca0b3a883355097 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 25 Dec 2024 23:42:18 +0100 Subject: [PATCH 015/111] dre: Switch to NCM USB tethering Change-Id: I20b6b2b2e26a45d8b28c7483afc83ad4da4b8643 --- device.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/device.mk b/device.mk index d6a799c..4ea9ecd 100644 --- a/device.mk +++ b/device.mk @@ -254,6 +254,7 @@ PRODUCT_ENFORCE_RRO_TARGETS := * PRODUCT_PACKAGES += \ CarrierConfigResCommon \ FrameworksResTarget \ + NcmTetheringOverlay \ OPlusFrameworksResTarget \ OPlusSettingsProviderResTarget \ OPlusSettingsResTarget \ From f18f325a6dc10fbe36bbbc43f3e820e69c2dcdec Mon Sep 17 00:00:00 2001 From: Chris Goldsworthy Date: Tue, 20 Jun 2023 20:59:14 -0700 Subject: [PATCH 016/111] dre: init: Remove redundant mlock() limit setting The per-process limit for the mlock() family of system calls only needs to be set in one group of config files. Remove from here as it is being set in init.qcom.rc . Change-Id: Ia7d46800eabe2954e3e2618a38ff180c88fee348 --- init/init.target.rc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/init/init.target.rc b/init/init.target.rc index b4ed710..dcd5c76 100644 --- a/init/init.target.rc +++ b/init/init.target.rc @@ -81,10 +81,6 @@ on fs mkdir /mnt/vendor/persist/wlan 0700 system system chmod 0700 /mnt/vendor/persist/wlan -on post-fs - # set RLIMIT_MEMLOCK to 64MB - setrlimit 8 67108864 67108864 - on late-fs mount_all --late From 865d3ff4d3cb8cacd57a777e0825e0b48f1dd135 Mon Sep 17 00:00:00 2001 From: Samyak Jain Date: Tue, 22 Jan 2019 14:58:10 +0530 Subject: [PATCH 017/111] dre: configs: Remove 2 instance support for "primary input" As FM app no longer uses app loopback, 2 instances of "primary input" is not needed Change-Id: I7d5e941e916bdf221798ca89360e4751d4af322b --- audio/audio_policy_configuration.xml | 2 +- audio/audio_policy_configuration_a2dp_offload_disabled.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index cf5872a..4007e46 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -192,7 +192,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - + diff --git a/audio/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/audio_policy_configuration_a2dp_offload_disabled.xml index 5bd9823..b1274f8 100644 --- a/audio/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/audio_policy_configuration_a2dp_offload_disabled.xml @@ -192,7 +192,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - + From 8667ff3a087e24b583cf8c51acab99cb7297d8ac Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Mon, 28 Mar 2022 20:47:59 +0300 Subject: [PATCH 018/111] dre: Don't report unsupported A2DP offload codecs Change-Id: I4a3094106507aac0afb847eb1d7bf5189349629e --- audio/audio_policy_configuration.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 4007e46..e8061d1 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -298,17 +298,17 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC"> + encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC"> + encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC"> From 498813a0086f9490aebdeda1d7cf22e6f568761f Mon Sep 17 00:00:00 2001 From: Tommy Webb Date: Tue, 14 May 2024 20:37:55 +0000 Subject: [PATCH 019/111] dre: Don't try to play many-channel audio as is This device doesn't have surround sound, as nice as that would be, so stop pretending. Otherwise, we get weird behavior, like playing surround sound audio at full volume regardless of the media volume or mute state. Now, it plays properly. Issue: calyxos#2075 Change-Id: Ic530906a9dacb2699e32f2ed91f38fab0dad1492 --- audio/audio_policy_configuration.xml | 18 +++++++++--------- ...icy_configuration_a2dp_offload_disabled.xml | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index e8061d1..89c1e38 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -120,16 +120,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. flags="AUDIO_OUTPUT_FLAG_DIRECT"> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -141,7 +141,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -156,16 +156,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> diff --git a/audio/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/audio_policy_configuration_a2dp_offload_disabled.xml index b1274f8..ffb93a7 100644 --- a/audio/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/audio_policy_configuration_a2dp_offload_disabled.xml @@ -120,16 +120,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. flags="AUDIO_OUTPUT_FLAG_DIRECT"> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -141,7 +141,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -156,16 +156,16 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> From ed42e67cc577ae0b190ac9dc1539c924c68578c0 Mon Sep 17 00:00:00 2001 From: EcrosoftXiao Date: Thu, 2 Dec 2021 11:15:43 +0800 Subject: [PATCH 020/111] dre: audio: Nuke unsupported haptics output configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixes Pixel ringtones Change-Id: Ib81fd4209be8201d13aeea485910169371f82582 Signed-off-by: Bartłomiej Rudecki --- audio/audio_policy_configuration.xml | 14 +++++--------- ..._policy_configuration_a2dp_offload_disabled.xml | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 89c1e38..b6dddb5 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -99,10 +99,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> - - - + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> Date: Mon, 21 Apr 2025 09:25:27 +0000 Subject: [PATCH 021/111] Revert "dre: audio: Remove direct flag for VOIP RX" This reverts commit a0aa46e5d82617fa19abd1e6dc6e3a16c644733a. Reason for revert: Broke calls in some apps, WhatsApp for example. Change-Id: I901e19e6042b6388b43ff2622bfa9e29f02a30cc --- audio/audio_policy_configuration.xml | 2 +- audio/audio_policy_configuration_a2dp_offload_disabled.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index b6dddb5..c04734a 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -177,7 +177,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX"> diff --git a/audio/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/audio_policy_configuration_a2dp_offload_disabled.xml index 83ec7a9..62b6633 100644 --- a/audio/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/audio_policy_configuration_a2dp_offload_disabled.xml @@ -177,7 +177,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> + flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX"> From 19e7b2ef5477e7fb2d1d60120f672307ba3fef93 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Fri, 25 Apr 2025 15:22:41 -0400 Subject: [PATCH 022/111] dre: overlay: Disable world_mode_enabled_bool Fixes preferred network type menu. Change-Id: I58d4ee8089f1d78d4d606da7b7148599779d6b71 --- overlay/CarrierConfigResCommon/res/xml/vendor.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/CarrierConfigResCommon/res/xml/vendor.xml b/overlay/CarrierConfigResCommon/res/xml/vendor.xml index b4f352b..e53fbe1 100644 --- a/overlay/CarrierConfigResCommon/res/xml/vendor.xml +++ b/overlay/CarrierConfigResCommon/res/xml/vendor.xml @@ -3,6 +3,7 @@ + From cb994cbb457e361b42577246b5be1544835237d9 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Fri, 25 Apr 2025 15:26:49 -0400 Subject: [PATCH 023/111] dre: overlay: Do not show satellite category for Verizon Change-Id: Ia959ed079646f04af7f779b29511fbac67861378 --- overlay/CarrierConfigResCommon/res/xml/vendor.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/CarrierConfigResCommon/res/xml/vendor.xml b/overlay/CarrierConfigResCommon/res/xml/vendor.xml index e53fbe1..76bd25e 100644 --- a/overlay/CarrierConfigResCommon/res/xml/vendor.xml +++ b/overlay/CarrierConfigResCommon/res/xml/vendor.xml @@ -2166,6 +2166,7 @@ + From 8d8fc5740a5951dd68337197d3ef72031edec10a Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 11 Jul 2025 21:04:48 +0200 Subject: [PATCH 024/111] dre: Move 64-bit libmmparser_lite.so to "Media" section Change-Id: Ic2a08519a2d9e9299d419b56479fa82ffc7ea664 --- proprietary-files.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index ef57af3..04e2819 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1316,6 +1316,7 @@ odm/etc/media_profiles_V1_0.xml system_ext/lib/libmmosal.so system_ext/lib/libmmparser_lite.so system_ext/lib64/libmmosal.so +system_ext/lib64/libmmparser_lite.so vendor/bin/hw/vendor.qti.media.c2@1.0-service vendor/bin/init.qti.media.sh vendor/etc/init/init.qti.media.rc @@ -1890,7 +1891,6 @@ system_ext/lib/libwfduibcsinkinterface.so system_ext/lib/libwfduibcsrc.so system_ext/lib/libwfduibcsrcinterface.so system_ext/lib/vendor.qti.hardware.wifidisplaysession@1.0.so -system_ext/lib64/libmmparser_lite.so system_ext/lib64/libmmrtpdecoder.so system_ext/lib64/libmmrtpencoder.so system_ext/lib64/libwfdclient.so From 04f204df15d595efef1cb356361a2de4d3372a0f Mon Sep 17 00:00:00 2001 From: basamaryan Date: Mon, 16 Jun 2025 11:19:48 -0400 Subject: [PATCH 025/111] dre: Drop legacy ANT remnants QSSI only has platform/external/ant-wireless/hidl since a while Change-Id: Ibccfdc7e72efd3c9d3ff62bda3e729b99433a567 --- BoardConfig.mk | 3 --- device.mk | 4 ---- 2 files changed, 7 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 88ca7c2..00c30b8 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -22,9 +22,6 @@ AB_OTA_PARTITIONS += \ vendor_boot \ vendor_dlkm -# ANT+ -BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl" - # Architecture TARGET_ARCH := arm64 TARGET_ARCH_VARIANT := armv8-a diff --git a/device.mk b/device.mk index 4ea9ecd..482e75a 100644 --- a/device.mk +++ b/device.mk @@ -30,10 +30,6 @@ PRODUCT_PACKAGES += \ checkpoint_gc \ otapreopt_script -# ANT+ -PRODUCT_PACKAGES += \ - AntHalService-Soong - # Audio PRODUCT_PACKAGES += \ android.hardware.audio@6.0-impl \ From 064df2716923cb6ac30575da665cff997a1c4494 Mon Sep 17 00:00:00 2001 From: Vishalcj17 Date: Tue, 20 Aug 2024 08:18:49 +0530 Subject: [PATCH 026/111] dre: Switch hwcomposer to foreground CPU set * Greatly affects the performance/latency of the display considering you have foreground set to 0-3, 5-6 cores on Date: Tue, 20 Aug 2024 08:19:55 +0530 Subject: [PATCH 027/111] dre: Use foreground cpuset/uclamp for gralloc Makes sure rendering has enough capacity. Change-Id: I7ad051248353485a8090bec578b2c4325ea06024 --- init/init.qcom.rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init/init.qcom.rc b/init/init.qcom.rc index 6272502..81cf423 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -808,3 +808,12 @@ service vendor.qti.hardware.display.composer /vendor/bin/hw/vendor.qti.hardware. onrestart restart surfaceflinger socket pps stream 0660 system system task_profiles ProcessCapacityHigh HighPerformance + +service vendor.qti.hardware.display.allocator /vendor/bin/hw/vendor.qti.hardware.display.allocator-service + override + class hal animation + user system + group graphics drmrpc + capabilities SYS_NICE + onrestart restart surfaceflinger + task_profiles ProcessCapacityHigh HighPerformance From 1e6566533ff78ff6866e624dae2e01c33cc2a175 Mon Sep 17 00:00:00 2001 From: Nick Reuter Date: Sun, 1 Jun 2025 10:35:05 -0500 Subject: [PATCH 028/111] dre: Use extract-files to fixup media_codecs*.xml Change-Id: Ie8f18d3a1f1ed04911e4e92bdf74c8a4831dec78 --- device.mk | 8 - extract-files.py | 7 + media/media_codecs.xml | 300 ----------------- media/media_codecs_blair.xml | 312 ------------------ media/media_codecs_blair_lite.xml | 301 ----------------- media/media_codecs_holi.xml | 301 ----------------- media/media_codecs_performance.xml | 168 ---------- media/media_codecs_performance_blair.xml | 207 ------------ media/media_codecs_performance_blair_lite.xml | 133 -------- media/media_codecs_performance_holi.xml | 146 -------- proprietary-files.txt | 8 + 11 files changed, 15 insertions(+), 1876 deletions(-) delete mode 100644 media/media_codecs.xml delete mode 100644 media/media_codecs_blair.xml delete mode 100644 media/media_codecs_blair_lite.xml delete mode 100644 media/media_codecs_holi.xml delete mode 100644 media/media_codecs_performance.xml delete mode 100644 media/media_codecs_performance_blair.xml delete mode 100644 media/media_codecs_performance_blair_lite.xml delete mode 100644 media/media_codecs_performance_holi.xml diff --git a/device.mk b/device.mk index 482e75a..875d22e 100644 --- a/device.mk +++ b/device.mk @@ -216,14 +216,6 @@ $(call soong_config_set,OPLUS_LINEAGE_LIVEDISPLAY_HAL,ENABLE_SE,false) # Media PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ - $(LOCAL_PATH)/media/media_codecs_blair.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_blair.xml \ - $(LOCAL_PATH)/media/media_codecs_blair_lite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_blair_lite.xml \ - $(LOCAL_PATH)/media/media_codecs_holi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_holi.xml \ - $(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ - $(LOCAL_PATH)/media/media_codecs_performance_blair.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_blair.xml \ - $(LOCAL_PATH)/media/media_codecs_performance_blair_lite.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_blair_lite.xml \ - $(LOCAL_PATH)/media/media_codecs_performance_holi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_holi.xml \ $(LOCAL_PATH)/media/media_profiles_holi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml # NFC diff --git a/extract-files.py b/extract-files.py index aed0719..d0bee10 100755 --- a/extract-files.py +++ b/extract-files.py @@ -88,6 +88,13 @@ blob_fixups: blob_fixups_user_type = { .patch_file('blob-patches/init-post-boot-holi.patch'), 'vendor/etc/init/vendor.qti.media.c2@1.0-service.rc': blob_fixup() .regex_replace('writepid /dev/cpuset/foreground/tasks', 'task_profiles ProcessCapacityHigh'), + ('vendor/etc/media_codecs.xml','vendor/etc/media_codecs_blair.xml','vendor/etc/media_codecs_blair_lite.xml','vendor/etc/media_codecs_holi.xml'): blob_fixup() + .regex_replace('\n ', '') + .regex_replace('\n ', '') + .regex_replace('\n ', '') + .regex_replace('\n ', '') + .regex_replace('\n ', '') + .regex_replace('\n ', '\n \n '), 'vendor/etc/media_holi/video_system_specs.json': blob_fixup() .regex_replace('"max_retry_alloc_output_timeout": 2000,', '"max_retry_alloc_output_timeout": 0,'), 'vendor/etc/libnfc-nci.conf': blob_fixup() diff --git a/media/media_codecs.xml b/media/media_codecs.xml deleted file mode 100644 index 3a6d9f2..0000000 --- a/media/media_codecs.xml +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_blair.xml b/media/media_codecs_blair.xml deleted file mode 100644 index 93ab71f..0000000 --- a/media/media_codecs_blair.xml +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_blair_lite.xml b/media/media_codecs_blair_lite.xml deleted file mode 100644 index bc05d62..0000000 --- a/media/media_codecs_blair_lite.xml +++ /dev/null @@ -1,301 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_holi.xml b/media/media_codecs_holi.xml deleted file mode 100644 index f2bf010..0000000 --- a/media/media_codecs_holi.xml +++ /dev/null @@ -1,301 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_performance.xml b/media/media_codecs_performance.xml deleted file mode 100644 index f77e0d5..0000000 --- a/media/media_codecs_performance.xml +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_performance_blair.xml b/media/media_codecs_performance_blair.xml deleted file mode 100644 index 30ccb9d..0000000 --- a/media/media_codecs_performance_blair.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_performance_blair_lite.xml b/media/media_codecs_performance_blair_lite.xml deleted file mode 100644 index 750529e..0000000 --- a/media/media_codecs_performance_blair_lite.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/media/media_codecs_performance_holi.xml b/media/media_codecs_performance_holi.xml deleted file mode 100644 index 42d651b..0000000 --- a/media/media_codecs_performance_holi.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary-files.txt b/proprietary-files.txt index 04e2819..ff4fcfd 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1324,6 +1324,14 @@ vendor/etc/init/vendor.qti.media.c2@1.0-service.rc vendor/etc/media_blair/video_system_specs.json vendor/etc/media_blair_lite/video_system_specs.json vendor/etc/media_holi/video_system_specs.json +vendor/etc/media_codecs.xml +vendor/etc/media_codecs_blair.xml +vendor/etc/media_codecs_blair_lite.xml +vendor/etc/media_codecs_holi.xml +vendor/etc/media_codecs_performance.xml +vendor/etc/media_codecs_performance_blair.xml +vendor/etc/media_codecs_performance_blair_lite.xml +vendor/etc/media_codecs_performance_holi.xml vendor/etc/media_profiles.xml vendor/etc/media_profiles_V1_0.xml vendor/etc/media_profiles_blair.xml From 6b9a31bd740133278419164756a7518ed1274360 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 14 Aug 2025 23:47:18 +0200 Subject: [PATCH 029/111] dre: Migrate to AIDL LiveDisplay HAL Change-Id: I4e8be836e94d442b40c63a1ac7dade3c9d9c784c --- device.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 875d22e..4cf40f1 100644 --- a/device.mk +++ b/device.mk @@ -210,7 +210,7 @@ $(call soong_config_set,lineage_health,charging_control_charging_path,/sys/class # LiveDisplay PRODUCT_PACKAGES += \ - vendor.lineage.livedisplay@2.1-service.oplus + vendor.lineage.livedisplay-service.oplus $(call soong_config_set,OPLUS_LINEAGE_LIVEDISPLAY_HAL,ENABLE_SE,false) From 5e23345444d763f53852b9abe7044107b7c664a6 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 22 Aug 2025 09:31:46 +0200 Subject: [PATCH 030/111] dre: sepolicy: Migrate qcom_flash rules to hardware/oplus Change-Id: Iba59cbf2ada217cac07f70d6dc4665a928f0591e --- BoardConfig.mk | 2 -- sepolicy/vendor/file.te | 1 - sepolicy/vendor/genfs_contexts | 1 - sepolicy/vendor/hal_camera_default.te | 1 - 4 files changed, 5 deletions(-) delete mode 100644 sepolicy/vendor/file.te delete mode 100644 sepolicy/vendor/genfs_contexts delete mode 100644 sepolicy/vendor/hal_camera_default.te diff --git a/BoardConfig.mk b/BoardConfig.mk index 00c30b8..8b62c78 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -166,8 +166,6 @@ VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH) include device/qcom/sepolicy_vndr/SEPolicy.mk include hardware/oplus/sepolicy/qti/SEPolicy.mk -BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor - # Verified Boot BOARD_AVB_ENABLE := true BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --set_hashtree_disabled_flag diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te deleted file mode 100644 index 3f3c9d6..0000000 --- a/sepolicy/vendor/file.te +++ /dev/null @@ -1 +0,0 @@ -type proc_flash_light_file, fs_type, proc_type; diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts deleted file mode 100644 index 2c3dd1d..0000000 --- a/sepolicy/vendor/genfs_contexts +++ /dev/null @@ -1 +0,0 @@ -genfscon proc /qcom_flash u:object_r:proc_flash_light_file:s0 diff --git a/sepolicy/vendor/hal_camera_default.te b/sepolicy/vendor/hal_camera_default.te deleted file mode 100644 index 0c80fb6..0000000 --- a/sepolicy/vendor/hal_camera_default.te +++ /dev/null @@ -1 +0,0 @@ -allow hal_camera_default proc_flash_light_file:file rw_file_perms; From b798d183bcf5957d709625a8249c19f80bce9186 Mon Sep 17 00:00:00 2001 From: basamaryan Date: Wed, 9 Jul 2025 08:52:21 -0400 Subject: [PATCH 031/111] dre: Update WFD system blobs from dada OS2.0.217.0.WOCMIXM Change-Id: I95dfb07cae97f3c8716a7cb6d87a7081de986748 --- extract-files.py | 10 ------ proprietary-files.txt | 76 +++++++++++++++++-------------------------- 2 files changed, 30 insertions(+), 56 deletions(-) diff --git a/extract-files.py b/extract-files.py index d0bee10..9c1c38e 100755 --- a/extract-files.py +++ b/extract-files.py @@ -72,16 +72,6 @@ blob_fixups: blob_fixups_user_type = { .add_needed('libcrypto_shim.so'), 'product/etc/sysconfig/com.android.hotwordenrollment.common.util.xml': blob_fixup() .regex_replace('/my_product', '/product'), - 'system_ext/bin/wfdservice': blob_fixup() - .add_needed('libwfdservice_shim.so'), - 'system_ext/lib/libwfdmmsrc_system.so': blob_fixup() - .add_needed('libgui_shim.so'), - 'system_ext/lib/libwfdservice.so': blob_fixup() - .replace_needed('android.media.audio.common.types-V2-cpp.so', 'android.media.audio.common.types-V4-cpp.so'), - 'system_ext/lib64/libwfdnative.so': blob_fixup() - .replace_needed('android.hidl.base@1.0.so', 'libhidlbase.so') - .add_needed('libbinder_shim.so') - .add_needed('libinput_shim.so'), 'vendor/bin/init.kernel.post_boot-blair.sh': blob_fixup() .patch_file('blob-patches/init-post-boot-blair.patch'), 'vendor/bin/init.kernel.post_boot-holi.sh': blob_fixup() diff --git a/proprietary-files.txt b/proprietary-files.txt index ff4fcfd..55b424a 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1313,8 +1313,6 @@ vendor/lib/libmulawdec.so # Media odm/etc/media_profiles_V1_0.xml -system_ext/lib/libmmosal.so -system_ext/lib/libmmparser_lite.so system_ext/lib64/libmmosal.so system_ext/lib64/libmmparser_lite.so vendor/bin/hw/vendor.qti.media.c2@1.0-service @@ -1872,50 +1870,36 @@ vendor/bin/cnss-daemon vendor/etc/wifi/p2p_supplicant_overlay.conf vendor/etc/wifi/wpa_supplicant_overlay.conf -# WiFi Display -system/framework/WfdCommon.jar;BOOT_JAR -system_ext/bin/wfdservice -system_ext/etc/init/wfdservice.rc -system_ext/etc/permissions/wfd-system-ext-privapp-permissions-qti.xml -system_ext/etc/seccomp_policy/wfdservice.policy -system_ext/etc/wfdconfigsink.xml -system_ext/lib/com.qualcomm.qti.wifidisplayhal@1.0.so -system_ext/lib/libmmrtpdecoder.so -system_ext/lib/libmmrtpencoder.so -system_ext/lib/libwfdavenhancements.so -system_ext/lib/libwfdclient.so -system_ext/lib/libwfdcommonutils.so -system_ext/lib/libwfdconfigutils.so -system_ext/lib/libwfddisplayconfig.so -system_ext/lib/libwfdmminterface.so -system_ext/lib/libwfdmmsink.so -system_ext/lib/libwfdmmsrc_system.so -system_ext/lib/libwfdrtsp.so -system_ext/lib/libwfdservice.so -system_ext/lib/libwfdsinksm.so -system_ext/lib/libwfduibcinterface.so -system_ext/lib/libwfduibcsink.so -system_ext/lib/libwfduibcsinkinterface.so -system_ext/lib/libwfduibcsrc.so -system_ext/lib/libwfduibcsrcinterface.so -system_ext/lib/vendor.qti.hardware.wifidisplaysession@1.0.so -system_ext/lib64/libmmrtpdecoder.so -system_ext/lib64/libmmrtpencoder.so -system_ext/lib64/libwfdclient.so -system_ext/lib64/libwfdcommonutils.so -system_ext/lib64/libwfdconfigutils.so -system_ext/lib64/libwfddisplayconfig.so -system_ext/lib64/libwfdmminterface.so -system_ext/lib64/libwfdmmsink.so -system_ext/lib64/libwfdnative.so;SYMLINK=system_ext/priv-app/WfdService/lib/arm64/libwfdnative.so -system_ext/lib64/libwfdrtsp.so -system_ext/lib64/libwfdsinksm.so -system_ext/lib64/libwfduibcinterface.so -system_ext/lib64/libwfduibcsink.so -system_ext/lib64/libwfduibcsinkinterface.so -system_ext/lib64/libwfduibcsrc.so -system_ext/lib64/libwfduibcsrcinterface.so -system_ext/priv-app/WfdService/WfdService.apk +# WiFi Display (system) - from dada OS2.0.217.0.WOCMIXM +system/framework/WfdCommon.jar;BOOT_JAR|76fab5ed43206989057284fa26e8b894f1da102f +system_ext/bin/wfdservice64:system_ext/bin/wfdservice|34851904d02d11d3cfebbc7b8745a9444ba3e7c5 +system_ext/etc/init/wfdservice.rc|907def8565d8f91f531ca7dfad880af05d540b0c +system_ext/etc/permissions/wfd-system-ext-privapp-permissions-qti.xml|6669d5ee462c981663b8ac573d84d334e4eed96c +system_ext/etc/seccomp_policy/wfdservice64.policy|1e331272649395423b11c575892e0bdc9433b820 +system_ext/lib64/libmmrtpdecoder.so|8b143c0b004a2f5ab8d7911dd463de0ceea794e7 +system_ext/lib64/libmmrtpencoder.so|eef3f64e6c2892fc0c87e176f5a83f7fe07761d3 +system_ext/lib64/libwfdavenhancements.so|8c968c6930e44901ef8c6abd6356f2308600d90e +system_ext/lib64/libwfdclient.so|2d1bf9b010ecfb8532eaf6a12c8bf60f9e8ffe08 +system_ext/lib64/libwfdcommonutils.so|3ae375016a9551e51f26710e8b07d20eeef2b76f +system_ext/lib64/libwfdconfigutils.so|4d8200cc4c455f54fcbce927f5cabeb7b591f5d0 +system_ext/lib64/libwfddisplayconfig.so|27f5d6e284edf05cc7776e5be010912973000ab9 +system_ext/lib64/libwfdmminterface.so|8d3d493fef797aef2feaab4e09e50250ddf5dc9a +system_ext/lib64/libwfdmmsink.so|4569ce9941eb5d06db599146ed80b8a32d7cd97f +system_ext/lib64/libwfdmmsrc_system.so|0cc970954800566baddbf760b153b027940180f5 +system_ext/lib64/libwfdnative.so;SYMLINK=system_ext/priv-app/WfdService/lib/arm64/libwfdnative.so|9513bbbd813dd05fb063d3c9e72640a1bc9156c2 +system_ext/lib64/libwfdrtsp.so|1ab4fc5b75d25f551df3593d5856e6f7893a4176 +system_ext/lib64/libwfdservice.so|af0e31f17ed997a5d8bad64cdad486be28cb9f07 +system_ext/lib64/libwfdsinksm.so|cc899b719fa11d844c65908d7fdc18600451324d +system_ext/lib64/libwfduibcinterface.so|432d54b072d8f1c80409b6e11f4f833ca9576937 +system_ext/lib64/libwfduibcsink.so|d12b05bbcefdff6addc2c31567a656b7540d7489 +system_ext/lib64/libwfduibcsinkinterface.so|a41b4d1fa4307a247b1f059a5b5cdf7f6a645db3 +system_ext/lib64/libwfduibcsrc.so|5be7d282be9ab45297bd030f8e37a45f48aa8677 +system_ext/lib64/libwfduibcsrcinterface.so|0e32acc87c8518e8ebb44f6ef341a2e278e1e7c2 +system_ext/lib64/vendor.qti.hardware.wifidisplaysession@1.0.so|2b2563450ad6a8d46d5648b97f63f87c5d9983ca +system_ext/lib64/vendor.qti.hardware.wifidisplaysession_aidl-V1-ndk.so|58cd9358df40aa16ddf0e603b736c58588623b9e +system_ext/priv-app/WfdService/WfdService.apk|b8a1d9f83804d274fab6e09e0607082801207f60 + +# WiFi Display (vendor) vendor/bin/wfdhdcphalservice vendor/bin/wfdvndservice vendor/bin/wifidisplayhalservice From f99788ebd02b1390baca9b3c78cc12d6fb76528b Mon Sep 17 00:00:00 2001 From: Albert Tang Date: Tue, 24 Jun 2025 22:51:59 -0500 Subject: [PATCH 032/111] dre: Drop Android.mk Change-Id: Ia52d77b993f5923006271539d9c2827b9eee9aab --- Android.mk | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 Android.mk diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 26849b2..0000000 --- a/Android.mk +++ /dev/null @@ -1,11 +0,0 @@ -# -# Copyright (C) 2021-2024 The LineageOS Project -# -# SPDX-License-Identifier: Apache-2.0 -# - -LOCAL_PATH := $(call my-dir) - -ifeq ($(TARGET_DEVICE),dre) -include $(call all-makefiles-under,$(LOCAL_PATH)) -endif From 6da6d2617e6227c0de587e3a451c24b07940cd00 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 9 Aug 2025 11:09:53 +0200 Subject: [PATCH 033/111] dre: Remove vendor/lineage device framework matrix inclusion See: I78da6340f38b93fdc4c3694cb8f431f387d16c0d Change-Id: I0b9f527de50ca02082be9b92375559f4893b2688 --- BoardConfig.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 8b62c78..8486784 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -72,10 +72,9 @@ TARGET_SCREEN_DENSITY := 450 TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs # HIDL -DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ +DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \ hardware/oplus/vintf/device_framework_matrix.xml \ - hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \ - vendor/lineage/config/device_framework_matrix.xml + hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml From 343f3210149ed562ec4b946b8ecd82e13b8a4201 Mon Sep 17 00:00:00 2001 From: Nick Reuter Date: Sat, 15 Nov 2025 16:24:57 -0600 Subject: [PATCH 034/111] dre: Update from OOS 11.C.37 Change-Id: Ib6d64c998e3a5b5a66b87474fc3c629b78e13588 --- init/init_oplus.cpp | 4 ++-- lineage_dre.mk | 4 ++-- proprietary-files.txt | 42 +++++++++++++++++++++--------------------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/init/init_oplus.cpp b/init/init_oplus.cpp index f076184..d0855b8 100644 --- a/init/init_oplus.cpp +++ b/init/init_oplus.cpp @@ -11,8 +11,8 @@ using android::base::GetProperty; -constexpr const char* BUILD_DESCRIPTION = "OnePlusN200TMO-user 12 SKQ1.210216.001 R.1a8c53b_1-164cb1 release-keys"; -constexpr const char* BUILD_FINGERPRINT = "OnePlus/OnePlusN200TMO/OnePlusN200TMO:12/SKQ1.210216.001/R.1a8c53b_1-164cb1:user/release-keys"; +constexpr const char* BUILD_DESCRIPTION = "OnePlusN200TMO-user 12 SKQ1.210216.001 R.205d7fc_1-735f72 release-keys"; +constexpr const char* BUILD_FINGERPRINT = "OnePlus/OnePlusN200TMO/OnePlusN200TMO:12/SKQ1.210216.001/R.205d7fc_1-735f72:user/release-keys"; constexpr const char* RO_PROP_SOURCES[] = { nullptr, diff --git a/lineage_dre.mk b/lineage_dre.mk index 1dcc7e2..7c33394 100644 --- a/lineage_dre.mk +++ b/lineage_dre.mk @@ -34,8 +34,8 @@ PRODUCT_MODEL := DE2117 PRODUCT_GMS_CLIENTID_BASE := android-oneplus PRODUCT_BUILD_PROP_OVERRIDES += \ - BuildDesc="OnePlusN200-user 12 SKQ1.210216.001 R.1a8c53e-1-16457e release-keys" \ - BuildFingerprint=OnePlus/OnePlusN200/OnePlusN200:12/SKQ1.210216.001/R.1a8c53e-1-16457e:user/release-keys \ + BuildDesc="OnePlusN200-user 12 SKQ1.210216.001 R.205d809_1-735849 release-keys" \ + BuildFingerprint=OnePlus/OnePlusN200/OnePlusN200:12/SKQ1.210216.001/R.205d809_1-735849:user/release-keys \ DeviceName=OnePlusN200 \ DeviceProduct=OnePlusN200 \ SystemDevice=OnePlusN200 \ diff --git a/proprietary-files.txt b/proprietary-files.txt index 55b424a..ba02994 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,7 +1,7 @@ ## All proprietary files from this list, unless pinned and noted otherwise, ## are from CPH2467_14.0.0.1320(EX01). -# ACDB - from DE2117_11.C.34 +# ACDB - from DE2117_11.C.37 odm/etc/acdbdata/Audio_Parameter_Version.txt|5ca7048cb6c53d0af7193467e2e12ddd19d71fa9 odm/etc/acdbdata/Bluetooth_cal.acdb|3a151ca12899db9278c6795a9be0e03f4339367b odm/etc/acdbdata/General_cal.acdb|220a94d8de69f19a2368c6db3ec2a4b533fb61df @@ -100,7 +100,7 @@ vendor/lib64/libadsprpc.so odm/lib/lib_lvacfs.so odm/lib/liblvacfs_wrapper.so -# Audio LVIMFS - from DE2117_11.C.34 +# Audio LVIMFS - from DE2117_11.C.37 odm/etc/lvimfs_params/LVACFS_Configuration.txt|024b3814ee9d35b2954c253ae1a25311d4724902 odm/etc/lvimfs_params/LVIMFS_Calibration_2mic.dat|ae8a5e7c7ee1a036ebf19a93d0e4e6ad804421ed odm/etc/lvimfs_params/LVIMFS_Parameter_ID1_MIC_Normal.txt|b3ba0a1e4330ab2c06ed91935775d73410f95e75 @@ -166,7 +166,7 @@ vendor/lib64/libbluetooth_audio_session_qti_2_1.so|934500aa31fa1d88f72ce29f62f13 vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.0.so|6b49865f15b9f2ae1f049623018db08a0bdbc03a vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so|16af46f837b2b617dcf146ac478d08ea1a9800d1 -# Camera - from DE2117_11.C.34 +# Camera - from DE2117_11.C.37 odm/etc/camera/asd/class.dlc|0303c404d43f8aca151551cdf779fabb55738a84 odm/etc/camera/asd/detect.dlc|9a8c7dfa78b6cf8bc9f116f234b47c4384f1500a odm/etc/camera/ashdr/ncf_pack.ncf|1758fb709a0375c754c2e6f3a34c8093538956f7 @@ -697,8 +697,8 @@ vendor/lib64/camera/fdconfigpreview.bin|caf04e55d04ba717c8618faa125c1708efe44c1a vendor/lib64/camera/fdconfigpreviewlite.bin|e95052671b9eec7ff53b665482b7b85b7dac0c62 vendor/lib64/camera/fdconfigvideo.bin|c3303efadaa16495aee7e508a07f9000a435e8a2 vendor/lib64/camera/fdconfigvideolite.bin|2d4648c313fa28fb83272f39ad64fd3bd0ff826d -vendor/lib64/hw/camera.qcom.so|6d415d421c1a1c19c96b765009afd29b986c4f5a -vendor/lib64/hw/com.qti.chi.override.so|4d43f2de504bd143a117ddb3b2886d33c5a3bf22|292385a6a522d65a726c1d1b2cd5e18304256da5 +vendor/lib64/hw/camera.qcom.so|cc31f6e349cad62cbd3e067fc38547c90e685d4f +vendor/lib64/hw/com.qti.chi.override.so|9637ffe7bfaa2799b7cf86973f3e7d8fbfa3344b|5d0b99ca56af3b763357524d99bb551c48634e50 vendor/lib64/com.qti.chiusecaseselector.so|a35b657ea98415d110fb95c5b15066bb58dbdc34 vendor/lib64/com.qti.feature2.anchorsync.so|d17bc4f703021706c98d5418cb20eb5b707f6cc1 vendor/lib64/com.qti.feature2.demux.so|d35be36b8f793c0db5f748681633c11d155dd8b8 @@ -876,7 +876,7 @@ vendor/lib64/libcvp_common.so vendor/lib64/libcvpcpuRev_skel.so vendor/lib64/vendor.qti.hardware.cvp@1.0.so -# CVP firmware - from DE2117_11.C.34 +# CVP firmware - from DE2117_11.C.37 vendor/firmware/evass.b01|0ba927944b4ecb3160d10bf1fbdf8c0a24b4135d vendor/firmware/evass.b02|f9215f6edcdf711ed37d033dcc1af70bdcb358bd vendor/firmware/evass.b03|817d0f1aa1dd38a187de8ee0b92fa5d27bf2c700 @@ -999,8 +999,8 @@ vendor/lib64/libssd.so vendor/lib64/libtzdrmgenprov.so vendor/lib64/vendor.qti.hardware.qseecom@1.0.so -# Fingerprint - from DE2117_11.C.34 -odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service|c474de24c630610634eb974e7e9c6a26e0ffd4ee +# Fingerprint - from DE2117_11.C.37 +odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service|8ae1f13680191151058b40c69fa0f6f4ad593c86 odm/bin/init.oplus.fingerprints.sh|950befd6f64d4055bf47ab066a0a1e0080e6191e odm/etc/init/vendor.oplus.hardware.biometrics.fingerprint@2.1-service.rc|e4dc71dbcf48df8e4a5fbf9a14048698046cbe0b odm/etc/vintf/manifest/manifest_oplus_fingerprint.xml|78ca4f56ed1f5dd48c186718718fd9513629851e @@ -1070,12 +1070,12 @@ vendor/lib64/libkernelmanager.so vendor/lib64/libllvm-glnext.so vendor/lib64/libllvm-qcom.so -# Graphics (Adreno firmware) - from DE2117_11.C.34 +# Graphics (Adreno firmware) - from DE2117_11.C.37 vendor/firmware/a615_zap.b00|55c1a14a5699d05f796a982448711159f8208951 -vendor/firmware/a615_zap.b01|d0d60f0aaba8b507b19cae0e83a821dfc69b1a87 +vendor/firmware/a615_zap.b01|a753f53c8c7715aa0269b080a24c3c6ff0a59694 vendor/firmware/a615_zap.b02|4ae54047f9629f2470a5d58f3940c5eb51298b96 -vendor/firmware/a615_zap.elf|4b7a87b7124c93d48d1dcced587d86c23de2c2db -vendor/firmware/a615_zap.mdt|8128cbe0197787d1787437a2f5db45da3d81cda9 +vendor/firmware/a615_zap.elf|0d65f06baa2de5c9d22c57c5c1470e9fa9a4da11 +vendor/firmware/a615_zap.mdt|29777fb920fc871c04e4a0ac0ba07a853d386161 vendor/firmware/a619_gmu.bin|0c211ef8a3246d649a4ae52a926d128b61e3c264 vendor/firmware/a630_sqe.fw|3be171586a5600b8a0253a0e267d1eb96cd82290 vendor/firmware/a660_gmu.bin|7e23fae9ac6dfaf0219280c83e0086b8e97082b1 @@ -1269,19 +1269,19 @@ vendor/lib64/vendor.qti.hardware.iop@2.0.so # IPA firmware vendor/etc/init/ipa_fws.rc -# IPA firmware - from DE2117_11.C.34 +# IPA firmware - from DE2117_11.C.37 vendor/firmware/ipa_fws.b00|eb24330c9d96f1b75ae07968484734e4c2a59c75 -vendor/firmware/ipa_fws.b01|5d5d573396a732eedfd944d1f81f756d867d1c72 +vendor/firmware/ipa_fws.b01|c659c8afaaa27145c7d499564eee364028c73664 vendor/firmware/ipa_fws.b02|cd418e2434a5698bf7a2f8844171f1b2ddd4b57a vendor/firmware/ipa_fws.b03|c07cfef57f8f694b4cee41e78700614efbedf2bc vendor/firmware/ipa_fws.b04|7aa0ec649f20af523f21c6e19014987f86f18dff -vendor/firmware/ipa_fws.elf|39783ab86f99b7bf1d506682b59ff4071b1f135f -vendor/firmware/ipa_fws.mdt|0dccf48f1620e528a9bf3fc8929f83e09a09519b +vendor/firmware/ipa_fws.elf|9103334c1cc07d320cc4d80f912e0c2129dafbf2 +vendor/firmware/ipa_fws.mdt|59d3f76009592e29a4883fd3659b7fa9e853d4ae # IRQ balance vendor/bin/msm_irqbalance -# IRQ balance - from DE2117_11.C.34 +# IRQ balance - from DE2117_11.C.37 vendor/etc/msm_irqbalance.conf|1c1c2c568953546f67ce24c497ca5bd58a581cf8|298dc27a89520ed92b3c99ef0f95209e4b77279b # Kernel - from Fogos U1UGS34.23-110-2-1 @@ -1351,7 +1351,7 @@ vendor/lib64/libmmosal.so;MODULE_SUFFIX=_vendor # Native public libraries vendor/etc/public.libraries.txt -# NFC - from DE2117_11.C.34 +# NFC - from DE2117_11.C.37 odm/etc/nfc/libnfc-nci.conf_20818:vendor/etc/libnfc-nci.conf|ec1d66cb7fb1a03a99270f9b893de7ee586f7972|af0df368c0edd9272ec1265f7144d4b09e20c41b odm/etc/nfc/libnfc-st21h_conf.txt_20818:vendor/etc/libnfc-st21h_conf.txt|f69535ba7cc30b8fc7f30d7db895233c77430ace odm/etc/nfc/nfc_conf_ref|d3f90262a5762117e519dd55361b8d7742bfb764 @@ -1592,7 +1592,7 @@ vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.1.so vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.2.so vendor/lib64/vendor.qti.hardware.radio.uim_remote_server@1.0.so -# Sensors - from DE2117_11.C.34 +# Sensors - from DE2117_11.C.37 odm/etc/sensor/config/alsps.json|637ccbc1d44b97e52c25cf89c38eb23add3e7cfc odm/etc/sensor/config/holi_alsps.json|373fcdf0c181fc4857766172a85907a1b5a42867 odm/etc/sensor/config/holi_bmi26x_0.json|9b32a305c4d9e6b64e7c31bac128adcda83c2ff8 @@ -1796,7 +1796,7 @@ vendor/bin/time_daemon vendor/etc/init/init.time_daemon.rc vendor/lib64/libtime_genoff.so -# Touchscreen firmware - from DE2117_11.C.34 +# Touchscreen firmware - from DE2117_11.C.37 odm/firmware/tp/133144/FW_NF_ILI7807S_TIANMA.img;SYMLINK=odm/firmware/tp/133180/FW_NF_ILI7807S_TIANMA.img|57128b45ffd464032b07b5bb34b70b760014ac28 odm/firmware/tp/133144/FW_NF_ILI7807S_TIANMA_FAE.img;SYMLINK=odm/firmware/tp/133180/FW_NF_ILI7807S_TIANMA_FAE.img|a892bebde4c7e5bd1cf1b3925ca8cedba69c401b odm/firmware/tp/133144/FW_NF_NT36672C_DSJM.img;SYMLINK=odm/firmware/tp/133180/FW_NF_NT36672C_DSJM.img|8f9770d361f9db1f99cc6a00dad189e54a269329 @@ -1830,7 +1830,7 @@ vendor/lib64/vendor.qti.hardware.vpp@1.2.so vendor/lib64/vendor.qti.hardware.vpp@1.3.so vendor/lib64/vendor.qti.hardware.vpp@2.0.so -# VPU firmware - from DE2117_11.C.34 +# VPU firmware - from DE2117_11.C.37 vendor/firmware/vpu20_4v.b01|18d7f096d032f45d2735e49b1753c6ea71c975ac vendor/firmware/vpu20_4v.b02|f98b37380cc5d3b72541f5ad19d4eb465540e1eb vendor/firmware/vpu20_4v.b03|7772b18b16e520641e8051fd6284384e9b0e1939 From 5a2e089dda4a64deb62d4f93156afea1be701c1e Mon Sep 17 00:00:00 2001 From: Edgar Arriaga Date: Thu, 9 May 2024 23:56:52 +0000 Subject: [PATCH 035/111] dre: overlay: Set default pin amount for home app Bug: 288900050 Test: dumpsys pinner Flag: EXEMPT refactor Change-Id: Ieed912786ce51f420da9b0e96ea5d93c22244176 --- overlay/OPlusFrameworksResTarget/res/values/config.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlay/OPlusFrameworksResTarget/res/values/config.xml b/overlay/OPlusFrameworksResTarget/res/values/config.xml index 1a10026..e49f0a8 100644 --- a/overlay/OPlusFrameworksResTarget/res/values/config.xml +++ b/overlay/OPlusFrameworksResTarget/res/values/config.xml @@ -376,8 +376,8 @@ true - - true + + 6291456 - - true - 4 - From ede06c2b54bd2a242253ddca6dfe923fc7c47922 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Sat, 27 Dec 2025 16:57:32 +0200 Subject: [PATCH 047/111] dre: Remove unused perf LM blobs Change-Id: I26c06131581c1e4b7464fadb699c36889cfb80ad --- proprietary-files.txt | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 9253259..511a845 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1359,6 +1359,10 @@ odm/etc/nfc/nfc_fw_ref|525f3232cbf9ef8d26e89fcc6bc42b9eee03f92c odm/etc/nfc/st21nfc_fw.bin_st21h:vendor/firmware/st21nfc_fw.bin|3375e15716e356a2580e4c8828833f442669e586 odm/etc/nfc/st21nfc_fw7.bin_st21h:vendor/firmware/st21nfc_fw7.bin|e857d4139163e8a16ae9d0b616e731d3441deda4 +# PASR +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 @@ -1383,24 +1387,6 @@ 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/libskewknob.so - -# Perf LM -vendor/etc/lm/AdaptLaunchFeature.xml -vendor/etc/lm/AppClassifierFeature.xml -vendor/etc/lm/GameOptimizationFeature.xml -vendor/etc/lm/sPLHFeature.xml -vendor/lib64/libadaptlaunch.so -vendor/lib64/libappclassifier.so -vendor/lib64/libgameoptfeature.so -vendor/lib64/liblmutils-ns.so -vendor/lib64/libmemperfd.so -vendor/lib64/libmeters-ns.so -vendor/lib64/libsplh.so -vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so -vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so -vendor/lib64/vendor.qti.power.pasrmanager@1.0.so # Power-off alarm vendor/bin/hw/vendor.qti.hardware.alarm@1.0-service From 9d105c0013d688a32183937b262ac2049c4c53f1 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 5 Jul 2018 21:04:11 +0300 Subject: [PATCH 048/111] dre: Remove machine learning blobs * liblearningmodule loading is guarded under a debug prop in qti perf HAL and libmeters is a liblearningmodule dependency Change-Id: I7497b7c286c3ab6a6aeea908cf38863b0c60d757 --- proprietary-files.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 511a845..daf379a 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1379,8 +1379,6 @@ vendor/etc/perf/perfconfigstore.xml vendor/etc/perf/targetconfig.xml vendor/etc/perf/targetresourceconfigs.xml vendor/etc/powerhint.xml -vendor/lib64/liblearningmodule.so -vendor/lib64/libmeters.so vendor/lib64/libperfconfig.so vendor/lib64/libperfgluelayer.so vendor/lib64/libperfioctl.so From 8f634d4565674f050afd7bf3c33e43c9a9283d57 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 11 Dec 2025 13:30:36 +0200 Subject: [PATCH 049/111] dre: Patch some blobs to depend on libtinyxml2-v34.so libtinyxml2 10.1.0 update which landed in BP4A contains ABI incompatible changes which cause runtime crashes. Change-Id: Icc67da5f754b0bb30dce6192b1e520fdf1349ac5 --- extract-files.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extract-files.py b/extract-files.py index 5dbc3f5..16a1e43 100755 --- a/extract-files.py +++ b/extract-files.py @@ -101,6 +101,11 @@ blob_fixups: blob_fixups_user_type = { .regex_replace('SRGB', 'sRGB'), 'vendor/lib64/hw/com.qti.chi.override.so': blob_fixup() .add_needed('libcamera_metadata_shim.so'), + ( + 'vendor/lib64/libdpps.so', + 'vendor/lib64/libsnapdragoncolor-manager.so', + ): blob_fixup() + .replace_needed('libtinyxml2.so', 'libtinyxml2-v34.so'), } # fmt: skip module = ExtractUtilsModule( From 73379e9552f812e11d6f435407fb13b38653579a Mon Sep 17 00:00:00 2001 From: basamaryan Date: Tue, 8 Jul 2025 15:51:28 -0400 Subject: [PATCH 050/111] dre: Override kernel BPF version Change-Id: I3c581f3120b6258b3b45020c5ba12f6bf5b0ee27 --- product.prop | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product.prop b/product.prop index eeb2ac4..3b1dffa 100644 --- a/product.prop +++ b/product.prop @@ -5,6 +5,9 @@ audio.offload.min.duration.secs=30 audio.offload.video=true ro.af.client_heap_size_kbyte=7168 +# eBPF +ro.bpf.kver_override=5.10.239 + # GMS ro.opa.device_model_id=ga-oplus-skill-os121-211011 From ff2ea73ddfaca5cf198f0c2e6bdcf01f162849e1 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 21 Jan 2026 22:22:38 +0000 Subject: [PATCH 051/111] dre: Create standalone RRO for OplusDoze Change-Id: Ic59cae6c8db3b0b051365692bf1edc5e6efee3c7 --- device.mk | 3 ++- overlay/OplusDozeResTarget/Android.bp | 9 +++++++++ overlay/OplusDozeResTarget/AndroidManifest.xml | 11 +++++++++++ .../OplusDozeResTarget}/res/values/config.xml | 2 +- 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 overlay/OplusDozeResTarget/Android.bp create mode 100644 overlay/OplusDozeResTarget/AndroidManifest.xml rename {overlay-lineage/hardware/oplus/doze => overlay/OplusDozeResTarget}/res/values/config.xml (86%) diff --git a/device.mk b/device.mk index cc2e5b2..c4f2d2c 100644 --- a/device.mk +++ b/device.mk @@ -132,7 +132,8 @@ PRODUCT_COPY_FILES += \ # Doze PRODUCT_PACKAGES += \ - OplusDoze + OplusDoze \ + OplusDozeResTarget # DRM PRODUCT_PACKAGES += \ diff --git a/overlay/OplusDozeResTarget/Android.bp b/overlay/OplusDozeResTarget/Android.bp new file mode 100644 index 0000000..6410eb8 --- /dev/null +++ b/overlay/OplusDozeResTarget/Android.bp @@ -0,0 +1,9 @@ +// +// SPDX-FileCopyrightText: The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "OplusDozeResTarget", + system_ext_specific: true, +} diff --git a/overlay/OplusDozeResTarget/AndroidManifest.xml b/overlay/OplusDozeResTarget/AndroidManifest.xml new file mode 100644 index 0000000..84aae14 --- /dev/null +++ b/overlay/OplusDozeResTarget/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + diff --git a/overlay-lineage/hardware/oplus/doze/res/values/config.xml b/overlay/OplusDozeResTarget/res/values/config.xml similarity index 86% rename from overlay-lineage/hardware/oplus/doze/res/values/config.xml rename to overlay/OplusDozeResTarget/res/values/config.xml index b9c1fef..50c067b 100644 --- a/overlay-lineage/hardware/oplus/doze/res/values/config.xml +++ b/overlay/OplusDozeResTarget/res/values/config.xml @@ -1,6 +1,6 @@ From aa1b1e94eef95aef03873afaedfec50b521a4a30 Mon Sep 17 00:00:00 2001 From: me-cafebabe Date: Tue, 9 Dec 2025 10:42:31 +0100 Subject: [PATCH 052/111] dre: overlay: Disable high performance transitions Change-Id: I70c593a8efe1499f8e0917b4e80652b7f3d71198 --- overlay/OPlusFrameworksResTarget/res/values/config.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overlay/OPlusFrameworksResTarget/res/values/config.xml b/overlay/OPlusFrameworksResTarget/res/values/config.xml index e49f0a8..9a5f3f2 100644 --- a/overlay/OPlusFrameworksResTarget/res/values/config.xml +++ b/overlay/OPlusFrameworksResTarget/res/values/config.xml @@ -514,4 +514,8 @@ headset output is compliant to EN 60950 requirements for portable music players. --> -1650 + + false + From a160445e5118ad7a23ee1cbf8015f1c0f3069e7a Mon Sep 17 00:00:00 2001 From: Penguin766 Date: Fri, 19 Dec 2025 16:15:06 +0100 Subject: [PATCH 053/111] dre: overlay: Reduce blur radius Change-Id: Id6339df82156099ca14da684f236931b3ecf51ce Signed-off-by: Cyber Knight --- device.mk | 1 + overlay/Launcher3ResTarget/Android.bp | 9 +++++++++ overlay/Launcher3ResTarget/AndroidManifest.xml | 13 +++++++++++++ overlay/Launcher3ResTarget/res/values/config.xml | 11 +++++++++++ .../OPlusSystemUIResTarget/res/values/dimens.xml | 3 +++ 5 files changed, 37 insertions(+) create mode 100644 overlay/Launcher3ResTarget/Android.bp create mode 100644 overlay/Launcher3ResTarget/AndroidManifest.xml create mode 100644 overlay/Launcher3ResTarget/res/values/config.xml diff --git a/device.mk b/device.mk index c4f2d2c..5fefd4b 100644 --- a/device.mk +++ b/device.mk @@ -244,6 +244,7 @@ PRODUCT_ENFORCE_RRO_TARGETS := * PRODUCT_PACKAGES += \ CarrierConfigResCommon \ FrameworksResTarget \ + Launcher3ResTarget \ NcmTetheringOverlay \ OPlusFrameworksResTarget \ OPlusSettingsProviderResTarget \ diff --git a/overlay/Launcher3ResTarget/Android.bp b/overlay/Launcher3ResTarget/Android.bp new file mode 100644 index 0000000..f7d3242 --- /dev/null +++ b/overlay/Launcher3ResTarget/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2022 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "Launcher3ResTarget", + product_specific: true, +} diff --git a/overlay/Launcher3ResTarget/AndroidManifest.xml b/overlay/Launcher3ResTarget/AndroidManifest.xml new file mode 100644 index 0000000..55363cc --- /dev/null +++ b/overlay/Launcher3ResTarget/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/overlay/Launcher3ResTarget/res/values/config.xml b/overlay/Launcher3ResTarget/res/values/config.xml new file mode 100644 index 0000000..c693b9e --- /dev/null +++ b/overlay/Launcher3ResTarget/res/values/config.xml @@ -0,0 +1,11 @@ + + + + + 11 + 15dp + + diff --git a/overlay/OPlusSystemUIResTarget/res/values/dimens.xml b/overlay/OPlusSystemUIResTarget/res/values/dimens.xml index 9a133ff..dfadffc 100644 --- a/overlay/OPlusSystemUIResTarget/res/values/dimens.xml +++ b/overlay/OPlusSystemUIResTarget/res/values/dimens.xml @@ -53,4 +53,7 @@ 930px + + + 17dp From c677fe604a42f879dcb5ef84cf42d17d0f073bf9 Mon Sep 17 00:00:00 2001 From: basamaryan Date: Sun, 14 Dec 2025 18:59:05 -0800 Subject: [PATCH 054/111] dre: overlay-lineage: Disable blurs by default Change-Id: Ia323bb8f66e3515bdf16ff3a14c919b8bd859eba --- .../LineageSettingsProvider/res/values/defaults.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/overlay-lineage/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml b/overlay-lineage/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml index ea2f405..a8f6407 100644 --- a/overlay-lineage/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml +++ b/overlay-lineage/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml @@ -1,10 +1,13 @@ true + + + 1 From ac5ca759976c65486b76c4c473643bd88cf190db Mon Sep 17 00:00:00 2001 From: tangrobin Date: Mon, 8 Jun 2020 23:11:12 +0800 Subject: [PATCH 055/111] dre: Use phase offsets as duration In Android R, the SurfaceFlinger calculate phase offsets based on duration. Adopt the new way of specifying phase offsets to SurfaceFlinger. Bug: 158464992 Test: scrolling, app launching/closing, playing video Change-Id: Ia717f5c0075b6adaedaf20dd6be689737edc1415 --- vendor.prop | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vendor.prop b/vendor.prop index b1efb3a..9ceb987 100644 --- a/vendor.prop +++ b/vendor.prop @@ -119,12 +119,15 @@ vendor.gatekeeper.disable_spu=true # Graphics debug.sf.disable_client_composition_cache=1 +debug.sf.early.sf.duration=21000000 +debug.sf.early.app.duration=16500000 +debug.sf.earlyGl.app.duration=21000000 +debug.sf.earlyGl.sf.duration=13500000 debug.sf.enable_gl_backpressure=1 -debug.sf.high_fps_early_gl_phase_offset_ns=-2000000 -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=-2000000 debug.sf.latch_unsignaled=1 +debug.sf.late.app.duration=20500000 +debug.sf.late.sf.duration=10500000 +debug.sf.use_phase_offsets_as_durations=1 ro.hardware.egl=adreno ro.hardware.vulkan=adreno ro.opengles.version=196610 From 753363ba07e6bc18d374e8d38b8d205dabec17ac Mon Sep 17 00:00:00 2001 From: basamaryan Date: Tue, 16 Dec 2025 17:11:54 -0800 Subject: [PATCH 056/111] dre: Update work durations from kalama Change-Id: Ida3f23e076b87a86ed2291a5b3aa1a6738990b12 --- vendor.prop | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vendor.prop b/vendor.prop index 9ceb987..48816e7 100644 --- a/vendor.prop +++ b/vendor.prop @@ -119,14 +119,14 @@ vendor.gatekeeper.disable_spu=true # Graphics debug.sf.disable_client_composition_cache=1 -debug.sf.early.sf.duration=21000000 -debug.sf.early.app.duration=16500000 -debug.sf.earlyGl.app.duration=21000000 -debug.sf.earlyGl.sf.duration=13500000 +debug.sf.early.sf.duration=15666666 +debug.sf.early.app.duration=13666666 +debug.sf.earlyGl.app.duration=13666666 +debug.sf.earlyGl.sf.duration=15666666 debug.sf.enable_gl_backpressure=1 debug.sf.latch_unsignaled=1 -debug.sf.late.app.duration=20500000 -debug.sf.late.sf.duration=10500000 +debug.sf.late.app.duration=13666666 +debug.sf.late.sf.duration=15666666 debug.sf.use_phase_offsets_as_durations=1 ro.hardware.egl=adreno ro.hardware.vulkan=adreno From 24d5dabf080dbe4b9c9e4556025812c9602b93a8 Mon Sep 17 00:00:00 2001 From: quic_swarbu Date: Thu, 23 May 2024 12:26:28 +0530 Subject: [PATCH 057/111] dre: display: Disable the property debug.sf.enable_gl_backpressure Change-Id: Ib328ee094d7c164b50007703ab7610661c2ec017 --- vendor.prop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor.prop b/vendor.prop index 48816e7..ed6731b 100644 --- a/vendor.prop +++ b/vendor.prop @@ -123,7 +123,7 @@ debug.sf.early.sf.duration=15666666 debug.sf.early.app.duration=13666666 debug.sf.earlyGl.app.duration=13666666 debug.sf.earlyGl.sf.duration=15666666 -debug.sf.enable_gl_backpressure=1 +debug.sf.enable_gl_backpressure=0 debug.sf.latch_unsignaled=1 debug.sf.late.app.duration=13666666 debug.sf.late.sf.duration=15666666 From b4bce048e3ccc3b91a5bdaf5e82b6a8742dc6174 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 25 Jan 2026 19:47:35 +0100 Subject: [PATCH 058/111] dre: Add xbl_config_arb_check postinstall for /odm Change-Id: I9e2f6e1063aa6414790a11b08321df4b0fe5b13b --- device.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 5fefd4b..4a71304 100644 --- a/device.mk +++ b/device.mk @@ -26,9 +26,16 @@ AB_OTA_POSTINSTALL_CONFIG += \ FILESYSTEM_TYPE_vendor=erofs \ POSTINSTALL_OPTIONAL_vendor=true +AB_OTA_POSTINSTALL_CONFIG += \ + RUN_POSTINSTALL_odm=true \ + POSTINSTALL_PATH_odm=bin/xbl_config_arb_check \ + FILESYSTEM_TYPE_odm=erofs \ + POSTINSTALL_OPTIONAL_odm=false + PRODUCT_PACKAGES += \ checkpoint_gc \ - otapreopt_script + otapreopt_script \ + xbl_config_arb_check # Audio PRODUCT_PACKAGES += \ From 3e4875b2b9b72fa243312790458e2516901068a2 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 10 Mar 2026 09:12:28 +0100 Subject: [PATCH 059/111] dre: Remove fwk-detect lib from PRODUCT_PACKAGES See: Iac75d83e6bc46c137c328a2365e6701c210bfe7a Change-Id: I6b8571e81e59f438e34b76823f47ff024ec33dc6 --- device.mk | 4 ---- 1 file changed, 4 deletions(-) diff --git a/device.mk b/device.mk index 4a71304..b8accfe 100644 --- a/device.mk +++ b/device.mk @@ -277,10 +277,6 @@ PRODUCT_PACKAGES += \ $(call soong_config_set,qtipower,tap_to_wake_node,/proc/touchpanel/double_tap_enable) -# QTI fwk-detect -PRODUCT_PACKAGES += \ - libvndfwk_detect_jni.qti.vendor # Needed by CNE app - # Sensors PRODUCT_PACKAGES += \ android.hardware.sensors-service.multihal \ From 17dcd18408fca5603cb9802945e5dc8026041729 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Sun, 1 Oct 2023 23:21:44 +0530 Subject: [PATCH 060/111] dre: Remove QTI perfd Bug: 69270928 Test: Build and boot device and test camera Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4 --- extract-files.py | 3 +++ init/init.qcom.rc | 11 ----------- proprietary-files.txt | 17 +---------------- vintf/manifest.xml | 18 ------------------ 4 files changed, 4 insertions(+), 45 deletions(-) diff --git a/extract-files.py b/extract-files.py index 16a1e43..965b53b 100755 --- a/extract-files.py +++ b/extract-files.py @@ -20,6 +20,7 @@ from extract_utils.main import ( namespace_imports = [ 'device/oneplus/dre', 'hardware/oplus', + 'hardware/qcom-caf/common/libqti-perfd-client', 'hardware/qcom-caf/sm8350', 'hardware/qcom-caf/wlan', 'vendor/qcom/opensource/commonsys-intf/display', @@ -93,6 +94,8 @@ blob_fixups: blob_fixups_user_type = { .regex_replace('NFC_DEBUG_ENABLED=1', 'NFC_DEBUG_ENABLED=0'), 'vendor/etc/msm_irqbalance.conf': blob_fixup() .regex_replace('IGNORED_IRQ=19,21,38$', 'IGNORED_IRQ=19,21,38,209,218'), + 'vendor/etc/public.libraries.txt': blob_fixup() + .regex_replace('libqti-perfd-client.so\n', ''), 'vendor/etc/qdcm_calib_data_nt36672c_tm_fhd_plus_video_mode_dsi_panel.xml': blob_fixup() .regex_replace('FeatureType="2" Disable="false"', 'FeatureType="2" Disable="true"') .regex_replace('FeatureType="7" Disable="false"', 'FeatureType="7" Disable="true"') diff --git a/init/init.qcom.rc b/init/init.qcom.rc index 81cf423..d0e39be 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -226,12 +226,6 @@ on post-fs-data # Create directory used by display clients mkdir /data/vendor/display 0770 system graphics - # Change lm related dirs - mkdir /data/vendor/lm 0700 root root - - # Create directory used by powermodule - mkdir /data/vendor/pwr 0700 root root - # Create directory used by media clients mkdir /data/vendor/media 0770 mediacodec media @@ -324,11 +318,6 @@ on post-fs-data mkdir /data/vendor/fm 0770 system system chmod 0770 /data/vendor/fm - #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 #Create IOP deamon related dirs diff --git a/proprietary-files.txt b/proprietary-files.txt index daf379a..eda7ade 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1368,23 +1368,8 @@ vendor/bin/pm-proxy vendor/bin/pm-service vendor/lib64/libperipheral_client.so -# Perf +# Perf (Oplus) odm/lib64/vendor.oplus.hardware.performance-V1-ndk_platform.so -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/commonsysnodesconfigs.xml -vendor/etc/perf/perfboostsconfig.xml -vendor/etc/perf/perfconfigstore.xml -vendor/etc/perf/targetconfig.xml -vendor/etc/perf/targetresourceconfigs.xml -vendor/etc/powerhint.xml -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 # Power-off alarm vendor/bin/hw/vendor.qti.hardware.alarm@1.0-service diff --git a/vintf/manifest.xml b/vintf/manifest.xml index fd2845a..b57fd2b 100644 --- a/vintf/manifest.xml +++ b/vintf/manifest.xml @@ -281,15 +281,6 @@ MwqemAdapter - - vendor.qti.hardware.perf - hwbinder - 2.2 - - IPerf - default - - vendor.qti.hardware.qccvndhal hwbinder @@ -487,14 +478,5 @@ imsrtpservice - - vendor.qti.qspmhal - hwbinder - 1.0 - - IQspmhal - default - - From ddcc77884023e7f90416e2cc9118f095425b9a2a Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 1 Oct 2023 23:23:33 +0530 Subject: [PATCH 061/111] dre: init: Drop I/O prefetcher This depends on the already removed QTI perf stack. Change-Id: Ibc5a9616d65e716b8f85184d7d85968e0280ee1d --- init/init.qcom.rc | 10 ---------- proprietary-files.txt | 8 -------- 2 files changed, 18 deletions(-) diff --git a/init/init.qcom.rc b/init/init.qcom.rc index d0e39be..fb94ed4 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -320,9 +320,6 @@ on post-fs-data mkdir /data/vendor/secure_element 0777 system system - #Create IOP deamon related dirs - mkdir /data/vendor/iop 0700 root system - # Mark the copy complete flag to not completed write /data/vendor/radio/copy_complete 0 chown radio radio /data/vendor/radio/copy_complete @@ -374,13 +371,6 @@ service nqnfcinfo /system/vendor/bin/nqnfcinfo user system oneshot -service iop /system/vendor/bin/iop - class main - user root - group root - disabled - socket iop seqpacket 0666 root system - service qcomsysd /system/vendor/bin/qcom-system-daemon class main user root diff --git a/proprietary-files.txt b/proprietary-files.txt index eda7ade..8a49109 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1258,14 +1258,6 @@ vendor/lib64/vendor.qti.ims.rcsuce@1.2.so vendor/lib64/vendor.qti.imsrtpservice@3.0-service-Impl.so vendor/lib64/vendor.qti.imsrtpservice@3.0.so;MODULE_SUFFIX=_vendor -# IO prefetcher -vendor/bin/hw/vendor.qti.hardware.iop@2.0-service -vendor/etc/init/vendor.qti.hardware.iop@2.0-service.rc -vendor/lib64/libqti-iopd-client.so -vendor/lib64/libqti-iopd.so -vendor/lib64/vendor.qti.hardware.iop@1.0.so -vendor/lib64/vendor.qti.hardware.iop@2.0.so - # IPA firmware vendor/etc/init/ipa_fws.rc From 9cf9eb1e86ab2014aee9f3631cbb4f791f78ab9a Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 18 Jul 2024 17:50:29 +0530 Subject: [PATCH 062/111] dre: Use common libqti-perfd-client and power-libperfmgr Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd --- device.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/device.mk b/device.mk index b8accfe..18ce79b 100644 --- a/device.mk +++ b/device.mk @@ -273,9 +273,8 @@ PRODUCT_COPY_FILES += \ # Power PRODUCT_PACKAGES += \ - android.hardware.power-service-qti - -$(call soong_config_set,qtipower,tap_to_wake_node,/proc/touchpanel/double_tap_enable) + android.hardware.power-service.lineage-libperfmgr \ + libqti-perfd-client # Sensors PRODUCT_PACKAGES += \ @@ -299,7 +298,9 @@ PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL) # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) \ - hardware/oplus + hardware/oplus \ + hardware/lineage/interfaces/power-libperfmgr \ + hardware/qcom-caf/common/libqti-perfd-client # Storage $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) From 599fc8c2c54b31d66b6a5cfff95768af58666f26 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 14 Jun 2024 19:19:10 +0530 Subject: [PATCH 063/111] dre: Enable powerhint parsing after boot completion Change-Id: Ie065f234bfd949264b962bae80e400a446f65b80 --- init/init.oplus.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/init.oplus.rc b/init/init.oplus.rc index 786b50d..5d5069f 100644 --- a/init/init.oplus.rc +++ b/init/init.oplus.rc @@ -44,6 +44,8 @@ on property:sys.boot_completed=1 copy /vendor/etc/Oppo_QC_LTM_Commercial_SM8250_2020_01_15.pfm /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm chmod 0600 /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm chown system system /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-1186717196.pfm + # Enable PowerHAL hint processing + setprop vendor.powerhal.init 1 on property:vendor.post_boot.parsed=1 # IRQ Tuning From 599d267a2c10d4ca9a013664e7a13714a680d97f Mon Sep 17 00:00:00 2001 From: Subhajeet Muhuri Date: Mon, 2 Oct 2023 09:15:08 +0530 Subject: [PATCH 064/111] dre: Include hardware/google/interfaces and hardware/google/pixel * Required by power-libperfmgr Change-Id: I4053938614be26c7066ea83d97955739f39b4144 --- Android.bp | 4 ++++ device.mk | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Android.bp b/Android.bp index 09b90c7..a419489 100644 --- a/Android.bp +++ b/Android.bp @@ -4,6 +4,10 @@ // soong_namespace { + imports: [ + "hardware/google/interfaces", + "hardware/google/pixel" + ], } install_symlink { diff --git a/device.mk b/device.mk index 18ce79b..9f969ff 100644 --- a/device.mk +++ b/device.mk @@ -298,6 +298,8 @@ PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL) # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) \ + hardware/google/interfaces \ + hardware/google/pixel \ hardware/oplus \ hardware/lineage/interfaces/power-libperfmgr \ hardware/qcom-caf/common/libqti-perfd-client From f0ac9ffd8a92f4254a1e1e0b01767659c3e20408 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Fri, 24 Nov 2023 19:08:51 +0530 Subject: [PATCH 065/111] dre: Import and adapt powerhint from redfin * From redfin-user-13-TQ3A.230901.001-10750268-release-keys Change-Id: I923c1adf70d035c9def0032ccf29530ce92ebe66 --- configs/powerhint.json | 411 +++++++++++++++++++++++++++++++++++++++++ device.mk | 3 + 2 files changed, 414 insertions(+) create mode 100644 configs/powerhint.json diff --git a/configs/powerhint.json b/configs/powerhint.json new file mode 100644 index 0000000..c0d5e98 --- /dev/null +++ b/configs/powerhint.json @@ -0,0 +1,411 @@ +{ + "Nodes": [ + { + "Name": "CPULittleClusterMaxFreq", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", + "Values": [ + "9999999", + "1708800", + "1651200", + "1516800" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "CPULittleClusterMinFreq", + "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq", + "Values": [ + "9999999", + "1324800", + "1113600", + "691200" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBigClusterMaxFreq", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq", + "Values": [ + "9999999", + "2054400", + "1900800", + "1516800" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "CPUBigClusterMinFreq", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq", + "Values": [ + "9999999", + "1651200", + "691200", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "GPUMaxFreq", + "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", + "Values": [ + "840000000", + "650000000", + "266000000" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "GPUMinFreq", + "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq", + "Values": [ + "650000000", + "490000000", + "266000000" + ], + "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", + "80" + ], + "ResetOnInit": true + }, + { + "Name": "TASchedtuneBoost", + "Path": "/dev/stune/top-app/schedtune.boost", + "Values": [ + "50", + "10" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBWHystTriggerCount", + "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_trigger_count", + "Values": [ + "0", + "3" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBWHistMemory", + "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hist_memory", + "Values": [ + "0", + "20" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBWHystLength", + "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_length", + "Values": [ + "0", + "10" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBWSampleMs", + "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/sample_ms", + "Values": [ + "10", + "4" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBWMinFreq", + "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq", + "Values": [ + "7980", + "5931", + "3879", + "762" + ], + "ResetOnInit": true + }, + { + "Name": "L3LittleClusterMinFreq", + "Path": "/sys/class/devfreq/fd90100.qcom,cpu0-cpu-l3-lat/min_freq", + "Values": [ + "1497600000", + "300000000" + ], + "ResetOnInit": true + }, + { + "Name": "L3BigClusterMinFreq", + "Path": "/sys/class/devfreq/fd90100.qcom,cpu6-cpu-l3-lat/min_freq", + "Values": [ + "1497600000", + "300000000" + ], + "ResetOnInit": true + }, + { + "Name": "PMQoSCpuDmaLatency", + "Path": "/dev/cpu_dma_latency", + "Values": [ + "44", + "100" + ], + "HoldFd": true + }, + { + "Name": "SchedBoost", + "Path": "/proc/sys/kernel/sched_boost", + "Values": [ + "1", + "0" + ], + "ResetOnInit": true + }, + { + "Name": "PowerHALMainState", + "Path": "vendor.powerhal.state", + "Values": [ + "SUSTAINED_PERFORMANCE", + "" + ], + "Type": "Property" + }, + { + "Name": "PowerHALAudioState", + "Path": "vendor.powerhal.audio", + "Values": [ + "AUDIO_STREAMING_LOW_LATENCY", + "" + ], + "Type": "Property" + }, + { + "Name": "PowerHALRenderingState", + "Path": "vendor.powerhal.rendering", + "Values": [ + "EXPENSIVE_RENDERING", + "" + ], + "Type": "Property" + } + ], + "Actions": [ + { + "PowerHint": "SUSTAINED_PERFORMANCE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1516800" + }, + { + "PowerHint": "SUSTAINED_PERFORMANCE", + "Node": "PowerHALMainState", + "Duration": 0, + "Value": "SUSTAINED_PERFORMANCE" + }, + { + "PowerHint": "SUSTAINED_PERFORMANCE", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1651200" + }, + { + "PowerHint": "SUSTAINED_PERFORMANCE", + "Node": "GPUMaxFreq", + "Duration": 0, + "Value": "650000000" + }, + { + "PowerHint": "INTERACTION", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "1651200" + }, + { + "PowerHint": "INTERACTION", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "1113600" + }, + { + "PowerHint": "INTERACTION", + "Node": "TASchedtuneBoost", + "Duration": 0, + "Value": "50" + }, + { + "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": "5931" + }, + { + "PowerHint": "LAUNCH", + "Node": "SchedBoost", + "Duration": 5000, + "Value": "1" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUBigClusterMaxFreq", + "Duration": 5000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUBigClusterMinFreq", + "Duration": 5000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPULittleClusterMinFreq", + "Duration": 5000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH", + "Node": "PMQoSCpuDmaLatency", + "Duration": 5000, + "Value": "44" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUBWHystTriggerCount", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUBWHystLength", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUBWHistMemory", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUBWMinFreq", + "Duration": 5000, + "Value": "7980" + }, + { + "PowerHint": "LAUNCH", + "Node": "GPUForceClkOn", + "Duration": 5000, + "Value": "1" + }, + { + "PowerHint": "LAUNCH", + "Node": "GPUForceRailOn", + "Duration": 5000, + "Value": "1" + }, + { + "PowerHint": "LAUNCH", + "Node": "GPUIdleTimer", + "Duration": 5000, + "Value": "10000" + }, + { + "PowerHint": "LAUNCH", + "Node": "L3LittleClusterMinFreq", + "Duration": 5000, + "Value": "1497600000" + }, + { + "PowerHint": "LAUNCH", + "Node": "L3BigClusterMinFreq", + "Duration": 5000, + "Value": "1497600000" + }, + { + "PowerHint": "AUDIO_LAUNCH", + "Node": "CPUBigClusterMinFreq", + "Duration": 2000, + "Value": "1651200" + }, + { + "PowerHint": "AUDIO_LAUNCH", + "Node": "PMQoSCpuDmaLatency", + "Duration": 2000, + "Value": "44" + }, + { + "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", + "Node": "PowerHALAudioState", + "Duration": 0, + "Value": "AUDIO_STREAMING_LOW_LATENCY" + }, + { + "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", + "Node": "PMQoSCpuDmaLatency", + "Duration": 0, + "Value": "44" + }, + { + "PowerHint": "EXPENSIVE_RENDERING", + "Node": "PowerHALRenderingState", + "Duration": 0, + "Value": "EXPENSIVE_RENDERING" + }, + { + "PowerHint": "EXPENSIVE_RENDERING", + "Node": "GPUMinFreq", + "Duration": 0, + "Value": "650000000" + }, + { + "PowerHint": "EXPENSIVE_RENDERING", + "Node": "GPUMaxFreq", + "Duration": 0, + "Value": "840000000" + } + ] +} diff --git a/device.mk b/device.mk index 9f969ff..88beb77 100644 --- a/device.mk +++ b/device.mk @@ -276,6 +276,9 @@ PRODUCT_PACKAGES += \ android.hardware.power-service.lineage-libperfmgr \ libqti-perfd-client +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json + # Sensors PRODUCT_PACKAGES += \ android.hardware.sensors-service.multihal \ From c689cef1e0969a19e268f9ec205b18fc1c492321 Mon Sep 17 00:00:00 2001 From: Subhajeet Muhuri Date: Tue, 28 Nov 2023 01:01:16 +0530 Subject: [PATCH 066/111] dre: powerhint: Drop PM QoS boosting Change-Id: Idcedcc3f4ff1998b6fb59437a2517ee9e0bc75bb Signed-off-by: Subhajeet Muhuri --- configs/powerhint.json | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index c0d5e98..d21f4a4 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -168,15 +168,6 @@ ], "ResetOnInit": true }, - { - "Name": "PMQoSCpuDmaLatency", - "Path": "/dev/cpu_dma_latency", - "Values": [ - "44", - "100" - ], - "HoldFd": true - }, { "Name": "SchedBoost", "Path": "/proc/sys/kernel/sched_boost", @@ -305,12 +296,6 @@ "Duration": 5000, "Value": "9999999" }, - { - "PowerHint": "LAUNCH", - "Node": "PMQoSCpuDmaLatency", - "Duration": 5000, - "Value": "44" - }, { "PowerHint": "LAUNCH", "Node": "CPUBWHystTriggerCount", @@ -371,24 +356,12 @@ "Duration": 2000, "Value": "1651200" }, - { - "PowerHint": "AUDIO_LAUNCH", - "Node": "PMQoSCpuDmaLatency", - "Duration": 2000, - "Value": "44" - }, { "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", "Node": "PowerHALAudioState", "Duration": 0, "Value": "AUDIO_STREAMING_LOW_LATENCY" }, - { - "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", - "Node": "PMQoSCpuDmaLatency", - "Duration": 0, - "Value": "44" - }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "PowerHALRenderingState", From a5085b50807a74e3df8812bf88f576d2269eecb5 Mon Sep 17 00:00:00 2001 From: Sugakesshaa Date: Tue, 28 Nov 2023 01:09:00 +0530 Subject: [PATCH 067/111] dre: powerhint: Setup uclamp boosting - Make use of uclamp boost for top-app and foreground hints based on newer pixels Co-authored-by: Vivekachooz Change-Id: I70c4262230841b3c7bf84b4165916a22312f829f --- configs/powerhint.json | 74 ++++++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 25 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index d21f4a4..d9b5c46 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -46,6 +46,36 @@ ], "ResetOnInit": true }, + { + "Name": "UclampTAMin", + "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", + "Values": [ + "0", + "50", + "100" + ], + "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", + "100" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "GPUMaxFreq", "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", @@ -94,15 +124,6 @@ ], "ResetOnInit": true }, - { - "Name": "TASchedtuneBoost", - "Path": "/dev/stune/top-app/schedtune.boost", - "Values": [ - "50", - "10" - ], - "ResetOnInit": true - }, { "Name": "CPUBWHystTriggerCount", "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_trigger_count", @@ -168,15 +189,6 @@ ], "ResetOnInit": true }, - { - "Name": "SchedBoost", - "Path": "/proc/sys/kernel/sched_boost", - "Values": [ - "1", - "0" - ], - "ResetOnInit": true - }, { "Name": "PowerHALMainState", "Path": "vendor.powerhal.state", @@ -244,10 +256,16 @@ }, { "PowerHint": "INTERACTION", - "Node": "TASchedtuneBoost", + "Node": "UclampTAMin", "Duration": 0, "Value": "50" }, + { + "PowerHint": "INTERACTION", + "Node": "UclampTALatency", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "INTERACTION", "Node": "CPUBWHystTriggerCount", @@ -272,12 +290,6 @@ "Duration": 0, "Value": "5931" }, - { - "PowerHint": "LAUNCH", - "Node": "SchedBoost", - "Duration": 5000, - "Value": "1" - }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq", @@ -296,6 +308,18 @@ "Duration": 5000, "Value": "9999999" }, + { + "PowerHint": "LAUNCH", + "Node": "UclampTAMin", + "Duration": 3000, + "Value": "50" + }, + { + "PowerHint": "LAUNCH", + "Node": "UclampFgMin", + "Duration": 3000, + "Value": "100" + }, { "PowerHint": "LAUNCH", "Node": "CPUBWHystTriggerCount", From 5b92da9eae1337d3a8063850a163c08e539a4b6c Mon Sep 17 00:00:00 2001 From: Subhajeet Muhuri Date: Tue, 28 Nov 2023 01:20:21 +0530 Subject: [PATCH 068/111] dre: powerhint: Remove audio hints Signed-off-by: Subhajeet Muhuri Change-Id: Ife1cb1e356e62283f3c4d353931458adaf84e975 --- configs/powerhint.json | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index d9b5c46..c26c226 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -198,15 +198,6 @@ ], "Type": "Property" }, - { - "Name": "PowerHALAudioState", - "Path": "vendor.powerhal.audio", - "Values": [ - "AUDIO_STREAMING_LOW_LATENCY", - "" - ], - "Type": "Property" - }, { "Name": "PowerHALRenderingState", "Path": "vendor.powerhal.rendering", @@ -374,18 +365,6 @@ "Duration": 5000, "Value": "1497600000" }, - { - "PowerHint": "AUDIO_LAUNCH", - "Node": "CPUBigClusterMinFreq", - "Duration": 2000, - "Value": "1651200" - }, - { - "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", - "Node": "PowerHALAudioState", - "Duration": 0, - "Value": "AUDIO_STREAMING_LOW_LATENCY" - }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "PowerHALRenderingState", From 17daa0387c1b63f6fac23144f2c3f117bc02718c Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Fri, 1 Dec 2023 19:44:29 +0530 Subject: [PATCH 069/111] dre: configs: Rearrange powerhint Change-Id: I77e792f4d453ce6c0b929cad7236be38e6ba475e --- configs/powerhint.json | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index c26c226..ed4304b 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -120,7 +120,7 @@ "Path": "/sys/class/kgsl/kgsl-3d0/idle_timer", "Values": [ "10000", - "80" + "58" ], "ResetOnInit": true }, @@ -209,18 +209,18 @@ } ], "Actions": [ - { - "PowerHint": "SUSTAINED_PERFORMANCE", - "Node": "CPUBigClusterMaxFreq", - "Duration": 0, - "Value": "1516800" - }, { "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "PowerHALMainState", "Duration": 0, "Value": "SUSTAINED_PERFORMANCE" }, + { + "PowerHint": "SUSTAINED_PERFORMANCE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1516800" + }, { "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "CPULittleClusterMaxFreq", @@ -371,12 +371,6 @@ "Duration": 0, "Value": "EXPENSIVE_RENDERING" }, - { - "PowerHint": "EXPENSIVE_RENDERING", - "Node": "GPUMinFreq", - "Duration": 0, - "Value": "650000000" - }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMaxFreq", From 32361ed7e76de2989babbfa3f237f5559626dc2c Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Fri, 1 Dec 2023 20:27:14 +0530 Subject: [PATCH 070/111] dre: configs: Tune CPUBWMinFreq to a higher frequency Change-Id: Iceb807b2175141576381fa9dd9a96c8845db3d3b --- configs/powerhint.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index ed4304b..15f9b8e 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -165,6 +165,7 @@ "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq", "Values": [ "7980", + "6881", "5931", "3879", "762" @@ -279,7 +280,7 @@ "PowerHint": "INTERACTION", "Node": "CPUBWMinFreq", "Duration": 0, - "Value": "5931" + "Value": "6881" }, { "PowerHint": "LAUNCH", From d8cb90b4bad8c17b36017f5b2420bf8e678c4110 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Sat, 2 Dec 2023 10:15:08 +0530 Subject: [PATCH 071/111] dre: configs: Enable FIXED_PERFORMANCE in powerhint Change-Id: I30d519369162d577e419b1c0982a4ac1783fb3b7 --- configs/powerhint.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 15f9b8e..37b7036 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -91,6 +91,7 @@ "Name": "GPUMinFreq", "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq", "Values": [ + "840000000", "650000000", "490000000", "266000000" @@ -366,6 +367,42 @@ "Duration": 5000, "Value": "1497600000" }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "GPUMaxFreq", + "Duration": 0, + "Value": "840000000" + }, + { + "PowerHint": "FIXED_PERFORMANCE", + "Node": "GPUMinFreq", + "Duration": 0, + "Value": "840000000" + }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "PowerHALRenderingState", From aceb8fdd30e22b18b4d0ef905c4c05fc5ffe91b1 Mon Sep 17 00:00:00 2001 From: Wilson Chan Date: Sat, 2 Dec 2023 10:48:12 +0530 Subject: [PATCH 072/111] dre: configs: Add Flipendo powerhint Bug: 153940282 Test: Manually check powerhint succeeds and check perf Change-Id: Ia3482d3e3b69562aa7c0e5dd326037d1b3806930 --- configs/powerhint.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 37b7036..08c450e 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -414,6 +414,18 @@ "Node": "GPUMaxFreq", "Duration": 0, "Value": "840000000" + }, + { + "PowerHint": "Flipendo", + "Node": "CPULittleClusterMaxFreq", + "Duration": 0, + "Value": "1651200" + }, + { + "PowerHint": "Flipendo", + "Node": "CPUBigClusterMaxFreq", + "Duration": 0, + "Value": "1516800" } ] } From 645570d0cfd05ced3a3f06440cd3708b54a6d14b Mon Sep 17 00:00:00 2001 From: Chiawei Wang Date: Sat, 2 Dec 2023 10:59:18 +0530 Subject: [PATCH 073/111] dre: configs: use min_pwrlevel to configure GPU freq Bug: 146334579 Bug: 146336388 Test: run pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHALAPITest Test: run pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHintJsonVerifyTest Change-Id: I18c0210463f29831cc94c629a98718406ebdf21b --- configs/powerhint.json | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 08c450e..cb1ca40 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -78,23 +78,34 @@ }, { "Name": "GPUMaxFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", + "Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel", "Values": [ - "840000000", - "650000000", - "266000000" + "0", + "1", + "2" + ], + "Comments": [ + "0 => 840000000", + "1 => 650000000", + "2 => 266000000" ], "DefaultIndex": 0, "ResetOnInit": true }, { "Name": "GPUMinFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq", + "Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel", "Values": [ - "840000000", - "650000000", - "490000000", - "266000000" + "0", + "1", + "2", + "3" + ], + "Comments": [ + "0 => 840000000", + "1 => 650000000", + "2 => 490000000", + "3 => 266000000" ], "ResetOnInit": true }, @@ -233,7 +244,7 @@ "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "650000000" + "Value": "1" }, { "PowerHint": "INTERACTION", @@ -395,13 +406,13 @@ "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMinFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "EXPENSIVE_RENDERING", @@ -413,7 +424,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "Flipendo", From 39940de6365705b33b340751a9b3af3c02a62bc6 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Sat, 16 Dec 2023 18:08:53 +0530 Subject: [PATCH 074/111] dre: powerhint: Tune powerhint Change-Id: I8fe54e156b15b6d3a58d7f83cf33d1cf83ce2418 --- configs/powerhint.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index cb1ca40..f2146f4 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -19,7 +19,9 @@ "9999999", "1324800", "1113600", - "691200" + "691200", + "576000", + "300000" ], "ResetOnInit": true }, @@ -292,7 +294,7 @@ "PowerHint": "INTERACTION", "Node": "CPUBWMinFreq", "Duration": 0, - "Value": "6881" + "Value": "7980" }, { "PowerHint": "LAUNCH", From fa8e233ac03dd8e879a04f8c1e2df0ebe5867ef8 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Sat, 30 Mar 2024 08:40:19 +0530 Subject: [PATCH 075/111] dre: powerhint: Enable CPUDDRLat boost Change-Id: I5ed88740f92064cf5e7cdcdfb19e1b77eb891a35 --- configs/powerhint.json | 100 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index f2146f4..0710d82 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -204,6 +204,46 @@ ], "ResetOnInit": true }, + { + "Name": "CPUDDRLatLittleMinFreq", + "Path": "/sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-lat/min_freq", + "Values": [ + "7980", + "3879", + "762" + ], + "ResetOnInit": true + }, + { + "Name": "CPUDDRLatBigMinFreq", + "Path": "/sys/class/devfreq/soc:qcom,cpu6-cpu-ddr-lat/min_freq", + "Values": [ + "7980", + "3879", + "762" + ], + "ResetOnInit": true + }, + { + "Name": "CPUDDRLatfloorLittleMinFreq", + "Path": "/sys/class/devfreq/soc:qcom,cpu0-cpu-ddr-latfloor/min_freq", + "Values": [ + "7980", + "3879", + "762" + ], + "ResetOnInit": true + }, + { + "Name": "CPUDDRLatfloorBigMinFreq", + "Path": "/sys/class/devfreq/soc:qcom,cpu6-cpu-ddr-latfloor/min_freq", + "Values": [ + "7980", + "3879", + "762" + ], + "ResetOnInit": true + }, { "Name": "PowerHALMainState", "Path": "vendor.powerhal.state", @@ -296,6 +336,42 @@ "Duration": 0, "Value": "7980" }, + { + "PowerHint": "INTERACTION", + "Node": "CPUDDRLatLittleMinFreq", + "Duration": 0, + "Value": "7980" + }, + { + "PowerHint": "INTERACTION", + "Node": "CPUDDRLatBigMinFreq", + "Duration": 0, + "Value": "7980" + }, + { + "PowerHint": "INTERACTION", + "Node": "CPUDDRLatfloorLittleMinFreq", + "Duration": 0, + "Value": "7980" + }, + { + "PowerHint": "INTERACTION", + "Node": "CPUDDRLatfloorBigMinFreq", + "Duration": 0, + "Value": "7980" + }, + { + "PowerHint": "INTERACTIVE", + "Node": "SchedBusyHystNs", + "Duration": 0, + "Value": "3000000" + }, + { + "PowerHint": "INTERACTIVE", + "Node": "SchedBusyHystEnableCPUs", + "Duration": 0, + "Value": "15" + }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq", @@ -350,6 +426,30 @@ "Duration": 5000, "Value": "7980" }, + { + "PowerHint": "LAUNCH", + "Node": "CPUDDRLatLittleMinFreq", + "Duration": 5000, + "Value": "7980" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUDDRLatBigMinFreq", + "Duration": 5000, + "Value": "7980" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUDDRLatfloorLittleMinFreq", + "Duration": 5000, + "Value": "7980" + }, + { + "PowerHint": "LAUNCH", + "Node": "CPUDDRLatfloorBigMinFreq", + "Duration": 5000, + "Value": "7980" + }, { "PowerHint": "LAUNCH", "Node": "GPUForceClkOn", From ee9be9bc9a282904e9b0b30115353b6ee9b62240 Mon Sep 17 00:00:00 2001 From: Sugakesshaa Date: Fri, 14 Jun 2024 14:10:13 +0530 Subject: [PATCH 076/111] dre: powerhint: Enable DT2W hint Change-Id: Ice21261583d89e0bbc9b0cc099f1125b3c7bd0a4 --- configs/powerhint.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 0710d82..2850332 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -261,6 +261,14 @@ "" ], "Type": "Property" + }, + { + "Name": "DoubleTapToWake", + "Path": "/proc/touchpanel/double_tap_enable", + "Values": [ + "1", + "0" + ] } ], "Actions": [ @@ -539,6 +547,12 @@ "Node": "CPUBigClusterMaxFreq", "Duration": 0, "Value": "1516800" + }, + { + "PowerHint": "DOUBLE_TAP_TO_WAKE", + "Node": "DoubleTapToWake", + "Duration": 0, + "Value": "1" } ] } From 7a3a91f4e01268cdc56fe2d57ca6ae45eb5fe7cc Mon Sep 17 00:00:00 2001 From: karthick111 Date: Sun, 14 Jul 2024 23:22:14 +0530 Subject: [PATCH 077/111] dre: powerhint: Set DISPLAY_INACTIVE hint for little cluster Change-Id: I45df1015e39ba6bdacad9ce53f7157a5f7ba7dc8 --- configs/powerhint.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 2850332..645586d 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -553,6 +553,12 @@ "Node": "DoubleTapToWake", "Duration": 0, "Value": "1" + }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "300000" } ] } From 86a9e0aaa3ef0edccc77074e160dcd8a88ca4e97 Mon Sep 17 00:00:00 2001 From: karthick111 Date: Sun, 14 Jul 2024 23:31:04 +0530 Subject: [PATCH 078/111] dre: powerhint: Adjust min frequencies to lowest possible Change-Id: I38ec27f5c25627b60577b54fd4e1e9a45a517825 --- configs/powerhint.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 645586d..e61b6fd 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -9,7 +9,7 @@ "1651200", "1516800" ], - "DefaultIndex": 0, + "DefaultIndex": 3, "ResetOnInit": true }, { @@ -23,6 +23,7 @@ "576000", "300000" ], + "DefaultIndex": 5, "ResetOnInit": true }, { @@ -34,7 +35,7 @@ "1900800", "1516800" ], - "DefaultIndex": 0, + "DefaultIndex": 3, "ResetOnInit": true }, { @@ -91,7 +92,7 @@ "1 => 650000000", "2 => 266000000" ], - "DefaultIndex": 0, + "DefaultIndex": 2, "ResetOnInit": true }, { From e7084e8fcc6564061ddab35e5168defa4e0575ed Mon Sep 17 00:00:00 2001 From: Edwin Moquete Date: Mon, 15 Jul 2024 23:49:46 +0530 Subject: [PATCH 079/111] dre: Disable display refresh rate override This got enabled by default on U, and it causes apps like Chrome and Youtube to set the refresh rate to 30FPS when playing some videos. Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec --- vendor.prop | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor.prop b/vendor.prop index ed6731b..21dc0d2 100644 --- a/vendor.prop +++ b/vendor.prop @@ -131,6 +131,7 @@ debug.sf.use_phase_offsets_as_durations=1 ro.hardware.egl=adreno ro.hardware.vulkan=adreno ro.opengles.version=196610 +ro.surface_flinger.enable_frame_rate_override=false ro.surface_flinger.force_hwc_copy_for_virtual_displays=true ro.surface_flinger.max_frame_buffer_acquired_buffers=3 ro.surface_flinger.max_virtual_display_dimension=4096 From 5402b6597fbbf521511b4295ecae6158a2200610 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Tue, 16 Jul 2024 13:32:35 +0530 Subject: [PATCH 080/111] dre: powerhint: Set screen-off schedutil ratelimits Use a more power-friendly rate limit configuration (2ms up/down) to reduce power consumption a bit when the screen is off. Power results during screen off GPS usage, measured by Alex Naidis on SDM845: Before: 392mW 93.5mA After: 378.5mW 90.2mA Co-authored-by: Alex Naidis Change-Id: I1ec50702847a196e2f9366f71b3a5b9465c9a596 Signed-off-by: Adithya R --- configs/powerhint.json | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index e61b6fd..151eac0 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -26,6 +26,24 @@ "DefaultIndex": 5, "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/cpu6/cpufreq/scaling_max_freq", @@ -49,6 +67,24 @@ ], "ResetOnInit": true }, + { + "Name": "CPUBigClusterUpRateLimit", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/schedutil/up_rate_limit_us", + "Values": [ + "500", + "2000" + ], + "ResetOnInit": true + }, + { + "Name": "CPUBigClusterDownRateLimit", + "Path": "/sys/devices/system/cpu/cpu6/cpufreq/schedutil/down_rate_limit_us", + "Values": [ + "20000", + "2000" + ], + "ResetOnInit": true + }, { "Name": "UclampTAMin", "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", @@ -369,6 +405,30 @@ "Duration": 0, "Value": "7980" }, + { + "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": "20000" + }, { "PowerHint": "INTERACTIVE", "Node": "SchedBusyHystNs", From 170fdfbe04692e6d8e86297a7745748fd8ad1961 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Tue, 16 Jul 2024 13:38:15 +0530 Subject: [PATCH 081/111] dre: powerhint: Enable GPUMinFreq for EXPENSIVE_RENDERING Change-Id: Id3fefc6a492557d775a04377432d39034047dd56 --- configs/powerhint.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 151eac0..802ca91 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -591,6 +591,12 @@ "Duration": 0, "Value": "EXPENSIVE_RENDERING" }, + { + "PowerHint": "EXPENSIVE_RENDERING", + "Node": "GPUMinFreq", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMaxFreq", From 63f557e326d01fba120e0fd089e214a5deaf9d9a Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Tue, 16 Jul 2024 13:42:31 +0530 Subject: [PATCH 082/111] dre: powerhint: Enable L3 frequencies for interaction Change-Id: Ic7b370030b60d2b68bd74fa8daa9ba83f74cdf1f --- configs/powerhint.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index 802ca91..36e3b3c 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -228,6 +228,7 @@ "Path": "/sys/class/devfreq/fd90100.qcom,cpu0-cpu-l3-lat/min_freq", "Values": [ "1497600000", + "1171200000", "300000000" ], "ResetOnInit": true @@ -237,6 +238,7 @@ "Path": "/sys/class/devfreq/fd90100.qcom,cpu6-cpu-l3-lat/min_freq", "Values": [ "1497600000", + "1171200000", "300000000" ], "ResetOnInit": true @@ -405,6 +407,18 @@ "Duration": 0, "Value": "7980" }, + { + "PowerHint": "INTERACTION", + "Node": "L3LittleClusterMinFreq", + "Duration": 0, + "Value": "1171200000" + }, + { + "PowerHint": "INTERACTION", + "Node": "L3BigClusterMinFreq", + "Duration": 0, + "Value": "1171200000" + }, { "PowerHint": "INTERACTIVE", "Node": "CPULittleClusterUpRateLimit", From c1e4b8ba34d77af0d08224e7701d108a0ca35932 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Sat, 20 Jul 2024 00:57:33 +0530 Subject: [PATCH 083/111] dre: powerhint: Optimize for efficiency Change-Id: Id8b224480a1d554035e7ee58cdbdc86b2a8c0eec --- configs/powerhint.json | 176 ++++++++++++++++++++--------------------- 1 file changed, 84 insertions(+), 92 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 36e3b3c..38c884c 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -6,10 +6,10 @@ "Values": [ "9999999", "1708800", - "1651200", - "1516800" + "576000", + "300000" ], - "DefaultIndex": 3, + "DefaultIndex": 0, "ResetOnInit": true }, { @@ -17,13 +17,14 @@ "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq", "Values": [ "9999999", + "1708800", "1324800", "1113600", "691200", "576000", "300000" ], - "DefaultIndex": 5, + "DefaultIndex": 6, "ResetOnInit": true }, { @@ -53,7 +54,7 @@ "1900800", "1516800" ], - "DefaultIndex": 3, + "DefaultIndex": 0, "ResetOnInit": true }, { @@ -61,10 +62,13 @@ "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq", "Values": [ "9999999", + "2054400", "1651200", + "1228800", "691200", "0" ], + "DefaultIndex": 5, "ResetOnInit": true }, { @@ -90,61 +94,43 @@ "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", "Values": [ "0", - "50", - "100" + "692", + "308", + "232", + "154", + "78" ], "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", - "100" + "159" ], "DefaultIndex": 0, "ResetOnInit": true }, { "Name": "GPUMaxFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel", + "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", "Values": [ - "0", - "1", - "2" + "840000000", + "650000000", + "266000000" ], - "Comments": [ - "0 => 840000000", - "1 => 650000000", - "2 => 266000000" - ], - "DefaultIndex": 2, + "DefaultIndex": 0, "ResetOnInit": true }, { "Name": "GPUMinFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel", + "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq", "Values": [ - "0", - "1", - "2", - "3" - ], - "Comments": [ - "0 => 840000000", - "1 => 650000000", - "2 => 490000000", - "3 => 266000000" + "840000000", + "650000000", + "266000000" ], "ResetOnInit": true }, @@ -171,7 +157,7 @@ "Path": "/sys/class/kgsl/kgsl-3d0/idle_timer", "Values": [ "10000", - "58" + "80" ], "ResetOnInit": true }, @@ -216,9 +202,7 @@ "Path": "/sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq", "Values": [ "7980", - "6881", - "5931", - "3879", + "5161", "762" ], "ResetOnInit": true @@ -283,6 +267,14 @@ ], "ResetOnInit": true }, + { + "Name": "DoubleTapToWake", + "Path": "/proc/touchpanel/double_tap_enable", + "Values": [ + "1", + "0" + ] + }, { "Name": "PowerHALMainState", "Path": "vendor.powerhal.state", @@ -300,14 +292,6 @@ "" ], "Type": "Property" - }, - { - "Name": "DoubleTapToWake", - "Path": "/proc/touchpanel/double_tap_enable", - "Values": [ - "1", - "0" - ] } ], "Actions": [ @@ -327,37 +311,36 @@ "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "CPULittleClusterMaxFreq", "Duration": 0, - "Value": "1651200" + "Value": "1708800" }, { "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "1" + "Value": "650000000" + }, + { + "PowerHint": "INTERACTION", + "Type": "EndHint", + "Value": "DISABLE_TA_BOOST" }, { "PowerHint": "INTERACTION", "Node": "CPUBigClusterMinFreq", "Duration": 0, - "Value": "1651200" + "Value": "2054400" }, { "PowerHint": "INTERACTION", "Node": "CPULittleClusterMinFreq", "Duration": 0, - "Value": "1113600" + "Value": "1708800" }, { "PowerHint": "INTERACTION", "Node": "UclampTAMin", "Duration": 0, - "Value": "50" - }, - { - "PowerHint": "INTERACTION", - "Node": "UclampTALatency", - "Duration": 0, - "Value": "1" + "Value": "78" }, { "PowerHint": "INTERACTION", @@ -381,7 +364,7 @@ "PowerHint": "INTERACTION", "Node": "CPUBWMinFreq", "Duration": 0, - "Value": "7980" + "Value": "5161" }, { "PowerHint": "INTERACTION", @@ -444,16 +427,9 @@ "Value": "20000" }, { - "PowerHint": "INTERACTIVE", - "Node": "SchedBusyHystNs", - "Duration": 0, - "Value": "3000000" - }, - { - "PowerHint": "INTERACTIVE", - "Node": "SchedBusyHystEnableCPUs", - "Duration": 0, - "Value": "15" + "PowerHint": "LAUNCH", + "Type": "EndHint", + "Value": "DISABLE_TA_BOOST" }, { "PowerHint": "LAUNCH", @@ -476,14 +452,14 @@ { "PowerHint": "LAUNCH", "Node": "UclampTAMin", - "Duration": 3000, - "Value": "50" + "Duration": 5000, + "Value": "692" }, { "PowerHint": "LAUNCH", "Node": "UclampFgMin", - "Duration": 3000, - "Value": "100" + "Duration": 5000, + "Value": "159" }, { "PowerHint": "LAUNCH", @@ -591,13 +567,13 @@ "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "0" + "Value": "840000000" }, { "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMinFreq", "Duration": 0, - "Value": "0" + "Value": "840000000" }, { "PowerHint": "EXPENSIVE_RENDERING", @@ -609,25 +585,13 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "1" + "Value": "650000000" }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "Flipendo", - "Node": "CPULittleClusterMaxFreq", - "Duration": 0, - "Value": "1651200" - }, - { - "PowerHint": "Flipendo", - "Node": "CPUBigClusterMaxFreq", - "Duration": 0, - "Value": "1516800" + "Value": "840000000" }, { "PowerHint": "DOUBLE_TAP_TO_WAKE", @@ -635,6 +599,34 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "DISABLE_TA_BOOST", + "Node": "UclampTAMin", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "300000" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "0" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "DoHint", + "Value": "DISABLE_TA_BOOST" + }, + { + "PowerHint": "DISPLAY_IDLE", + "Type": "EndHint", + "Value": "INTERACTION" + }, { "PowerHint": "DISPLAY_INACTIVE", "Node": "CPULittleClusterMinFreq", From f33e67cb7acadd24de3e435a269d9e96f6b7f9c6 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Thu, 1 Aug 2024 23:27:59 +0530 Subject: [PATCH 084/111] dre: powerhint: Use uclamp values as percentage Change-Id: I0b3bd7714cfd234e6901c1e10fac87475dbc614c --- configs/powerhint.json | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 38c884c..5c8621a 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -94,11 +94,8 @@ "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", "Values": [ "0", - "692", - "308", - "232", - "154", - "78" + "78", + "100" ], "DefaultIndex": 0, "ResetOnInit": true @@ -108,7 +105,7 @@ "Path": "/dev/cpuctl/foreground/cpu.uclamp.min", "Values": [ "0", - "159" + "100" ], "DefaultIndex": 0, "ResetOnInit": true @@ -453,13 +450,13 @@ "PowerHint": "LAUNCH", "Node": "UclampTAMin", "Duration": 5000, - "Value": "692" + "Value": "100" }, { "PowerHint": "LAUNCH", "Node": "UclampFgMin", "Duration": 5000, - "Value": "159" + "Value": "100" }, { "PowerHint": "LAUNCH", From a2c6761ffc77ba1f7355a3ce0f78eb17289f65db Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Tue, 17 Sep 2024 01:02:33 +0530 Subject: [PATCH 085/111] dre: powerhint: Boost little cluster to max upon interaction Change-Id: Ia45821516a638f277f25373ec59acc001e590fe2 --- configs/powerhint.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 5c8621a..f9e566b 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -331,7 +331,7 @@ "PowerHint": "INTERACTION", "Node": "CPULittleClusterMinFreq", "Duration": 0, - "Value": "1708800" + "Value": "9999999" }, { "PowerHint": "INTERACTION", From 468e08287c1fca43ecfac9fedd1595bc5969fc0e Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Tue, 17 Sep 2024 01:05:15 +0530 Subject: [PATCH 086/111] dre: powerhint: Boost cpus for EXPENSIVE_RENDERING Change-Id: I4d1430e85c84f95d8a8e97d6d2f5e73fc58ae7e0 --- configs/powerhint.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/powerhint.json b/configs/powerhint.json index f9e566b..ae7b0cc 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -590,6 +590,18 @@ "Duration": 0, "Value": "840000000" }, + { + "PowerHint": "EXPENSIVE_RENDERING", + "Node": "CPULittleClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, + { + "PowerHint": "EXPENSIVE_RENDERING", + "Node": "CPUBigClusterMinFreq", + "Duration": 0, + "Value": "9999999" + }, { "PowerHint": "DOUBLE_TAP_TO_WAKE", "Node": "DoubleTapToWake", From 378c70a1946436ccd65f2816bae2fcc6cc5f7f01 Mon Sep 17 00:00:00 2001 From: daniml3 Date: Wed, 25 Sep 2024 23:41:32 +0530 Subject: [PATCH 087/111] dre: powerhint: Set 1 second timeout for interaction boosts * Having no timeout makes the boosts to be permanently triggered until some other hint overrides it, for example, making the minimum frequency to be stuck at 1248mhz Signed-off-by: daniml3 Change-Id: I5edb50f937d0ccede5bc3463572010b20d75fe78 --- configs/powerhint.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index ae7b0cc..e06cc4e 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -324,79 +324,79 @@ { "PowerHint": "INTERACTION", "Node": "CPUBigClusterMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "2054400" }, { "PowerHint": "INTERACTION", "Node": "CPULittleClusterMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "9999999" }, { "PowerHint": "INTERACTION", "Node": "UclampTAMin", - "Duration": 0, + "Duration": 1000, "Value": "78" }, { "PowerHint": "INTERACTION", "Node": "CPUBWHystTriggerCount", - "Duration": 0, + "Duration": 1000, "Value": "0" }, { "PowerHint": "INTERACTION", "Node": "CPUBWHystLength", - "Duration": 0, + "Duration": 1000, "Value": "0" }, { "PowerHint": "INTERACTION", "Node": "CPUBWHistMemory", - "Duration": 0, + "Duration": 1000, "Value": "0" }, { "PowerHint": "INTERACTION", "Node": "CPUBWMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "5161" }, { "PowerHint": "INTERACTION", "Node": "CPUDDRLatLittleMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "7980" }, { "PowerHint": "INTERACTION", "Node": "CPUDDRLatBigMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "7980" }, { "PowerHint": "INTERACTION", "Node": "CPUDDRLatfloorLittleMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "7980" }, { "PowerHint": "INTERACTION", "Node": "CPUDDRLatfloorBigMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "7980" }, { "PowerHint": "INTERACTION", "Node": "L3LittleClusterMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "1171200000" }, { "PowerHint": "INTERACTION", "Node": "L3BigClusterMinFreq", - "Duration": 0, + "Duration": 1000, "Value": "1171200000" }, { From 1d0eb36cb2dda571329fef372b0a093ffc028cd9 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Thu, 26 Sep 2024 09:01:19 +0530 Subject: [PATCH 088/111] dre: powerhint: Decrease launch boost to 3sec * 5s is just too much long plus battery drainer Change-Id: I7e037c45cd2296a8bbd67d6bd63c212c0ef2a805 --- configs/powerhint.json | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index e06cc4e..31755ba 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -431,109 +431,109 @@ { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq", - "Duration": 5000, + "Duration": 3000, "Value": "9999999" }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "9999999" }, { "PowerHint": "LAUNCH", "Node": "CPULittleClusterMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "9999999" }, { "PowerHint": "LAUNCH", "Node": "UclampTAMin", - "Duration": 5000, + "Duration": 3000, "Value": "100" }, { "PowerHint": "LAUNCH", "Node": "UclampFgMin", - "Duration": 5000, + "Duration": 3000, "Value": "100" }, { "PowerHint": "LAUNCH", "Node": "CPUBWHystTriggerCount", - "Duration": 5000, + "Duration": 3000, "Value": "0" }, { "PowerHint": "LAUNCH", "Node": "CPUBWHystLength", - "Duration": 5000, + "Duration": 3000, "Value": "0" }, { "PowerHint": "LAUNCH", "Node": "CPUBWHistMemory", - "Duration": 5000, + "Duration": 3000, "Value": "0" }, { "PowerHint": "LAUNCH", "Node": "CPUBWMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "7980" }, { "PowerHint": "LAUNCH", "Node": "CPUDDRLatLittleMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "7980" }, { "PowerHint": "LAUNCH", "Node": "CPUDDRLatBigMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "7980" }, { "PowerHint": "LAUNCH", "Node": "CPUDDRLatfloorLittleMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "7980" }, { "PowerHint": "LAUNCH", "Node": "CPUDDRLatfloorBigMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "7980" }, { "PowerHint": "LAUNCH", "Node": "GPUForceClkOn", - "Duration": 5000, + "Duration": 3000, "Value": "1" }, { "PowerHint": "LAUNCH", "Node": "GPUForceRailOn", - "Duration": 5000, + "Duration": 3000, "Value": "1" }, { "PowerHint": "LAUNCH", "Node": "GPUIdleTimer", - "Duration": 5000, + "Duration": 3000, "Value": "10000" }, { "PowerHint": "LAUNCH", "Node": "L3LittleClusterMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "1497600000" }, { "PowerHint": "LAUNCH", "Node": "L3BigClusterMinFreq", - "Duration": 5000, + "Duration": 3000, "Value": "1497600000" }, { From b70f9c7b4ae8fe8b7492ffdd7028ce6298ad1301 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Wed, 2 Oct 2024 18:14:24 +0530 Subject: [PATCH 089/111] dre: powerhint: Re-tune powerhint for efficiency Change-Id: Id0e30127864d8685a884ba0fe4139d62eeaaecea --- configs/powerhint.json | 66 ++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index 31755ba..bf9d708 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -94,17 +94,27 @@ "Path": "/dev/cpuctl/top-app/cpu.uclamp.min", "Values": [ "0", - "78", + "50", "100" ], "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", "100" ], "DefaultIndex": 0, @@ -112,22 +122,22 @@ }, { "Name": "GPUMaxFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq", + "Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel", "Values": [ - "840000000", - "650000000", - "266000000" + "0", + "1" ], "DefaultIndex": 0, "ResetOnInit": true }, { "Name": "GPUMinFreq", - "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq", + "Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel", "Values": [ - "840000000", - "650000000", - "266000000" + "0", + "1", + "3", + "5" ], "ResetOnInit": true }, @@ -314,7 +324,7 @@ "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "650000000" + "Value": "1" }, { "PowerHint": "INTERACTION", @@ -325,19 +335,37 @@ "PowerHint": "INTERACTION", "Node": "CPUBigClusterMinFreq", "Duration": 1000, - "Value": "2054400" + "Value": "1651200" }, { "PowerHint": "INTERACTION", "Node": "CPULittleClusterMinFreq", "Duration": 1000, - "Value": "9999999" + "Value": "1708800" }, { "PowerHint": "INTERACTION", "Node": "UclampTAMin", "Duration": 1000, - "Value": "78" + "Value": "50" + }, + { + "PowerHint": "INTERACTION", + "Node": "UclampTALatency", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "INTERACTION", + "Node": "UclampFgMin", + "Duration": 1000, + "Value": "50" + }, + { + "PowerHint": "INTERACTION", + "Node": "GPUMinFreq", + "Duration": 1000, + "Value": "3" }, { "PowerHint": "INTERACTION", @@ -564,13 +592,13 @@ "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "FIXED_PERFORMANCE", "Node": "GPUMinFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "EXPENSIVE_RENDERING", @@ -582,25 +610,25 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "650000000" + "Value": "1" }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMaxFreq", "Duration": 0, - "Value": "840000000" + "Value": "0" }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "CPULittleClusterMinFreq", "Duration": 0, - "Value": "9999999" + "Value": "1708800" }, { "PowerHint": "EXPENSIVE_RENDERING", "Node": "CPUBigClusterMinFreq", "Duration": 0, - "Value": "9999999" + "Value": "1651200" }, { "PowerHint": "DOUBLE_TAP_TO_WAKE", From ad0c3a209b97f126b4097bda24ace50f684ea758 Mon Sep 17 00:00:00 2001 From: Vivekachooz Date: Wed, 4 Dec 2024 19:11:53 +0530 Subject: [PATCH 090/111] dre: powerhint: Sanitize powerhint Change-Id: I2b30a4f01eeaee9eb38b193965f476693e01c1bd --- configs/powerhint.json | 44 ------------------------------------------ 1 file changed, 44 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index bf9d708..fb13f59 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -326,11 +326,6 @@ "Duration": 0, "Value": "1" }, - { - "PowerHint": "INTERACTION", - "Type": "EndHint", - "Value": "DISABLE_TA_BOOST" - }, { "PowerHint": "INTERACTION", "Node": "CPUBigClusterMinFreq", @@ -451,11 +446,6 @@ "Duration": 0, "Value": "20000" }, - { - "PowerHint": "LAUNCH", - "Type": "EndHint", - "Value": "DISABLE_TA_BOOST" - }, { "PowerHint": "LAUNCH", "Node": "CPUBigClusterMaxFreq", @@ -635,40 +625,6 @@ "Node": "DoubleTapToWake", "Duration": 0, "Value": "1" - }, - { - "PowerHint": "DISABLE_TA_BOOST", - "Node": "UclampTAMin", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "DISPLAY_IDLE", - "Node": "CPULittleClusterMinFreq", - "Duration": 0, - "Value": "300000" - }, - { - "PowerHint": "DISPLAY_IDLE", - "Node": "CPUBigClusterMinFreq", - "Duration": 0, - "Value": "0" - }, - { - "PowerHint": "DISPLAY_IDLE", - "Type": "DoHint", - "Value": "DISABLE_TA_BOOST" - }, - { - "PowerHint": "DISPLAY_IDLE", - "Type": "EndHint", - "Value": "INTERACTION" - }, - { - "PowerHint": "DISPLAY_INACTIVE", - "Node": "CPULittleClusterMinFreq", - "Duration": 0, - "Value": "300000" } ] } From 14bb8321865ff327660e6b7995fb0cf542b5180d Mon Sep 17 00:00:00 2001 From: Nick Reuter Date: Fri, 16 Jan 2026 23:59:11 -0600 Subject: [PATCH 091/111] dre: Adapt powerhint values for holi Change-Id: Id6bc73e539fededd3ccc6e6971e8e0ef3934687c --- configs/powerhint.json | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/configs/powerhint.json b/configs/powerhint.json index fb13f59..9a79c05 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -19,12 +19,10 @@ "9999999", "1708800", "1324800", - "1113600", - "691200", "576000", "300000" ], - "DefaultIndex": 6, + "DefaultIndex": 4, "ResetOnInit": true }, { @@ -50,9 +48,10 @@ "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq", "Values": [ "9999999", - "2054400", - "1900800", - "1516800" + "2035200", + "1804800", + "1651200", + "1536000" ], "DefaultIndex": 0, "ResetOnInit": true @@ -62,13 +61,11 @@ "Path": "/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq", "Values": [ "9999999", - "2054400", "1651200", - "1228800", - "691200", + "768000", "0" ], - "DefaultIndex": 5, + "DefaultIndex": 3, "ResetOnInit": true }, { @@ -136,8 +133,9 @@ "Values": [ "0", "1", + "2", "3", - "5" + "4" ], "ResetOnInit": true }, @@ -218,7 +216,7 @@ "Name": "L3LittleClusterMinFreq", "Path": "/sys/class/devfreq/fd90100.qcom,cpu0-cpu-l3-lat/min_freq", "Values": [ - "1497600000", + "1459200000", "1171200000", "300000000" ], @@ -228,7 +226,7 @@ "Name": "L3BigClusterMinFreq", "Path": "/sys/class/devfreq/fd90100.qcom,cpu6-cpu-l3-lat/min_freq", "Values": [ - "1497600000", + "1459200000", "1171200000", "300000000" ], @@ -312,7 +310,7 @@ "PowerHint": "SUSTAINED_PERFORMANCE", "Node": "CPUBigClusterMaxFreq", "Duration": 0, - "Value": "1516800" + "Value": "1536000" }, { "PowerHint": "SUSTAINED_PERFORMANCE", @@ -546,13 +544,13 @@ "PowerHint": "LAUNCH", "Node": "L3LittleClusterMinFreq", "Duration": 3000, - "Value": "1497600000" + "Value": "1459200000" }, { "PowerHint": "LAUNCH", "Node": "L3BigClusterMinFreq", "Duration": 3000, - "Value": "1497600000" + "Value": "1459200000" }, { "PowerHint": "FIXED_PERFORMANCE", From e9f3e33af10039a14324e293dd57bf62c086a040 Mon Sep 17 00:00:00 2001 From: OothecaPickle Date: Mon, 22 Dec 2025 23:07:23 -0800 Subject: [PATCH 092/111] dre: Align audio with stock Change-Id: I1c0342145ad887c8294af29d8e418afbdf2959d1 --- configs/audio/audio_io_policy.conf | 156 ++++++++++++++++++++++++++ configs/audio/audio_platform_info.xml | 3 +- device.mk | 4 +- 3 files changed, 160 insertions(+), 3 deletions(-) create mode 100644 configs/audio/audio_io_policy.conf diff --git a/configs/audio/audio_io_policy.conf b/configs/audio/audio_io_policy.conf new file mode 100644 index 0000000..b1169dd --- /dev/null +++ b/configs/audio/audio_io_policy.conf @@ -0,0 +1,156 @@ +# List of profiles for the output device session where stream is routed. +# A stream opened with the inputs attributes which match the "flags" and +# "formats" as specified in the profile is routed to a device at +# sample rate specified under "sampling_rates" and bit width under +# "bit_width" and the topology extracted from the acdb data against +# the "app_type". +# +# the flags and formats are specified using the strings corresponding to +# enums in audio.h and audio_policy.h. They are concatenated with "|" +# without space or "\n". +# the flags and formats should match the ones in "audio_policy.conf" + +outputs { + default { + flags AUDIO_OUTPUT_FLAG_PRIMARY + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69937 + } +#Vincent.chen@MULTIMEDIA.AUDIODRIVER.HAL, 2022/03/09, Add for support 24bit playback + default_24bit { + flags AUDIO_OUTPUT_FLAG_PRIMARY + formats AUDIO_FORMAT_PCM_24_BIT_PACKED + sampling_rates 48000 + bit_width 24 + app_type 69937 + } + proaudio { + flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69943 + } + voip_rx { + flags AUDIO_OUTPUT_FLAG_VOIP_RX|AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 8000|16000|32000|48000 + bit_width 16 + app_type 69946 + } + deep_buffer { + flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69936 + } +#Vincent.chen@MULTIMEDIA.AUDIODRIVER.HAL, 2022/03/09, Add for support 24bit playback + deep_buffer_24bit { + flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER + formats AUDIO_FORMAT_PCM_24_BIT_PACKED + sampling_rates 48000 + bit_width 24 + app_type 69936 + } + direct_pcm_16 { + flags AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 16 + app_type 69936 + } + direct_pcm_24 { + flags AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT + sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000 + bit_width 24 + app_type 69940 + } + direct_pcm_32 { + flags AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_32_BIT + sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000 + bit_width 32 + app_type 69942 + } + compress_passthrough { + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH + formats AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD + sampling_rates 32000|44100|48000|88200|96000|176400|192000|352800 + bit_width 16 + app_type 69941 + } + compress_offload_16 { + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING + formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2 + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 16 + app_type 69936 + } + compress_offload_24 { + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING + formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2 + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 24 + app_type 69940 + } +} + +inputs { + record_16bit { + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 8000|16000|32000|44100|48000|88200|96000|176400|192000 + bit_width 16 + app_type 69938 + } + record_24bit { + formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 24 + app_type 69948 + } + record_32bit { + formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 32 + app_type 69949 + } + record_compress_16 { + flags AUDIO_INPUT_FLAG_COMPRESS + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 8000|16000|32000|44100|48000|88200|96000|176400|192000 + bit_width 16 + app_type 69938 + } + record_compress_24 { + flags AUDIO_INPUT_FLAG_COMPRESS + formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 24 + app_type 69948 + } + record_compress_32 { + flags AUDIO_INPUT_FLAG_COMPRESS + formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 32 + app_type 69949 + } + voip_tx { + flags AUDIO_INPUT_FLAG_VOIP_TX + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 8000|16000|32000|48000 + bit_width 16 + app_type 69946 + } + low_latency_voip_tx { + flags AUDIO_INPUT_FLAG_FAST|AUDIO_INPUT_FLAG_VOIP_TX + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type + } +} diff --git a/configs/audio/audio_platform_info.xml b/configs/audio/audio_platform_info.xml index ea1c845..9bfd743 100644 --- a/configs/audio/audio_platform_info.xml +++ b/configs/audio/audio_platform_info.xml @@ -116,7 +116,7 @@ - + @@ -143,6 +143,7 @@ + diff --git a/device.mk b/device.mk index 88beb77..14ee1c3 100644 --- a/device.mk +++ b/device.mk @@ -67,13 +67,13 @@ PRODUCT_PACKAGES += \ AUDIO_HAL_DIR := hardware/qcom-caf/sm8350/audio PRODUCT_COPY_FILES += \ - $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(AUDIO_HAL_DIR)/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ - $(AUDIO_HAL_DIR)/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \ $(AUDIO_HAL_DIR)/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \ $(AUDIO_HAL_DIR)/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ $(AUDIO_HAL_DIR)/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ + $(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \ $(LOCAL_PATH)/configs/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ + $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/bluetooth_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_hearing_aid_audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ From 6e513edb17d6c51f325d213598330c0c25fe782f Mon Sep 17 00:00:00 2001 From: OothecaPickle Date: Mon, 22 Dec 2025 23:07:23 -0800 Subject: [PATCH 093/111] dre: Stop copying audio configs to sku variants Change-Id: Ie66d895e782536ee8e757c4d03c676de28ae1dd0 --- device.mk | 4 ---- 1 file changed, 4 deletions(-) diff --git a/device.mk b/device.mk index 14ee1c3..9db70ab 100644 --- a/device.mk +++ b/device.mk @@ -80,14 +80,10 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml PRODUCT_COPY_FILES += \ - frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_holi/audio_policy_volumes.xml \ frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_holi/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ - frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_holi/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_holi/usb_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml PRODUCT_COPY_FILES += \ From ef812cd8eabd6cf4cc5a53ffcbb85228445ca9f8 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Wed, 29 Apr 2026 13:55:42 -0400 Subject: [PATCH 094/111] dre: Set FCM level to 7 Change-Id: I06019ee4824a630180c09c39915e1819bb7482af --- vintf/manifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vintf/manifest.xml b/vintf/manifest.xml index b57fd2b..f558498 100644 --- a/vintf/manifest.xml +++ b/vintf/manifest.xml @@ -1,4 +1,4 @@ - + android.hardware.audio hwbinder From dd579f73ed71aebc011a5211be24037ab792ff98 Mon Sep 17 00:00:00 2001 From: Shashank Sivakumar Date: Tue, 14 Jun 2022 16:31:54 -0700 Subject: [PATCH 095/111] dre: Remove kernel config line from Manifest.xml As part of google requirement change, the kernel config will be pulled from the kernel-config location rather than the manifest_kalama.xml file. This change was brought in by the following commit on the google side - Ib57e8bd03046a07e3a86f21aaafe4aabc5e72710. Change-Id: Id36132b69dfac5cb0e1b9181518b7077c1031ff6 --- vintf/manifest.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/vintf/manifest.xml b/vintf/manifest.xml index f558498..88b9cc3 100644 --- a/vintf/manifest.xml +++ b/vintf/manifest.xml @@ -478,5 +478,4 @@ imsrtpservice - From 8f6be400cd9a3e4f122139044a5b5a7129b1bc42 Mon Sep 17 00:00:00 2001 From: Nick Reuter Date: Tue, 12 May 2026 02:37:39 -0500 Subject: [PATCH 096/111] dre: Update camera.qcom.so with libcamera_metadata_shim Fixes: LineageOS/issues/android#10234 Change-Id: Ie97b9dee3b4bdf987f9f7dd430346aae791c724b --- extract-files.py | 2 +- proprietary-files.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extract-files.py b/extract-files.py index 965b53b..d0b5d85 100755 --- a/extract-files.py +++ b/extract-files.py @@ -102,7 +102,7 @@ blob_fixups: blob_fixups_user_type = { .regex_replace('FeatureType="8" Disable="false"', 'FeatureType="8" Disable="true"') .regex_replace('20121_v1_20201113', 'native') .regex_replace('SRGB', 'sRGB'), - 'vendor/lib64/hw/com.qti.chi.override.so': blob_fixup() + 'vendor/lib64/hw/camera.qcom.so': blob_fixup() .add_needed('libcamera_metadata_shim.so'), ( 'vendor/lib64/libdpps.so', diff --git a/proprietary-files.txt b/proprietary-files.txt index 8a49109..36dad65 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -697,8 +697,8 @@ vendor/lib64/camera/fdconfigpreview.bin|caf04e55d04ba717c8618faa125c1708efe44c1a vendor/lib64/camera/fdconfigpreviewlite.bin|e95052671b9eec7ff53b665482b7b85b7dac0c62 vendor/lib64/camera/fdconfigvideo.bin|c3303efadaa16495aee7e508a07f9000a435e8a2 vendor/lib64/camera/fdconfigvideolite.bin|2d4648c313fa28fb83272f39ad64fd3bd0ff826d -vendor/lib64/hw/camera.qcom.so|cc31f6e349cad62cbd3e067fc38547c90e685d4f -vendor/lib64/hw/com.qti.chi.override.so|9637ffe7bfaa2799b7cf86973f3e7d8fbfa3344b|5d0b99ca56af3b763357524d99bb551c48634e50 +vendor/lib64/hw/camera.qcom.so|cc31f6e349cad62cbd3e067fc38547c90e685d4f|8d27e06ac937c1bb49f1910b828068ac74e5c3c3 +vendor/lib64/hw/com.qti.chi.override.so|9637ffe7bfaa2799b7cf86973f3e7d8fbfa3344b vendor/lib64/com.qti.chiusecaseselector.so|a35b657ea98415d110fb95c5b15066bb58dbdc34 vendor/lib64/com.qti.feature2.anchorsync.so|d17bc4f703021706c98d5418cb20eb5b707f6cc1 vendor/lib64/com.qti.feature2.demux.so|d35be36b8f793c0db5f748681633c11d155dd8b8 From 72394fb9d842f313c932e27c67db03ed775c8509 Mon Sep 17 00:00:00 2001 From: Chara Date: Fri, 27 Mar 2026 12:21:50 -0400 Subject: [PATCH 097/111] Add com.android.bluetooth to seapp_contexts --- sepolicy/private/seapp_contexts | 1 + 1 file changed, 1 insertion(+) create mode 100644 sepolicy/private/seapp_contexts diff --git a/sepolicy/private/seapp_contexts b/sepolicy/private/seapp_contexts new file mode 100644 index 0000000..951ea3c --- /dev/null +++ b/sepolicy/private/seapp_contexts @@ -0,0 +1 @@ +user=bluetooth seinfo=default name=com.android.bluetooth domain=bluetooth type=bluetooth_data_file levelFrom=all isPrivApp=true \ No newline at end of file From 064c153395ebcc432514fd96bef764e9bc4f4546 Mon Sep 17 00:00:00 2001 From: Chara Date: Fri, 27 Mar 2026 23:09:40 -0400 Subject: [PATCH 098/111] Revert "Add com.android.bluetooth to seapp_contexts" This reverts commit 10669c717fdaaf1f3050bc0b2d91ba006170c07b. This didn't fix SHIT. So, we revert the sepolicy commit instead. --- sepolicy/private/seapp_contexts | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sepolicy/private/seapp_contexts diff --git a/sepolicy/private/seapp_contexts b/sepolicy/private/seapp_contexts deleted file mode 100644 index 951ea3c..0000000 --- a/sepolicy/private/seapp_contexts +++ /dev/null @@ -1 +0,0 @@ -user=bluetooth seinfo=default name=com.android.bluetooth domain=bluetooth type=bluetooth_data_file levelFrom=all isPrivApp=true \ No newline at end of file From 661cf4be774adc80fddb342ea6841a890de7babc Mon Sep 17 00:00:00 2001 From: Chara Date: Fri, 27 Mar 2026 23:17:50 -0400 Subject: [PATCH 099/111] Reapply "Add com.android.bluetooth to seapp_contexts" Add com.android.bluetooth to seapp_contexts References https://github.com/crdroidandroid/android_device_xiaomi_sm8250-common/commit/807b124de6826d4278bb8fff76edf4802508a4bc This reverts commit 66cd319bdde5532b8a6ca3f8f39bad7eb8b51440. so I didn't add it to the BoardConfig.mk... whoopsie. --- sepolicy/private/seapp_contexts | 1 + 1 file changed, 1 insertion(+) create mode 100644 sepolicy/private/seapp_contexts diff --git a/sepolicy/private/seapp_contexts b/sepolicy/private/seapp_contexts new file mode 100644 index 0000000..951ea3c --- /dev/null +++ b/sepolicy/private/seapp_contexts @@ -0,0 +1 @@ +user=bluetooth seinfo=default name=com.android.bluetooth domain=bluetooth type=bluetooth_data_file levelFrom=all isPrivApp=true \ No newline at end of file From 14c2968d35c65167a554c6ff3ba9d0509bdee4ba Mon Sep 17 00:00:00 2001 From: Chara Date: Fri, 27 Mar 2026 23:29:05 -0400 Subject: [PATCH 100/111] Add private sepolicy to BoardConfig.mk; make all SPLs match. This commit references both https://github.com/crdroidandroid/android_device_xiaomi_sm8250-common/commit/b4e321e21d263bd47a783753b607e7518c795a67 and https://github.com/crdroidandroid/android_device_xiaomi_sm8250-common/commit/c2c941216af73f4c9f8e368398834c30b0b4a965 Add private sepolicy to BoardConfig.mk; make all SPLs match. Like my previous commit, this should have been done a while ago. --- BoardConfig.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 29e9e90..f4495e5 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -148,12 +148,13 @@ TARGET_USERIMAGES_USE_F2FS := true ENABLE_VENDOR_RIL_SERVICE := true # Security -BOOT_SECURITY_PATCH := 2024-10-05 +BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH) # SEPolicy include device/qcom/sepolicy_vndr/SEPolicy.mk include hardware/oplus/sepolicy/qti/SEPolicy.mk +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private # Verified Boot BOARD_AVB_ENABLE := true From 98f1a55fe57b3bad020d3e66956c2bc718fdb03e Mon Sep 17 00:00:00 2001 From: Chara Date: Sat, 18 Apr 2026 18:47:54 -0400 Subject: [PATCH 101/111] Add Apache-2.0 LICENSE file --- LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. From 38bf2e0a6dcd0d418c4cbc83c494ec36a0a78815 Mon Sep 17 00:00:00 2001 From: Chara Date: Sat, 25 Apr 2026 11:34:28 -0400 Subject: [PATCH 102/111] dre: add SystemUI restart button This implements https://github.com/crdroidandroid/android_device_sony_sm8550-common/commit/c74ef26fe8bfa297d9db1a654a5f67653d43e2e9 Thanks again, Nora! --- overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml index 9213924..2734d6b 100644 --- a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml +++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml @@ -16,6 +16,7 @@ restart + restart_systemui restart_recovery restart_bootloader restart_fastboot From cae7be6e63f386bdb9f82b52641c497fd3480941 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 30 May 2026 12:55:05 +0100 Subject: [PATCH 103/111] dre: De-blob oplus interfaces Change-Id: I86c24df31b72a9058ba3f2430f5c1bb469c4fd0b --- proprietary-files.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 36dad65..ad1ef77 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1360,9 +1360,6 @@ vendor/bin/pm-proxy vendor/bin/pm-service vendor/lib64/libperipheral_client.so -# Perf (Oplus) -odm/lib64/vendor.oplus.hardware.performance-V1-ndk_platform.so - # Power-off alarm vendor/bin/hw/vendor.qti.hardware.alarm@1.0-service vendor/bin/power_off_alarm @@ -1529,7 +1526,6 @@ vendor/lib64/qcrilMarshal.so vendor/lib64/qcrild_libqcrilnrutils.so vendor/lib64/qtiril-utils.so vendor/lib64/qtiwakelock.so -vendor/lib64/vendor.oplus.hardware.radio-V2-ndk_platform.so vendor/lib64/vendor.qti.hardware.radio.am@1.0.so vendor/lib64/vendor.qti.hardware.radio.internal.deviceinfo@1.0.so vendor/lib64/vendor.qti.hardware.radio.lpa@1.0.so From 9925ce60051c40920b45e9832a0efa011b60de5a Mon Sep 17 00:00:00 2001 From: Chara Date: Tue, 28 Jul 2026 01:30:46 -0400 Subject: [PATCH 104/111] dre: Add Chaos Engineer Identifier --- lineage_dre.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lineage_dre.mk b/lineage_dre.mk index 7c33394..7b8270f 100644 --- a/lineage_dre.mk +++ b/lineage_dre.mk @@ -40,3 +40,6 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ DeviceProduct=OnePlusN200 \ SystemDevice=OnePlusN200 \ SystemName=OnePlusN200 + +# Set Chaos Engineer Identifier +CHARA_MAINTAINER := Chara \ No newline at end of file From be93eb3c09de4824f046a0bfe508007a1e74effe Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:25:47 -0400 Subject: [PATCH 105/111] Update Android.bp --- Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.bp b/Android.bp index a419489..ad27f07 100644 --- a/Android.bp +++ b/Android.bp @@ -1,6 +1,7 @@ // // Copyright (C) 2021-2024 The LineageOS Project // SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2019-Current A-Team Digital Solutions // soong_namespace { From beda7f4d04c410d95485292707618c62e72d4089 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:27:16 -0400 Subject: [PATCH 106/111] Update AndroidProducts.mk --- AndroidProducts.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AndroidProducts.mk b/AndroidProducts.mk index a8984f8..5149227 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -13,6 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # - +# Copyright (C) 2019-Current A-Team Digital Solutions PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/lineage_dre.mk + $(LOCAL_DIR)/bliss_dre.mk From a817a0d80437f9cb7ae65b3aba1925ddcfb7edc5 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:28:58 -0400 Subject: [PATCH 107/111] Update BoardConfig.mk --- BoardConfig.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index f4495e5..300574b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,8 +1,6 @@ -# # Copyright (C) 2021-2024 The LineageOS Project -# # SPDX-License-Identifier: Apache-2.0 -# +# Copyright (C) 2019-Current A-Team Digital Solutions DEVICE_PATH := device/oneplus/dre From 0e25253853dbf472af8069f542f5e33f74935d0e Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:29:42 -0400 Subject: [PATCH 108/111] Update device.mk --- device.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/device.mk b/device.mk index 9db70ab..35514b5 100644 --- a/device.mk +++ b/device.mk @@ -1,8 +1,6 @@ -# # Copyright (C) 2021-2025 The LineageOS Project -# # SPDX-License-Identifier: Apache-2.0 -# +# Copyright (C) 2019-Current A-Team Digital Solutions # Add common definitions for Qualcomm $(call inherit-product, hardware/qcom-caf/common/common.mk) From 4ed4a96e5f8f9ba39fa1d3061e73577363c6b028 Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:30:46 -0400 Subject: [PATCH 109/111] Update lineage_dre.mk --- lineage_dre.mk | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lineage_dre.mk b/lineage_dre.mk index 7b8270f..4bc8aa1 100644 --- a/lineage_dre.mk +++ b/lineage_dre.mk @@ -1,6 +1,4 @@ -# # Copyright (C) 2021-2023 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 @@ -12,7 +10,7 @@ # 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. -# +# Copyright (C) 2019-Current A-Team Digital Solutions # Inherit from those products. Most specific first. $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) @@ -22,10 +20,10 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) # Inherit from dre device $(call inherit-product, device/oneplus/dre/device.mk) -# Inherit some common Lineage stuff. -$(call inherit-product, vendor/lineage/config/common_full_phone.mk) +# Inherit some common Bliss stuff. +$(call inherit-product, vendor/bliss/config/common_full_phone.mk) -PRODUCT_NAME := lineage_dre +PRODUCT_NAME := bliss_dre PRODUCT_DEVICE := dre PRODUCT_MANUFACTURER := OnePlus PRODUCT_BRAND := OnePlus From 2fba01f0949c99646d83f1857c4095dea14ef68f Mon Sep 17 00:00:00 2001 From: BOBtheBlinker Date: Sat, 26 Apr 2025 18:31:15 -0400 Subject: [PATCH 110/111] Update bliss_dre.mk --- lineage_dre.mk => bliss_dre.mk | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lineage_dre.mk => bliss_dre.mk (100%) diff --git a/lineage_dre.mk b/bliss_dre.mk similarity index 100% rename from lineage_dre.mk rename to bliss_dre.mk From afa45e0fbc1c3f4ca6626a6f9902ef4e90be3d67 Mon Sep 17 00:00:00 2001 From: Chara Date: Fri, 31 Jul 2026 18:10:31 -0400 Subject: [PATCH 111/111] Revert "dre: Add Chaos Engineer Identifier" This reverts commit 9925ce60051c40920b45e9832a0efa011b60de5a. This commit is being reverted since it does not apply to BlissROM. --- bliss_dre.mk | 3 --- 1 file changed, 3 deletions(-) diff --git a/bliss_dre.mk b/bliss_dre.mk index 4bc8aa1..1b3b1bf 100644 --- a/bliss_dre.mk +++ b/bliss_dre.mk @@ -38,6 +38,3 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ DeviceProduct=OnePlusN200 \ SystemDevice=OnePlusN200 \ SystemName=OnePlusN200 - -# Set Chaos Engineer Identifier -CHARA_MAINTAINER := Chara \ No newline at end of file