--- /dev/null
+{
+ "Nodes": [
+ {
+ "Name": "INTERACTIVE_ACTION",
+ "Path": "/sys/power/early_suspend_trigger",
+ "Values": [
+ "0",
+ "1"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": true
+ },
+ {
+ "Name": "CPUScalingGovernor",
+ "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor",
+ "Values": [
+ "interactive",
+ "performance"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": true
+ },
+ {
+ "Name": "CPUCmd",
+ "Path": "/sys/class/mpgpu/mpgpucmd",
+ "Values": [
+ " ",
+ "preheat"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": true
+ }
+ ],
+ "Actions": [
+ {
+ "PowerHint": "INTERACTIVE",
+ "Node": "INTERACTIVE_ACTION",
+ "Duration": 0,
+ "Value": "1"
+ },
+ {
+ "PowerHint": "FIXED_PERFORMANCE",
+ "Node": "CPUScalingGovernor",
+ "Duration": 0,
+ "Value": "performance"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPUCmd",
+ "Duration": 0,
+ "Value": "preheat"
+ }
+ ]
+}
#
-# Copyright (C) 2021-2023 The LineageOS Project
+# Copyright (C) 2021-2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
## Power
PRODUCT_PACKAGES += \
- android.hardware.power-V2-ndk_platform.vendor
+ android.hardware.power-service.lineage-libperfmgr
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
## Shipping API
PRODUCT_SHIPPING_API_LEVEL := 29
## Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
- $(LOCAL_PATH)
+ $(LOCAL_PATH) \
+ hardware/google/interfaces \
+ hardware/google/pixel \
+ hardware/lineage/interfaces/power-libperfmgr
## Thermal
PRODUCT_PACKAGES += \
vendor/lib/libstagefrighthw.so
vendor/lib/libthreadworker_alt.so
-## Power
-vendor/bin/hw/android.hardware.power.aidl-service.droidlogic
-vendor/etc/init/android.hardware.power-service.libperfmgr.rc
-vendor/etc/powerhint.json
-vendor/etc/vintf/manifest/android.hardware.power-service.xml
-vendor/lib/libdisppower.so
-vendor/lib/libperfmgr.so
-
## remotecfg
vendor/bin/remotecfg
vendor/etc/remote.cfg