adb_client icon indicating copy to clipboard operation
adb_client copied to clipboard

Adding ADB Pairing

Open 4o3F opened this issue 2 years ago • 5 comments

Is it possible to implement the ADB pairing process? For Android version >= 11, pairing is needed before connection.

4o3F avatar Apr 24 '23 16:04 4o3F

I'm also interested by this feature, and I think it will be nice to have also a connection process too, to a specific ip and port device.

I cloned this lib in a personal project and made these thing working but not ready to PR. And also, I had a error about buffer when using multiple time a instance of AdbTcpConnection (needed if we want pairing process right before connect process) that I handle by recreating each time a new connection. I will be more specific if it is of interest

vmillet-dev avatar Apr 17 '24 10:04 vmillet-dev

I've also made a proof of concept code here https://github.com/4o3F/Antagonism Also I'm happy to help with implementing this feature here

4o3F avatar Apr 17 '24 10:04 4o3F

Would be happy to see how you implement it, even if not ready yet ! Adding a pairing process Inside this library would be profitable to everyone !

cocool97 avatar Apr 17 '24 11:04 cocool97

Have you a minimum reproductible example for the issue you pinpointed ? Can you open a second issue to track this issue ?

cocool97 avatar Apr 17 '24 11:04 cocool97

Have you a minimum reproductible example for the issue you pinpointed ? Can you open a second issue to track this issue ?

I've made a reproducible demo here, https://github.com/4o3F/Antagonism , but it's code organize os a disaster since it's the first project I made with rust Use a cli command like cargo run -- pair --host PAIR_IP --port PAIR_PORT --code PAIR_CODE I've also implemented part of the TLS communication protocol in protocol.rs, I'll clean up the code soon

4o3F avatar Apr 18 '24 11:04 4o3F