mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 00:14:05 +00:00
Bug: 278988913 Change-Id: I5c703310a4f82acf52fad87854682ca6e668d99b Signed-off-by: Robin Peng <robinpeng@google.com>
46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
# 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
|
|
|
|
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
|
|
|
|
# pKVM performance is different on A0 and B0 chips.
|
|
# Add extra tag to metrics collected on A0 to separate the results.
|
|
on property:ro.revision=PROTO1.0
|
|
setprop debug.hypervisor.metrics_tag "hwrev_a0"
|
|
on property:ro.revision=PROTO1.1
|
|
setprop debug.hypervisor.metrics_tag "hwrev_a0"
|
|
on property:ro.revision=EVT1.0
|
|
setprop debug.hypervisor.metrics_tag "hwrev_a0"
|
|
|
|
# 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
|