{
  "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": "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": "ResetUclampGrp",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/uclamp_fork_reset_set",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    },
    {
      "Name": "NoResetUclampGrp",
      "Actions": [
        {
          "Name": "WriteFile",
          "Params":
          {
            "FilePath": "/proc/vendor_sched/uclamp_fork_reset_clear",
            "Value": "<pid>",
            "LogFailures": "false"
          }
        }
      ]
    }
  ],

  "AggregateProfiles": [
    {
      "Name": "Dex2OatBootComplete",
      "Profiles": [ "Dex2oatPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
    },
    {
      "Name": "OtaProfiles",
      "Profiles": [ "OtaPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
    }
  ]
}
