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.
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.