device_google_zumapro/usb/usb
Kuen-Han Tsai e5f8be36ac Usb: Add status check to prevent NPE
This patch prevents a Null Pointer Exception in
queryMoistureDetectionStatus() when getPortStatusHelper() fails to open
the /sys/class/typec file. The failure results in an empty
currentPortStatus vector, causing the NPE when accessing its first
element.

Bug: 361097811
Flag: EXEMPT bugfix
Test: NPE does not occur when getPortStatusHelper() fails
Change-Id: I4657ab8dbc9bb7e5d2dc46c1a20b66477604ec36
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2024-10-09 14:50:09 +08:00
..
Android.bp switch over to use new storage read api instead of 2024-06-07 13:09:09 +00:00
android.hardware.usb-service-i2c6.rc usb: Remove project-specific file modification 2024-09-24 08:40:00 +00:00
android.hardware.usb-service-i2c11.rc usb: Remove project-specific file modification 2024-09-24 08:40:00 +00:00
android.hardware.usb-service.xml usb: update usb hal version to v3 2023-11-16 00:03:56 +00:00
service.cpp init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
Usb.cpp Usb: Add status check to prevent NPE 2024-10-09 14:50:09 +08:00
Usb.h usb: Log for retry on role switch 2024-06-13 17:04:11 +08:00
UsbDataSessionMonitor.cpp usb: dump flag value in the constructor 2024-01-10 10:47:32 +00:00
UsbDataSessionMonitor.h usb: implement heuristics to flag data compliance warnings 2023-12-26 23:12:07 +00:00