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
    hm. I have my new phone in couple of days and try tcp and usb
    This is actually good news because tcp worked for me ( so might usb )
    konobi
    @konobi
    ah, might be because i'm on 4.4
    konobi
    @konobi
    holy shit... i just got a response... blink
    Andrey Sidorov
    @sidorares
    I used it with note 2 ( can't remember which version... 4.1?)
    konobi
    @konobi
    yeah, seems kinda picky...
    but i've got it up to asking for auth details and returning public key, etc.
    Andrey Sidorov
    @sidorares
    with tcp? Are you using any helper on the phone ?
    konobi
    @konobi
    tcp, yeah
    Andrey Sidorov
    @sidorares
    I don't have any auth with tcp
    konobi
    @konobi
    it's just the encryption/signing part that's off currently
    yeah, was introduced in 4.3
    um... 4.2.2 even
    Andrey Sidorov
    @sidorares
    I see
    looks like I need to add support for auth...
    "The ADB host authentication functionality is enabled by default when the ro.adb.secure system property is set to 1" - you can try to disable it temporarily
    Andrey Sidorov
    @sidorares
    really tempted to implement jdwp client in JS :)
    konobi
    @konobi
    bah
    only if the device is rooted
    konobi
    @konobi
    mmm... hokey encryption scheme
    konobi
    @konobi
    boom... done
    Andrey Sidorov
    @sidorares
    done encryption?
    konobi
    @konobi
    yup
    Andrey Sidorov
    @sidorares
    so you can connect over tcp?
    or tcp and usb?
    konobi
    @konobi
    tcp only right now
    Andrey Sidorov
    @sidorares
    show me the code :)
    Andrey Sidorov
    @sidorares
    I see it's not pushed to your repo yet
    konobi
    @konobi
    the test.js
    hopefully you're on osx
    Andrey Sidorov
    @sidorares
    I am
    is mincrypt on npm?
    konobi
    @konobi
    nope
    Andrey Sidorov
    @sidorares
    is it doing something not implemented by crypto?
    konobi
    @konobi
    yeah
    it's what adb itself uses
    Andrey Sidorov
    @sidorares
    good start - hopefully I'll be able to try it with my new phone tomorrow
    konobi
    @konobi
    now to convert all this into "link" streams and what not
    Andrey Sidorov
    @sidorares
    sign = crypto.createSign('RSA-SHA256') ?
    I'll try to experiment with crypto. At least I have correct value to check if my sign code is correct
    konobi
    @konobi
    yeah, i tested with crypto again, but yeah... mincrypt is the one
    Andrey Sidorov
    @sidorares
    konobi
    @konobi
    trust me, it's mincrypt or nothing
    Andrey Sidorov
    @sidorares
    :)
    konobi
    @konobi
    you can see in the node_modules directory there's a bunch of stuff I experimented with
    Andrey Sidorov
    @sidorares
    Is mincrypt your code? It's a pity that node core is not enough