{
  "Profiles": [
    {
      "Name": "MaxPerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/ta/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "CameraServicePerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/cam/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/cam/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "CameraServicePower",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/cam_power/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/cam_power/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "Dex2oatPerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/dex2oat/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/dex2oat/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "OtaPerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/ota/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/ota/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "CameraServiceHighCapacity",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpuset",
            "Path": "camera-daemon-high-group"
          }
        }
      ]
    },
    {
      "Name": "CameraServiceMidCapacity",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpuset",
            "Path": "camera-daemon-mid-group"
          }
        }
      ]
    },
    {
      "Name": "CameraServiceMidHighCapacity",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpuset",
            "Path": "camera-daemon-mid-high-group"
          }
        }
      ]
    },
    {
      "Name": "HighEnergySaving",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/bg/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/bg/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "NormalPerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/sys/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/sys/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "HighPerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/fg/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/fg/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "HighPerformanceWI",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/fg_wi/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/fg_wi/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "RealtimePerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/ta/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "NNApiHALPerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/nnapi/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/nnapi/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "ServicePerformance",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/sys_bg/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/sys_bg/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "SFMainPolicy",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpuset",
            "Path": "top-app"
          }
        },
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/sf/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/sf/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "SFRenderEnginePolicy",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpuset",
            "Path": "top-app"
          }
        },
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/groups/rt/set_task_group",
            "ProcFilePath": "/proc/vendor_sched/groups/rt/set_proc_group",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "AdpfSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/adpf_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "AdpfClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/adpf_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "BoostPrioSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/boost_prio_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "BoostPrioClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/boost_prio_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreemptWakeupSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/preempt_wakeup_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreemptWakeupClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/preempt_wakeup_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreferFitSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/prefer_fit_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreferFitClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/prefer_fit_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreferIdleSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/prefer_idle_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreferIdleClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/prefer_idle_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "AutoUclampMaxSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/auto_uclamp_max_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "AutoUclampMaxClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/auto_uclamp_max_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreferHighCapSet",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/prefer_high_cap_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "PreferHighCapClear",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/sched_qos/prefer_high_cap_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "HighestCfsPrioScheduling",
      "Actions": [
        {
          "Name": "SetSchedulerPolicy",
          "Params":
          {
            "Policy": "SCHED_OTHER",
            "Nice": "-20"
          }
        }
      ]
    }
  ],

  "AggregateProfiles": [
    {
      "Name": "Dex2OatBootComplete",
      "Profiles": [ "Dex2oatPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
    },
    {
      "Name": "OtaProfiles",
      "Profiles": [ "OtaPerformance", "ServiceCapacityLow", "LowIoPriority", "TimerSlackHigh" ]
    },
    {
      "Name": "SCHED_QOS_SENSITIVE_EXTREME_SET",
      "Profiles": [ "AdpfSet", "PreferIdleSet", "PreferFitSet", "BoostPrioSet", "PreemptWakeupSet" ]
    },
    {
      "Name": "SCHED_QOS_SENSITIVE_EXTREME_CLEAR",
      "Profiles": [ "AdpfClear", "PreferIdleClear", "PreferFitClear", "BoostPrioClear", "PreemptWakeupClear" ]
    },
    {
      "Name": "SCHED_QOS_SENSITIVE_STANDARD_SET",
      "Profiles": [ "AdpfSet", "PreferIdleSet", "PreferFitSet" ]
    },
    {
      "Name": "SCHED_QOS_SENSITIVE_STANDARD_CLEAR",
      "Profiles": [ "AdpfClear", "PreferIdleClear", "PreferFitClear" ]
    },
    {
      "Name": "SCHED_QOS_POWER_EFFICIENCY_SET",
      "Profiles": [ "AutoUclampMaxSet" ]
    },
    {
      "Name": "SCHED_QOS_POWER_EFFICIENCY_CLEAR",
      "Profiles": [ "AutoUclampMaxClear" ]
    },
    {
      "Name": "InputPolicy",
      "Profiles": [ "HighestCfsPrioScheduling", "MaxPerformance", "SCHED_QOS_SENSITIVE_EXTREME_SET" ]
    }
  ]
}
