Monitorffs needs to check the state of usb extcon to pull up
USB gadget. Therefore, this patch add state of usb extcon and
send this information to monitorffs.
Bug: 173086594
Test: verified pass
Change-Id: I29df29efcf55118241f0ca7072b034c1fb5a37f2
Supports to enable/disable USB data signaling
Bug: 161414036
Test: Pass USB V1.3 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I85cf5282e487c1695a4cedad00b7fede2c3ad1f8
Add a new API to query current USB connection speed
Bug: 181938674
Test: Pass USB Gadget V1.2 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Ib908434771854e66d22323b15c02acffe1eff48b
If getPortStatusHelper() failed to allocate currentPortStatus_1_2 size,
it should not access this vector, otherwise it would cause crash.
Bug: 142366879
Bug: 174635444
Test: try to adb root and re-connect USB
Change-Id: I0d0d9cd1dccd646ce270b562f2922da15338bfc1
Signed-off-by: pumahsu <pumahsu@google.com>
Signed-off-by: Ricky Niu <rickyniu@google.com>
There is no necessary to get root permission for USB Hal.
Therefore, this commit will remove the root permission.
Bug: 154895957
Test: build pass and verified USB HAL
Change-Id: Ib88e4dc124a8b5b803989b51c2e8c085d9b2e65e
Bug: 154985161
Test: Tested with mock circuit. Moisture detection does not
reenable when serial uart is enabled.
Change-Id: If7d43227a603a5645d4c581477cb9c144c5e9d86
(cherry picked from commit ccc09ed8a9b826d56f685d0e618e1f3cc0403c12)
Signed-off-by: Kyle Tso <kyletso@google.com>
Since these were combined into libhidlbase.
Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I82b2f09a41aaffd30e943b87c0a84bc85fdf4c14