From 1285fd9c56ae01f3f9a0f877d6953bceca1e5239 Mon Sep 17 00:00:00 2001 From: Kostya Yarmash Date: Tue, 1 Oct 2024 12:29:36 +0000 Subject: [PATCH] init.zumapro.rc: change permission of SJTAG writable files On userdebug & eng builds, change permission of SJTAG writable sysfs files that need to be written to 'system'. This became necessary after HSUM separated main user from the SYSTEM user Bug: 367918586 Flag: EXEMPT bugfix Test: Ensure that there is "Privileged Debugging" item in BetterBug settings. Change-Id: Id433aea05d23841bb5b45b7b9464daa72602269b Signed-off-by: Kostya Yarmash --- conf/init.debug.rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conf/init.debug.rc b/conf/init.debug.rc index 019a514..9b536b4 100644 --- a/conf/init.debug.rc +++ b/conf/init.debug.rc @@ -15,6 +15,15 @@ on init chown system system /sys/devices/platform/sjtag_gsa/interface/end chown system system /sys/devices/platform/sjtag_gsa/interface/pubkey + # HSUM separated main user from the SYSTEM user, granting write permissions + # for write only SJTAG sysfs files + chmod 220 /sys/devices/platform/sjtag_ap/interface/auth + chmod 220 /sys/devices/platform/sjtag_ap/interface/begin + chmod 220 /sys/devices/platform/sjtag_ap/interface/end + chmod 220 /sys/devices/platform/sjtag_gsa/interface/auth + chmod 220 /sys/devices/platform/sjtag_gsa/interface/begin + chmod 220 /sys/devices/platform/sjtag_gsa/interface/end + on property:vendor.debug.ramdump.force_crash=true write /sys/kernel/pixel_debug/trigger "null"