Skip to content
Snippets Groups Projects
  1. Jun 13, 2019
  2. May 23, 2019
    • Jack Pham's avatar
      USB HAL: Fix manifest name entries · 197a95fd
      Jack Pham authored
      Fix the vintf manifest fragments to refer to the HAL's correct
      name, "android.hardware.usb", without the trailing ".gadget",
      which corresponds to the binary name. This allows Android hwbinder
      to properly instantiate the service.
      
      Change-Id: If88bf58bbbc1cf22ee0e873ad930a6fe09a0503a
      13 tags
      197a95fd
  3. May 10, 2019
    • Jack Pham's avatar
      USB HAL: Add vendor pickup makefile for self-contained compilation · 1f98faa2
      Jack Pham authored
      Normally to enable this component for inclusion in a target's
      vendor image, the PRODUCT_PACKAGES of the target's makefile must
      include this module. Additionally, for a HAL it must also be
      added to the vintf manifest.
      
      To support self-containment of this component, vendor_product.mk
      is defined with the above definitions, and is "picked up" by a
      target via symlink defined in the top-level manifest. The vintf
      xml files can live under /vendor/etc/vintf/manifest as vintf
      fragments. Since USB Gadget HAL is optional, this can be
      conditionally included.
      
      Change-Id: I91d81ccfe45014777c3e10c93d86d1266fe1e409
      17 tags
      1f98faa2
  4. May 02, 2019
    • Jack Pham's avatar
      USB HAL: Enable gadget HAL based on property · 0622ab91
      Jack Pham authored
      Introduce a property ro.vendor.usb.use_gadget_hal to be defined
      in a target's build/default.prop to allow USB HAL to be enabled
      without USB Gadget HAL.
      
      Change-Id: I57eb91138cc968086da0c7475da417be9e44e83b
      0622ab91
    • Jack Pham's avatar
      USB HAL: Rename service to android.hardware.usb@1.1-service-qti · d257cd90
      Jack Pham authored
      Now that the module supports both the USB Gadget HAL (which handles
      composition switching) as well as the USB 1.1 HAL (which supports
      Type-C and dual-role functionality), rename this service by
      dropping 'gadget' from the executable and service name.
      
      Change-Id: Ibb98af880705d739d1569d4b0978ee670d954062
      d257cd90
    • Jack Pham's avatar
      Add USB HAL implementation · 8d5b22da
      Jack Pham authored
      Add implementation for IUsb (not to be confused with IUsbGadget)
      HAL which provides abstraction for querying and notification of
      USB port status changes. It is primarily meant for Type-C ports
      that support changing roles dynamically.
      
      This implements version 1.1 of IUsb. Unlike the default 1.0
      implementation bundled with AOSP, this version supports getting
      port status using the Type-C connector class interface found
      in upstream kernel.
      
      This code is adopted from
      https://android.googlesource.com/device/google/wahoo/+/refs/heads/master/usb/
      
      Change-Id: I43c5e0214989d6ce650fbacb23d1bb0b592f2dfc
      8d5b22da
  5. Sep 12, 2018
    • Vijayavardhan Vennapusa's avatar
      USBGadget HAL: Add support for RNDIS/RMNET over SW path · e246f0b3
      Vijayavardhan Vennapusa authored
      Some platforms support RNDIS/RMNET tethering over SW path. So,
      add required support to add rules for RNDIS/RMNET over SW path
      for those platforms.  Also fix NULL pointer dereference that
      could be seen on some platforms where /sys/bus/esoc/ path not
      exist.
      
      Change-Id: I5f5721403d16d77ba8e88b466ec4401d7eef4974
      41 tags
      e246f0b3
  6. Jun 06, 2018
    • Jack Pham's avatar
      USB Gadget HAL implementation · f351c3bf
      Jack Pham authored
      Add implementation for USB Gadget HAL. This HAL is called by
      the framework in order to configure the composition of USB
      xgadget functions, which had previously been handled by init.rc
      property triggers. The HAL implementation provides improved
      performance and additional flexibility not offered by Android
      init syntax.
      
      Enablement of this HAL is done in the target-specific makefile
      and manifest.
      
      Change-Id: I909db39f93e13871d72607cc5de6aec98a383798
      8 tags
      f351c3bf
  7. May 14, 2018
Loading