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.

(cherry picked from commit 09cb4227bb)

Bug: 271125313
Test: adb shell dumpstate
Change-Id: I09a2e039451b5eb8b7fa360ba03486bd871fb970
Merged-In: I09a2e039451b5eb8b7fa360ba03486bd871fb970
This commit is contained in:
Kenny Root 2023-02-27 14:23:00 -08:00
parent 76272091c8
commit 3ba817ae3f
3 changed files with 16 additions and 1 deletions

View file

@ -23,3 +23,9 @@ sh_binary {
sub_dir: "dump",
}
sh_binary {
name: "dump_gsa.sh",
src: "dump_gsa.sh",
vendor: true,
sub_dir: "dump",
}

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