summaryrefslogtreecommitdiff
path: root/conf/init.debug.rc
blob: d98e9bc82f5cd143ce072c0241dabedfe84cf81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on early-init
    mount debugfs /sys/kernel/debug /sys/kernel/debug

# SJTAG
on init
    chown system system /sys/devices/platform/sjtag_ap/interface/access_lvl
    chown system system /sys/devices/platform/sjtag_ap/interface/auth
    chown system system /sys/devices/platform/sjtag_ap/interface/begin
    chown system system /sys/devices/platform/sjtag_ap/interface/dbg_domain
    chown system system /sys/devices/platform/sjtag_ap/interface/dbg_itvl
    chown system system /sys/devices/platform/sjtag_ap/interface/end
    chown system system /sys/devices/platform/sjtag_ap/interface/pubkey
    chown system system /sys/devices/platform/sjtag_gsa/interface/access_lvl
    chown system system /sys/devices/platform/sjtag_gsa/interface/auth
    chown system system /sys/devices/platform/sjtag_gsa/interface/begin
    chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_domain
    chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_itvl
    chown system system /sys/devices/platform/sjtag_gsa/interface/end
    chown system system /sys/devices/platform/sjtag_gsa/interface/pubkey
    chown system system /d/maxfg/fg_model
    chown system system /d/maxfg/registers
    chown system system /d/maxfg_base/fg_model
    chown system system /d/maxfg_base/registers
    chown system system /d/maxfg_flip/registers
    chown system system /d/maxfg_flip/nv_registers

on property:vendor.debug.ramdump.force_crash=true
    write /sys/kernel/pixel_debug/trigger "null"

on property:power.battery_input.suspended=true
   write /sys/kernel/debug/google_charger/input_suspend 1

on property:power.battery_input.suspended=false
   write /sys/kernel/debug/google_charger/input_suspend 0

# Bluetooth
on post-fs-data
    chown bluetooth system /dev/logbuffer_btlpm
    chown bluetooth system /dev/logbuffer_btpower
    chown bluetooth system /dev/logbuffer_tty18

# Enable etm/etm2dram when ramdump is enabled.
on property:ro.boot.ramdump=enabled
    write /sys/devices/platform/exynos-etm/etm_on 1
    write /sys/devices/platform/etm2dram/arm 1