{
    "version": 1.0,
    "strategy": {
      "postProcessEnabled": 1,
      "papPathEnabled": 1,
      "CapturePostProcessEnabled": 1,
      "VideoPostProcessEnabled": 1,
      "vendorTagProviderName": "android.hardware.camera.provider.ICameraProvider/vendorVcf/0",
      "abortRunningPostProcessEnabled": 1,
      "capture": {
        "conditions": [
          {
            "condition": "packageOnForeground",
            "value": [
              "com.bbk.launcher2"
            ],
            "action": "startPostProcess"
          },
          {
            "condition": "packageOnBackground",
            "value": [
              "com.android.camera"
            ],
            "action": "startPostProcess"
          },
          {
            "condition": "packageDied",
            "value": [
              "com.android.camera"
            ],
            "action": "startPostProcess"
          },
          {
            "condition": "packageOnBackground",
            "value": [
              "com.android.camera"
            ],
            "expireTimeMs": [
              300
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "packageDied",
            "value": [
              "com.android.camera"
            ],
            "expireTimeMs": [
              5000
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "packageOnForeground",
            "value": [
              "com.android.camera",
              "com.tencent.tmgp.sgame"
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "screenStatus",
            "value": [
              "off"
            ],
            "action": "startPostProcess"
          },
          {
            "condition": "lowMemory",
            "action": "stopPostProcess"
          },
          {
            "condition": "backgroundStatus",
            "value": [
              {
                "variable": "mBatteryCapacity",
                "op": "<",
                "threshold": 5
              },
              {
                "variable": "mCpuWorkLoadNormalized",
                "op": ">",
                "threshold": 0.8
              }
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "packageOnForeground",
            "value": [
              "com.android.camera"
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "packageOnForeground",
            "value": [
              "com.vivo.gallery"
            ],
            "action": "startPostProcess"
          },
          {
            "condition": "overheat",
            "action": "stopPostProcess"
          },
          {
            "condition": "activityOnForeground",
            "value": [
              "com.android.camera"
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "appNotifyThumbnailClicked",
            "action": "startPostProcess"
          },
          {
            "condition": "systemSleep",
            "action": "stopPostProcess"
          }
        ]
      },
      "video": {
        "conditions": [
          {
            "condition": "screenStatus",
            "value": [
              "off"
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "screenStatus",
            "value": [
              "on", "userPresent"
            ],
            "action": "stopPostProcess"
          },
          {
            "condition": "backgroundStatus",
            "scene": {
              "screenStatus": [ "on", "userPresent" ],
              "batteryStatus": [ "discharging", "notCharging", "full" ]
            },
            "matchAllValue": "true",
            "value": [
              {
                "condition": "fineMemory"
              },
              {
                "variable": "mCpuWorkLoadNormalized",
                "op": "<=",
                "threshold": 0.7
              },
              {
                "variable": "mShellTemperature",
                "op": "<=",
                "threshold": 35
              },
              {
                "variable": "mBatteryCapacity",
                "op": ">=",
                "threshold": 70
              },
              {
                "variable": "mMediaResourceNumber",
                "op": "<=",
                "threshold": 2
              }
            ],
            "action": "startPostProcess",
            "videoMaxSeconds": 120,
            "videoNum": -1
          },
          {
            "condition": "backgroundStatus",
            "scene": {
              "backgroundStatusChange": {
                "type": "foregroundActivities",
                "package": "com.android.camera"
              }
            },
            "matchAllValue": "true",
            "value": [
              {
                "condition": "fineMemory"
              },
              {
                "variable": "mCpuWorkLoadNormalized",
                "op": "<=",
                "threshold": 0.8
              },
              {
                "variable": "mShellTemperature",
                "op": "<=",
                "threshold": 43
              },
              {
                "variable": "mBatteryCapacity",
                "op": ">=",
                "threshold": 50
              },
              {
                "variable": "mMediaResourceNumber",
                "op": "<=",
                "threshold": 4
              }
            ],
            "action": "startPostProcess",
            "videoMaxSeconds": 30,
            "videoNum": 1
          },
          {
            "condition": "packageOnForeground",
            "value": [
              "com.android.camera",
              "com.vivo.gallery",
              "com.vivo.videoeditor",
              "com.vivo.postprocessappdemo",
              "com.vivo.videoeditordemo"
            ],
            "action": "stopPostProcessImmediate"
          },
          {
            "condition": "gameMode",
            "action": "stopPostProcessImmediate"
          },
          {
            "condition": "backgroundStatus",
            "scene": {
              "screenStatus": [ "off" ],
              "batteryStatus": [ "charging", "full" ]
            },
            "matchAllValue": "true",
            "value": [
              {
                "condition": "fineMemory"
              },
              {
                "variable": "mCpuWorkLoadNormalized",
                "op": "<=",
                "threshold": 0.8
              },
              {
                "variable": "mShellTemperature",
                "op": "<=",
                "threshold": 37
              },
              {
                "variable": "mBatteryCapacity",
                "op": ">=",
                "threshold": 30
              },
              {
                "variable": "mMediaResourceNumber",
                "op": "<=",
                "threshold": 4
              }
            ],
            "action": "startPostProcess",
            "videoMaxSeconds": -1,
            "videoNum": -1
          },
          {
            "condition": "backgroundStatus",
            "scene": {
              "screenStatus": [ "off" ],
              "batteryStatus": [ "discharging", "notCharging" ]
            },
            "matchAllValue": "true",
            "value": [
              {
                "condition": "fineMemory"
              },
              {
                "variable": "mCpuWorkLoadNormalized",
                "op": "<=",
                "threshold": 0.7
              },
              {
                "variable": "mShellTemperature",
                "op": "<=",
                "threshold": 37
              },
              {
                "variable": "mBatteryCapacity",
                "op": ">=",
                "threshold": 50
              },
              {
                "variable": "mMediaResourceNumber",
                "op": "<=",
                "threshold": 2
              }
            ],
            "action": "startPostProcess",
            "videoMaxSeconds": 120,
            "videoNum": 1
          },
          {
            "condition": "systemSleep",
            "action": "stopPostProcess"
          },
          {
            "condition": "usbStatus",
            "value": [
              "connected"
            ],
            "action": "startForceVideoPostProcess"
          }
        ]
      },
      "longVideo": {
        "conditions": [
          {
            "condition": "videoDuration",
            "value": [
              {
                "variable": "durationMs",
                "op": ">",
                "threshold": 120000
              }
            ],
            "action": "startLongVideoPostProcess"
          }
        ]
      },
      "settings": {
        "temperature": {
          "getTemperatureMethod": "useShellTemperature",
          "idleTimeLowTemperature": 35,
          "idleTimeHighTemperature": 37,
          "idleTimeLowTemperatureCharging": 35,
          "idleTimeHighTemperatureCharging": 37,
          "idleTimeUtralHighTemperature":51,
          "idleTimeHighTemperatureMaxProcessSeconds": 60,
          "cameraOrGalleryExitMaxProcessSeconds": 60
        },
        "cameraExitWakeupTimerMs": 5000
      },
      "enablePAPConfig": {
        "isSupportPAP": 1,
        "isFirstShotSkipPAP": 1,
        "highTemperatureThreshPAP": 47,
        "enablePAPScenes": [
          {
            "uiMode": 0,
            "firstShotPAPScenes": [
                "livephoto"
            ]
          },
          {
            "uiMode": 1,
            "cameraFacing": 1,
            "forcePAPScenes": [
                "ufsBurstShot",
                "livephoto"
            ],
            "firstShotPAPScenes": [
                "lowMemory",
                "livephoto",
                "ufsBurstShot"
            ]
          },
          {
            "uiMode": 1,
            "cameraFacing": 0,
            "firstShotPAPScenes": [
                "livephoto"
            ]
          },
          {
            "uiMode": 29,
            "forcePAPScenes": [
                "aiHighResolution",
                "isUltraHighResolution"
            ],
            "scenes": [
                "aiHighResolution",
                "lowMemory",
                "isUltraHighResolution",
                "isUltraHighResolution25M"
            ],
            "noPAPScenes": [
                "niceOWL",
                "fastns",
                "flash",
                "burst",
                "aiComposition",
                "niceHEX200m"
            ],
            "firstShotPAPScenes": [
                "lowMemory",
                "aiHighResolution",
                "isUltraHighResolution"
            ]
          },
          {
            "uiMode": 31,
            "forcePAPScenes": [
                "livephoto",
                "portraitHighRes"
            ],
            "scenes": [
                "flashPortrait",
                "flash",
                "nightPortrait",
                "motionPortrait",
                "highTemperature",
                "portraitHighRes"
            ],
            "noPAPScenes": [
                "niceOWL",
                "fastns",
                "flash",
                "burst",
                "aiComposition",
                "niceHEX200m"
            ],
            "firstShotPAPScenes": [
                "flashPortrait",
                "highTemperature",
                "livephoto",
                "portraitHighRes"
            ]
          },
          {
            "uiMode": 70
          },
          {
            "uiMode": 35,
            "forcePAPScenes": [
                "ufsBurstShot",
                "livephoto"
            ],
            "scenes": [
                "highTemperature"
            ],
            "noPAPScenes": [
                "niceOWL",
                "fastns",
                "flash",
                "burst",
                "aiComposition"
            ],
            "firstShotPAPScenes": [
                "highTemperature",
                "livephoto",
                "ufsBurstShot"
            ]
          },
          {
            "uiMode": 69,
            "forcePAPScenes": [
                "videoCapturelivephoto"
            ],
            "firstShotPAPScenes": [
                "videoCapturelivephoto"
            ]
          },
          {
            "uiMode": 71,
            "scenes": [
                "highTemperature",
                "ufsBurstShot"
            ],
            "noPAPScenes": [
                "niceOWL",
                "fastns",
                "flash",
                "burst",
                "SRAW"
            ],
            "firstShotPAPScenes": [
                "highTemperature",
                "ufsBurstShot"
            ]
          },
          {
            "uiMode": 74,
            "forcePAPScenes": [
                "aiHighResolution",
                "isUltraHighResolution"
            ],
            "scenes": [
                "highTemperature",
                "aiHighResolution",
                "lowMemory",
                "isUltraHighResolution",
                "isUltraHighResolution25M"
            ],
            "noPAPScenes": [
                "niceOWL",
                "fastns",
                "flash",
                "scenerySubfunction",
                "aiComposition",
                "niceHEX200m"
            ],
            "firstShotPAPScenes": [
                "lowMemory",
                "aiHighResolution",
                "isUltraHighResolution"
            ]
          },
          {
            "uiMode": 3,
            "forcePAPScenes": [
                "videoCapturelivephoto"
            ],
            "firstShotPAPScenes": [
                "videoCapturelivephoto"
            ]
          }
        ]
      }
    }
  }
