Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    konobi
    @konobi
    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
    yeah, I see it
    konobi
    @konobi
    it's from AOSP
    Andrey Sidorov
    @sidorares
    node module or sign example?
    It might be possible to use openssl cli instead of module
    konobi
    @konobi
    trust me, mincrypt is the only way to get it to work
    Andrey Sidorov
    @sidorares
    It's so much less pain when all dependencies are js-only ( architecture / node upgrades etc )
    konobi
    @konobi
    yeah
    Andrey Sidorov
    @sidorares
    ffi to RSA_sign :)
    Andrey Sidorov
    @sidorares
    not tried, but seems to do everything in js
    uses chrome usb
    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: