CN106502913A - Method and device for debugging dual-system mobile terminal - Google Patents

Method and device for debugging dual-system mobile terminal Download PDF

Info

Publication number
CN106502913A
CN106502913A CN201611070808.2A CN201611070808A CN106502913A CN 106502913 A CN106502913 A CN 106502913A CN 201611070808 A CN201611070808 A CN 201611070808A CN 106502913 A CN106502913 A CN 106502913A
Authority
CN
China
Prior art keywords
debugging
subsystem
mobile terminal
master control
control system
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.)
Granted
Application number
CN201611070808.2A
Other languages
Chinese (zh)
Other versions
CN106502913B (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.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
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 Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201611070808.2A priority Critical patent/CN106502913B/en
Publication of CN106502913A publication Critical patent/CN106502913A/en
Application granted granted Critical
Publication of CN106502913B publication Critical patent/CN106502913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • 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

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for debugging a dual-system mobile terminal, wherein the method comprises the following steps: firstly, determining a debugging tool and a communication protocol which correspond to each system in the mobile terminal respectively, then debugging the first subsystem by adopting the first debugging tool and the first communication protocol, debugging the second subsystem by adopting the second debugging tool and the second communication protocol, and debugging the main control system by the main control system, debugging the second subsystem and debugging the main control system by adopting the third debugging tool and the third communication protocol. The scheme provided by the embodiment of the invention can reduce the complexity of debugging the dual-system mobile terminal, and can simultaneously debug each system in the mobile terminal and the application program in each system.

Description

The method and device of debugging dual system mobile terminal
Technical field
The present invention relates to terminal unit technical field, specifically, the present invention relates to a kind of debugging dual system mobile terminal Method and device.
Background technology
With the popularization of development of Mobile Internet technology, mobile terminal day by day becomes inalienable part in people's life. Debugging demand to system in mobile terminal and the application program in system is also increasing, and generally, user passes through PC (English full name:Personal Computer) machine to mobile terminal in system and the application program in system adjust Examination.In the mobile terminal of single system, PC directly can be debugged to the application program in the system and the system.
With the rise of dual system mobile terminal, how to each system in dual system and the application journey in each system Sequence carries out debugging the technical issues that need to address for becoming new.At present, in the method for existing debugging dual system mobile terminal, PC Machine determines the system that current foreground is currently running, and the application program in the system and system of current foreground operation is adjusted Examination.The i.e. existing method debugged by dual system mobile terminal for PC be only capable of debug current foreground operation system and Application program in the system, if desired adjusts to the application program in other systems and other systems in mobile terminal Examination, needs first switched system, then again the application program in the system and the system is debugged, so as to cause to double systems The system complexity debugged of mobile terminal is higher, and cannot simultaneously in debugging mobile terminal each system and/or each Corresponding application program is distinguished in system, and secondly after the system of carrying out switching, PC is directly connected with the system by USB interface Connect, it is possible to get some private datas in the system, for example, when second system is switched to by the first system, PC leads to Cross USB interface to be directly attached with second system, i.e., PC can obtain all numbers in second system by USB interface According to the private data in second system may be caused to leak.
Content of the invention
For overcoming above-mentioned technical problem or solving above-mentioned technical problem at least in part, special proposition technical scheme below:
An embodiment provides a kind of method of debugging dual system mobile terminal, including:
Determine that each system distinguishes corresponding debugging acid and communication protocol in mobile terminal;
Using the first debugging acid and the first communication protocol, the first subsystem is debugged;
Using the second debugging acid and the second communication protocol, and by master control system, the second subsystem is debugged;
Using the 3rd debugging acid and third communication agreement, the master control system is debugged.
Specifically, described adopt the first debugging acid and the first communication protocol, the step of the first subsystem of debugging, bag Include:
Bridge adb and ffs agreement is debugged using ARIXTRA and connects the first subsystem in the mobile terminal, and by the tune The first subsystem in examination data is activation to the mobile terminal;
Receive the debugging result that the first subsystem in the mobile terminal is returned.
Specifically, described adopt the 3rd debugging acid and third communication agreement, the step of debug the master control system, bag Include:
Bridge and containment agreement ssh are debugged using master control, connects the master control system in the mobile terminal, and will be described Tune-up data send to the mobile terminal in master control system;
Receive the debugging result that the master control system in the mobile terminal is returned.
Specifically, it is configured with the master control system in bridge, second subsystem and is configured with virtual network port, its In, in second subsystem, one end of virtual network port is located in second subsystem, and the other end is connected with the bridge Connect;
Wherein, described adopt the second debugging acid and the second communication protocol, and by master control system, debug the second subsystem The step of system, including:
Using adb and transmission control protocol tcp agreement, connect the default port in master control system;
Default port, the bridge in by the master control system, and tune-up data is sent out by port mapping Deliver to the corresponding virtual network port of second subsystem;
Receive the debugging result that second subsystem is returned.
Specifically, described by the master control system in default port, the bridge, and by port mapping will The step of tune-up data sends virtual network port corresponding to second subsystem, including:
The IP address of the default port in the master control system is mapped to the LAN of the IP address of the bridge In section;
The IP address of the IP address and the bridge of the default port in the master control system after according to mapping, will debugging Data is activation is to the corresponding virtual network port of second subsystem.
An alternative embodiment of the invention provides a kind of device of debugging dual system mobile terminal, and described device includes:
Determining module, for determining that each system distinguishes corresponding debugging acid and communication protocol in mobile terminal;
Debugging module, for the first debugging acid using determining module determination and the first communication protocol, debugging First subsystem;
The debugging module, for the second debugging acid using determining module determination and the second communication protocol, And by master control system, debug the second subsystem;
The debugging module, for the 3rd debugging acid using determining module determination and third communication agreement, Debug the master control system.
Specifically, the debugging module, specifically for connecting the movement using ARIXTRA debugging bridge adb and ffs agreement The first subsystem in terminal, and the first subsystem during the tune-up data is sent to the mobile terminal;
The debugging module, is specifically additionally operable to receive the debugging result that the first subsystem in the mobile terminal is returned.
Specifically, the debugging module, is specifically additionally operable to debug bridge and containment agreement ssh using master control, connects institute State the master control system in mobile terminal, and the master control system during the tune-up data is sent to the mobile terminal;
The debugging module, is specifically additionally operable to receive the debugging result that the master control system in the mobile terminal is returned.
Specifically, it is configured with the master control system in bridge, second subsystem and is configured with virtual network port, its In, in second subsystem, one end of virtual network port is located in second subsystem, and the other end is connected with the bridge Connect;
The debugging module, is specifically additionally operable to, using adb and transmission control protocol tcp agreement, connect in master control system Default port;
The debugging module, the default port, the bridge in being specifically additionally operable to by the master control system, and lead to Cross port mapping and tune-up data is sent virtual network port corresponding to second subsystem;
The debugging module, is specifically additionally operable to receive the debugging result that second subsystem is returned.
Specifically, the debugging module, is specifically additionally operable to map the IP address of the default port in the master control system To the LAN of the IP address of the bridge;
The debugging module, the IP address of the default port in the master control system after being specifically additionally operable to according to mapping and described Tune-up data is sent virtual network port corresponding to second subsystem by the IP address of bridge.
The invention provides a kind of method and device of debugging dual system mobile terminal, and by first switching operating system, Debugging is carried out to the operating system again to compare, by using the first debugging acid and the first communication protocol debugging the in the present invention One subsystem, using the second debugging acid and the second communication protocol, and by master control system, debugs the second subsystem, adopts 3rd debugging acid and third communication protocol debugging master control system, you can with by different debugging acid and different logical Letter agreement, while the subsystems in dual system mobile terminal and master control system is debugged, without passing through handover operation System, is debugged to each operating system successively, such that it is able to reduce the complexity for debugging dual system mobile terminal, Jin Erke To debug to each system in dual system mobile terminal simultaneously, and the second subsystem is adjusted by master control system Examination, the second subsystem avoids being directly connected to external equipment, it is to avoid the private data in the second subsystem leaks.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments Substantially and easy to understand, wherein:
Fig. 1 is the relation schematic diagram between each system in the dual system termi-nal equipment of the embodiment of the present invention;
Method flow schematic diagrams of the Fig. 2 for the debugging dual system mobile terminal of the embodiment of the present invention;
Method flow schematic diagrams of the Fig. 3 for another kind of debugging dual system mobile terminal of the embodiment of the present invention;
Method flow schematic diagrams of the Fig. 4 for another debugging dual system mobile terminal of the embodiment of the present invention;
Method flow schematic diagrams of the Fig. 5 for another debugging dual system mobile terminal of the embodiment of the present invention;
Method flow schematic diagrams of the Fig. 6 for another debugging dual system mobile terminal of the embodiment of the present invention;
Apparatus structure schematic diagrams of the Fig. 7 for a kind of debugging dual system mobile terminal of the embodiment of the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the description of the present invention Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding Other features one or more, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.Used herein arrange Diction "and/or" includes one or more associated whole or any cells for listing item and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also It is understood by, those terms defined in such as general dictionary, it should be understood that in the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal unit " had both included wireless communication The equipment of number receptor, which only possesses the equipment of the wireless signal receiver of non-emissive ability, includes again receiving and transmitting hardware Equipment, which has the equipment of the reception that on bidirectional communication link, can carry out two-way communication and transmitting hardware.This equipment Can include:Honeycomb or other communication equipments, its have single line display or multi-line display or show without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), which can With combine voice, data processing, fax and/or its communication ability;PDA (Personal Digital Assistant, personal Digital assistants), which can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day Go through and/or GPS (Global Positioning System, global positioning system) receptor;Conventional laptop and/or palm Type computer or other equipment, its have and/or conventional laptop and/or palmtop computer including radio frequency receiver or its His equipment." terminal " used herein above, " terminal unit " they can be portable, can transport, installed in the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal unit " can also be communication terminal, on Network termination, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or the equipment such as mobile phone, or intelligent television with music/video playing function, Set Top Box.
The block schematic illustration of the internal structure of the terminal unit of the embodiment of the present invention as shown in figure 1, including:Master control system and Two subsystems.
Wherein, the subsystem in the embodiment of the present invention, can be provided in virtualizing with Linux container (container) Operating system in the container that technology is created.Operating system can be that traditional (SuSE) Linux OS or Unix are operated System, or the android system being derived based on (SuSE) Linux OS, Ubuntu systems or FireFox systems Deng can also be windows systems based on windows platform etc..In fact, the subsystem in the present invention is not limited to The aforementioned operating system for enumerating, can cover all operating systems that can be run in a reservoir.
Preferably, master control system can be above-mentioned traditional operating system, or traditional kernel is changed Enter and/or outside kernel after (such as ccf layer and application layer) increase functional module, the operating system for obtaining.
Master control system is mainly used in carrying out AM/BAM management to two subsystems, interacts with each subsystem.
It should be noted that this programme is adjusted to the dual system of mobile terminal by commissioning device;Wherein, debugging sets For including PC, panel computer and notebook computer etc..
A kind of method of debugging dual system mobile terminal is embodiments provided, as shown in Fig. 2 the method includes:
Step 201, commissioning device determine that each system distinguishes corresponding debugging acid and communication protocol in mobile terminal.
For the embodiment of the present invention, the mobile terminal can include the first subsystem, the second subsystem and master control system.
For the embodiment of the present invention, commissioning device can distinguish corresponding debugging acid and communication protocols according to each system View, logins corresponding system, and is debugged.
Step 202, commissioning device debug the first subsystem using the first debugging acid and the first communication protocol.
For the embodiment of the present invention, in dual system mobile terminal, synchronization, hardware device only can be by subsystems System is managed, and for example, synchronization, USB hardware equipment only can be directly connected to a subsystem.In this programme, adjust Examination equipment only can directly pass through USB (universal serial bus) (English full name:Universal Serial Bus, english abbreviation:USB) Interface is attached with the first subsystem, and is logined using the first debugging acid and the first communication protocol and debugged first son System.
Step 203, commissioning device are using the second debugging acid and the second communication protocol, and by master control system, debug Second subsystem.
For the embodiment of the present invention, as the first subsystem is mutually isolated with the second subsystem, and commissioning device cannot It is directly connected to the second subsystem by USB interface, therefore, commissioning device is using the second debugging acid and the second communication protocols View, and need, by master control system, to debug the second subsystem.
Wherein, the second debugging acid can be identical with the first debugging acid, it is also possible to different, but the first communication protocol and the Two communication protocols are differed.Do not limit in embodiments of the present invention.
Step 204, commissioning device debug master control system using the 3rd debugging acid and third communication agreement.
In above-described embodiment, the execution sequence of step 202, step 203 and step 204 is only a kind of achievable mode.At this In invention, the execution sequence of step 202, step 203 and step 204 can be executed in any order, in the reality of the present invention Apply in example and do not limit.
A kind of method of debugging dual system mobile terminal is embodiments provided, and by first switching operating system, Debugging is carried out to the operating system again to compare, by using the first debugging acid and the first communication protocol in the embodiment of the present invention The first subsystem is debugged, using the second debugging acid and the second communication protocol, and by master control system, the second subsystem is debugged System, using the 3rd debugging acid and third communication protocol debugging master control system, you can with by different debugging acids and Different communication protocol, while the subsystems in dual system mobile terminal and master control system is debugged, without passing through Switching operating system, is debugged to each operating system successively, such that it is able to reduce the complexity for debugging dual system mobile terminal Degree, and then simultaneously each system in dual system mobile terminal can be debugged, and by master control system to the second son System is debugged, and the second subsystem avoids being directly connected to external equipment, it is to avoid outside the private data in the second subsystem Let out.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 2, step 202, debugging set For using the first debugging acid and the first communication protocol, the first subsystem is debugged, including step 302-303 as shown in Figure 3, Operation wherein performed by step 301,304-305 is identical with the operation performed by step 201,203-204, and here is no longer gone to live in the household of one's in-laws on getting married State.
Step 302, commissioning device debug the first subsystem in bridge adb and ffs agreement connection mobile terminal using ARIXTRA System, and the first subsystem during tune-up data is sent to mobile terminal.
For the embodiment of the present invention, ARIXTRA is debugged bridge adb, can possess multiple use, and can be used for management equipment And the state of simulator.
Step 303, commissioning device receive the debugging result that the first subsystem in mobile terminal is returned.
For the embodiment of the present invention, commissioning device can receive the debugging knot that the first subsystem in mobile terminal is returned Really, and according to debugging result determine whether to debug successfully.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 2, step 204, debugging set For using the 3rd debugging acid and third communication agreement, master control system is debugged, including step 404-405 as shown in Figure 4, its Operation performed by middle step 401-403 is identical with the operation performed by step 201-203, will not be described here.
Step 404, commissioning device debug bridge and containment agreement ssh using master control, connect the master control in mobile terminal System, and the master control system during tune-up data is sent to mobile terminal.
For the embodiment of the present invention, containment agreement (English full name:Secure Shell, english abbreviation:SSH) by interconnecting Net engineering task force (English full name:Internet Engineering Task Force, english abbreviation:IETF network work) Make group to be formulated, and the security protocol that sets up on the basis of application layer and transport layer.Wherein SSH agreements aim at Telnet meeting Words and other network services provide the agreement of safety.The information in remote management procedures can be effectively prevented using SSH agreements Leakage problem.Including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and other platforms, Operation SSH.
Step 405, commissioning device receive the debugging result that the master control system in mobile terminal is returned.
For the embodiment of the present invention, commissioning device can directly enter master by debugging bridge and SSH agreements using master control Control system, and master control system is debugged.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 2, step 203, debugging set Standby using the second debugging acid and the second communication protocol, and by master control system, debug the second subsystem, including such as Fig. 5 institutes The step of showing 503-505, wherein step 501-502, the operation performed by 506 and step 201-202, the operation performed by 204 Identical, will not be described here.
Step 503, commissioning device connect the default end in master control system using adb and transmission control protocol tcp agreement Mouthful.
For the embodiment of the present invention, commissioning device can be connected to the default port of master control system using adb and tcp. The default port of wherein master control system can be 5555 ports.
Step 504, commissioning device are by the default port in master control system, bridge, and will be adjusted by port mapping Examination data is activation is to the corresponding virtual network port of the second subsystem.
Wherein, it is configured with master control system in bridge, the second subsystem and is configured with virtual network port, wherein, the second son In system, one end of virtual network port is located in the second subsystem, and the other end is connected with bridge.
For the embodiment of the present invention, in mobile terminal promoter systems, in master control system, bridge br0 is created, Virtual network port veth-pair1 is created in the second subsystem, and wherein, one end of virtual network port veth-pair1 is located at second In subsystem, the other end is connected with bridge.In embodiments of the present invention, virtual network port veth-pair1 in the second subsystem IP address and bridge br0 IP address, configure in same LAN.
For example, the corresponding IP address in 5555 ports is 192.168.100.100, then by port mapping, by 5555 ports Corresponding IP address is mapped as 192.168.10.15, and wherein in master control system, the corresponding IP address of bridge is 192.168.10.1, then the IP address of 5555 ports and the IP address of bridge and the second subsystem after port mapping The IP address of corresponding virtual network port is located in same LAN, and therefore number can will be debugged by bridge in 5555 ports According to the second subsystem is placed, to realize the debugging to the second subsystem.
Step 505, commissioning device receive the debugging result that the second subsystem is returned.
For the embodiment of the present invention, default port and bridge of the commissioning device by master control system, and pass through end Mouth mapping sends tune-up data to the second subsystem, to avoid needing to switch to the second son by the first subsystem in prior art System, in the case that commissioning device just can be debugged to the second subsystem, commissioning device is by USB interface and the second subsystem System is directly connected to obtain other data in the second subsystem, so as to cause some of the second subsystem private data to leak Problem, such that it is able to reduce the probability of loss of data in the second subsystem, and then can improve the safety of the second subsystem.
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 5, step 504, debugging set The standby default port passed through in master control system, bridge, and sent tune-up data to the second subsystem by port mapping Corresponding virtual network port, including step 604-605 as shown in Figure 6, wherein step 601-603, the operation performed by 606 and step Rapid 501-503, the operation performed by 505 are identical, will not be described here.
The IP address of the default port in master control system is mapped to the IP address of bridge for step 604, commissioning device LAN in.
For the embodiment of the present invention, the IP address of the default port in master control system is mapped to bridge by commissioning device IP address LAN in, be commissioning device can by tune-up data by preset port, bridge, send to second Guarantee is provided in subsystem.
Step 605, commissioning device according to mapping after master control system in default port IP address and bridge Tune-up data is sent virtual network port corresponding to the second subsystem by IP address.
For the embodiment of the present invention, commissioning device is by mapping to bridge by the IP address of the default port in master control system In the LAN of the IP address of node, default port, bridge and the second subsystem virtual network port three is enabled to Between can carry out information exchange so that debugging system realizes debugging to the second subsystem by master control system, And then can further improve the safety of the second subsystem data.
The method for embodiments providing another kind of debugging dual system mobile terminal, commissioning device pass through master control system Default port and bridge, and tune-up data is sent to the second subsystem by port mapping, to avoid existing skill Need to switch to the second subsystem, the situation that commissioning device just can be debugged the second subsystem by the first subsystem in art Under, commissioning device is directly connected to obtain other data in the second subsystem by USB interface and the second subsystem, so as to cause The problem that some of second subsystem private data leaks, such that it is able to reduce the possibility of loss of data in the second subsystem Property, and then the safety of the second subsystem can be improved;Commissioning device passes through the IP address of the default port in master control system In the LAN of the IP address for mapping to bridge, default port, bridge and the second subsystem is enabled to empty Intend to carry out information exchange between network interface three, so that debugging system is realized to the second subsystem by master control system The debugging of system, and then can further improve the safety of the second subsystem data.
A kind of device of debugging dual system mobile terminal is embodiments provided, as shown in fig. 7, the device includes: Determining module 71, debugging module 72.
Determining module 71, for determining that each system distinguishes corresponding debugging acid and communication protocol in mobile terminal.
Debugging module 72, for the first debugging acid using the determination of determining module 71 and the first communication protocol, debugging First subsystem.
Debugging module 72, for the second debugging acid using the determination of determining module 71 and the second communication protocol, and leads to Master control system is crossed, the second subsystem is debugged.
Debugging module 72, for the 3rd debugging acid using the determination of determining module 71 and third communication agreement, debugging Master control system.
Debugging module 72, specifically for debugging the first son in bridge adb and ffs agreement connection mobile terminal using ARIXTRA System, and the first subsystem during tune-up data is sent to mobile terminal.
Debugging module 72, is specifically additionally operable to receive the debugging result that the first subsystem in mobile terminal is returned.
Debugging module 72, is specifically additionally operable to debug bridge and containment agreement ssh using master control, in connection mobile terminal Master control system, and the master control system during tune-up data is sent to mobile terminal.
Debugging module 72, is specifically additionally operable to receive the debugging result that the master control system in mobile terminal is returned.
Debugging module 72, is specifically additionally operable to, using adb and transmission control protocol tcp agreement, connect in master control system Default port.
Debugging module 72, the default port in being specifically additionally operable to by master control system, bridge, and pass through port mapping Tune-up data is sent virtual network port corresponding to the second subsystem.
Wherein, it is configured with master control system in bridge, the second subsystem and is configured with virtual network port, wherein, the second son In system, one end of virtual network port is located in the second subsystem, and the other end is connected with bridge.
Debugging module 72, is specifically additionally operable to the debugging result for receiving the return of the second subsystem.
Debugging module 72, is specifically additionally operable to the IP that the IP address of the default port in master control system is mapped to bridge In the LAN of address.
Debugging module 72, the IP address of the default port in the master control system after being specifically additionally operable to according to mapping and bridge section Tune-up data is sent virtual network port corresponding to the second subsystem by the IP address of point.
A kind of device of debugging dual system mobile terminal is embodiments provided, and by first switching operating system, Debugging is carried out to the operating system again to compare, by using the first debugging acid and the first communication protocol in the embodiment of the present invention The first subsystem is debugged, using the second debugging acid and the second communication protocol, and by master control system, the second subsystem is debugged System, using the 3rd debugging acid and third communication protocol debugging master control system, you can with by different debugging acids and Different communication protocol, while the subsystems in dual system mobile terminal and master control system is debugged, without passing through Switching operating system, is debugged to each operating system successively, such that it is able to reduce the complexity for debugging dual system mobile terminal Degree, and then simultaneously each system in dual system mobile terminal can be debugged, and by master control system to the second son System is debugged, and the second subsystem avoids being directly connected to external equipment, it is to avoid outside the private data in the second subsystem Let out.
The device of another kind of debugging dual system mobile terminal is embodiments provided, commissioning device passes through master control system Default port and bridge, and tune-up data is sent to the second subsystem by port mapping, to avoid existing skill Need to switch to the second subsystem, the situation that commissioning device just can be debugged the second subsystem by the first subsystem in art Under, commissioning device is directly connected to obtain other data in the second subsystem by USB interface and the second subsystem, so as to cause The problem that some of second subsystem private data leaks, such that it is able to reduce the possibility of loss of data in the second subsystem Property, and then the safety of the second subsystem can be improved;Commissioning device passes through the IP address of the default port in master control system In the LAN of the IP address for mapping to bridge, default port, bridge and the second subsystem is enabled to empty Intend to carry out information exchange between network interface three, so that debugging system is realized to the second subsystem by master control system The debugging of system, and then can further improve the safety of the second subsystem data.
The device of debugging dual system mobile terminal provided in an embodiment of the present invention can realize that the method for above-mentioned offer is implemented Example, concrete function are realized referring to the explanation in embodiment of the method, will not be described here.Debugging provided in an embodiment of the present invention is double The method and device of system and mobile terminal goes for commissioning device while each system in debugging mobile terminal, but not only limits In this.
Those skilled in the art of the present technique are appreciated that the present invention includes relating to execute in operation described herein One or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include general Known device in computer.These equipment have the computer program being stored in which, and these computer programs are optionally Activation is reconstructed.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in It is suitable to store and e-command is coupled in any kind of medium of bus respectively, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memorizer), RAM (Random Access Memory, immediately memorizer), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Piece.It is, computer-readable recording medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any Jie Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of each frame and these structure charts and/or block diagram and/or the frame in flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to general purpose computer, special purpose computer or other The processor of programmable data processing method realizing, so as to pass through the process of computer or other programmable data processing methods Device is executing the scheme that specifies in the frame or multiple frames of structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that the various operations discussed in the present invention, method, in flow process Step, measure, scheme can be replaced, changed, combined or deleted.Further, each with discussed in the present invention Kind of operation, method, other steps in flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, of the prior art with the various operations disclosed in the present invention, method, flow process in step, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of debugging dual system mobile terminal method, it is characterised in that methods described includes:
Determine that each system distinguishes corresponding debugging acid and communication protocol in mobile terminal;
Using the first debugging acid and the first communication protocol, the first subsystem is debugged;
Using the second debugging acid and the second communication protocol, and by master control system, the second subsystem is debugged;
Using the 3rd debugging acid and third communication agreement, the master control system is debugged.
2. the method for debugging dual system mobile terminal according to claim 1, it is characterised in that described adopt the first debugging The step of instrument and the first communication protocol, the first subsystem of debugging, including:
Bridge adb and ffs agreement is debugged using ARIXTRA and connects the first subsystem in the mobile terminal, and by the debugging number According to transmission to the first subsystem in the mobile terminal;
Receive the debugging result that the first subsystem in the mobile terminal is returned.
3. the method for debugging dual system mobile terminal according to claim 1, it is characterised in that described adopt the 3rd debugging The step of instrument and third communication agreement, debugging master control system, including:
Bridge and containment agreement ssh are debugged using master control, connects the master control system in the mobile terminal, and by the debugging Master control system in data is activation to the mobile terminal;
Receive the debugging result that the master control system in the mobile terminal is returned.
4. according to claim 1 debugging dual system mobile terminal method, it is characterised in that match somebody with somebody in the master control system It is equipped with bridge, second subsystem and is configured with virtual network port, wherein, the one of virtual network port in second subsystem End is located in second subsystem, and the other end is connected with the bridge;
Wherein, described adopt the second debugging acid and the second communication protocol, and by master control system, debug the second subsystem Step, including:
Using adb and transmission control protocol tcp agreement, connect the default port in master control system;
Default port, the bridge in by the master control system, and by port mapping by tune-up data send to The corresponding virtual network port of second subsystem;
Receive the debugging result that second subsystem is returned.
5. according to claim 4 debugging dual system mobile terminal method, it is characterised in that described by the master control Default port, the bridge in system, and sent tune-up data to second subsystem pair by port mapping The step of virtual network port that answers, including:
In the LAN of the IP address that the IP address of the default port in the master control system is mapped to the bridge;
The IP address of the IP address and the bridge of the default port in the master control system after according to mapping, by tune-up data Send virtual network port corresponding to second subsystem.
6. a kind of debugging dual system mobile terminal device, it is characterised in that described device includes:
Determining module, for determining that each system distinguishes corresponding debugging acid and communication protocol in mobile terminal;
Debugging module, for the first debugging acid using determining module determination and the first communication protocol, debugging first Subsystem;
The debugging module, for the second debugging acid using determining module determination and the second communication protocol, and leads to Master control system is crossed, the second subsystem is debugged;
The debugging module, for the 3rd debugging acid using determining module determination and third communication agreement, debugging The master control system.
7. according to claim 6 debugging dual system mobile terminal device, it is characterised in that
The debugging module, connects in the mobile terminal first specifically for debugging bridge adb and ffs agreement using ARIXTRA Subsystem, and the first subsystem during the tune-up data is sent to the mobile terminal;
The debugging module, is specifically additionally operable to receive the debugging result that the first subsystem in the mobile terminal is returned.
8. according to claim 6 debugging dual system mobile terminal device, it is characterised in that the debugging module, tool Body is additionally operable to debug bridge and containment agreement ssh using master control, connects the master control system in the mobile terminal, and will be described Tune-up data send to the mobile terminal in master control system;
The debugging module, is specifically additionally operable to receive the debugging result that the master control system in the mobile terminal is returned.
9. according to claim 6 debugging dual system mobile terminal device, it is characterised in that
It is configured with the master control system in bridge, second subsystem and is configured with virtual network port, wherein, described second In subsystem, one end of virtual network port is located in second subsystem, and the other end is connected with the bridge;
The debugging module, is specifically additionally operable to using adb and transmission control protocol tcp agreement, connects pre- in master control system If port;
The debugging module, the default port, the bridge in being specifically additionally operable to by the master control system, and by end Tune-up data is sent virtual network port corresponding to second subsystem by mouth mapping;
The debugging module, is specifically additionally operable to receive the debugging result that second subsystem is returned.
10. according to claim 9 debugging dual system mobile terminal device, it is characterised in that
The debugging module, is specifically additionally operable to for the IP address of the default port in the master control system to map to the bridge section In the LAN of the IP address of point;
The debugging module, the IP address of the default port in the master control system after being specifically additionally operable to according to mapping and the bridge Tune-up data is sent virtual network port corresponding to second subsystem by the IP address of node.
CN201611070808.2A 2016-11-29 2016-11-29 Method and device for debugging dual-system mobile terminal Active CN106502913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611070808.2A CN106502913B (en) 2016-11-29 2016-11-29 Method and device for debugging dual-system mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611070808.2A CN106502913B (en) 2016-11-29 2016-11-29 Method and device for debugging dual-system mobile terminal

Publications (2)

Publication Number Publication Date
CN106502913A true CN106502913A (en) 2017-03-15
CN106502913B CN106502913B (en) 2019-02-15

Family

ID=58329104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611070808.2A Active CN106502913B (en) 2016-11-29 2016-11-29 Method and device for debugging dual-system mobile terminal

Country Status (1)

Country Link
CN (1) CN106502913B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388506A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 ADB multiplex systems based on the more android systems of single linux kernel and ADB multiplexing methods
CN108845946A (en) * 2018-06-29 2018-11-20 上海商米科技有限公司 A kind of terminal, debugging system and terminal debugging method
WO2018223598A1 (en) * 2017-06-08 2018-12-13 深圳市创维软件有限公司 Remote debugging method, set-top box and server
CN112073759A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Method and device for selecting and scheduling communication modes between two systems and display equipment
CN113535325A (en) * 2021-06-29 2021-10-22 惠州华阳通用电子有限公司 Double-system debugging method based on virtual network card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101368755B1 (en) * 2013-04-05 2014-02-28 (주)불스브로드밴드 System and method for managing port and shipping container using smart phone
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment
CN105573910A (en) * 2015-12-11 2016-05-11 北京元心科技有限公司 Application program debugging method of protected system and intelligent terminal
CN105808320A (en) * 2016-03-11 2016-07-27 四川安嵌科技有限公司 Equipment virtualization system and method based on Linux container
CN106095702A (en) * 2016-06-02 2016-11-09 北京元心科技有限公司 Mobile terminal, and method and device for sharing data among multiple systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101368755B1 (en) * 2013-04-05 2014-02-28 (주)불스브로드밴드 System and method for managing port and shipping container using smart phone
CN105573910A (en) * 2015-12-11 2016-05-11 北京元心科技有限公司 Application program debugging method of protected system and intelligent terminal
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment
CN105808320A (en) * 2016-03-11 2016-07-27 四川安嵌科技有限公司 Equipment virtualization system and method based on Linux container
CN106095702A (en) * 2016-06-02 2016-11-09 北京元心科技有限公司 Mobile terminal, and method and device for sharing data among multiple systems

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴佳杰: "基于LXC的Android系统虚拟化关键技术设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018223598A1 (en) * 2017-06-08 2018-12-13 深圳市创维软件有限公司 Remote debugging method, set-top box and server
CN108388506A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 ADB multiplex systems based on the more android systems of single linux kernel and ADB multiplexing methods
CN108845946A (en) * 2018-06-29 2018-11-20 上海商米科技有限公司 A kind of terminal, debugging system and terminal debugging method
CN108845946B (en) * 2018-06-29 2022-02-08 上海商米科技集团股份有限公司 Terminal, debugging system and terminal debugging method
CN112073759A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Method and device for selecting and scheduling communication modes between two systems and display equipment
CN112073759B (en) * 2019-06-10 2022-05-17 海信视像科技股份有限公司 Method and device for selecting and scheduling communication modes between two systems and display equipment
CN113535325A (en) * 2021-06-29 2021-10-22 惠州华阳通用电子有限公司 Double-system debugging method based on virtual network card

Also Published As

Publication number Publication date
CN106502913B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN106502913A (en) Method and device for debugging dual-system mobile terminal
CN106789931A (en) The Network Isolation sharing method and device of multisystem
US8683108B2 (en) Connected input/output hub management
US8566416B2 (en) Method and system for accessing storage device
WO2013136522A1 (en) Computer system and method for communicating data between computers
CN103931140A (en) Distributed address resolution service for virtualized networks
CN107256188B (en) Android device control method and device, terminal and storage medium
CN103843302A (en) Network adapter hardware state migration discovery in a stateful environment
CN106685949A (en) Container access method, container access device and container access system
US9347990B2 (en) Communication device, test system and test method thereof
CN104572243A (en) Method and system for sharing JAVA virtual machine
US20160100356A1 (en) Method and controller for implementing wireless network cloud
CN106535160B (en) Method and system for isolated transmission of dual-system dual-SIM card network
CN106502335A (en) For configuring the machine frame system of one or more servomechanisms and its collocation method
CN107733871A (en) Network security shielding system
CN109902022A (en) The method and relevant device tested automatically for loophole of vertically going beyond one's commission
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
WO2012059066A1 (en) Method and system for locating fault in serial port
CN114356671A (en) Board card debugging device, system and method
CN106776066A (en) Multi-system function processing method and device
CN106844206B (en) Method and device for debugging multiple systems in mobile terminal
US20210250235A1 (en) Diagram generation method and storage medium
CN106776063B (en) Mobile terminal, container telephone communication function implementation method and cross-container communication method
CN107861821A (en) Method for digging, device and the computer-readable medium of module call relation
CN111131280A (en) Internal and external network isolation system

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right

Effective date of registration: 20210220

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170315

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Method and device for debugging dual system mobile terminal

Granted publication date: 20190215

License type: Common License

Record date: 20210531

EE01 Entry into force of recordation of patent licensing contract