#linux #binder #ipc #cli #devices #android #file

app rsbinder-tools

This provides a few CLI binder tools for Linux

4 releases

0.2.3 Mar 26, 2024
0.2.2 Mar 16, 2024
0.2.1 Mar 4, 2024
0.2.0 Feb 24, 2024
0.1.2 Feb 15, 2024

#293 in Hardware support

Download history 117/week @ 2024-02-14 147/week @ 2024-02-21 147/week @ 2024-02-28 65/week @ 2024-03-06 119/week @ 2024-03-13 105/week @ 2024-03-20 39/week @ 2024-03-27 12/week @ 2024-04-03

337 downloads per month




This crate provides CLI tools for Linux. While Android has several tools prepared for binder IPC, additional tools are required to use Binder IPC in Linux.


This is a utility that helps with the initialization of the Linux binder environment.

The following command creates the /dev/binderfs/binder device file, and the user can specify the file name.

$ sudo target/debug/rsb_device binder

rsb_device uses the binderfs feature of kernel to create a new binder device file. rsb_device requires root privileges and performs the following tasks:

  • Create a /dev/binderfs folder.
  • Execute the command 'mount -t binder binder /dev/binderfs'.
  • Use the ioctl feature provided by the kernel to create "/dev/binderfs/device_name".
  • Change the permissions of "/dev/binderfs/device_name" so that all users can read and write.

For detailed technical information, refer to the Linux kernel documentation.


rsb_hub is a tool designed to replace Android's service_manager.

It is implemented using the Service APIs provided by the crate rsbinder_hub. The Client APIs offered by crate rsbinder_hub facilitate communication with rsb_hub, allowing for the registration of new services and the discovery and management of existing services.


~114K SLoC