Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
sidorares/node-adbhost
node.js adb (android debug bridge) client
People
Repo info
Activity
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 ?
I used this one:
https://play.google.com/store/apps/details?id=com.easyadb&hl=en
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
https://android.googlesource.com/platform/system/core/+/master/adb/protocol.txt
Andrey Sidorov
@sidorares
I see
looks like I need to add support for auth...
Andrey Sidorov
@sidorares
http://nelenkov.blogspot.com.au/2013/02/secure-usb-debugging-in-android-422.html
"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 :)
konobi
@konobi
https://www.dropbox.com/s/k7g1x6nbx4mtsbo/node-adbhost.tgz?dl=0
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
there is
https://github.com/rzcoder/node-rsa
as well
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?