Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 0d18144c authored by Alexander Grund's avatar Alexander Grund Committed by GitHub
Browse files

Merge pull request #2 from Flamefire/fixes

Fixes
parents ed729adb a8a378c2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -43,6 +43,9 @@ BOARD_VENDORIMAGE_PARTITION_SIZE := 1610612736
### DISPLAY
TARGET_SCREEN_DENSITY := 320

### POWER
TARGET_USE_CUSTOM_POWERHINT := true

### VNDK
BOARD_VNDK_VERSION := current

+551 −0
Original line number Diff line number Diff line
{
  "Nodes": [
    {
      "Name": "CPULittleClusterMaxFreq",
      "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
      "Values": [
        "1900800",
        "1555200",
        "1478400",
        "1248000"
      ],
      "DefaultIndex": 0,
      "ResetOnInit": true
    },
    {
      "Name": "CPULittleClusterMinFreq",
      "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
      "Values": [
        "1900800",
        "1555200",
        "1478400",
        "1171200",
        "0"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "CPUBigClusterMaxFreq",
      "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq",
      "Values": [
        "2457600",
        "1958400",
        "1574400",
        "1344000",
        "1267200"
      ],
      "DefaultIndex": 0,
      "ResetOnInit": true
    },
    {
      "Name": "CPUBigClusterMinFreq",
      "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq",
      "Values": [
        "2457600",
        "1574400",
        "1420800",
        "1344000",
        "1132800",
        "0"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "GPUMaxFreq",
      "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq",
      "Values": [
        "342000000",
        "414000000",
        "515000000",
        "710000000"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "GPUMinFreq",
      "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq",
      "Values": [
        "515000000",
        "414000000",
        "257000000"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "GPUBusMinFreq",
      "Path": "/sys/class/devfreq/soc:qcom,gpubw/min_freq",
      "Values": [
        "11863",
        "7759",
        "0"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "TASchedtuneBoost",
      "Path": "/dev/stune/top-app/schedtune.boost",
      "Values": [
        "30",
        "10"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "CPUBWHystTriggerCount",
      "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_trigger_count",
      "Values": [
        "0",
        "3"
      ]
    },
    {
      "Name": "CPUBWHistMemory",
      "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hist_memory",
      "Values": [
        "0",
        "20"
      ]
    },
    {
      "Name": "CPUBWHystLength",
      "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_length",
      "Values": [
        "0",
        "10"
      ]
    },
    {
      "Name": "CPUBWMinFreq",
      "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/min_freq",
      "Values": [
        "13763",
        "5195",
        "1525",
        "762"
      ],
      "ResetOnInit": true
    },
    {
      "Name": "PMQoSCpuDmaLatency",
      "Path": "/dev/cpu_dma_latency",
      "Values": [
        "44",
        "100"
      ],
      "HoldFd": true
    },
    {
      "Name": "PowerHALMainState",
      "Path": "vendor.powerhal.state",
      "Values": [
        "CAMERA_STREAMING",
        "VR_SUSTAINED_PERFORMANCE",
        "SUSTAINED_PERFORMANCE",
        "VR_MODE",
        ""
      ],
      "Type": "Property"
    },
    {
      "Name": "PowerHALAudioState",
      "Path": "vendor.powerhal.audio",
      "Values": [
        "AUDIO_LOW_LATENCY",
        ""
      ],
      "Type": "Property"
    },
    {
      "Name": "PowerHALRenderingState",
      "Path": "vendor.powerhal.rendering",
      "Values": [
        "EXPENSIVE_RENDERING",
        ""
      ],
      "Type": "Property"
    },
    {
      "Name": "ThermalMode",
      "Path": "vendor.thermal.vr_mode",
      "Values": [
        "-vr",
        "-novr"
      ],
      "Type": "Property"
    }
  ],
  "Actions": [
    {
      "PowerHint": "VIDEO_ENCODE",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 0,
      "Value": "1958400"
    },
    {
      "PowerHint": "SUSTAINED_PERFORMANCE",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 0,
      "Value": "1267200"
    },
    {
      "PowerHint": "SUSTAINED_PERFORMANCE",
      "Node": "PowerHALMainState",
      "Duration": 0,
      "Value": "SUSTAINED_PERFORMANCE"
    },
    {
      "PowerHint": "SUSTAINED_PERFORMANCE",
      "Node": "CPULittleClusterMaxFreq",
      "Duration": 0,
      "Value": "1248000"
    },
    {
      "PowerHint": "SUSTAINED_PERFORMANCE",
      "Node": "GPUMaxFreq",
      "Duration": 0,
      "Value": "342000000"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "PowerHALMainState",
      "Duration": 0,
      "Value": "VR_MODE"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "ThermalMode",
      "Duration": 0,
      "Value": "-vr"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 0,
      "Value": "1574400"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 0,
      "Value": "1574400"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "CPULittleClusterMaxFreq",
      "Duration": 0,
      "Value": "1555200"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 0,
      "Value": "1555200"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "GPUMaxFreq",
      "Duration": 0,
      "Value": "515000000"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "GPUMinFreq",
      "Duration": 0,
      "Value": "414000000"
    },
    {
      "PowerHint": "VR_MODE",
      "Node": "GPUBusMinFreq",
      "Duration": 0,
      "Value": "11863"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "PowerHALMainState",
      "Duration": 0,
      "Value": "VR_SUSTAINED_PERFORMANCE"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "ThermalMode",
      "Duration": 0,
      "Value": "-vr"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 0,
      "Value": "1344000"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 0,
      "Value": "1344000"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "CPULittleClusterMaxFreq",
      "Duration": 0,
      "Value": "1478400"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 0,
      "Value": "1478400"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "GPUMaxFreq",
      "Duration": 0,
      "Value": "414000000"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "GPUMinFreq",
      "Duration": 0,
      "Value": "414000000"
    },
    {
      "PowerHint": "VR_SUSTAINED_PERFORMANCE",
      "Node": "GPUBusMinFreq",
      "Duration": 0,
      "Value": "7759"
    },
    {
      "PowerHint": "INTERACTION",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 0,
      "Value": "1132800"
    },
    {
      "PowerHint": "INTERACTION",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 0,
      "Value": "1171200"
    },
    {
      "PowerHint": "INTERACTION",
      "Node": "TASchedtuneBoost",
      "Duration": 0,
      "Value": "30"
    },
    {
      "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": "5195"
    },
    {
      "PowerHint": "LAUNCH",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 5000,
      "Value": "2457600"
    },
    {
      "PowerHint": "LAUNCH",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 5000,
      "Value": "2457600"
    },
    {
      "PowerHint": "LAUNCH",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 5000,
      "Value": "1900800"
    },
    {
      "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": "13763"
    },
    {
      "PowerHint": "CAMERA_LAUNCH",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 1000,
      "Value": "2457600"
    },
    {
      "PowerHint": "CAMERA_LAUNCH",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 1000,
      "Value": "2457600"
    },
    {
      "PowerHint": "CAMERA_LAUNCH",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 1000,
      "Value": "1900800"
    },
    {
      "PowerHint": "CAMERA_LAUNCH",
      "Node": "PMQoSCpuDmaLatency",
      "Duration": 1000,
      "Value": "44"
    },
    {
      "PowerHint": "CAMERA_STREAMING",
      "Node": "PowerHALMainState",
      "Duration": 0,
      "Value": "CAMERA_STREAMING"
    },
    {
      "PowerHint": "CAMERA_STREAMING",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 1000,
      "Value": "2457600"
    },
    {
      "PowerHint": "CAMERA_STREAMING",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 1000,
      "Value": "2457600"
    },
    {
      "PowerHint": "CAMERA_STREAMING",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 1000,
      "Value": "1900800"
    },
    {
      "PowerHint": "CAMERA_STREAMING",
      "Node": "PMQoSCpuDmaLatency",
      "Duration": 1000,
      "Value": "44"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPUBigClusterMaxFreq",
      "Duration": 1000,
      "Value": "2457600"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 1000,
      "Value": "2457600"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPULittleClusterMinFreq",
      "Duration": 1000,
      "Value": "1900800"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "PMQoSCpuDmaLatency",
      "Duration": 1000,
      "Value": "44"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPUBWHystTriggerCount",
      "Duration": 1000,
      "Value": "0"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPUBWHystLength",
      "Duration": 1000,
      "Value": "0"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPUBWHistMemory",
      "Duration": 1000,
      "Value": "0"
    },
    {
      "PowerHint": "CAMERA_SHOT",
      "Node": "CPUBWMinFreq",
      "Duration": 1000,
      "Value": "13763"
    },
    {
      "PowerHint": "AUDIO_STREAMING",
      "Node": "CPUBigClusterMinFreq",
      "Duration": 2000,
      "Value": "1420800"
    },
    {
      "PowerHint": "AUDIO_STREAMING",
      "Node": "PMQoSCpuDmaLatency",
      "Duration": 2000,
      "Value": "44"
    },
    {
      "PowerHint": "AUDIO_LOW_LATENCY",
      "Node": "PowerHALAudioState",
      "Duration": 0,
      "Value": "AUDIO_LOW_LATENCY"
    },
    {
      "PowerHint": "AUDIO_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": "414000000"
    },
    {
      "PowerHint": "EXPENSIVE_RENDERING",
      "Node": "GPUMaxFreq",
      "Duration": 0,
      "Value": "710000000"
    }
  ]
}
+4 −0
Original line number Diff line number Diff line
@@ -28,4 +28,8 @@ DEVICE_PACKAGE_OVERLAYS += \
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
    $(DEVICE_PATH)/overlay/packages/apps/CarrierConfig

### POWER
PRODUCT_COPY_FILES += \
    $(DEVICE_PATH)/config/power/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json

include $(DEVICE_PATH)/device/*.mk
+6 −2
Original line number Diff line number Diff line
@@ -27,9 +27,13 @@ PRODUCT_MANUFACTURER := Sony

PRODUCT_BUILD_PROP_OVERRIDES += \
    PRODUCT_NAME=lilac \
    PRIVATE_BUILD_DESC="G8441-user 9 47.2.A.11.228 3311891731 release-keys"
    PRIVATE_BUILD_DESC="redfin-user 11 RQ1A.210205.004 7038034 release-keys" \
    BUILD_NUMBER=7038034

BUILD_FINGERPRINT := Sony/G8441/G8441:9/47.2.A.11.228/3311891731:user/release-keys
# Pixel 5 May fingerprint
BUILD_FINGERPRINT := google/redfin/redfin:11/RQ2A.210505.003/7255357:user/release-keys

PRODUCT_GMS_CLIENTID_BASE := android-sony-mobile

ifneq ($(LINEAGE_DEV_CERTIFICATE),)
    PRODUCT_DEFAULT_DEV_CERTIFICATE := $(LINEAGE_DEV_CERTIFICATE)
+8 −2
Original line number Diff line number Diff line
@@ -699,9 +699,11 @@ vendor/firmware/tzwvcpybuf.b06
vendor/firmware/tzwvcpybuf.b07
vendor/firmware/tzwvcpybuf.mdt
vendor/lib/libwvhidl.so
vendor/lib/libminksocket.so
vendor/lib/libwvtee.so
vendor/lib/mediadrm/libwvdrmengine.so
vendor/lib64/libwvhidl.so
vendor/lib64/libminksocket.so
vendor/lib64/libwvtee.so
vendor/lib64/mediadrm/libwvdrmengine.so

@@ -1011,10 +1013,8 @@ vendor/lib64/hw/com.qualcomm.qti.ant@1.0-impl.so
# QTI_BLUETOOTH
vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti
vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc
vendor/lib/com.qualcomm.qti.bluetooth_audio@1.0.so
vendor/lib/hw/android.hardware.bluetooth@1.0-impl-qti.so
vendor/lib/hw/com.qualcomm.qti.bluetooth_audio@1.0-impl.so
vendor/lib64/com.qualcomm.qti.bluetooth_audio@1.0.so
vendor/lib64/hw/android.hardware.bluetooth@1.0-impl-qti.so
vendor/lib64/hw/com.qualcomm.qti.bluetooth_audio@1.0-impl.so

@@ -1133,6 +1133,12 @@ vendor/lib64/libkeymasterutils.so

# QTI_PERF - from cheeseburger - QKQ1.191014.012
vendor/bin/energy-awareness|468d5fc803ac4a97ee23f8908feaadd015f96f77
vendor/lib/vendor.qti.hardware.perf@1.0.so|8fb84f6353794e276027a24b7198bdccd26cc327
vendor/lib/vendor.qti.hardware.perf@2.0.so|d5a9678f2583b616f55d2eb9643b85cb13f8dd06
vendor/lib/libqti-perfd-client.so|2c488bc54a6ba25c6dab51dcb538efe6b0ae2b86
vendor/lib64/vendor.qti.hardware.perf@1.0.so|afd9b13e1a08a77afa0603731c90e58c4cc570f9
vendor/lib64/vendor.qti.hardware.perf@2.0.so|8330f1eb40d6288641a86afae4dd5ba8a154533b
vendor/lib64/libqti-perfd-client.so|0c2b82b5e5df6e0efb03ace4a259eb63487dd2b6

# QTI_QTEECONNECTOR
vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service
Loading