SyedAhkam / android-cli

Take control of your Android projects with a user-friendly command line interface.
http://android-cli.syed.world/
MIT License
11 stars 2 forks source link

adb_client support #4

Open axelkar opened 5 days ago

axelkar commented 5 days ago

As you said on Reddit, could you integrate adb_client into the project?

SyedAhkam commented 5 days ago

Aha yes, I'd love to but it seems they're missing support for the USB protocol so far which I feel would become a regression since we support it by default.

It seems they don't support installing apks from the client either.

How this could work is by using an experimental flag perhaps.

android --use-adb-client connect --port <custom_port> 192.168.29.1 # how to persist connection here without a daemon ??
android --use-adb-client shell
android --use-adb-client ... # other commands which could work similarly

or.. the worse method if we can't persist connections, you'd need to pass the host & port every single time you do an action

axelkar commented 5 days ago

they're missing support for the USB protocol

That's a major issue that I didn't notice! Feel free to keep this issue for tracking

or.. the worse method if we can't persist connections, you'd need to pass the host & port every single time you do an action

Wireless ADB actually advertises an mDNS service on _adb-tls-connect._tcp so you can automatically connect ... and now I noticed that the project is missing support for wireless ADB too

So there is no real ADB client for Rust (e.g. doesn't just forward calls to adbd)