Change usb_gadget_hal permission from root to system
to be safer.
Bug: 228262168
Test: atest VtsAidlUsbHostTest / mtp,tethering,adb work /
all the folder user and group change to system
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: Ibc99c756eb3003a6bb79d35173b125b38db04386
Also, remove the non-existing paths and set the initial value of
mUsbDataEnabled.
Bug: 221009551
Test: build, boot
Signed-off-by: Jimmy Hu <hhhuuu@google.com>
Change-Id: I30033a9dc5e2ccfd1fe1dcc5fe8a7796c56fce75
Implements limiting the sink and source current when limitPowerTransfer
is invoked.
Bug: 200993386
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I44172e6c535137cbb7648fde1fb51d1e2340f298
(cherry picked from commit 20522cf497)
Added SPDX-license-identifier-Apache-2.0 to:
usb/usb/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: I1bbf016c4d6e12834662fbeff36e9b4211a61fa0
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
This reverts commit 1c89325160.
Reason for revert: using alternate method for original behavior change
Bug: 187261232
Test: build pass
Change-Id: I56d1e1dcbb394364a626b7cf362bc0df8451cf6d
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: I64b6236aba27242a3babd4f02725aef894a95305
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: I370e69264bec6c2c7ac61094db49f5e3a4b317b6
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: I2cbdb0d73eb5c586524ef4a4083940e07269241b
The owner group of moisture_detection_enabled
is system system, but usb hal is in system group
without write permission. Add the permossion because
the user space may need to controll it.
Bug: 154890486
Test: User can manually enable USB once moisture detected
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: I8b376ebb5f5406a00283d019bcf59bb8e0b59061
If getPortStatusHelper() failed to allocate currentPortStatus_1_2 size,
it should not access this vector, otherwise it would cause crash.
Bug: 142366879
Test: try to adb root and re-connect USB
Change-Id: I0d0d9cd1dccd646ce270b562f2922da15338bfc1
Signed-off-by: pumahsu <pumahsu@google.com>
Since these were combined into libhidlbase.
Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I730d07f26a4e874634453b632e9c2d87be7cbee0
Bug: 128534822
Test: Tested with mock circuit. Moisture detection does not
reenable when serial uart is enabled.
Change-Id: Ieb85cb7843bae9bfb5aef79f7d2058b79b7823e6
(cherry picked from commit ccc09ed8a9b826d56f685d0e618e1f3cc0403c12)