CN108388506B - ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems - Google Patents

ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems Download PDF

Info

Publication number
CN108388506B
CN108388506B CN201810010214.5A CN201810010214A CN108388506B CN 108388506 B CN108388506 B CN 108388506B CN 201810010214 A CN201810010214 A CN 201810010214A CN 108388506 B CN108388506 B CN 108388506B
Authority
CN
China
Prior art keywords
adb
module
virtual
android
daemon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810010214.5A
Other languages
Chinese (zh)
Other versions
CN108388506A (en
Inventor
刘熙胖
刘长河
雷宇龙
武宗品
谭帅
王平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Xinda Jiean Information Technology Co Ltd
Original Assignee
Zhengzhou Xinda Jiean Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Xinda Jiean Information Technology Co Ltd filed Critical Zhengzhou Xinda Jiean Information Technology Co Ltd
Priority to CN201810010214.5A priority Critical patent/CN108388506B/en
Publication of CN108388506A publication Critical patent/CN108388506A/en
Application granted granted Critical
Publication of CN108388506B publication Critical patent/CN108388506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention provides an ADB multiplexing system and an ADB multiplexing method based on a single Linux kernel and a multi-Android system, wherein the ADB multiplexing system comprises a host and an Android terminal device, the host comprises a Client module and a Server module, the Server module is an ADB module running on the host, the Android terminal device comprises a human-computer interface, a main system and a virtual system, the main system and the virtual system both comprise Daemon modules, and one of the virtual systems further comprises a control module; the ADB multiplexing method comprises the following steps: the human-computer interface receives an ADB switching message and sends the ADB switching message to the control module; and the control module controls a Daemon module in the appointed system to communicate with the Server module according to the ADB switching message.

Description

ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems
Technical Field
The invention relates to the field of single Linux kernel multi-Android systems, in particular to an ADB multiplexing system and an ADB multiplexing method based on a single Linux kernel multi-Android system.
Background
The ADB is one of important tools of the Android system, has rich functions and common application scenes. And the method is used as an important debugging tool on Android and is very important for developers. And the Android application program can be conveniently developed by combining with the IDE program. The ADB tool is also used in many applications in testing, and plays an important role in automated testing. For a common user, the ADB tool also plays an important role, such as mobile phone management software on a computer, which is connected with a mobile phone through the ADB to realize the control of the mobile phone and the functions of transmitting audio and video, files, data and the like between the mobile phone and the ADB tool. This aspect has similar functionality as iTunes of IOS.
For a single Linux kernel and multiple Android systems, each Android system needs to be equipped with an ADB tool, which occupies a large memory.
In order to solve the above problems, people are always seeking an ideal technical solution.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides an ADB multiplexing system and an ADB multiplexing method based on a single Linux kernel multi-Android system.
In order to achieve the purpose, the invention adopts the technical scheme that: an ADB multiplexing system based on a single Linux kernel and a multi-Android system comprises a host and Android terminal equipment, wherein the host comprises a Client module and a Server module, and the Server module is an ADB module running on the host; the Android terminal equipment comprises a man-machine interface, a main system and a plurality of virtual systems, wherein the main system and each virtual system respectively comprise a Daemon module, one of the virtual systems further comprises a control module, the man-machine interface is used for receiving the ADB switching message and sending the ADB switching message to the control module, the control module is respectively in communication connection with the Daemon modules of the main system and each virtual system, the Daemon modules in the appointed system are controlled to communicate with the Server module according to the ADB switching message, and the Daemon modules of other systems are controlled to sleep.
The invention also provides an ADB multiplexing method of the ADB multiplexing system based on the single Linux kernel multi-Android system, which comprises the following steps:
the man-machine interface receives an ADB switching message and sends the ADB switching message to the control module;
and the control module controls a Daemon module in the appointed system to communicate with the Server module according to the ADB switching message. The man-machine interface receives an ADB switching message and sends the ADB switching message to the control module;
and the control module controls a Daemon module in the appointed system to communicate with the Server module according to the ADB switching message.
Based on the above, the control module controls the Daemon modules of other systems to sleep when the Daemon module in the designated system communicates with the Server module.
Based on the above, the control module controls the Daemon modules of the Android systems through a preset inter-system communication mechanism.
Based on the above, the preset inter-system communication mechanism is BINDER or SOCKET.
Based on the above, the main system creates a virtual terminal for each virtual system, where the virtual terminal is used to execute the Shell command of the virtual system, and when a Daemon module in the main system communicates with the Server module, the main system sends the Shell command to each virtual system through the virtual terminal.
Compared with the prior art, the ADB multiplexing method based on the single Linux kernel and the multiple Android systems has outstanding substantive characteristics and obvious progress, and particularly, the ADB multiplexing method based on the single Linux kernel and the multiple Android systems realizes multiplexing of the same ADB tool in the scene of the single Linux kernel and the multiple Android systems, provides a method for using the ADB for a main system and each virtual system, can control the authority of each Android system for connecting the ADB, and improves the practicability and the safety of the system.
Drawings
Fig. 1 is a schematic diagram of communication between a host and an Android terminal device.
Fig. 2 is a schematic diagram of an Android terminal device implementation of the invention.
Detailed Description
The technical solution of the present invention is further described in detail by the following embodiments.
As shown in fig. 1, an ADB multiplexing system based on a single Linux kernel and a multi-Android system includes a host and an Android terminal device, where the host includes a Client module and a Server module, and the Server module is an ADB module running on the host; preferably, the host is a personal desktop computer or a notebook computer.
As shown in fig. 2, the Android terminal device includes a human-machine interface, a main system, a virtual system 0, and a virtual system 1, where the main system, the virtual system 0, and the virtual system 1 all include Daemon modules, and the virtual system 0 further includes a control module; the man-machine interface is used for receiving the ADB switching message and sending the ADB switching message to the control module; the control module is respectively in communication connection with the Daemon modules of the main system and each virtual system, controls the Daemon modules in the appointed system to communicate with the Server module according to the ADB switching message, and controls the Daemon modules of other systems to sleep.
Preferably, the Android terminal device is a mobile phone, and the human-computer interface is an operation interface, namely application software on the mobile phone; the man-machine interface directly operates the control module through direct calling or other modes.
Specifically, the invention further provides an ADB multiplexing method of the ADB multiplexing system based on the single Linux kernel multi-Android system, which comprises the following steps:
the man-machine interface receives an ADB switching message and sends the ADB switching message to the control module;
and the control module controls a Daemon module in the appointed system to communicate with the host Server (Server) module according to the ADB switching message.
In order to save the electric quantity of the Android terminal device, the control module controls Daemon modules of other systems to sleep when the Daemon modules in the appointed system are communicated with the Server module.
Specifically, the control module controls the Daemon modules of the Android systems through a preset inter-system communication mechanism, and preferably, the preset inter-system communication mechanism is BINDER or SOCKET.
The method comprises the steps that a main system creates a virtual terminal for executing Shell commands of the virtual systems for each virtual system, and when a Daemon module in the main system communicates with a Server module, the main system sends the Shell commands to each virtual system through the virtual terminals.
The invention can switch the ADB tool among the systems, only one system can use the ADB tool to interact with the host at the same time, the information of audio and video, files, data and the like is transmitted, and the Shell command of the current system is executed under the ADB Shell environment of the current system.
Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention and not to limit the same; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art will understand that: modifications to the specific embodiments of the invention or equivalent substitutions for parts of the technical features may be made; without departing from the spirit of the present invention, it is intended to cover all aspects of the invention as defined by the appended claims.

Claims (6)

1. An ADB multiplexing system based on a single Linux kernel and multiple Android systems is characterized in that: the system comprises a host and Android terminal equipment, wherein the host comprises a Client module and a Server module, and the Server module is an ADB module running on the host; the Android terminal device comprises a man-machine interface, a main system and a plurality of virtual systems, wherein the main system and each virtual system comprise a Daemon module, one of the virtual systems also comprises a control module, the man-machine interface is used for receiving ADB switching information and sending the ADB switching information to the control module, the control module is respectively in communication connection with the Daemon modules of the main system and each virtual system, controls the Daemon module in a designated system to communicate with the Server module according to the ADB switching information, and controls the Daemon modules of other systems to sleep; only one system can use the ADB tool to interact with the host at the same time, so that audio/video, file and data information can be transmitted, and the Shell command of the current system is executed under the ADB Shell environment of the current system.
2. An ADB multiplexing method for the ADB multiplexing system of the single Linux kernel multi-Android system according to claim 1, comprising the steps of:
the man-machine interface receives an ADB switching message and sends the ADB switching message to the control module;
and the control module controls a Daemon module in the appointed system to communicate with the Server module according to the ADB switching message.
3. The ADB multiplexing method based on the single Linux kernel multi-Android system according to claim 2, characterized in that: and the control module controls Daemon modules of other systems to sleep when the Daemon module in the appointed system is communicated with the Server module.
4. The ADB multiplexing method based on the single Linux kernel multi-Android system according to the claim 2 or 3, characterized in that: and the control module controls the Daemon module of each Android system through a preset inter-system communication mechanism.
5. The ADB multiplexing method based on the single Linux kernel multi-Android system according to claim 4, wherein: the preset inter-system communication mechanism is BINDER or SOCKET.
6. The ADB multiplexing method based on the single Linux kernel multi-Android system according to claim 5, wherein: the method comprises the steps that a main system creates a virtual terminal for executing Shell commands of the virtual systems for each virtual system, and when a Daemon module in the main system communicates with a Server module, the main system sends the Shell commands to each virtual system through the virtual terminals.
CN201810010214.5A 2018-01-05 2018-01-05 ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems Active CN108388506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810010214.5A CN108388506B (en) 2018-01-05 2018-01-05 ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810010214.5A CN108388506B (en) 2018-01-05 2018-01-05 ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems

Publications (2)

Publication Number Publication Date
CN108388506A CN108388506A (en) 2018-08-10
CN108388506B true CN108388506B (en) 2021-10-12

Family

ID=63076981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810010214.5A Active CN108388506B (en) 2018-01-05 2018-01-05 ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems

Country Status (1)

Country Link
CN (1) CN108388506B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835752A (en) * 2020-06-08 2021-12-24 中兴通讯股份有限公司 Data acquisition method, device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593225A (en) * 2013-10-30 2014-02-19 浙江大学 Method for multiplexing Binder IPC mechanism by multiple Android systems in mobile virtualization scene
CN105095119A (en) * 2015-07-03 2015-11-25 百度在线网络技术(北京)有限公司 Method and apparatus for communicating with ADB device
CN105183551A (en) * 2015-09-10 2015-12-23 电子科技大学 Switching method among multiple Android systems based on Linux container technology
CN105868109A (en) * 2016-03-28 2016-08-17 北京奇虎科技有限公司 Improved mobile terminal application testing method and system
CN106201858A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 The test system of application program and control method thereof and device in mobile terminal
CN106844206A (en) * 2017-01-13 2017-06-13 北京元心科技有限公司 Method and device for debugging multiple systems in mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9473555B2 (en) * 2012-12-31 2016-10-18 The Nielsen Company (Us), Llc Apparatus, system and methods for portable device tracking using temporary privileged access
US8924986B2 (en) * 2011-09-01 2014-12-30 American Megatrends, Inc. Methods, devices and computer program products for confluence of multiple operating systems
CN103927256A (en) * 2013-01-16 2014-07-16 珠海市君天电子科技有限公司 Method for controlling multiple Android devices
CN105573934B (en) * 2015-12-11 2019-11-12 北京元心科技有限公司 Method and device for operating multi-system slave device to access master device through USB connection
CN106502913B (en) * 2016-11-29 2019-02-15 北京元心科技有限公司 Method and device for debugging dual-system mobile terminal
CN106776292A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for starting and logging in multiple systems
CN107102885A (en) * 2017-04-14 2017-08-29 北京洋浦伟业科技发展有限公司 The method and device of Android simulator is detected using ADB modes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593225A (en) * 2013-10-30 2014-02-19 浙江大学 Method for multiplexing Binder IPC mechanism by multiple Android systems in mobile virtualization scene
CN106201858A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 The test system of application program and control method thereof and device in mobile terminal
CN105095119A (en) * 2015-07-03 2015-11-25 百度在线网络技术(北京)有限公司 Method and apparatus for communicating with ADB device
CN105183551A (en) * 2015-09-10 2015-12-23 电子科技大学 Switching method among multiple Android systems based on Linux container technology
CN105868109A (en) * 2016-03-28 2016-08-17 北京奇虎科技有限公司 Improved mobile terminal application testing method and system
CN106844206A (en) * 2017-01-13 2017-06-13 北京元心科技有限公司 Method and device for debugging multiple systems in mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
移动平台Android操作系统虚拟化技术的实现;刘博文等;《计算机工程与应用》;20170715;第53卷(第14期);第33-34页 *
采用容器技术的多Android系统的研究与实现;杨霞等;《小型微型计算机系统》;20160715;第37卷(第7期);第1422-1427页 *

Also Published As

Publication number Publication date
CN108388506A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN107463499B (en) ADB remote connection method, device, equipment and storage medium
CN203745958U (en) SIM card extension device and mobile terminal extension system with same
CN106062763A (en) Method and apparatus for displaying application and picture, and electronic device
CN107580011B (en) Data sharing method and desktop cloud server
CN105975367B (en) Test method and device for mobile equipment
CN103634169A (en) A household electrical appliance control system realized based on intelligent terminals
EP4129143A1 (en) Cleaning robot control method and device, storage medium and cleaning robot
CN106126377B (en) The method and device of system starting
CN104424036A (en) Synchronous operation method and device of smart terminal
CN108388506B (en) ADB multiplexing system and ADB multiplexing method based on single Linux kernel and multiple Android systems
CN106850554B (en) Method and device for dual-system directional connection
CN104680089A (en) Electronic device and system switching method
CN106027305A (en) Method for hot standby of dual servers using same IP based on ARM
CN110401939B (en) Low-power consumption bluetooth controller link layer device
CN107317881A (en) A kind of BA systems based on micro services framework
CN109189629B (en) Method for realizing terminal remote control based on USB device and storage medium
CN109684817B (en) Multi-system user management method
CN105516429A (en) Method and system for processing offline of terminal
WO2017092315A1 (en) Method and device for controlling television
CN104079324A (en) Data transmission method, electronic equipment and system
CN107402898B (en) Information processing method and electronic equipment
CN103069361B (en) Personal computer system and operational approach thereof for mobile phone users
CN104182366A (en) Method for processing information and electronic devices
EP3637938A1 (en) Network management method, wireless access device, terminal, system and storage medium
CN107548016B (en) Management method, device and system of Bluetooth connection resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant