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
This commit is contained in:
Kenny Root 2023-02-27 14:23:00 -08:00
parent 286ebed626
commit 09cb4227bb
3 changed files with 17 additions and 1 deletions

View file

@ -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: [

8
dumpstate/dump_gsa.sh Normal file
View file

@ -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

View file

@ -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