| Crates.io | rsbinder-tools |
| lib.rs | rsbinder-tools |
| version | 0.4.2 |
| created_at | 2024-02-15 12:56:17.245529+00 |
| updated_at | 2025-09-13 10:45:58.772687+00 |
| description | This provides a few CLI binder tools for Linux. |
| homepage | https://hiking90.github.io/rsbinder-book/ |
| repository | https://github.com/hiking90/rsbinder |
| max_upload_size | |
| id | 1141082 |
| size | 73,765 |
This crate provides essential CLI tools for using Binder IPC on Linux systems. While Android has several built-in tools for binder IPC, Linux environments require additional utilities to set up and manage Binder IPC infrastructure.
$ cargo install rsbinder-tools
$ git clone https://github.com/hiking90/rsbinder.git
$ cd rsbinder
$ cargo build --release
A utility for initializing the Linux binder environment and creating binder device files.
$ sudo rsb_device <device_name>
$ sudo rsb_device binder
$ sudo rsb_device test_device
rsb_device uses the kernel's binderfs feature to create new binder device files and requires root privileges. It performs the following operations:
/dev/binderfs directory if it doesn't existmount -t binder binder /dev/binderfs to mount binderfs/dev/binderfs/<device_name>After successful execution, the binder device will be accessible at /dev/binderfs/<device_name> and ready for IPC operations.
For detailed technical information, refer to the Linux kernel binderfs documentation.
A comprehensive service manager for Linux that replaces Android's service_manager functionality.
$ rsb_hub
rsb_hub provides a full-featured service management system with:
rsb_hub implements the same interface as Android's service manager, ensuring compatibility with existing binder applications. It supports:
addService(): Register a new servicegetService(): Retrieve a service by namelistServices(): List all registered servicescheckService(): Check if a service existsregisterForNotifications(): Register for service lifecycle notificationsBuilt on top of rsbinder's service management APIs, rsb_hub provides:
The hub acts as a central registry that bridges the gap between service providers and consumers, making Binder IPC on Linux as seamless as on Android.