A remote debugging method, storage medium and debugging terminal for Android device
Through the remote debugging method, the cloud server is used to synchronize and analyze the system information and log data of Android devices, which solves the problem that after-sales problems of Android devices are difficult to solve in a timely manner, achieves on-site confirmation and resolution, and improves the efficiency and accuracy of problem solving.
Patent Information
- Application Number
- CN202010837674.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-08-19
AI Technical Summary
In the existing technology, it is difficult to solve after-sales problems of Android devices in a timely manner, resulting in reduced user recognition of the brand. This is mainly because door-to-door service times need to be negotiated and log information is not captured in a timely manner, resulting in recurrence of problems and incomplete feedback.
Through the remote debugging method, the debugging terminal establishes a debugging connection with the Android device to be debugged, uses the cloud server to synchronize system information and capture log data, analyze problems and conduct debugging, reduce intermediate processes, and achieve on-site confirmation and resolution.
It enables R&D personnel to face user problems in a timely and first-person perspective, confirm and solve problems in real time, significantly reduces the intermediate process from user reporting to problem solving, and improves the efficiency and accuracy of problem solving.
Smart Images

Figure CN112052164B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software debugging, and in particular to a remote debugging method, storage medium and debugging terminal for an Android device. Background Art
[0002] With the popularity of Android devices, such as the growing number of smart TVs in the market, the number of after-sales problems is also increasing.
[0003] At present, after-sales personnel need to visit customers to solve after-sales problems, and the time of the visit needs to be negotiated with users. At the same time, there are also problems such as untimely capture of professional log information, which makes it difficult to reproduce problems, incomplete feedback information, etc. Since it is difficult to get timely responses and solutions to problems reported by users, users' overall brand recognition is reduced.
[0004] Therefore, how to solve the problems reported by Android devices in a timely manner is an issue that needs to be solved urgently. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a remote debugging method, storage medium and debugging terminal for an Android device, aiming to solve the problem that problems reported by an Android device cannot be solved in a timely manner.
[0006] A remote debugging method for an Android device, comprising the steps of:
[0007] The debugging terminal identifies the Android device to be debugged and establishes a debugging connection with the Android device to be debugged;
[0008] The debugging terminal synchronizes the system information of the Android device to be debugged to itself through the network cloud server;
[0009] Obtain and respond to the operation instructions of the Android device to be debugged, capture log data, and analyze the log data;
[0010] After debugging the Android device to be debugged according to the analysis result, the debugging connection is disconnected.
[0011] The remote debugging method for Android devices described above establishes a debugging connection between the debugging terminal and the Android device to be debugged through a cloud network, synchronizes the system information of the Android device to be debugged to the debugging terminal, and receives operation instructions of the Android device to be debugged, so that the front-line R&D personnel can face user problems from a first-person perspective in a timely manner and clearly understand the steps and phenomena of the problem. They can perform on-site confirmation, location and problem solving in real time, greatly reducing the intermediate process from user reporting of the problem to solving the problem.
[0012] Optionally, in the remote debugging method for an Android device, the step of the debugging terminal identifying the Android device to be debugged and establishing a debugging connection with the Android device to be debugged specifically includes:
[0013] Obtain the ID code of the Android device to be debugged;
[0014] Sending a debugging authorization request to the Android device to be debugged according to the ID code;
[0015] When the debugging authorization request is passed, a debugging connection is established with the Android device to be debugged.
[0016] Optionally, the remote debugging method of the Android device, wherein the step of synchronizing the system information of the Android device to be debugged to the debugging terminal via the network cloud server specifically includes:
[0017] The debugging terminal requests system information from the Android device to be debugged through the network cloud server;
[0018] Receiving the request information returned by the network cloud server and including the response of the Android device to be debugged;
[0019] The system information of the Android device to be debugged is synchronized to itself according to the request information of the response.
[0020] Optionally, in the remote debugging method of the Android device, the steps of obtaining and responding to the operation instruction of the Android device to be debugged, capturing log data, and analyzing the log data specifically include:
[0021] Receiving an operation instruction of the Android device to be debugged forwarded by the network cloud server;
[0022] Run according to the operation instructions and track the operation results;
[0023] Capture log data, analyze the captured log data, and locate abnormal problems that occur in the Android device to be debugged.
[0024] Optionally, in the remote debugging method for an Android device, the system information includes software version information of the Android device to be debugged and third-party application information installed on the Android device to be debugged.
[0025] Optionally, in the remote debugging method for an Android device, the step of disconnecting the debugging connection after debugging the Android device to be debugged according to the analysis result specifically includes:
[0026] After debugging the abnormality of the Android device to be debugged is completed according to the analysis result, a request to disconnect the debugging connection is sent;
[0027] The network cloud server forwards the disconnect debugging connection request to the Android device to be debugged, and disconnects the debugging connection.
[0028] Optionally, in the remote debugging method for the Android device, the model of the debugging terminal is the same as the model of the Android device to be debugged.
[0029] Optionally, in the remote debugging method for an Android device, the Android device to be debugged is a smart TV or a set-top box.
[0030] Based on the same inventive concept, the present invention also provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the remote debugging method of the Android device as described above.
[0031] Based on the same inventive concept, the present invention also provides a debugging terminal, which includes: a processor and a memory; the memory stores a program that can be executed by the processor; when the processor executes the program, the steps in the remote debugging method of the Android device as described above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of an application scenario of a debugging method for an Android device in the prior art;
[0033] Figure 2 A schematic diagram of another application scenario of the debugging method for an Android device in the prior art;
[0034] Figure 3A schematic diagram of an application scenario of a remote debugging method for an Android device provided by an embodiment of the present invention;
[0035] Figure 4 A schematic diagram of a remote debugging method for an Android device provided by an embodiment of the present invention;
[0036] Figure 5 A logic diagram of a remote debugging method for an Android device provided by an embodiment of the present invention;
[0037] Figure 6 A schematic diagram of the structure of a debugging terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. Figure 1 As shown in the figure, when a user reports a problem, the after-sales staff must first make an appointment with the user, then go to the user's site to reproduce the problem, capture the log, and then provide feedback to the R&D staff. Since the R&D staff cannot see the problem, they can only obtain the problem description and log information from the after-sales staff to analyze and solve the problem. This method has relatively high technical requirements for after-sales staff, who need to be able to clearly describe the problem phenomenon and capture effective log information. R&D personnel cannot operate on-site, and some debugging methods cannot be implemented. Or, Figure 2 As shown in the figure, when a user reports a problem, the after-sales staff must first make an appointment with the user and the R&D staff, and then go to the site to reproduce the problem. The R&D staff can remotely debug the user's machine through the network to capture the log and debug. The after-sales staff assists the user in reproducing the problem and feeds back the operation steps to the R&D staff. Since the R&D staff cannot see the steps to reproduce the problem, they can only perform log analysis, and the user's machine screen can only be viewed as a single-frame screenshot. If there is a problem phenomenon, it is impossible to analyze the problem from the first-hand perspective.
[0040] Based on this, the present invention provides a solution that can solve the above technical problems, and its details will be described in subsequent embodiments.
[0041] For example, the embodiments of the present invention can be applied to Figure 3 The scenario described, in this scenario, first, a communication network is built between the R&D TV 2 and the user TV 3 through the network cloud server 1. The R&D TV 2 can send request information to the network cloud server 1, and the server 1 forwards the request information to the user TV 3. Similarly, the user TV 3 can send a response request to the network cloud server 1, and the network cloud server 1 forwards the response request to the R&D TV 2. It is easy to understand that the verification information list can be stored on the network cloud server 1, that is, the R&D TV 2 performs identity authentication before establishing communication with the user TV 3, and only after the identity authentication is passed can the communication connection be established. By synchronizing the software version information and the installed application software on the user TV 3 to the R&D TV 2.
[0042] It is understandable that in the above application scenario, it is equivalent to cloning a copy of the user TV 3 on the R&D TV 2. When an operation is performed on the user TV 3 (the problem is reproduced), a synchronous response operation is implemented on the R&D TV 2. The R&D personnel can capture log data on the R&D TV 2, analyze the problem from the first-person perspective, and find the problem point, so that the problem can be solved in time.
[0043] It should be noted that the above application scenarios are only shown for the purpose of facilitating the understanding of the present invention, and the embodiments of the present invention are not limited in this respect. On the contrary, the embodiments of the present invention can be applied to any applicable scenario. The Android device can be a device such as a TV set and a set-top box installed with an Android operating system. In the following embodiments, a TV set is taken as an example to explain the present invention.
[0044] The invention is further described below by describing embodiments in conjunction with the accompanying drawings.
[0045] Please refer to Figures 4 to 5 As shown in the figure, an embodiment of the present invention provides a remote debugging method for an Android device, the method comprising the steps of:
[0046] S100, the debugging terminal identifies the Android device to be debugged, and establishes a debugging connection with the Android device to be debugged;
[0047] Specifically, first, the debugging service (debugservice) for internally integrated related debugging and network communication can be solidified into the internal ROM of the TV, with the TV's unique ID code as identity identification. When the TV needs debugging, the R&D TV 2 (also recorded as rdtv) establishes a debugging connection with the user TV 3 (also recorded as ustv) through the unique ID code of the user TV 3 (also recorded as ustv) informed by the user. It is easy to understand that when an abnormality occurs in user TV 3, the problem can be reported to the network cloud server 1, and the network cloud server 1 will find a matching R&D TV 2 based on the unique ID code of user TV 3, and establish a debugging connection after finding it. The matching means that the model of user TV 3 is the same as that of R&D TV 2. That is, the models of R&D TV2 and user TV 3 involved in the present invention must be the same.
[0048] For example, R&D TV 2 sends a request for debugging mode to user TV 3 through network cloud server 1, and network cloud server 1 forwards the request to user TV 3. After user TV 3 agrees to the authorization, it returns a response to agree to the debugging instruction to network cloud server 1, and then the network cloud server 1 forwards the response to agree to the debugging instruction to R&D TV 2 to complete the debugging connection.
[0049] S200, the debugging terminal synchronizes the system information of the Android device to be debugged to itself through the network cloud server;
[0050] Specifically, after the debugging connection is successfully established, R&D TV 2 sends a request to user TV 3 through the network cloud server 1 to obtain user TV 3 version information and installed application information. The network cloud server 1 forwards the request to user TV 3. User TV 3 packages its own version information and installed third-party application information and sends them to the network cloud server 1, which is then forwarded to R&D TV 2. R&D TV 2 synchronizes according to the above information returned, that is, clones a copy of user TV 3.
[0051] S300, obtaining and responding to the operation instruction of the Android device to be debugged, capturing log data, and analyzing the log data;
[0052] Specifically, when the synchronization is completed, the user TV 3 sends an operation instruction to the R&D TV 2, that is, the user TV 3 first sends the operation instruction to the network cloud server 1, and the network cloud server 1 forwards the operation instruction to the R&D TV 2, and the R&D TV 2 synchronously responds to the operation instruction, so that the R&D TV 2 can synchronize the status of the user TV 3. At this time, the log data of the R&D TV 2 can be captured, the captured log data can be analyzed, and when a problem occurs, the problem can be located. It is easy to understand that the capture of log data can be performed according to actual needs, for example, it can be captured at a predetermined interval, such as once every 1 minute, once every 3 minutes, and so on.
[0053] S400: After debugging the Android device to be debugged according to the analysis result, disconnect the debugging connection.
[0054] Specifically, the located problem is debugged accordingly, and after the debugging is completed (the problem is solved), the R&D TV 2 sends a request to disconnect the debugging connection to the user TV 3 through the network cloud server 1. The user TV 3 receives and responds to the request and disconnects the debugging connection established with the R&D TV 2.
[0055] Based on the remote debugging method for an Android device described above, the present invention further provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the remote debugging method for an Android device described above.
[0056] Based on the remote debugging method of the Android device described above, the present invention also provides a debugging terminal, such as Figure 6As shown, it includes at least one processor (processor) 30; display screen 31; and memory (memory) 32, and may also include a communications interface (CommunicationsInterface) 33 and a bus 34. Among them, the processor 30, the display screen 31, the memory 32 and the communication interface 33 can communicate with each other through the bus 34. The display screen 31 is configured to display the preset user guide interface in the initial setting mode. The communication interface 33 can transmit information. The processor 30 can call the logic instructions in the memory 32 to execute the method in the above embodiment. In addition, the logic instructions in the above memory 32 can be implemented in the form of software functional units and can be stored in a readable storage medium when sold or used as an independent product. The memory 32, as a readable storage medium, can be configured to store software programs, such as program instructions or modules corresponding to the method in the embodiment of the present invention. The processor 30 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 32, that is, implementing the method in the above embodiment. The memory 32 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 32 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium. In addition, the specific process of loading and executing the above-mentioned storage medium and the multiple instruction processors in the terminal has been described in detail in the above-mentioned method, and will not be described one by one here.
[0057] In summary, the present invention provides a remote debugging method, storage medium and debugging terminal for an Android device. The method includes the following steps: the debugging terminal identifies the Android device to be debugged and establishes a debugging connection with the Android device to be debugged; the debugging terminal synchronizes the system information of the Android device to be debugged to itself through a network cloud server; obtains and responds to the operation instructions of the Android device to be debugged, captures log data, and analyzes the log data; after debugging the Android device to be debugged according to the analysis results, the debugging connection is disconnected. A debugging connection is established between the debugging terminal and the Android device to be debugged through a cloud network, the system information of the Android device to be debugged is synchronized to the debugging terminal, and the operation instructions of the Android device to be debugged are received, so that the front-line R&D personnel can face the user problems in a first-person perspective in a timely manner, and can clearly understand the steps and phenomena of the problem, and can confirm, locate and solve the problem on site in real time, which greatly reduces the intermediate process from user reporting the problem to solving the problem.
[0058] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A remote debugging method for an Android device, characterized in that: Includes steps: The debugging terminal identifies the Android device to be debugged and establishes a debugging connection with the Android device to be debugged; The debugging terminal synchronizes the system information of the Android device to be debugged to itself through the network cloud server; Obtain and respond to the operation instructions of the Android device to be debugged, capture log data, and analyze the log data; After debugging the Android device to be debugged according to the analysis result, disconnecting the debugging connection; The steps of obtaining the operation instructions of the Android device to be debugged, capturing log data, and analyzing the log data specifically include: Receiving an operation instruction of the Android device to be debugged forwarded by the network cloud server; Synchronously respond to the operation instruction, capture log data, and analyze the captured log data; When a problem occurs, locate the problem; The system information includes software version information of the Android device to be debugged and third-party application information installed on the Android device to be debugged.
2. The remote debugging method of an Android device as claimed in claim 1, characterized in that: The debugging terminal identifies the Android device to be debugged and establishes a debugging connection with the Android device to be debugged, specifically including: Obtain the ID code of the Android device to be debugged; Sending a debugging authorization request to the Android device to be debugged according to the ID code; When the debugging authorization request is passed, a debugging connection is established with the Android device to be debugged.
3. The remote debugging method of an Android device as claimed in claim 1, characterized in that: The step of synchronizing the system information of the Android device to be debugged to the debugging terminal via the network cloud server specifically includes: The debugging terminal requests system information from the Android device to be debugged through the network cloud server; Receiving a request message forwarded by the network cloud server and including a response from the Android device to be debugged; The system information of the Android device to be debugged is synchronized to itself according to the request information of the response.
4. The remote debugging method of an Android device as claimed in claim 1, characterized in that: After debugging the Android device to be debugged according to the analysis result, the step of disconnecting the debugging connection specifically includes: After debugging the abnormality of the Android device to be debugged is completed according to the analysis result, a request to disconnect the debugging connection is sent; The network cloud server forwards the disconnect debugging connection request to the Android device to be debugged, and disconnects the debugging connection.
5. The remote debugging method of an Android device as claimed in claim 1, characterized in that: The model of the debugging terminal is the same as the model of the Android device to be debugged.
6. The remote debugging method of an Android device as claimed in claim 1, characterized in that: The Android device to be debugged is a smart TV or a set-top box.
7. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the remote debugging method of an Android device as described in any one of claims 1-6.
8. A debugging terminal, characterized in that: include: Processor and memory; The memory stores a program executable by the processor; When the processor executes the program, the steps in the remote debugging method for an Android device as described in any one of claims 1-6 are implemented.
