Skip to content
Snippets Groups Projects
Forked from alpine / aports
Source project has a limited visibility.
  • Arnav Singh's avatar
    7ed0e563
    community/android-tools: fix using adb with PINE64 PinePhone modem · 7ed0e563
    Arnav Singh authored
    adb v35 switched to using the libusb backend by default. With this it stopped
    being possible to use adb to connect to the PINE64 PinePhone's modem.
    That modem exposes itself as an adb-accessible device over USB
    but its device class is LIBUSB_CLASS_MISCELLANEOUS, which adb's libusb backend
    filters out by default since the code only allows LIBUSB_CLASS_PER_INTERFACE.
    The code does have a comment that the author wasn't sure just this device class
    is sufficient, and indeed it isn't.
    
    This commit adds a patch to also allow devices with LIBUSB_CLASS_MISCELLANEOUS
    device class.
    
    Fixes #16326
    Fixes !70140
    7ed0e563
    History
    community/android-tools: fix using adb with PINE64 PinePhone modem
    Arnav Singh authored
    adb v35 switched to using the libusb backend by default. With this it stopped
    being possible to use adb to connect to the PINE64 PinePhone's modem.
    That modem exposes itself as an adb-accessible device over USB
    but its device class is LIBUSB_CLASS_MISCELLANEOUS, which adb's libusb backend
    filters out by default since the code only allows LIBUSB_CLASS_PER_INTERFACE.
    The code does have a comment that the author wasn't sure just this device class
    is sufficient, and indeed it isn't.
    
    This commit adds a patch to also allow devices with LIBUSB_CLASS_MISCELLANEOUS
    device class.
    
    Fixes #16326
    Fixes !70140