From 09cb4227bb313274e46b973024ed3820319778e1 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 27 Feb 2023 14:23:00 -0800 Subject: [PATCH] dumpstate: add GSA logs to bugreport Add support for reading the GSA logs sysfs file to see the GSA logs in the bugreports we get from dogfooders. Bug: 271125313 Test: adb shell dumpstate Change-Id: I09a2e039451b5eb8b7fa360ba03486bd871fb970 --- dumpstate/Android.bp | 7 +++++++ dumpstate/dump_gsa.sh | 8 ++++++++ dumpstate/item.mk | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 dumpstate/dump_gsa.sh diff --git a/dumpstate/Android.bp b/dumpstate/Android.bp index 6d53152c..7cf17933 100644 --- a/dumpstate/Android.bp +++ b/dumpstate/Android.bp @@ -23,6 +23,13 @@ sh_binary { sub_dir: "dump", } +sh_binary { + name: "dump_gsa.sh", + src: "dump_gsa.sh", + vendor: true, + sub_dir: "dump", +} + cc_binary { name: "android.hardware.dumpstate-service.zuma", srcs: [ diff --git a/dumpstate/dump_gsa.sh b/dumpstate/dump_gsa.sh new file mode 100644 index 00000000..a0d42324 --- /dev/null +++ b/dumpstate/dump_gsa.sh @@ -0,0 +1,8 @@ +#!/vendor/bin/sh + +echo "--- GSA MAIN LOG" +cat /sys/devices/platform/16490000.gsa-ns/log_main + +echo "--- GSA INTERMEDIATE LOG" +cat /sys/devices/platform/16490000.gsa-ns/log_intermediate + diff --git a/dumpstate/item.mk b/dumpstate/item.mk index 00ef3e6d..124fd1c2 100644 --- a/dumpstate/item.mk +++ b/dumpstate/item.mk @@ -1,5 +1,6 @@ PRODUCT_PACKAGES += dump_wlan.sh \ dump_power.sh -PRODUCT_PACKAGES_DEBUG += dump_cma.sh +PRODUCT_PACKAGES_DEBUG += dump_cma.sh \ + dump_gsa.sh