1. 21 Aug, 2017 1 commit
  2. 28 Feb, 2017 2 commits
  3. 19 May, 2016 4 commits
  4. 15 Mar, 2016 2 commits
    • Peter Wu's avatar
      lglaf.py: Fix "Resource busy" error · 688e0f3d
      Peter Wu authored
      Detach kernel driver (cdc_acm) to avoid this error:
      
          usb.core.USBError: [Errno 16] Resource busy
      
      Deliberately do not call attach_kernel_driver for the detached devices,
      it is likely that the user runs lglaf multiple times. The user can
      unplug and re-insert their device if they want to re-attach the kernel
      driver.
      688e0f3d
    • Peter Wu's avatar
      lglaf.py: dynamically query for endpoint numbers · f2792e63
      Peter Wu authored
      The endpoint numbers are apparently not fixed. Use heuristics to
      discover these (necessary for at least the D805).
      
      Tested with D855.
      f2792e63
  5. 13 Mar, 2016 1 commit
  6. 04 Jan, 2016 2 commits
  7. 03 Jan, 2016 2 commits
  8. 30 Dec, 2015 1 commit
    • Peter Wu's avatar
      Add full LG4 (VS986) support · 90d89bbe
      Peter Wu authored
      Add productId to the Wireshark dissector and udev rule, adjust the
      serial path detection logic to find the right key
      (`\Device\LGVZANDNETDIAG1`). Now you do not need to pass `--serial COM4`
      anymore.
      
      Reportedly fails in VirtualBox with USB passthrough, but works fine on
      Linux. Thanks @invisiblek for testing!
      90d89bbe
  9. 29 Dec, 2015 6 commits
    • Peter Wu's avatar
      Attempt to LG G4 compatibility · 2d79e156
      Peter Wu authored
      lsusb from @invisiblek, unfortunately it seems to hang when used in
      VirtualBox (USB passthrough from Windows to Linux).
      
      The second CD of exposes the endpoints over bInterfaceNumber 2, so this
      patch simply activates the second CD.
      
      LG G4 (1004:6298) has this device descriptor:
      
          ...
          idVendor           0x1004 LG Electronics, Inc.
          idProduct          0x6298
          bcdDevice            3.10
          iManufacturer           1 LG Electronics Inc.
          iProduct                2 LGE Android Phone
          iSerial                 3 VS986xxxxxxxx
          bNumConfigurations      2
          Configuration Descriptor:
            ...
            bNumInterfaces          1
            bConfigurationValue     1
            ...
            Interface Descriptor:
              ...
              bNumEndpoints           3
              bInterfaceClass         6 Imaging
              bInterfaceSubClass      1 Still Image Capture
              bInterfaceProtocol      1 Picture Transfer Protocol (PIMA 15470)
              iInterface              5 MTP
              ...
              (EP 1 IN  Bulk)
              (EP 1 OUT Bulk)
              (EP 2 IN  Intr)
              ...
          Configuration Descriptor:
            ...
            bNumInterfaces          4
            bConfigurationValue     2
            ...
            Interface Descriptor:
              ...
              bNumEndpoints           3
              bInterfaceClass         6 Imaging
              bInterfaceSubClass      1 Still Image Capture
              bInterfaceProtocol      1 Picture Transfer Protocol (PIMA 15470)
              iInterface              6 MTP
              ...
              (EP 1 IN  Bulk)
              (EP 1 OUT Bulk)
              (EP 2 IN  Intr)
              ...
            Interface Association:
              bLength                 8
              bDescriptorType        11
              bFirstInterface         1
              bInterfaceCount         2
              bFunctionClass          2 Communications
              bFunctionSubClass       2 Abstract (modem)
              bFunctionProtocol       1 AT-commands (v.25ter)
              iFunction               9 CDC Serial
            Interface Descriptor:
              ...
              bNumEndpoints           1
              bInterfaceClass         2 Communications
              bInterfaceSubClass      2 Abstract (modem)
              bInterfaceProtocol      1 AT-commands (v.25ter)
              iInterface              7 CDC Abstract Control Model (ACM)
              ...
              (EP 4 IN  Intr)
            Interface Descriptor:
              ...
              bNumEndpoints           2
              bInterfaceClass        10 CDC Data
              bInterfaceSubClass      0
              bInterfaceProtocol      0
              iInterface              8 CDC ACM Data
              (EP 3 IN  Bulk)
              (EP 2 Out Bulk)
            Interface Descriptor:
              ...
              bInterfaceNumber        2
              bAlternateSetting       0
              bNumEndpoints           2
              bInterfaceClass       255 Vendor Specific Class
              bInterfaceSubClass    255 Vendor Specific Subclass
              bInterfaceProtocol    255 Vendor Specific Protocol
              iInterface              0
              (EP 5 IN  Bulk)
              (EP 3 OUT Bulk)
              ...
      2d79e156
    • Peter Wu's avatar
      lglaf.py: do not hang forever on reads · e71375d6
      Peter Wu authored
      Use 5 second timeout for the initial hello and 60 seconds for other
      cases. Maybe a --read-timeout option should be added in case you need
      more time...
      e71375d6
    • Peter Wu's avatar
      Compatibility with LG G4 · fe75d210
      Peter Wu authored
      According to @invisiblek, platform is gone from the LG G4 and bootdevice
      also exists with the G2. So use that instead.
      fe75d210
    • Peter Wu's avatar
      parse-props.py: fix assert failure · 94c0dc5a
      Peter Wu authored
      94c0dc5a
    • Peter Wu's avatar
      Improve INFO GPRO field · a1208e67
      Peter Wu authored
      Not just the first two bytes should match, it should be the expected
      length. Found the hint in dmesg after failing to retrieve the properties
      file. Setting all following bytes to 0xff does not seem to affect the
      output, so let's keep it like this. The original software does send an
      empty buffer though (with all zeroes).
      a1208e67
    • Peter Wu's avatar
      Add support for VS985 and others · d26f0717
      Peter Wu authored
      The udev rules and Wireshark dissector still have idProduct hardcoded
      for the time being, but lglaf.py detection logic is converted to use
      heuristics instead.
      
      Thanks to @invisiblek for testing and providing lsusb output.
      d26f0717
  10. 28 Dec, 2015 4 commits
  11. 27 Dec, 2015 10 commits
  12. 26 Dec, 2015 5 commits