| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
Everything under this directory should be namespaced, as it's by
definition device-specific. But we don't need multiple namespaces here,
so move everything to a single namespace.
Bug: 114589535
Test: lunch crosshatch-userdebug; m nothing
Change-Id: Id80ba6370993cc013038f32a212a86cea7d8c4b2
Merged-In: Id80ba6370993cc013038f32a212a86cea7d8c4b2
(cherry picked from commit c845ca4ee15ad9244a7a50645fedadc63e294f95)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sleep only when time elapsed since the last disconnect
is less than the PULL_UP_DELAY. This ensures that the hal
does not miss the 2 second timeout while switching between
functions.
Also, enclose write within TEMP_FAILURE_RETRY to prevent
being returned from EINTR.
Bug: 111424620
Test: a. Switch between multiple functions.
b. while true; do fastboot reboot; adb wait-for-device;
adb shell getprop ro.bootmode; adb root; sleep 2;
adb wait-for-device; adb reboot bootloader; done;
Change-Id: Ic8c418c145e4fe070b407c22eef803e10ae41077
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move uevent detection from USB hal to pixelstats.
Also Enable broken mic reporting.
With modified ACDB and system properties, the system
triggers kernel uevents when it detects no mic signal
during the first 4s of a phonecall.
Test: For move from USB hal,
inserted & removed USB audio device. Saw the following in logcat:
sysui_multi_action: [757,1422,758,4]
sysui_multi_action: [757,1424,758,4,1425,416370725]
sysui_multi_action: [757,1426,758,4,1425,416370725,1304,3414]
sysui_multi_action: [757,1423,758,4,1304,6108]
sysui_multi_action: [757,1422,758,4]
that shows a USB connection
a USB audio connection of USB device 0x18d15025
a USB audio disconnection after 3.4 seconds.
a USB disconnection.
a usb re-connection (for ADB)
Bug: 69979011
Change-Id: Id8bfd964fb48169fbed9e7b38c0e85ebdf9ec454
Signed-off-by: Andrew Chant <achant@google.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix strcmp of a string without checking to see
if it's not null.
Bug: 110808261
Change-Id: I9782e57b96873c4bea37626dc49f0da34876b2b4
Signed-off-by: Andrew Chant <achant@google.com>
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
adb root command fails occationally as the gadget gets pullep
up too soon right after the end points show up. Introduce a delay
to mitigate this.
Bug: 110705025
Test: while true; do fastboot reboot; adb wait-for-device; adb shell getprop ro.bootmode;
adb root; sleep 2; adb wait-for-device; adb reboot bootloader; done;
Not adb root failures were seen.
Change-Id: I3da6cac7c9d616da0c2fa88c8be998fe95a791a2
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Report to PixelStats on USB-C connector connect/disconnect,
as well as USB-C audio device connect/disconnect.
If a device is connected at boot, the disconnect will not
be reported.
Test: checked eventlog for reported events, saw:
06-19 16:12:55.251 775 775 I sysui_multi_action: [757,1422,758,4]
06-19 16:17:00.250 775 775 I sysui_multi_action: [757,1423,758,4,1304,244991]
06-19 16:17:09.378 775 775 I sysui_multi_action: [757,1422,758,4]
06-19 16:17:11.939 775 775 I sysui_multi_action: [757,1424,758,4,1425,416370725]
06-19 16:17:14.320 775 775 I sysui_multi_action: [757,1426,758,4,1425,416370725,1304,2380]
06-19 16:17:14.610 775 775 I sysui_multi_action: [757,1423,758,4,1304,5231]
06-19 16:17:18.946 775 775 I sysui_multi_action: [757,1422,758,4]
06-19 16:18:23.672 775 775 I sysui_multi_action: [757,1423,758,4,1304,64725]
06-19 16:18:25.166 775 775 I sysui_multi_action: [757,1422,758,4]
These were:
USB-C connect
USB-C disconnect, connected for 244s.
USB-C connect
USB-C audio device connected, VIDPID 0x18d15025 == 416370725
USB-C audio device disconnected, VIDPID, connected for 2.38 seconds.
USB-C disconnected, connected for 5.231 seconds (3 second enumeration)
USB-C connected
USB-C disconnected, connected for 64.725 seconds
USB-C connected
Bug: 67749298
Change-Id: I1fc750b9ca578c40c663ec9806dd7b2804ab264b
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(sync from commit:0c556bbbac9d3a2366d5d244cd5be720a42c0677)
Ptp is now mounted in its own directory so the
mtp endpoint does not need to be closed to write
the ptp descriptors.
Bug: 80653696
Test: Switch function between MTP/PTP/none
Change-Id: Ib28a4e232e042ff2d6f49005ea12d3c7e64e7295
Signed-off-by: pumahsu <pumahsu@google.com>
|
| |
|
|
|
|
|
|
|
|
| |
This allows android auto and accessory hid
to both work, and matches functionality
on other device in O.
Bug: 74172000
Test: auto starts
Change-Id: I786cd66bed015c5ad2a4ca668f0d0fbc9c8af507
|
| |
|
|
|
|
|
|
|
|
|
| |
(cherry-pick of commit: 5e309b924830644827182e039e915e5ba314a81f)
Bug: 77927124
Test: Tested USB gadget configurations and verified
that they enumerated.
Change-Id: I780dee71e6410f316dc9b902b73c4214468f3762
Signed-off-by: rickyniu <rickyniu@google.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
persist.vendor.usb.config stores the vendor specific functions that are
enabled in the target when ro.bootmode is set to usbradio through
the adb command. Since its a persistent property, the oem functions
are persisted once enabled. Alternatively, store the oem functions
in vendor.usb.config. vendor.usb.config is not persisted though.
vendor.usb.config will also reflect the enabled oem functions.
Configurations supported in this CL:
1. diag
2. diag,serial_cdev,rmnet_gsi
This would work irrespective of when ADB is not or not.
(cherry-pick of commit: c5ec9e09d1e11b1f24b7519af505dd956d048631)
Bug: 77927124
Test: Made sure the QXDM recognized crosshatch when adb is enabled/
disabled for diag and diag,serial_cdev,rmnet_gsi
Change-Id: Ia3410ecc255f80014b53a634927164f8fe365419
Signed-off-by: rickyniu <rickyniu@google.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Since mMonitorCreated wasnt initialized to false, join was called
on the thread eventhough the thread didnt exist.
(cherry-pick of commit: cb840d8de751e45daea008a7da912186a1884210)
Bug: 77927124
Test: Booted asan and verified that adb was enabled.
Change-Id: I6ff78b8d723892d2e33c2cdf99aa903a517e78c1
Signed-off-by: rickyniu <rickyniu@google.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
(cherry-pick of commit: 5e309b924830644827182e039e915e5ba314a81f)
Bug: 77927124
Test: Tested USB gadget configurations and verified
that they enumerated.
Change-Id: I7be5f1df3a5e9edb8f7c60b82e48c31ed9e5cdde
Signed-off-by: rickyniu <rickyniu@google.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
pthread_cond_timedwait used wall time so it might introduce racing,
pthread_cond_timedwait_monotonic_np is Android specific but it is being
deprecated. And now Android support pthread_condattr_setclock so use it
to wait on CLOCK_MONOTONIC instead.
Bug: 64623895
Test: USB switch function works, charging/MTP/PTP
Change-Id: I136533ff90ef1be2b042ef1e0829643f2f7aa968
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Use 1.1 IUsb in order to make register the service as 1.1 compatible.
This enables lshal to recognize the hal service as 1.1 implementation.
Bug: 77853977
Bug: 62917546
Test: Manually verified lshal output
android.hardware.usb@1.0::IUsb/default 0/1 782 6024 568
android.hardware.usb@1.1::IUsb/default 0/1 782 6024 568
Change-Id: I9b0817841dbcc345a1d854ee4a5193797181ea3f
|
| |
|
|
|
|
|
|
|
| |
* Remove unused local variable.
* Fix warning of unused return status value.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: If035c7870d3109ae27e51651054e74daa571439c
|
| |
|
|
|
|
|
|
|
|
|
| |
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.
Test: succeeded building, and confirmed that service names were renamed
correctly.
Bug: 36796459
Change-Id: I7c51123aa83b93b65208c8cfa1766fcc1af4b45b
|
| |
|
|
| |
Change-Id: I303e8fe6be155c8c0d5385f5598c7f27c19282b1
|
|
|
commit dc78ac4aaa64e427c0f5c0672dc22939a9a7b85f
Merge: 820b880 163a21c
Author: Glenn Kasten <gkasten@google.com>
Date: Tue Jun 27 15:12:54 2017 +0000
Merge "Report feature android.software.midi to enable testing" into oc-dr1-dev am: 614e203677
am: 163a21c15f
Change-Id: I18876c0ce8e0435fdcb947d475c66fe7fae57da1
Change-Id: Id08e99f0603407199020818485eb29d92d421c43
|