CN111427740A - Development environment maintenance method and device for mobile terminal - Google Patents
Development environment maintenance method and device for mobile terminal Download PDFInfo
- Publication number
- CN111427740A CN111427740A CN202010081139.9A CN202010081139A CN111427740A CN 111427740 A CN111427740 A CN 111427740A CN 202010081139 A CN202010081139 A CN 202010081139A CN 111427740 A CN111427740 A CN 111427740A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- operating system
- connection state
- adb
- adb tool
- 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.)
- Pending
Links
- 238000011161 development Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012423 maintenance Methods 0.000 title claims description 19
- 230000000007 visual effect Effects 0.000 claims abstract description 31
- 238000004891 communication Methods 0.000 claims abstract description 27
- 238000009434 installation Methods 0.000 claims description 42
- 238000012800 visualization Methods 0.000 claims description 12
- 230000003213 activating effect Effects 0.000 claims description 8
- 230000002452 interceptive effect Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a method and a device for maintaining a development environment of a mobile terminal, electronic equipment and a storage medium, relates to the technical field of computers, and can effectively improve the operation efficiency of application program development. The method comprises the following steps: after accessing a mobile terminal through a preset communication port, inquiring the connection state of an operating system of the mobile terminal; the operating system of the mobile terminal comprises a plurality of terminal operating systems; and displaying the connection state through a visual interface. The invention is suitable for development and debugging of the mobile terminal.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a development environment maintenance method and device for a mobile terminal.
Background
When an application program of a mobile terminal is developed, the mobile terminal generally needs to be connected with a computer, so that a development environment in the computer can effectively communicate with an operating system of the mobile terminal.
After the mobile terminal is inserted into the computer, in order to know whether the development environment is effectively connected to the operating system of the mobile terminal, a developer generally needs to input a corresponding query command. For example, for a mobile terminal of an Android system, a developer needs to manually input an adb devices or an adb devices-1 command and then check the connection information of the mobile terminal to determine whether the connection is successful, so that the operation efficiency of development is greatly reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for maintaining a development environment of a mobile terminal, an electronic device, and a storage medium, which can effectively improve operation efficiency of application program development.
In a first aspect, an embodiment of the present invention provides a method for maintaining a development environment of a mobile terminal, including: after accessing a mobile terminal through a preset communication port, inquiring the connection state of an operating system of the mobile terminal; the operating system of the mobile terminal comprises a plurality of terminal operating systems; and displaying the connection state through a visual interface.
Optionally, the querying a connection state of the operating system of the mobile terminal includes: and inquiring the connection state of the operating system of the mobile terminal once every preset time interval.
Optionally, the operating system of the mobile terminal includes at least one of the following: android system, ios system and Windows system.
Optionally, the operating system of the mobile terminal is the Android system; the querying the connection state of the operating system of the mobile terminal comprises: and inquiring the connection state of the operating system of the mobile terminal by calling an adb tool.
Optionally, the querying a connection state of an operating system of the mobile terminal by calling the adb tool includes: acquiring an installation path of a local adb tool; activating the adb tool according to the installation path; instructing the adb tool to perform interactive communication with an adb application of the mobile terminal; and determining the connection state of the operating system of the mobile terminal according to the feedback of the adb application of the mobile terminal.
Optionally, the obtaining an installation path of the local adb tool includes: and obtaining the installation path of the adb tool by searching the name of the adb tool.
Optionally, after the installation path of the adb tool is obtained by searching the name of the adb tool, the method further includes: and saving the acquired installation path of the adb tool in a preset file so as to acquire the installation path by accessing the preset file in the future.
Optionally, the visualization interface includes at least one of a visualization interface based on a MAC operating system, a visualization interface based on a Windows operating system, and a visualization interface based on an L inux operating system.
In a second aspect, an embodiment of the present invention further provides a development environment maintenance apparatus for a mobile terminal, including: the system comprises an inquiry unit, a communication unit and a control unit, wherein the inquiry unit is used for inquiring the connection state of an operating system of a mobile terminal after the mobile terminal is accessed through a preset communication port; the operating system of the mobile terminal comprises a plurality of terminal operating systems; and the display unit is used for displaying the connection state through a visual interface.
Optionally, the query unit is specifically configured to query the connection state of the operating system of the mobile terminal once every preset time interval.
Optionally, the operating system of the mobile terminal includes at least one of the following: android system, ios system and Windows system.
Optionally, the operating system of the mobile terminal is the Android system; the query unit is specifically configured to query a connection state of an operating system of the mobile terminal by calling an adb tool.
Optionally, the query unit includes: the acquisition module is used for acquiring the installation path of the local adb tool; an activation module for activating the adb tool according to the installation path; the indication module is used for indicating the adb tool to carry out interactive communication with the adb application of the mobile terminal; and the determining module is used for determining the connection state of the operating system of the mobile terminal according to the feedback of the adb application of the mobile terminal.
Optionally, the obtaining module is specifically configured to obtain the installation path of the adb tool by searching for the name of the adb tool.
Optionally, the obtaining module is further configured to, after obtaining the installation path of the adb tool by searching for the name of the adb tool, store the obtained installation path of the adb tool in a preset file, so as to obtain the installation path by accessing the preset file in the future.
Optionally, the visualization interface includes at least one of a visualization interface based on a MAC operating system, a visualization interface based on a Windows operating system, and a visualization interface based on an L inux operating system.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing any one of the development environment maintenance methods of the mobile terminal provided by the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement any one of the development environment maintenance methods for a mobile terminal provided by the embodiments of the present invention.
According to the development environment maintenance method and device for the mobile terminal, the electronic device and the storage medium provided by the embodiment of the invention, after the computer is accessed to the mobile terminal through the preset communication port, the computer can inquire the connection state of the operating system of the mobile terminal and display the connection state through the visual interface. Therefore, a user can know whether the computer is connected with various terminal operating systems of the mobile terminal or not or whether the computer is disconnected at any time without any operation, so that the application program development of the mobile terminal can be smoothly carried out based on the various terminal operating systems, and the operating efficiency of the application program development is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for maintaining a development environment of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a visual interface in a development environment maintenance method for a mobile terminal according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of a development environment maintenance method for a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a development environment maintenance apparatus for a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When developing an application program on a mobile terminal, it is generally necessary to establish a development environment of the mobile terminal on a computer, write a source code in the development environment, and generate an application file according to the source code. In the development of programs, it is often necessary to connect a mobile terminal to a computer in order to communicate. However, since the application program in the mobile terminal needs to be developed, a connection between the development environment in the computer and the operating system of the mobile terminal needs to be established, and although the connection state between the mobile terminal and the computer can be known through the connection state of the USB port or the WiFi signal, the connection state between the mobile terminal and the computer cannot represent the connection state between the development environment in the computer and the operating system of the mobile terminal.
In order to enable a user to know a connection state between a development environment in a computer and an operating system of a mobile terminal in time so as to improve operation efficiency of application program development, embodiments of the present invention provide a method and an apparatus for maintaining a development environment of a mobile terminal, an electronic device, and a storage medium.
In a first aspect, embodiments of the present invention provide a method for maintaining a development environment of a mobile terminal, which can effectively improve operation efficiency of application program development.
As shown in fig. 1, a method for maintaining a development environment of a mobile terminal according to an embodiment of the present invention may include:
s11, after accessing the mobile terminal through a preset communication port, inquiring the connection state of the operating system of the mobile terminal; the operating system of the mobile terminal comprises a plurality of terminal operating systems.
In order to effectively develop an application program of the mobile terminal on the computer, the mobile terminal can be connected with the computer through a preset communication port. Optionally, the preset communication port may be various communication ports of both the computer and the mobile terminal, such as a USB port, a WiFi port, and the like.
Because the development environment in the embodiment of the invention is used for developing the upper application program of the mobile terminal, the connection of the communication ports such as the USB port and the WiFi port is successful, which does not represent that the connection between the development environment in the computer and the operating system of the mobile terminal is successful. For this reason, in this step, after the mobile terminal is accessed through the preset communication port, the computer may actively query a connection state of the operating system of the mobile terminal, for example, whether a development environment in the computer has been connected to the operating system of the mobile terminal, or whether the development environment in the computer has been disconnected from the operating system of the mobile terminal.
Optionally, in this embodiment of the present invention, the connection state of the operating system of the mobile terminal may include a connected state and an unconnected state. The connected state may mean that normal communication may be performed between the application development environment in the computer and the operating system of the mobile terminal, for example, the application development environment in the computer may be capable of sending a message to the operating system of the mobile terminal and also capable of receiving a message sent by the operating system of the mobile terminal. The unconnected state may mean that communication between the application development environment in the computer and the operating system of the mobile terminal is not possible.
Optionally, in the embodiment of the present invention, the computer may be connected to one or more mobile terminals at the same time, and each mobile terminal may be based on a plurality of different terminal operating systems.
And S12, displaying the connection state through a visual interface.
After the connection state of the operating system of the mobile terminal is inquired, the connection state can be displayed on the computer through a visual interface, so that a user can know the connection state of the computer and the operating system of the mobile terminal at any time.
The embodiment of the invention provides a method for maintaining a development environment of a mobile terminal, wherein a computer can inquire the connection state of an operating system of the mobile terminal after accessing the mobile terminal through a preset communication port, and display the connection state through a visual interface. Therefore, a user can know whether the computer is connected with various terminal operating systems of the mobile terminal or not or whether the computer is disconnected at any time without any operation, so that the application program development of the mobile terminal can be smoothly carried out based on the various terminal operating systems, and the operating efficiency of the application program development is effectively improved.
Optionally, in step S11, the connection status of the operating system of the mobile terminal may be queried once every preset time interval, where the preset time interval may be, for example, 1 second, 3 seconds, 5 seconds, and so on. Therefore, once the connection state is changed, the user can know the connection state in time, and timely prompt is given to the user. Optionally, when prompting, if the connection state queried this time is the same as the connection state queried last time, the visual interface may be kept unchanged, for example, if the last query is in a connected state, and the query is still in a connected state, the visual interface is kept unchanged. If the connection state of the query is different from the connection state of the previous query, the connection state displayed in the visual interface can be updated, for example, if the previous query is the connected state and the query is still the unconnected state, the visual interface is updated to the unconnected state.
The development environment maintenance method for the mobile terminal provided by the embodiment of the invention can determine the connection state between the computer and the operating system of the mobile terminal in time, but does not limit the operating system of the computer and the operating system of the mobile terminal. For example, in an embodiment of the present invention, there may be one or more mobile terminals connected to a computer, and the operating systems of the mobile terminals may be the same or different, and may be any of the following Android system, ios system, and Windows system, for example. That is to say, the method for maintaining the development environment of the mobile terminal provided by the embodiment of the present invention can span multiple platforms, that is, the application program development can be performed on multiple mobile terminals on the same computer, and the operation efficiency of the application program development is further improved.
Optionally, in an embodiment of the present invention, if the operating system of the mobile terminal is the Android system, based on that, querying the connection state of the operating system of the mobile terminal in step S11 specifically may include: the connection state of the operating system of the mobile terminal is inquired by calling an adb (Android Debug Bridge) tool, so that the inquiry of the connection state is completed by using the existing Android Debug tool, and the development of complex bottom-layer programs is avoided.
Specifically, the adb tool is a toolkit for providing an auxiliary android mobile phone for Google corporation, and is used for interaction between a computer and a simulator or a real device of a mobile terminal.
In one embodiment of the present invention, querying the connection state of the operating system of the mobile terminal by calling the adb tool may include:
acquiring an installation path of a local adb tool;
activating the adb tool according to the installation path;
instructing the adb tool to perform interactive communication with an adb application of the mobile terminal;
and determining the connection state of the operating system of the mobile terminal according to the feedback of the adb application of the mobile terminal.
Optionally, in an embodiment of the present invention, the installation path of the adb tool may be obtained by searching the name of the adb tool, so that when the computer connects the mobile terminal for the first time, even if the installation path of the adb tool is not known in advance, the installation path of the adb tool can be found by a searching method, so as to perform subsequent applications. For example, when the connection state of the operating system of the mobile terminal needs to be queried, the file name of the adb tool may be searched, and it is known that the installation path of the adb tool is D: \ testy \ adb _ tools. And then finding the adb tool according to the installation path and activating the adb tool to instruct the adb tool to carry out interactive communication with the adb application of the mobile terminal, so that whether the operating system of the mobile terminal is connected with the development environment of the computer or not is determined according to the feedback of the adb application of the mobile terminal.
Further, in another embodiment of the present invention, after obtaining the installation path of the adb tool by searching for the name of the adb tool, the method for maintaining the development environment of the mobile terminal according to the embodiment of the present invention may further include: and saving the acquired installation path of the adb tool in a preset file so as to acquire the installation path by accessing the preset file in the future. Therefore, the installation path of the adb tool can be obtained by searching the name of the adb tool when the adb tool is used for the first time, and the installation path of the adb tool can be directly obtained through the preset file when the adb tool is used again later, so that the time for obtaining the connection state is effectively reduced.
For example, in one embodiment of the invention, the operating system of the computer can comprise a plurality of systems, such as a Windows system, a Mac system, an L inux system and the like, and the visual interface can comprise one or more of a visual interface based on a MAC operating system, a visual interface based on a Windows operating system and a visual interface based on a L inux operating system.
Optionally, in the visual interface, information such as a name, an operating system, a version number, and the like of the mobile terminal being connected may be presented, for example, in an embodiment of the present invention, hardware information, operating system information, and the like of a plurality of mobile terminals currently connected to the computer may be presented in a form of a device list. Optionally, in the visual interface, a port where the current mobile terminal is connected to the computer, whether to switch to another port, and the like may also be displayed, for example, "the current is a USB connection," "the current is a WiFi connection," and the like.
Optionally, the visual interface may also include other function buttons, screenshots, end processes, and the like. For example, in an embodiment of the present invention, a visual interface for showing a connection state of an operating system of a mobile terminal may be as shown in fig. 2.
Further, in an embodiment of the present invention, if the displayed connection status is still unconnected within a preset duration after the mobile terminal is accessed through the preset port, the mobile terminal may be instructed to prompt the user, for example, prompt the user to perform connection authorization.
The following describes in detail a development environment maintenance method for a mobile terminal according to an embodiment of the present invention with reference to specific embodiments.
As shown in fig. 3, a method for maintaining a development environment of a mobile terminal according to an embodiment of the present invention may include:
s201, accessing the mobile terminal into a computer through a USB interface;
s202, determining whether a file recorded with an adb tool installation path exists locally, if so, executing S203, and if not, executing S204;
s203, activating an adb tool according to the installation road strength recorded on the file, and executing S205;
s204, searching an adb tool locally, acquiring an installation path of the adb tool, activating the adb tool according to the installation path, and executing S205;
s205, indicating the adb tool to perform interactive communication with the adb application of the mobile terminal at intervals of preset duration;
s206, according to the feedback of the adb application, determining that the operating system of the mobile terminal is connected, and displaying the connected state through a visual interface.
And S207, determining that the operating system of the mobile terminal is connected according to the feedback of the next adb application, and keeping the visual interface in the step S206 unchanged.
And S208, according to the feedback of the next adb application, determining that the operating system of the mobile terminal is not connected, updating the visual interface in the step S207, and displaying that the operating system of the mobile terminal is in an unconnected state.
In a second aspect, an embodiment of the present invention further provides a development environment maintenance apparatus for a mobile terminal, which can effectively improve operation efficiency of application program development.
As shown in fig. 4, the development environment maintenance apparatus for a mobile terminal according to an embodiment of the present invention may include:
the query unit 31 is configured to query a connection state of an operating system of a mobile terminal after accessing the mobile terminal through a preset communication port; the operating system of the mobile terminal comprises a plurality of terminal operating systems;
and the display unit 32 is used for displaying the connection state through a visual interface.
The embodiment of the invention provides a development environment maintenance device of a mobile terminal, and a computer can inquire the connection state of an operating system of the mobile terminal after accessing the mobile terminal through a preset communication port and display the connection state through a visual interface. Therefore, a user can know whether the computer is connected with various terminal operating systems of the mobile terminal or not or whether the computer is disconnected at any time without any operation, so that the application program development of the mobile terminal can be smoothly carried out based on the various terminal operating systems, and the operating efficiency of the application program development is effectively improved.
Optionally, the querying unit 31 may be specifically configured to query the connection state of the operating system of the mobile terminal once every preset time interval.
Optionally, the operating system of the mobile terminal may include one or more of the following: android system, ios system and Windows system.
Optionally, the operating system of the mobile terminal is the Android system; the querying unit 31 is specifically configured to query a connection state of an operating system of the mobile terminal by calling an adb tool.
Optionally, the querying unit 31 may include:
the acquisition module is used for acquiring the installation path of the local adb tool;
an activation module for activating the adb tool according to the installation path;
the indication module is used for indicating the adb tool to carry out interactive communication with the adb application of the mobile terminal;
and the determining module is used for determining the connection state of the operating system of the mobile terminal according to the feedback of the adb application of the mobile terminal.
Optionally, the obtaining module may be specifically configured to obtain the installation path of the adb tool by searching for the name of the adb tool.
Optionally, the obtaining module may be further configured to, after obtaining the installation path of the adb tool by searching for the name of the adb tool, store the obtained installation path of the adb tool in a preset file, so as to obtain the installation path by accessing the preset file in the future.
Optionally, the visual interface comprises one or more of a visual interface based on a MAC operating system, a visual interface based on a Windows operating system and a visual interface based on an L inux operating system.
In a third aspect, embodiments of the present invention further provide an electronic device, which can effectively improve operation efficiency of application program development.
As shown in fig. 5, an electronic device provided in an embodiment of the present invention may include: the device comprises a shell 51, a processor 52, a memory 53, a circuit board 54 and a power circuit 55, wherein the circuit board 54 is arranged inside a space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; a power supply circuit 55 for supplying power to each circuit or device of the electronic apparatus; the memory 53 is used to store executable program code; the processor 52 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 53, for executing the development environment maintenance method of the mobile terminal provided in any of the foregoing embodiments.
For specific execution processes of the above steps by the processor 52 and further steps executed by the processor 52 by running the executable program code, reference may be made to the description of the foregoing embodiments, and details are not described herein again.
The above electronic devices exist in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs can be executed by one or more processors to implement any one of the development environment maintenance methods for a mobile terminal provided in the foregoing embodiments, so that corresponding technical effects can also be achieved, which have been described in detail above and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A development environment maintenance method for a mobile terminal is characterized by comprising the following steps:
after accessing a mobile terminal through a preset communication port, inquiring the connection state of an operating system of the mobile terminal; the operating system of the mobile terminal comprises a plurality of terminal operating systems;
and displaying the connection state through a visual interface.
2. The method according to claim 1, wherein said querying the connection status of the operating system of the mobile terminal comprises:
and inquiring the connection state of the operating system of the mobile terminal once every preset time interval.
3. The method of claim 1, wherein the operating system of the mobile terminal comprises at least one of: android system, ios system and Windows system.
4. The method according to claim 3, wherein the operating system of the mobile terminal is the Android system;
the querying the connection state of the operating system of the mobile terminal comprises:
and inquiring the connection state of the operating system of the mobile terminal by calling an android debug bridge adb tool.
5. The method of claim 4, wherein the querying the connection state of the operating system of the mobile terminal by invoking an android debug bridge adb tool comprises:
acquiring an installation path of a local adb tool;
activating the adb tool according to the installation path;
instructing the adb tool to perform interactive communication with an adb application of the mobile terminal;
and determining the connection state of the operating system of the mobile terminal according to the feedback of the adb application of the mobile terminal.
6. The method of claim 5, wherein obtaining the installation path of the local adb tool comprises:
and obtaining the installation path of the adb tool by searching the name of the adb tool.
7. The method of claim 6, wherein after obtaining the installation path of the adb tool by searching for the name of the adb tool, the method further comprises:
and saving the acquired installation path of the adb tool in a preset file so as to acquire the installation path by accessing the preset file in the future.
8. The method according to any one of claims 1 to 7, wherein the visualization interface comprises at least one of a visualization interface based on a MAC operating system, a visualization interface based on a Windows operating system, and a visualization interface based on an L inux operating system.
9. A development environment maintenance apparatus of a mobile terminal, comprising:
the system comprises an inquiry unit, a communication unit and a control unit, wherein the inquiry unit is used for inquiring the connection state of an operating system of a mobile terminal after the mobile terminal is accessed through a preset communication port; the operating system of the mobile terminal comprises a plurality of terminal operating systems;
and the display unit is used for displaying the connection state through a visual interface.
10. The apparatus according to claim 9, wherein the querying unit is specifically configured to query the connection status of the operating system of the mobile terminal once every preset time interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010081139.9A CN111427740A (en) | 2020-02-05 | 2020-02-05 | Development environment maintenance method and device for mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010081139.9A CN111427740A (en) | 2020-02-05 | 2020-02-05 | Development environment maintenance method and device for mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111427740A true CN111427740A (en) | 2020-07-17 |
Family
ID=71547410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010081139.9A Pending CN111427740A (en) | 2020-02-05 | 2020-02-05 | Development environment maintenance method and device for mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111427740A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150025358A (en) * | 2013-08-29 | 2015-03-10 | 대우조선해양 주식회사 | Mobile device managment |
CN104571936A (en) * | 2013-10-28 | 2015-04-29 | 贝壳网际(北京)安全技术有限公司 | Management method and device for mobile terminal, and mobile terminal |
CN104572387A (en) * | 2015-01-30 | 2015-04-29 | 青岛海信移动通信技术股份有限公司 | Method and device for debugging terminal in engineering mode |
CN108075947A (en) * | 2017-07-31 | 2018-05-25 | 北京微应软件科技有限公司 | The connective maintaining method of storage device, PC ends, communication connection and system |
CN108170494A (en) * | 2017-12-28 | 2018-06-15 | 上海传英信息技术有限公司 | A kind of application program launching method and activation system for intelligent terminal |
CN110287122A (en) * | 2019-06-29 | 2019-09-27 | 广州华多网络科技有限公司 | A kind of automated testing method, device, terminal and storage medium |
-
2020
- 2020-02-05 CN CN202010081139.9A patent/CN111427740A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150025358A (en) * | 2013-08-29 | 2015-03-10 | 대우조선해양 주식회사 | Mobile device managment |
CN104571936A (en) * | 2013-10-28 | 2015-04-29 | 贝壳网际(北京)安全技术有限公司 | Management method and device for mobile terminal, and mobile terminal |
CN104572387A (en) * | 2015-01-30 | 2015-04-29 | 青岛海信移动通信技术股份有限公司 | Method and device for debugging terminal in engineering mode |
CN108075947A (en) * | 2017-07-31 | 2018-05-25 | 北京微应软件科技有限公司 | The connective maintaining method of storage device, PC ends, communication connection and system |
CN108170494A (en) * | 2017-12-28 | 2018-06-15 | 上海传英信息技术有限公司 | A kind of application program launching method and activation system for intelligent terminal |
CN110287122A (en) * | 2019-06-29 | 2019-09-27 | 广州华多网络科技有限公司 | A kind of automated testing method, device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109741755B (en) | Voice awakening word threshold management device and method for managing voice awakening word threshold | |
CN106599680B (en) | Method and device for setting application program permission and electronic equipment | |
CN109947449B (en) | System upgrading method and device, storage medium and electronic equipment | |
CN105867735B (en) | Application program sequencing display method and device and mobile device | |
CN105550252A (en) | File positioning method and device and electronic equipment | |
CN106250182B (en) | File processing method and device and electronic equipment | |
CN110597584A (en) | Page adaptation testing method and device, electronic equipment and storage medium | |
CN111158750A (en) | Unity-based game installation package packaging method and device | |
CN110652728A (en) | Game resource management method and device, electronic equipment and storage medium | |
CN105468440A (en) | Information display method and device and electronic equipment | |
CN105320777A (en) | Application program recommendation method and device | |
CN112085208A (en) | Method and device for model training by using cloud | |
CN109344052B (en) | Interface automation test method and device and electronic equipment | |
CN111427740A (en) | Development environment maintenance method and device for mobile terminal | |
CN107741895B (en) | Server management method, device and equipment | |
CN115454670A (en) | Computer process information enumeration method and device and electronic equipment | |
CN113282268B (en) | Sound effect configuration method and device, storage medium and electronic equipment | |
CN106557525B (en) | Method and device for cleaning application program residual file and electronic equipment | |
CN114356867A (en) | Method and device for opening compressed package file, electronic equipment and storage medium | |
CN113051336B (en) | Visual data operation method, system, equipment and medium | |
CN113791984A (en) | Automatic interface testing method and device | |
CN111880896A (en) | Method and device for rapidly restoring container and running state data | |
CN110781287B (en) | Method and equipment for providing electronic books | |
CN114281321A (en) | Software development fast editing method and device, electronic equipment and medium | |
CN106648656B (en) | Message deleting method and device and electronic equipment |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210603 Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, 189352, Singapore Applicant after: Zhuomi Private Ltd. Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China Applicant before: HONG KONG LIVE.ME Corp.,Ltd. |
|
TA01 | Transfer of patent application right |