CN115633021A - Remote debugging method and device for terminal equipment - Google Patents
Remote debugging method and device for terminal equipment Download PDFInfo
- Publication number
- CN115633021A CN115633021A CN202110796719.0A CN202110796719A CN115633021A CN 115633021 A CN115633021 A CN 115633021A CN 202110796719 A CN202110796719 A CN 202110796719A CN 115633021 A CN115633021 A CN 115633021A
- Authority
- CN
- China
- Prior art keywords
- debugging
- service
- instruction
- socket
- debugging instruction
- 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
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000004590 computer program Methods 0.000 claims description 16
- 238000003860 storage Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 13
- 238000003825 pressing Methods 0.000 claims description 5
- 238000012795 verification Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000009417 prefabrication Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application discloses a remote debugging method and device of terminal equipment, wherein a prefabricated service is provided in the terminal equipment, the prefabricated service establishes remote connection with a remote server according to an establishing instruction input by a user, an operating system establishes a Socket server, the Socket server can acquire a root authority and execute a debugging instruction, and the prefabricated service as a Socket client can communicate with the Socket server. When the prefabricated service receives a debugging instruction sent by the debugging equipment through the remote server and the execution of the debugging instruction needs the root authority, the prefabricated service sends the debugging instruction to the Socket server, the Socket server acquires the root authority according to the debugging instruction and executes the debugging instruction, and the prefabricated service sends the execution result of the debugging instruction to the debugging equipment through the remote server, so that the remote debugging of the terminal equipment is realized.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a remote debugging method and apparatus for a terminal device.
Background
Android (Android) is an open-source operating system and widely applied to terminal devices such as mobile phones, tablet computers, televisions and smart watches. The terminal device stores the privacy information of the user, and generally sets access authority for the privacy security of the user, wherein the access authority is divided into user authority and root authority (also called root authority), and the root authority is one of system authorities and is the highest authority of the terminal device. root rights can start or stop a process, delete or add users, and add or disable hardware of terminal devices, etc.
Since the root authority is so strong, most terminal devices cannot open the root authority to the user. However, this also causes inconvenience to the development and debugging of the terminal device, and some debugging of the terminal device needs to acquire the root authority to complete. In the existing debugging mode, a user can acquire root permission only after connecting terminal equipment and debugging equipment through a connecting wire on the site of the terminal equipment, but the mode is inconvenient to operate and cannot remotely debug the terminal equipment.
Disclosure of Invention
The embodiment of the application provides a remote debugging method and device for terminal equipment, which can realize remote debugging of the terminal equipment.
In a first aspect, an embodiment of the present application provides a remote debugging method for a terminal device, which is applied to the terminal device, where an operating system used by the terminal device is an android system, and the method includes:
the terminal equipment is characterized in that the prefabricated service of the terminal equipment establishes remote connection with a remote server according to an establishment instruction input by a user;
the prefabricated service receives a debugging instruction sent by debugging equipment through the remote server;
when the execution of the debugging instruction needs root authority, the prefabricated service sends the debugging instruction to a Socket server of the operating system, the prefabricated service serves as a Socket client, and the prefabricated service and the Socket server are in communication connection through a Socket;
the Socket server side obtains root authority according to the debugging instruction and executes the debugging instruction;
the Socket server side sends an execution result of the debugging instruction to the pre-made service;
and the pre-made service sends the execution result of the debugging instruction to the debugging equipment through the remote server.
Optionally, the method further includes:
the operating system creates the Socket server;
the method for the terminal equipment to establish the remote connection with the remote server by the prefabricated service of the terminal equipment according to the establishment instruction input by the user further comprises the following steps:
and the prefabricated service establishes Socket connection with the Socket server.
Optionally, after the pre-service receives the debugging instruction sent by the debugging device through the remote server, the method further includes:
the pre-made service judges whether the execution of the debugging instruction needs root authority or not;
when the execution of the debugging instruction needs root authority, the prefabricated service sends the debugging instruction to a Socket server of the operating system;
and when the execution of the debugging instruction does not need root authority, the pre-made service executes the debugging instruction and sends the execution result of the debugging instruction to the debugging equipment through the remote server.
Optionally, the pre-made service is a service provided by the operating system, and the establishment instruction is generated according to an operation of a user on a physical button of the terminal device.
Optionally, the preset service is a service provided by the operating system, and when the terminal device is a television, the establishing instruction is generated according to a pressing operation of a user on a combination key of a remote controller connected to the television.
Optionally, the prefabricated service does not provide a setting entry through a display interface, and the setting entry is used for inputting the establishment instruction.
Optionally, the pre-made service is a service provided by the operating system, the pre-made service provides a setting entry through a display interface, and the setting entry is used for performing identity authentication and inputting the establishment instruction.
In a second aspect, an embodiment of the present application provides a terminal device, where an operating system used by the terminal device is an android system, and the device includes:
the system comprises a pre-made service and a remote server, wherein the pre-made service is used for establishing remote connection with the remote server according to an establishing instruction input by a user;
the pre-service is further used for receiving a debugging instruction sent by a debugging device through the remote server, when the execution of the debugging instruction requires root authority, the debugging instruction is sent to a Socket service end of the operating system, the pre-service serves as a Socket client, and the pre-service and the Socket service end are in communication connection through a Socket;
the Socket server is used for acquiring root authority according to the debugging instruction, executing the debugging instruction and sending an execution result of the debugging instruction to the prefabricated service;
and the pre-made service is also used for sending the execution result of the debugging instruction to the debugging equipment through the remote server.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method of the first aspect of the present application.
In a sixth aspect, an embodiment of the present application provides a debugging system, including: the system comprises terminal equipment, a remote server and debugging equipment, wherein an operating system of the terminal equipment is an android system;
the terminal equipment is used for establishing remote connection with the remote server according to an establishing instruction input by a user;
the debugging equipment is used for sending a debugging instruction to the remote server;
the remote server is used for sending the debugging instruction to the terminal equipment through the remote connection;
the prefabricated service of the terminal equipment is also used for receiving the debugging instruction, when the execution of the debugging instruction needs root right, the debugging instruction is sent to a Socket server of the operating system, the prefabricated service is used as a Socket client, and the prefabricated service and the Socket server are in communication connection through a Socket;
the Socket server of the terminal equipment is used for acquiring root authority according to the debugging instruction, executing the debugging instruction and sending an execution result of the debugging instruction to the prefabricated service;
the terminal equipment is used for executing a debugging instruction, and the terminal equipment is used for performing a pre-set service on the terminal equipment and sending an execution result of the debugging instruction to the debugging equipment through the remote server;
the debugging equipment is also used for outputting the execution result of the debugging instruction.
According to the remote debugging method and device of the terminal equipment, the prefabricated service is provided in the terminal equipment, the prefabricated service establishes remote connection with the remote server according to the establishment instruction input by the user, the operating system establishes the Socket server, the Socket server can obtain the root authority and execute the debugging instruction, and the prefabricated service as a Socket client can communicate with the Socket server. When the prefabricated service receives a debugging instruction sent by the debugging equipment through the remote server and the execution of the debugging instruction needs the root authority, the prefabricated service sends the debugging instruction to the Socket server, the Socket server acquires the root authority according to the debugging instruction and executes the debugging instruction, and the prefabricated service sends the execution result of the debugging instruction to the debugging equipment through the remote server, so that the remote debugging of the terminal equipment is realized.
Drawings
Fig. 1 is a schematic diagram of a debugging system to which the method provided in the embodiment of the present application is applied;
fig. 2 is a flowchart of a remote debugging method for a terminal device according to an embodiment of the present application;
fig. 3 is a signaling flowchart of a remote debugging method for a terminal device according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a remote debugging apparatus according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, 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 application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order, nor is it to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Fig. 1 is a schematic diagram of a debugging system to which the method provided in the embodiment of the present application is applied, and as shown in fig. 1, the debugging system includes a terminal device 11, a remote server 12, and a debugging device 13, where the terminal device 11 is usually multiple, the number of the remote server 12 and the debugging device 13 may be one or multiple, and the debugging device 13 may debug any one terminal device 11.
An operating system used by the terminal device 11 in the present application is an android system, and the terminal device 11 is taken as a television in the scene shown in fig. 1 for example, it can be understood that the terminal device may also be other terminal devices that need to be debugged, such as a mobile phone, a tablet computer, and a smart watch. Typically, the terminal device 11 needs to be remotely debugged after installation or after a device failure.
The remote server 12 is used for communicating with the terminal device 11 and the debugging device 13, and the remote server 12 stores the debugging data of the terminal device 11 for the debugging device 13 to access.
The debugging device 13 may be a desktop computer, a notebook computer, or the like, and the debugging device 13 is configured to trigger a debugging operation and display a debugging result to a user.
In order to implement remote debugging of the terminal device, the terminal device 11 is provided with a pre-made service, the pre-made service is preset in the device when the terminal device 11 leaves a factory, and the pre-made service may be a service carried by an operating system. The pre-formed service is used to establish a connection and communicate with the remote server 12.
Based on the debugging system shown in fig. 1, an embodiment of the present application provides a remote debugging method for a terminal device, fig. 2 is a flowchart of the remote debugging method for the terminal device provided in the embodiment of the present application, and this embodiment describes the method from the perspective of the terminal device, as shown in fig. 2, the method provided in this embodiment includes the following steps.
S101, the prefabricated service of the terminal equipment establishes remote connection with a remote server according to an establishing instruction input by a user.
When the terminal device is a television, the establishment instruction may be generated according to a pressing operation of a user on a combination key of a remote controller connected to the television. Illustratively, after the television is turned on, when the television needs to be debugged remotely, the user presses the following combination keys through a remote controller: menu + Right + Up + Exit (Back), the TV generates the set-up command after receiving the pressing operation of the combination key. The combination of keys is presented here for illustration purposes only and is not intended to be limiting.
When the terminal device is a computer, a mobile phone, or the like, the establishment instruction may be input through a physical key on the terminal device, and for example, when it is detected that the user presses the power on/off key and the volume key at the same time, the establishment instruction is generated, or when it is detected that the user presses the power on/off key and the volume key at the same time for a preset time, the establishment instruction is generated, for example, when the user presses the power on/off key and the volume key at the same time for 5 seconds, the establishment instruction is triggered and generated. When only the power-on/off key is arranged on the terminal equipment, the establishment instruction can be generated when the condition that the user presses the power-on/off key for a long time to reach the preset time is detected.
When the establishment instruction is input through a remote controller or a physical key of the terminal device, the preset service may not provide a user operation entry through the display interface, which may be understood that the display interface of the terminal device may not provide an icon or a setting entry of the preset service, and the user may not trigger the generation of the establishment instruction through a virtual button or an entry on the display interface.
Optionally, the terminal device may also provide a setting entry through the display interface, and the user inputs the establishment instruction through the setting entry, and optionally, in order to ensure the security of the system, the user identity needs to be authenticated, and the establishment instruction is generated only after the user identity passes. For example, when the terminal device leaves a factory, an account and a password for obtaining root authority are set for each device, the identity of the user can be verified through verifying the account and the password, and the establishment instruction is generated after the identity of the user passes.
After the prefabricated service generates the establishment instruction, the prefabricated service establishes remote connection with the remote server according to the establishment instruction, and after the remote connection is established, the remote server and the terminal equipment can communicate.
S102, the pre-made service receives a debugging instruction sent by the debugging equipment through the remote server.
The user triggers the debugging of the terminal equipment through the debugging equipment, the debugging equipment sends a debugging instruction to the remote server according to the operation of the user, and the remote server sends the debugging instruction to the terminal equipment through the established remote connection.
S103, when the execution of the debugging instruction needs root authority, the prefabricated service sends the debugging instruction to a Socket server of the operating system, the prefabricated service serves as a Socket client, and the prefabricated service and the Socket server are in communication connection through a Socket.
And when the execution of the debugging instruction needs the root authority, the pre-made service sends the debugging instruction to a Socket server side of the operating system. When the execution of the debugging instruction does not need root authority, the pre-manufactured service executes the debugging instruction and sends the execution result of the debugging instruction to the debugging equipment through the remote server.
The Socket server is created by an operating system, and can acquire the root authority of the terminal device and execute instructions of the root authority level, such as a selinux authority switch, ps instruction result printing and the like.
The prefabricated service serves as a Socket client side and a Socket server side to communicate, the Socket client side and the Socket server side communicate through Socket connection, and correspondingly, socket connection needs to be established between the Socket client side and the Socket server side. The Socket client may request to create a Socket connection by sending a Socket connection establishment request to the Socket server.
And S104, the Socket server acquires root authority according to the debugging instruction and executes the debugging instruction.
The Socket server needs to acquire the root authority first, and execute the debugging instruction after acquiring the root authority to obtain an execution result of the debugging instruction.
And S105, the Socket server sends the execution result of the debugging instruction to the pre-made service.
And the Socket server sends the execution result of the debugging instruction to the prefabricated service through the Socket result.
S106, the pre-built service sends the execution result of the debugging instruction to the debugging equipment through the remote server.
The prefabrication service sends the execution result of the debugging instruction to the remote server through remote connection, the remote server sends the execution result of the debugging instruction to the debugging equipment, and debugging personnel can inquire the execution result on the debugging equipment.
In this embodiment, a pre-made service is provided in a terminal device, the pre-made service establishes a remote connection with a remote server according to an establishment instruction input by a user, and an operating system establishes a Socket server, where the Socket server can obtain a root authority and execute a debugging instruction, and the pre-made service as a Socket client can communicate with the Socket server. When the prefabricated service receives a debugging instruction sent by the debugging equipment through the remote server and the execution of the debugging instruction needs the root authority, the prefabricated service sends the debugging instruction to the Socket server, the Socket server acquires the root authority according to the debugging instruction and executes the debugging instruction, and the prefabricated service sends the execution result of the debugging instruction to the debugging equipment through the remote server, so that the remote debugging of the terminal equipment is realized.
Fig. 3 is a signaling flowchart of a remote debugging method of a terminal device according to a second embodiment of the present application, which is applied to the debugging system shown in fig. 1, and as shown in fig. 3, the method provided in this embodiment includes the following steps.
S201, the prefabricated service of the terminal equipment establishes remote connection with a remote server according to an establishing instruction input by a user.
It will be appreciated that this is merely illustrative and that the terminal device and the remote server may interact through multiple messages in establishing the remote connection.
S202, the debugging equipment sends a debugging instruction to the remote server.
S203, the remote server sends the debugging instruction to the terminal equipment through remote connection.
And S204, when the execution of the debugging instruction needs root authority, the prefabricated service of the terminal equipment sends the debugging instruction to a Socket server of the operating system, and the prefabricated service is used as a Socket client.
S205, a Socket server side of the terminal device obtains root authority according to the debugging instruction, executes the debugging instruction and sends an execution result of the debugging instruction to the pre-made service.
S206, the prefabricated service of the terminal equipment sends the execution result of the debugging instruction to a remote server through remote connection.
And S207, the remote server sends the execution result of the debugging instruction to the debugging equipment.
And S208, displaying the execution result of the debugging instruction by the debugging equipment.
Optionally, the debugging device may further process and display an execution result of the debugging instruction.
Please refer to fig. 4, which shows a schematic structural diagram of a remote debugging apparatus according to an exemplary embodiment of the present application. The remote debugging apparatus 200 of the terminal device can be implemented by software, hardware or a combination of the two to become all or a part of the terminal device, the terminal device can be a television, a mobile phone, a computer, etc., and the operating system used by the terminal device is an android system. The device 200 includes a pre-made service 21 and a Socket server 22.
The prefabricated service 21 is used for establishing remote connection with a remote server according to an establishing instruction input by a user;
the prefabricated service 21 is further configured to receive a debugging instruction sent by a debugging device through the remote server, and when execution of the debugging instruction requires root rights, send the debugging instruction to a Socket server 22 of the operating system, where the prefabricated service serves as a Socket client, and the prefabricated service and the Socket server 22 are in communication through Socket connection;
the Socket server 22 is configured to obtain a root right according to the debug instruction, execute the debug instruction, and send an execution result of the debug instruction to the prefabricated service 21;
the pre-made service 21 is further configured to send an execution result of the debugging instruction to the debugging device through the remote server.
Optionally, the operating system creates the Socket server, and the pre-made service 21 is further configured to establish a Socket connection with the Socket server 22.
Optionally, after receiving the debugging instruction sent by the debugging device through the remote server, the prefabrication service 21 is further configured to: judging whether the execution of the debugging instruction needs the root authority, and sending the debugging instruction to a Socket server 22 of the operating system when the execution of the debugging instruction needs the root authority; and when the execution of the debugging instruction does not need root right, executing the debugging instruction, and sending the execution result of the debugging instruction to the debugging equipment through the remote server.
Optionally, the pre-made service is a service provided by the operating system, and the establishment instruction is generated according to an operation of a user on a physical button of the terminal device.
Optionally, the preset service is a service provided by the operating system, and when the terminal device is a television, the establishing instruction is generated according to a pressing operation of a user on a combination key of a remote controller connected to the television.
Optionally, the prefabricated service does not provide a setting entry through a display interface, and the setting entry is used for inputting the establishment instruction.
Optionally, the pre-made service is a service provided by the operating system, and the pre-made service provides a setting entry through a display interface, where the setting entry is used to perform identity verification and input the establishment instruction.
It should be noted that, when the remote debugging apparatus 200 of the terminal device provided in the foregoing embodiment executes the remote debugging method of the terminal device, only the division of the functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the remote debugging method of the terminal device provided by the above embodiment and the remote debugging method of the terminal device belong to the same concept, and details of the implementation process are found in the method embodiment, which is not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps according to the first embodiment or the second embodiment, and a specific execution process may refer to specific descriptions in the first embodiment or the second embodiment, which is not described herein again.
The device where the storage medium is located can be a television, a mobile phone, a tablet computer and other terminal devices.
Please refer to fig. 5, which provides a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may alternatively be at least one memory device located remotely from the processor 1001. As shown in fig. 5, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating application of the smart interactive tablet.
In the terminal device 1000 shown in fig. 5, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 1001 may be configured to invoke an operation application of the terminal device stored in the memory 1005 and specifically execute the method steps in the first embodiment or the second embodiment, and the specific execution process may refer to the specific description in the first embodiment or the second embodiment, which is not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (12)
1. A remote debugging method of terminal equipment is applied to the terminal equipment, an operating system used by the terminal equipment is an android system, and the method comprises the following steps:
the terminal equipment is characterized in that the prefabricated service of the terminal equipment establishes remote connection with a remote server according to an establishment instruction input by a user;
the prefabricated service receives a debugging instruction sent by debugging equipment through the remote server;
when the execution of the debugging instruction needs root authority, the prefabricated service sends the debugging instruction to a Socket server of the operating system, the prefabricated service serves as a Socket client, and the prefabricated service and the Socket server are in communication connection through a Socket;
the Socket server side obtains root authority according to the debugging instruction and executes the debugging instruction;
the Socket server side sends an execution result of the debugging instruction to the pre-made service;
and the pre-made service sends the execution result of the debugging instruction to the debugging equipment through the remote server.
2. The method of claim 1, further comprising:
the operating system creates the Socket server;
after the preset service of the terminal equipment establishes remote connection with a remote server according to an establishment instruction input by a user, the method further comprises the following steps:
and the Socket connection is established between the prefabricated service and the Socket server side.
3. The method of claim 2, wherein after the pre-built service receives the debugging instruction sent by the debugging device through the remote server, the method further comprises:
the prefabricated service judges whether the execution of the debugging instruction needs root authority or not;
when the execution of the debugging instruction needs root authority, the pre-made service sends the debugging instruction to a Socket server of the operating system;
and when the execution of the debugging instruction does not need root authority, the pre-made service executes the debugging instruction and sends the execution result of the debugging instruction to the debugging equipment through the remote server.
4. The method according to any one of claims 1 to 3, wherein the pre-made service is a service owned by the operating system, and the setup instruction is generated according to a user operation on a physical button of the terminal device.
5. The method according to any one of claims 1 to 3, wherein the pre-manufactured service is a service provided by the operating system, and when the terminal device is a television, the establishment instruction is generated according to a pressing operation of a user on a combination key of a remote controller connected with the television.
6. The method of claim 4, wherein the pre-manufactured service does not provide a setup portal through a display interface, the setup portal being used to input the setup instructions.
7. The method according to any one of claims 1 to 3, wherein the pre-manufactured service is a service provided by the operating system, and the pre-manufactured service provides a setting entrance through a display interface, and the setting entrance is used for identity verification and inputting the establishment instruction.
8. The utility model provides a terminal equipment, its characterized in that, the operating system that terminal equipment used is android system, equipment includes:
the system comprises a pre-made service and a remote server, wherein the pre-made service is used for establishing remote connection with the remote server according to an establishing instruction input by a user;
the pre-service is further used for receiving a debugging instruction sent by a debugging device through the remote server, when the execution of the debugging instruction requires root authority, the debugging instruction is sent to a Socket service end of the operating system, the pre-service serves as a Socket client, and the pre-service and the Socket service end are in communication connection through a Socket;
the Socket server is used for acquiring root authority according to the debugging instruction, executing the debugging instruction and sending an execution result of the debugging instruction to the prefabricated service;
and the pre-made service is also used for sending the execution result of the debugging instruction to the debugging equipment through the remote server.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any one of claims 1 to 7.
10. A terminal device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
11. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of any one of claims 1 to 7.
12. A debugging system, comprising: the system comprises terminal equipment, a remote server and debugging equipment, wherein an operating system of the terminal equipment is an android system;
the terminal equipment is used for establishing remote connection with the remote server according to an establishing instruction input by a user;
the debugging equipment is used for sending a debugging instruction to the remote server;
the remote server is used for sending the debugging instruction to the terminal equipment through the remote connection;
the prefabricated service of the terminal equipment is also used for receiving the debugging instruction, when the execution of the debugging instruction needs root right, the debugging instruction is sent to a Socket server of the operating system, the prefabricated service is used as a Socket client, and the prefabricated service and the Socket server are in communication connection through a Socket;
the Socket server of the terminal equipment is used for acquiring root authority according to the debugging instruction, executing the debugging instruction and sending an execution result of the debugging instruction to the prefabricated service;
the terminal equipment is used for executing a debugging instruction, and the terminal equipment is used for executing a debugging instruction;
the debugging equipment is also used for outputting the execution result of the debugging instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110796719.0A CN115633021A (en) | 2021-07-14 | 2021-07-14 | Remote debugging method and device for terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110796719.0A CN115633021A (en) | 2021-07-14 | 2021-07-14 | Remote debugging method and device for terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115633021A true CN115633021A (en) | 2023-01-20 |
Family
ID=84902943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110796719.0A Pending CN115633021A (en) | 2021-07-14 | 2021-07-14 | Remote debugging method and device for terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115633021A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117834695A (en) * | 2024-03-05 | 2024-04-05 | 深圳市芯科云科技有限公司 | Centralized connection debugging method and system for intelligent watch |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902358A (en) * | 2014-03-18 | 2014-07-02 | 北京领通科技有限公司 | Mobile terminal remote debugging method and system and mobile terminal |
CN107566226A (en) * | 2017-07-31 | 2018-01-09 | 深圳真时科技有限公司 | A kind of methods, devices and systems for controlling smart home |
CN108011883A (en) * | 2017-12-05 | 2018-05-08 | 深圳市创维软件有限公司 | A kind of remote debugging method, terminal device and server |
CN108415827A (en) * | 2018-01-23 | 2018-08-17 | 阿里巴巴集团控股有限公司 | Using automatic processing method, device, client and system |
-
2021
- 2021-07-14 CN CN202110796719.0A patent/CN115633021A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902358A (en) * | 2014-03-18 | 2014-07-02 | 北京领通科技有限公司 | Mobile terminal remote debugging method and system and mobile terminal |
CN107566226A (en) * | 2017-07-31 | 2018-01-09 | 深圳真时科技有限公司 | A kind of methods, devices and systems for controlling smart home |
CN108011883A (en) * | 2017-12-05 | 2018-05-08 | 深圳市创维软件有限公司 | A kind of remote debugging method, terminal device and server |
CN108415827A (en) * | 2018-01-23 | 2018-08-17 | 阿里巴巴集团控股有限公司 | Using automatic processing method, device, client and system |
Non-Patent Citations (1)
Title |
---|
奥利奥真好吃: "使用socket赋予app root权限", pages 1 - 7, Retrieved from the Internet <URL:https://www.jianshu.com/p/dce099c7cf92> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117834695A (en) * | 2024-03-05 | 2024-04-05 | 深圳市芯科云科技有限公司 | Centralized connection debugging method and system for intelligent watch |
CN117834695B (en) * | 2024-03-05 | 2024-05-31 | 深圳市芯科云科技有限公司 | Centralized connection debugging method and system for intelligent watch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108595970B (en) | Configuration method and device of processing assembly, terminal and storage medium | |
CN107491683B (en) | Application decryption method and device, terminal and computer readable storage medium | |
WO2021218979A1 (en) | Login method and system based on cloud application instance, and related device | |
US9130927B2 (en) | Single certificate service system and operational method thereof | |
KR101794184B1 (en) | Application authentication policy for a plurality of computing devices | |
EP3132621B1 (en) | Mobile terminal control method, apparatus and system | |
KR101726526B1 (en) | Method, device and equipment for adding plug-in in address book, program and recording medium | |
CN107924449B (en) | Notification message processing method and device and terminal | |
CN104572263A (en) | Page data interaction method, related device and system | |
WO2019047907A1 (en) | Fingerprint recognition method and device, mobile terminal, and storage medium | |
KR20150137911A (en) | user terminal apparatus, communication system and control method thereof | |
CN110334529B (en) | Data processing method, device, equipment, system and audio equipment | |
CN108092947B (en) | Method and device for identity authentication of third-party application | |
CN115633021A (en) | Remote debugging method and device for terminal equipment | |
CN110417979B (en) | Unlocking method, device, terminal and storage medium | |
CN113946739A (en) | Sensitive data query method, device, equipment and storage medium | |
CN104346161A (en) | Information processing method and electronic equipment | |
CN110379051B (en) | Unlocking method, device, terminal and storage medium | |
WO2017148337A1 (en) | Methods of providing and acquiring terminal service, device, and terminal | |
CN110661789B (en) | Address resetting method, device, equipment and computer readable storage medium | |
CN109933960B (en) | Service calling control method, service calling method, device and terminal | |
CN112417402A (en) | Authority control method, authority control device and storage medium | |
CN116755842B (en) | Identity verification system deployment method, device, equipment and storage medium | |
CN109145572A (en) | User authen method, device and storage medium and electronic equipment | |
CN115277072B (en) | Account number opening method and device, storage medium and computer 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 |