Commit Graph

7 Commits

Author SHA1 Message Date
Muhammad Qureshi
85a3efe568 Revert "Migrate IUsb implementation to AIDL"
Revert submission 16765902-IUSB_redfin

Reason for revert: DeviceBootTest failure - b/217606853
Reverted Changes:
I681c1ba9c:Migrate IUsb implementation to AIDL
Ia8c246102:android.hardware.usb.IUsb AIDL migration

Change-Id: Iab92acf73b2a26e10643d258be6d62c2f4bffa51
2022-02-03 00:29:25 +00:00
Badhri Jagan Sridharan
c0136b8163 Migrate IUsb implementation to AIDL
This change migrates IUsb implementation to AIDL.
Also, IUsb and IUsbGadget now run in its own processes
to improve stability and isolation.

Port of 3c97a6bb68f6418ee41026f3bd0024405c97cf0c

Bug: 200993386
Change-Id: I681c1ba9c4f547e3cf5dc0fa7c9ee1aaf4fd603c
2022-02-01 07:51:21 +00:00
Albert Wang
846d053446 Update USB HAL to V1.3 implementation
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
2021-03-24 09:24:07 +08:00
pumahsu
bdf4ac7894 Prevent null vector accessing in USB HAL
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>
2020-12-04 10:10:58 +00:00
Kyle Tso
29edf80f17 Do not enable Moisture Detection if vendor prop is set
setprop vendor.usb.contaminantdisable true
disable contaminant detection.

Bug: 154985161
Test: setprop vendor.usb.contaminantdisable true
Change-Id: I2cfd5baab45074f2ca68216cb5d8b9790d711b75
(cherry picked from commit 21e7d5aec7e3e5b9b032b71a3153310376a46ae2)
[separated the commit into rc part and HAL part]
Signed-off-by: Kyle Tso <kyletso@google.com>
2020-05-29 21:22:20 +08:00
Badhri Jagan Sridharan
606ee94a25 Do not moisture detection when uart is enabled.
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>
2020-05-29 21:22:19 +08:00
Alex Hong
1c2dbd8222 Create aosp_redfin target
Bug: 139478768
Change-Id: I061f89a72b5e7b81280406abf85cca479b86f340
2019-08-19 12:39:55 +08:00