Binder Agent for Linux Android IPC Synchronization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current solutions lack a simple and effective method for bidirectional communication between Linux and Android processes, as existing open-source projects like libgbinder only support Linux access to Android services, not vice versa.

Innovation Solution

Implement a method and system using Binder and Dbus synchronization to enable bidirectional communication by registering synchronization services for both Linux and Android processes, allowing mutual service calls through structural conversions of data structures between the two systems.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If open source projects like libgbinder are used for Linux to access Android services, then Linux process can communicate with Android service, but Android process cannot access Linux service

Engineering Contradiction:
Improvebidirectional communication capabilityVSAvoidcommunication system complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent introduces a Binder Agent as an intermediary component that bridges Dbus and Binder systems. The Binder Agent monitors service registrations in both systems and performs synchronized addition, enabling bidirectional communication while maintaining simplicity. This mediator translates and coordinates between the Linux Dbus system and Android Binder system, allowing both Linux processes and Android processes to access services from the other system.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If Dbus is used for Linux inter-process communication, then Linux programs can easily communicate, but Android applications cannot access Linux services

Engineering Contradiction:
Improveease of communicationVSAvoidcross-system accessibility
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The patent makes the Binder Agent serve multiple functions: it acts as a service manager for Binder, a monitor for Dbus service registrations, and a bridge between the two systems. By giving this single component multiple roles, the system achieves both ease of operation (through Dbus for Linux) and cross-system accessibility (through Binder for Android), eliminating the need for separate communication mechanisms for different scenarios.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Reliability

If separate communication mechanisms are implemented for Linux and Android processes, then each system can communicate independently, but bidirectional communication becomes complex

Engineering Contradiction:
Improvecommunication reliabilityVSAvoidimplementation complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent merges the service management and monitoring functions into a single Binder Agent component that handles both Dbus and Binder systems simultaneously. Instead of implementing separate communication mechanisms that would require complex coordination, the system combines the functionality into one unified agent that synchronizes service additions and enables communication in both directions through a single coordinated mechanism.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS20240231974A1Method and system for inter-process communication
Publication Date: 2024.07.11 DOUYIN VISION CO LTD
  • US20240231974A1 patent drawing
  • US20240231974A1 patent drawing
  • US20240231974A1 patent drawing

AI summary

This specification provides methods and systems for inter-process communication. One of the methods includes, in response to monitoring a service registration in a Dbus bus of Linux®, adding a service synchronously in an Android® service manager. The method further includes in response to monitoring a service added in Android®, registering a service synchronously in the Dbus bus of Linux®. The method further includes when a Linux® process and an Android® process issue a service calling request, converting bidirectionally data structure transmitted between the Dbus and the Binder. This method can realize mutual calling of services between different inter-processes based on the synchronized registration/added services, thereby effectively simplifying an implementation process of bidirectional communication between the Linux® process and the Android® process.