cocool97 / adb_client

Rust ADB (Android Debug Bridge) client library
89 stars 14 forks source link

Adding ADB Pairing #10

Open 4o3F opened 1 year ago

4o3F commented 1 year ago

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

vmillet-dev commented 2 months ago

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

4o3F commented 2 months ago

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

cocool97 commented 2 months ago

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 commented 2 months ago

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

4o3F commented 2 months ago

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