summaryrefstree
path: root/vendor/etc/init/mtklog.rc
blob: bef2516cd2bf279726235bf8818b092fc795aec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
on property:sys.boot_completed=1 && property:ro.build.type=eng
    write /proc/dynamic_debug/control "file *mediatek* +p ; file *gpu* =_"
on property:sys.boot_completed=1 && property:ro.build.type=userdebug
    write /proc/dynamic_debug/control "file *mediatek* +p ; file *gpu* =_"

on property:sys.boot_completed=1
    write /proc/pl_lk "0"
    write /proc/mtprintk "0"
    write /proc/mtprintk "3"
    write /proc/mtprintk ${persist.vendor.uartconsole.enable}

## mtk printk uart controller
on property:persist.vendor.uartconsole.enable=*
    write /proc/mtprintk ${persist.vendor.uartconsole.enable}