Without cadb
process boundaryprogram
binary
server
device
A command-line tool and a host-side service sit between your application and the device.
A small native core for a direct connection
Lightweight C11 client library for talking directly to adbd over TCP.
Current release v0.2.1 C ABI No runtime dependency
01 / Architecture
Use the same ADB protocol, with a smaller deployment path: your program links cadb and opens a TCP connection to the device.
A command-line tool and a host-side service sit between your application and the device.
One native library owns framing and ADB sessions; your app owns discovery, keys, and transport policy.
Connect to adbd directly. No platform-tools install or always-on host daemon.
Pure C11 and a C ABI make cadb straightforward to link from mobile, desktop, and embedded code.
Use the library in open or closed source applications while retaining its MIT notice.
02 / Comparison
These projects solve related but different integration problems. The right fit depends on your host runtime and whether you need the ADB host server.
| Project | Language / runtime | Host adb server | Native embed profile | License |
|---|---|---|---|---|
| cadb THIS PROJECT | C11 / native | No — direct to adbd | High — C ABI, no language runtime | MIT |
| dadb | Kotlin / Java · JVM | No — direct connection | High for JVM apps | Apache-2.0 |
| goadb | Go runtime | Yes — host-server client | Medium — Go toolchain/runtime | Apache-2.0 |
| pure-python-adb | Python interpreter | Yes — host-server client | Low for native-only apps | MIT |
Comparison reflects each project's documented connection model and primary runtime; embed profile is a practical, qualitative fit rather than a benchmark.
03 / Scope
cadb handles the ADB client session and leaves platform-specific policy where it belongs: in the host application.
adbdadb server or daemon managerFor wireless debugging, use your platform APIs for discovery, pairing, and key storage, then provide cadb's auth callbacks and TLS-capable transport.
04 / Ecosystem
Use cadb where a product needs device communication without shipping a separate host ADB service.
Link the C core from Swift, Kotlin/JNI, or another native host.
Build focused installers, shell controls, and fleet utilities.
Start from the examples for Rust, Python, Flutter, and more.
Ready to connect?