clover: Add task_profiles to system
* cgroups and task_profiles exists in system/etc/task_profiles, but it does not has API26 ones so we add it * Schedtune sometimes fail maybe because of this but still unsure Signed-off-by: clarencelol <clarencekuiek@icloud.com> Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
0312cfccd0
commit
081f0ca1dc
3 changed files with 153 additions and 0 deletions
11
configs/task_profiles/cgroups_26.json
Normal file
11
configs/task_profiles/cgroups_26.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"Cgroups": [
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "/dev/stune",
|
||||||
|
"Mode": "0755",
|
||||||
|
"UID": "system",
|
||||||
|
"GID": "system"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
135
configs/task_profiles/task_profiles_26.json
Normal file
135
configs/task_profiles/task_profiles_26.json
Normal file
|
@ -0,0 +1,135 @@
|
||||||
|
{
|
||||||
|
"Attributes": [
|
||||||
|
{
|
||||||
|
"Name": "STuneBoost",
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"File": "schedtune.boost"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "STunePreferIdle",
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"File": "schedtune.prefer_idle"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"Profiles": [
|
||||||
|
{
|
||||||
|
"Name": "HighEnergySaving",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "NormalPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "HighPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "foreground"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MaxPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "top-app"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "RealtimePerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "rt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CameraServicePerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "camera-daemon"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "NNApiHALPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "schedtune",
|
||||||
|
"Path": "nnapi-hal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "CpuPolicySpread",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetAttribute",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Name": "STunePreferIdle",
|
||||||
|
"Value": "1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CpuPolicyPack",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetAttribute",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Name": "STunePreferIdle",
|
||||||
|
"Value": "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -69,6 +69,13 @@ PRODUCT_COPY_FILES += \
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
androidx.window.extensions
|
androidx.window.extensions
|
||||||
|
|
||||||
|
# Task profiles
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(DEVICE_PATH)/configs/task_profiles/cgroups_26.json:$(TARGET_COPY_OUT_SYSTEM)/etc/task_profiles/cgroups_26.json \
|
||||||
|
$(DEVICE_PATH)/configs/task_profiles/task_profiles_26.json:$(TARGET_COPY_OUT_SYSTEM)/etc/task_profiles/task_profiles_26.json \
|
||||||
|
$(DEVICE_PATH)/configs/task_profiles/cgroups_26.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
|
||||||
|
$(DEVICE_PATH)/configs/task_profiles/task_profiles_26.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
CloverWifiOverlay
|
CloverWifiOverlay
|
||||||
|
|
Loading…
Reference in a new issue