# override default log levels.
on boot
    setprop log.tag.GAF I

# backward-compatible system props.
on property:persist.vendor.camera.af.debug_level=0
    setprop log.tag.GAF S

on property:persist.vendor.camera.af.debug_level=1
    setprop log.tag.GAF V

on property:persist.vendor.camera.af.debug_level=2
    setprop log.tag.GAF V

on property:persist.vendor.camera.af.debug_level=3
    setprop log.tag.GAF D

on property:persist.vendor.camera.af.debug_level=4
    setprop log.tag.GAF I

on property:persist.vendor.camera.af.debug_level=5
    setprop log.tag.GAF W

on property:persist.vendor.camera.af.debug_level=6
    setprop log.tag.GAF E

on property:persist.vendor.camera.af.debug_level=7
    setprop log.tag.GAF A

on property:persist.vendor.camera.af.video_debug_enable=2
    setprop vendor.camera.3a.log_level 1
    setprop log.tag.3a.gcrd.af.parser.input V
    setprop log.tag.3a.gcrd.af.parser.output V
    setprop log.tag.3a.gcrd.af.processor V
    setprop log.tag.3a.gcrd.af.engine V
    setprop log.tag.3a.gcrd.dtm V

on property:persist.vendor.camera.af.video_debug_enable=0
    setprop vendor.camera.3a.log_level 6
    setprop log.tag.3a.gcrd.af.parser.input E
    setprop log.tag.3a.gcrd.af.parser.output E
    setprop log.tag.3a.gcrd.af.processor E
    setprop log.tag.3a.gcrd.af.engine E
    setprop log.tag.3a.gcrd.dtm E

on property:persist.vendor.camera.af.default_focus_only=false
    setprop persist.vendor.camera.af.ignore_ctrl_focus_region false
    setprop persist.vendor.camera.af.ignore_face 0
    setprop persist.vendor.camera.af.force_saliency_consumption ""

on property:persist.vendor.camera.af.default_focus_only=true
    setprop persist.vendor.camera.af.ignore_ctrl_focus_region true
    setprop persist.vendor.camera.af.ignore_face 1
    setprop persist.vendor.camera.af.force_saliency_consumption false

# Reset every related properties
on property:persist.vendor.camera.af.standalone_searchlet=reset
    setprop persist.vendor.camera.af.ignore_pd \"\"
    setprop persist.vendor.camera.af.ignore_tof \"\"
    setprop persist.vendor.camera.af.ignore_cdaf \"\"
    setprop persist.vendor.camera.af.ignore_gyro \"\"
    setprop persist.vendor.camera.af.ignore_3a \"\"
    setprop vendor.camera.debug.enable_saliency \"\"

# Standalone framework: PDAF
on property:persist.vendor.camera.af.standalone_searchlet=pdaf
    setprop persist.vendor.camera.af.ignore_tof 1
    setprop persist.vendor.camera.af.ignore_gyro 1
    setprop persist.vendor.camera.af.ignore_3a 1
    setprop vendor.camera.debug.enable_saliency 0

# Standalone framework: LDAF
on property:persist.vendor.camera.af.standalone_searchlet=ldaf
    setprop persist.vendor.camera.af.ignore_pd 7
    setprop persist.vendor.camera.af.ignore_gyro 1
    setprop persist.vendor.camera.af.ignore_3a 1
    setprop vendor.camera.debug.enable_saliency 0

# Standalone framework: CDAF
on property:persist.vendor.camera.af.standalone_searchlet=cdaf
    setprop persist.vendor.camera.af.ignore_pd 7
    setprop persist.vendor.camera.af.ignore_tof 1
    setprop vendor.camera.debug.enable_saliency 0
