JeffLIrion / adb_shell

A Python implementation of ADB with shell and FileSync functionality.
Apache License 2.0
543 stars 60 forks source link

Implement the pair command for Android 11+ devices #206

Open sharpordie opened 2 years ago

sharpordie commented 2 years ago

It would be great to add this feature.

https://developer.android.com/studio/command-line/adb#connect-to-a-device-over-wi-fi-android-11+

JeffLIrion commented 2 years ago

I think this is the same as https://github.com/JeffLIrion/adb_shell/issues/175

sharpordie commented 2 years ago

There are C++ and Java implementations. It looks kinda cryptic for me, but it could help you.

luzik commented 1 year ago

Any news on this ?

TheZ3ro commented 1 year ago

I'm trying to implement this but STLS/Pair needs SPAKE that in turn needs the export_keying_materials OpenSSL function that is still not available for cpython3

https://github.com/python/cpython/pull/25255 https://github.com/python/cpython/issues/87931 https://github.com/python/cpython/pull/95366

I have a draft PR that implements STLS communication with already paired devices (pair through ADB or IntelliJ and then connect with adb_shell)

The only viable solutions are:

JeffLIrion commented 1 year ago

You could add that as an extra dependency (like libusb1 and aiofiles), especially if this feature should be considered experimental or if it will only work on certain platforms.

Neustradamus commented 6 months ago

This is an important request...