1# SJTAG 2on init 3 chown system system /sys/devices/platform/sjtag_ap/interface/access_lvl 4 chown system system /sys/devices/platform/sjtag_ap/interface/auth 5 chown system system /sys/devices/platform/sjtag_ap/interface/begin 6 chown system system /sys/devices/platform/sjtag_ap/interface/dbg_domain 7 chown system system /sys/devices/platform/sjtag_ap/interface/dbg_itvl 8 chown system system /sys/devices/platform/sjtag_ap/interface/end 9 chown system system /sys/devices/platform/sjtag_ap/interface/pubkey 10 chown system system /sys/devices/platform/sjtag_gsa/interface/access_lvl 11 chown system system /sys/devices/platform/sjtag_gsa/interface/auth 12 chown system system /sys/devices/platform/sjtag_gsa/interface/begin 13 chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_domain 14 chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_itvl 15 chown system system /sys/devices/platform/sjtag_gsa/interface/end 16 chown system system /sys/devices/platform/sjtag_gsa/interface/pubkey 17 18on property:vendor.debug.ramdump.force_crash=true 19 write /sys/kernel/pixel_debug/trigger "null" 20 21on property:power.battery_input.suspended=true 22 write /sys/kernel/debug/google_charger/input_suspend 1 23 24on property:power.battery_input.suspended=false 25 write /sys/kernel/debug/google_charger/input_suspend 0 26 27# Bluetooth 28on post-fs-data 29 chown bluetooth system /dev/logbuffer_btlpm 30 chown bluetooth system /dev/logbuffer_btpower 31 chown bluetooth system /dev/logbuffer_tty18 32 33# pKVM performance is different on A0 and B0 chips. 34# Add extra tag to metrics collected on A0 to separate the results. 35on property:ro.revision=PROTO1.0 36 setprop debug.hypervisor.metrics_tag "hwrev_a0" 37on property:ro.revision=PROTO1.1 38 setprop debug.hypervisor.metrics_tag "hwrev_a0" 39on property:ro.revision=EVT1.0 40 setprop debug.hypervisor.metrics_tag "hwrev_a0" 41 42service vendor.check_ap_pd_auth_sh /vendor/bin/init.check_ap_pd_auth.sh 43 class main 44 user root 45 group root system 46 oneshot 47 48# Enable etm/etm2dram when ramdump is enabled, and ap-sjtag is unlocked. 49on property:ro.boot.ramdump=enabled && property:ro.vendor.sjtag_ap_is_unlocked=true 50 write /sys/devices/platform/exynos-etm/etm_on 1 51 write /sys/devices/platform/etm2dram/arm 1 52