Supercharge Your Innovation With Domain-Expert AI Agents!

System for inter-process communication under multiple services in Android system and implementation method of system

A technology of inter-process communication and Android system, applied in the direction of program control device, software design, etc., can solve problems affecting the normal operation of the system, reduce overhead and improve system performance

Inactive Publication Date: 2017-03-29
SHANDONG UNIV
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the number of businesses increases, the AIDL interface increases, and the corresponding Service will also increase infinitely. As Service is one of the four major components of the Android system, an unlimited increase in Service components will make the system very heavyweight and affect the system. normal operation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System for inter-process communication under multiple services in Android system and implementation method of system
  • System for inter-process communication under multiple services in Android system and implementation method of system
  • System for inter-process communication under multiple services in Android system and implementation method of system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] A multi-service inter-process communication system in an Android system, such as figure 2 As shown, it includes the service user Client, the manager Service of the Binder connection pool, the AIDL file corresponding to the process service, and the Binder class corresponding to the process service; the AIDL file corresponding to the process service specifies the service interface provided by different process services, and the process service The corresponding Binder class implements the corresponding service interface; the manager Service of the Binder connection pool manages the Binder class of its corresponding Java interface, and the Binder class has a query function. The manager Service of the connection pool provides an identification code with the unique identifier of the process service, and the manager Service of the Binder connection pool returns the Binder class corresponding to the process service to the service user Client, and the service user Client obtain...

Embodiment 2

[0036] The implementation method of the inter-process communication system under the multi-service in the Android system described in embodiment 1, such as figure 2 As shown, the specific steps include:

[0037](1) Establish the AIDL file of the manager Service of the Binder connection pool, use the IDE tool to automatically generate the Java interface corresponding to the AIDL file of the manager Service of the Binder connection pool, and create the Binder class of the corresponding Java interface at the same time; the Binder class is used for Query the required process service through the parameter binderCode, and return the remote object Binder of the specific implementation class of the required process service, binderCode refers to the unique identification code of the process service;

[0038] (2) Establish the AIDL file corresponding to each process service, use the IDE tool to automatically generate the Java interface corresponding to the AIDL file corresponding to ea...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a system for inter-process communication under multiple services in an Android system and an implementation method of the system. The system comprises a service user Client, an administrator Service of a Binder connection pool, an AIDL file corresponding to a process service and a Binder class corresponding to the process service; and Binder services corresponding to different processes are managed through a single Servicer component. One Binder service is added and is arranged to the Binder connection pool, through binding the service of the Binder connection pool at the client and converting to an interface, when the service of one process needs to be called, the service of the corresponding process is obtained through the interface of the Binder connection pool. The expenditure of the system, which is brought by correspondence between a plurality of AIDL interface and a plurality of heavyweight component Services, is reduced, and the system performance is improved.

Description

technical field [0001] The invention relates to an inter-process communication system under multi-service in an Android system and an implementation method thereof, and belongs to the technical field of inter-process communication optimization under multi-service Android. Background technique [0002] The Android system provides application developers with a variety of inter-process communication methods, such as: ContentProvider, Messenger, AIDL (Android Interface Definition Language), etc. The reason why they can be used normally is that Android has added a Binder driver to the Linux kernel (such as image 3 ). The process communication method often used by developers is AIDL. When using AIDL, it is essential to do the following work: [0003] 1. Create an AIDL file, and then the IDE tool will automatically generate the corresponding Java interface. [0004] 2. Create a Service on the server side, implement the method in the java interface in (1), and return a Binder obj...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/24
Inventor 张海霞王瑞刚
Owner SHANDONG UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More