Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Andrey Sidorov
    @sidorares
    Hey @konobi ! Got my new phone, unfortunately it's android 4.2 and sdb over tcp works just fine without auth. Do you know if it's possible to force auth on older android?
    Andrey Sidorov
    @sidorares
    Also when I'm trying usb I get this error:
    Error: LIBUSB_ERROR_ACCESS
    node-adbhost/node_modules/usb/usb.js:139
    lib/usb.js:103
    100 USBDevice.prototype.start = function() {¬
    101 var self = this;¬
    102 ¬
    103 self.iface.claim(); // <-- this line
    Scott McWhirter
    @konobi
    howdy
    I just pushed a new version to my repo... without USB, but has auth working for tcpip
    Scott McWhirter
    @konobi
    mkay... and usb is sorta on its way now
    Scott McWhirter
    @konobi
    now the userstream stuff is where it's going a little odd
    @sidorares lemme know if you've got a few mins
    Scott McWhirter
    @konobi
    k... whole bunch of updates on my fork
    Andrey Sidorov
    @sidorares
    Hi! have few mins :)
    Scott McWhirter
    @konobi
    ah cool
    Andrey Sidorov
    @sidorares
    Need to find windows machine to flash my phone to 4.4 and try your tcp auth
    Scott McWhirter
    @konobi
    heh
    there's always a vm
    Andrey Sidorov
    @sidorares
    Do you know possible reasons for my LIBUSB_ERROR_ACCESS error?
    Scott McWhirter
    @konobi
    yeah, turns out there was a bug in node-usb itself
    Andrey Sidorov
    @sidorares
    Yeah, I can probably download vm from microsoft
    Scott McWhirter
    @konobi
    I also streamlined the mincrypt stuff, and added the 2 other dependencies
    but now one can actually talk to the usb device... though that's flakey as all hell, but it's progress at least
    the tcp version is working much better, but the AdbStream stuff isn't handling it all that well
    i encapsulated tcp/usb in a "link" stream
    so there's probably a better way to encapsulate it now
    i'm going to keep going with the usb stuff, but would you fancy having a look at the stuff over tcp?
    Andrey Sidorov
    @sidorares
    I'll try later today ( after flashing to 4.4.2 )
    Scott McWhirter
    @konobi
    cool
    Andrey Sidorov
    @sidorares
    Do you have your new usb code in master?
    Scott McWhirter
    @konobi
    yup
    Andrey Sidorov
    @sidorares
    cool, I'll try it now
    Andrey Sidorov
    @sidorares
    had to manually install "bindings" - need to add to package.json
    Scott McWhirter
    @konobi
    oh... doh... forgot about that one
    oh... and nan too
    Andrey Sidorov
    @sidorares
    USBDevice.is_adb_available return undefined for me
    ( and result is compared with null one line down - link.js:139 )
    Scott McWhirter
    @konobi
    the device is plugged in with usb debudding enabled?
    Andrey Sidorov
    @sidorares
    it seems that it was not connected properly
    Now I have LIBUSB_ERROR_ACCESS
    ( but check for null is still incorrect if no device connected )
    should I update node-usb somehow?
    Scott McWhirter
    @konobi
    nah, i worked around it
    Andrey Sidorov
    @sidorares
    I have usb: 0.3.11 in node_modules
    Scott McWhirter
    @konobi
    in usb.js, up at the top there's a debug level setting, enable that
    Andrey Sidorov
    @sidorares
    [ 0.230538] [00004f03] libusb: debug [libusb_release_interface] interface 1
    [ 0.231063] [00000707] libusb: debug [libusb_claim_interface] interface 1
    [ 0.231585] [00000707] libusb: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
    [ 0.231596] [00000707] libusb: debug [libusb_claim_interface] interface 1
    [ 0.231968] [00000707] libusb: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
    trying killall adb
    ...
    Scott McWhirter
    @konobi
    huh
    Andrey Sidorov
    @sidorares
    now it's different

    0.231483] [00004f03] libusb: debug [libusb_release_interface] interface 1
    [ 0.232074] [00000707] libusb: debug [libusb_claim_interface] interface 1
    [ 0.232757] [00000707] libusb: debug [get_endpoints] building table of endpoints.
    [ 0.232775] [00000707] libusb: debug [get_endpoints] interface: 1 pipe 1: dir: 1 number: 2
    [ 0.232787] [00000707] libusb: debug [get_endpoints] interface: 1 pipe 2: dir: 0 number: 2
    [ 0.232824] [00000707] libusb: debug [darwin_claim_interface] interface opened
    [ 0.232909] [00004d03] libusb: debug [libusb_set_interface_alt_setting] interface 1 altsetting 0
    [ 0.901005] [00004d03] libusb: error [darwin_reset_device] ResetDevice: unknown error (0xe00002bd)
    [ 0.901028] [00004d03] libusb: debug [get_endpoints] building table of endpoints.
    [ 0.901050] [00004d03] libusb: error [get_endpoints] error getting pipe information for pipe 1: unknown error (0xe0004061)
    [ 0.901270] [00004d03] libusb: error [darwin_set_interface_altsetting] could not build endpoint table
    [ 0.901595] [00000707] libusb: debug [libusb_claim_interface] interface 1

    /private/tmp/node-adbhost/lib/usb.js:96
    throw err;
    ^
    Error: LIBUSB_ERROR_OTHER