Commit Graph

15 Commits

Author SHA1 Message Date
Ray Chi
9d3491c96c redfin: usb: add state of usb extcon to monitorffs
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
2021-04-23 14:53:44 +08:00
Albert Wang
b1d92d06b7 Revert "Add USB Gadget HAL 1.2 support"
This reverts commit a36726f4fd.

Bug: 181938674
Test: USB gadget function switch normally
Change-Id: I717237a671ee62ef67b96254d15593ce4694e01d
2021-03-31 10:11:34 +08: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
Albert Wang
a36726f4fd Add USB Gadget HAL 1.2 support
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
2021-03-23 17:41:42 +08:00
Bob Badour
ec6f90ee58 [LSC] Add LOCAL_LICENSE_KINDS to device/google/redfin am: 5cbf8e687b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/13848445

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2fc3247dec36f7b7dfed6634d9df22f7f3cda132
2021-03-12 18:38:05 +00:00
Bob Badour
5cbf8e687b [LSC] Add LOCAL_LICENSE_KINDS to device/google/redfin
Added SPDX-license-identifier-Apache-2.0 to:
  dumpstate/Android.mk
  redfin/overlay_packages/SettingsOverlayG5NZ6/Android.bp
  redfin/overlay_packages/SettingsOverlayGD1YQ/Android.bp
  redfin/overlay_packages/SettingsOverlayGTT9Q/Android.bp
  self-extractors/qcom/staging/Android.mk
  usb/Android.bp
  vibrator/Android.bp
  vibrator/drv2624/Android.bp
  vibrator/drv2624/bench/Android.bp
  vibrator/drv2624/tests/Android.bp
  voice_processing/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I192bb56f5e770950bebf7f91e430d4cff3a0a73b
2021-03-11 18:59:02 -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
Howard Yen
4b39e552fd Update USB Gadget HAL to V1.1 implementation am: b1eb3c4c18
Change-Id: I7df27bf5bba949b06541591f68683c36e1267f63
2020-05-29 21:22:26 +08:00
Howard Yen
31b4aa302c Update USB Gadget HAL to V1.1 implementation
Bug: 138702846
Test: build pass, function works
Change-Id: I82a74d31f4339e4b4b8c59d879871550b943a36e
2020-05-29 21:22:25 +08:00
raychi
7103885af8 UsbGadget: change the permission
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
2020-05-29 21:22:23 +08: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
Steven Moreland
178f2195e1 Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I82b2f09a41aaffd30e943b87c0a84bc85fdf4c14
2019-10-02 12:49:06 -07:00
Kyle Tso
db19b2e35f UsbGadget: Add specific vendor function composition
New vendor function composition:
diag,serial_cdev,rmnet_gsi,dpl_gsi,qdss

Bug: 141654033
Bug: 141667188
Test: Build pass
Change-Id: Ib2719bb944ee9a7f87ad90c4e6649982a61988fe
Signed-off-by: Kyle Tso <kyletso@google.com>
2019-09-26 09:22:03 +00:00
Alex Hong
1c2dbd8222 Create aosp_redfin target
Bug: 139478768
Change-Id: I061f89a72b5e7b81280406abf85cca479b86f340
2019-08-19 12:39:55 +08:00