Data acquisition method, device, terminal and storage medium

By starting the kernel system process in the system frame buffer and receiving ADB commands, the problem of single data acquisition method and permissions is solved, and accurate data acquisition is achieved in any scenario, reducing the troubles of staff and improving satisfaction.

CN113835752BActive Publication Date: 2024-11-12ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010511597.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-08
Publication Date
2024-11-12
Estimated Expiration
2040-06-08

AI Technical Summary

Technical Problem

In the prior art, the method of obtaining data from the system frame buffer is relatively single, and there are permission problems in some scenarios, so data cannot be obtained, especially in game scenarios.

Method used

By starting a system process in the kernel and receiving the Android debugging bridge ADB command, the system process running in the kernel can directly obtain data in the system frame buffer, solving the permission problem and enriching the data acquisition method.

Benefits of technology

It realizes that the system frame buffer data can be accurately obtained in any scenario, avoids the problem of data acquisition failure, reduces the troubles of staff, and improves satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835752B_ABST
    Figure CN113835752B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a data acquisition method, which starts a system process in the kernel and receives an Android debug bridge ADB command. The system process running in the kernel can obtain data in the system frame buffer according to the ADB command; an embodiment of the present invention also provides a data acquisition device, a terminal and a storage medium. By implementing the above scheme, in certain implementation processes, the method of obtaining data in the system frame buffer is enriched, and the accuracy of obtaining data in the system frame buffer is guaranteed, avoiding the phenomenon in the related technology that data cannot be obtained from the system frame buffer in certain scenarios (such as game scenarios) through specific instructions, greatly reducing the troubles of relevant staff, bringing them many conveniences and improving their satisfaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to, but are not limited to, the field of communications, and specifically, relate to, but are not limited to, a data acquisition method, device, terminal, and storage medium. Background Art

[0002] With the development of information technology, data in the system frame buffer is usually obtained through specific instructions. For example, the value of the counter corresponding to the number of frame refreshes in the system frame buffer is obtained through some specific commands. However, this method is not suitable for obtaining data in the system frame buffer in certain scenarios. For example, in the game scenario, due to the different drawing principles of the game interface, when obtaining through specific commands, there are often permission issues and it cannot be obtained. In addition, the method of obtaining data in the system frame buffer is relatively single, and in some scenarios there are certain permission issues and it cannot be obtained, which brings troubles to relevant staff. Summary of the invention

[0003] The data acquisition method, device, terminal and storage medium provided by the embodiments of the present invention mainly solve the technical problem that the method of acquiring data from the system frame buffer in the related technology is relatively single, and in some scenarios there are certain permission issues and the data cannot be acquired.

[0004] To at least solve the above technical problems, an embodiment of the present invention provides a data acquisition method, including: starting a system process, wherein the system process is a process in the kernel; receiving an Android Debug Bridge ADB command, wherein the ADB command is used to instruct to obtain data from a system frame buffer; and the system process obtains data in the system frame buffer according to the ADB command.

[0005] An embodiment of the present invention also provides a data acquisition device, which includes: a starting module, a receiving module and an acquisition module; the starting module is used to start a system process, and the system process is a process in the kernel; the receiving module is used to receive an Android debug bridge ADB command, and the ADB command is used to instruct to obtain data from a system frame buffer; the acquisition module is used for the system process to obtain data in the system frame buffer according to the Android debug bridge ADB command.

[0006] An embodiment of the present invention also provides a terminal, which includes: a processor, a memory and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory; the processor is used to execute one or more computer programs stored in the memory to implement the steps of the data acquisition method as described above.

[0007] An embodiment of 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 of the data acquisition method as described above.

[0008] The beneficial effects of the present invention include at least: according to the data acquisition method, device, terminal and storage medium provided by the embodiment of the present invention, by starting the system process in the kernel, receiving the Android debug bridge ADB command, the system process running in the kernel can obtain data in the system frame buffer according to the ADB command, which solves the problem that the method of obtaining data from the system frame buffer in the related art is relatively single, and there are certain authority issues and cannot be obtained in some scenarios. That is, the data acquisition method, device, terminal and storage medium provided by the embodiment of the present invention, by first starting the system process in the kernel, receiving the ADB command, and further, the system process running in the kernel executes the ADB command. Since the system process in the kernel has the highest authority, there is no authority-related problem and the ADB command can be directly executed; in short, the embodiment of the present invention enriches the way to obtain data in the system frame buffer and ensures the accuracy of obtaining data in the system frame buffer, so as to avoid the phenomenon that the data cannot be obtained from the system frame buffer in some scenarios (such as game scenarios) through specific instructions in the related art, which greatly reduces the troubles of the relevant staff, brings them many conveniences, and improves satisfaction.

[0009] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A basic flow chart of the data acquisition method provided in the first embodiment of the present invention;

[0011] Figure 2 A basic flow chart of processing and displaying the processing results after acquiring data provided in the first embodiment of the present invention;

[0012] Figure 3 A basic flow chart for calculating the number of frame refreshes within a unit time period provided in the first embodiment of the present invention;

[0013] Figure 4 A basic flow chart of a data acquisition method provided in Embodiment 2 of the present invention;

[0014] Figure 5 A schematic diagram of an interface for displaying frame refresh times provided in the second embodiment of the present invention;

[0015] Figure 6-1A schematic diagram of the structure of a data acquisition device provided in Embodiment 3 of the present invention Figure 1 ;

[0016] Figure 6-2 A schematic diagram of the structure of a data acquisition device provided in Embodiment 3 of the present invention Figure 2 ;

[0017] Figure 7 This is a schematic diagram of the structure of a terminal provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0019] Embodiment 1:

[0020] The embodiment of the present invention provides a data acquisition method, which starts a system process, and the started system process acquires data in the system frame buffer according to the Android debug bridge ADB command; see Figure 1 shown.

[0021] Step S101: Start the system process.

[0022] Step S102: Receive an Android Debug Bridge ADB command.

[0023] It should be noted that the system process in the embodiment of the present invention is a process in the kernel, which has the highest authority; the Android Debug Bridge (ADB) command is used to instruct the acquisition of data from the system frame buffer. It is a tool in the Android SDK, which can be used to directly operate and manage the Android emulator or the real Android device; because the system process is started and runs in the kernel with the highest authority, it can execute the ADB command to obtain data in the system frame buffer.

[0024] It should be understood that step S101 and step S102 may be executed in parallel, or one may be executed first and the other may be executed later, and the present invention does not make any specific limitation on this.

[0025] In one embodiment, before starting the system ADB process, at least the following steps are included:

[0026] A startup instruction sent by a first device is received; wherein starting the system process includes: starting the system process in a second device according to the startup instruction, and the first device and the second device are different devices.

[0027] It should be understood that the user can issue a startup instruction on the first device, or the first device can automatically generate a startup instruction according to preset rules, so that the second device can receive the startup instruction sent by the first device, and the second device can start the system process in the second device according to the startup instruction so that the started system process can subsequently obtain data in the system frame buffer in the second device.

[0028] In one embodiment, the second device may directly receive a startup instruction issued by the user on the second device, so that the second device starts the system process in the second device according to the startup instruction so that the started system process can subsequently obtain data in the system frame buffer in the second device.

[0029] It should be noted that the first device in the embodiment of the present invention includes but is not limited to a computer, and the second device includes but is not limited to a smart device, such as a smart phone, a wearable device, etc.; in actual applications, they can be flexibly adjusted according to specific application scenarios.

[0030] In one embodiment, the ADB command may be issued by test software, where the test software is an application installed on the second device. In short, the test software may be customized to achieve flexible acquisition of the data that the test-related staff want to test from the system frame buffer, thereby greatly reducing the work pressure of the test-related staff.

[0031] In one embodiment, the ADB command may also be issued by any other application program, or may be an ADB command directly received from an external device.

[0032] It is worth noting that, in actual applications, the source of the ADB command can be flexibly adjusted according to specific application scenarios, and the present invention does not make specific limitations on this.

[0033] Step S103: The system process obtains data in the system frame buffer according to the ADB command.

[0034] In one embodiment, after the system process obtains data in the system frame buffer according to the ADB command, at least the following two situations may also be included:

[0035] Case 1: Record and / or directly display the acquired data.

[0036] In one implementation, after the system process obtains data in the system frame buffer according to the ADB command, the obtained data can be recorded, wherein the record can be a manual record performed by relevant staff or an automatic record performed by a relevant program on the second device. This can reduce the work pressure of relevant staff, and when the relevant program on the second device automatically records, the recorded data will be saved.

[0037] In one implementation, after the system process obtains data in the system frame buffer according to the ADB command, the obtained data can be directly displayed, wherein the displayed data may be saved or not saved; this allows relevant staff to directly view the obtained data, which is more intuitive and clear, and facilitates relevant staff to perform corresponding processing based on the displayed data.

[0038] Among them, the recording and displaying introduced here can be executed separately or in combination; when executed in combination, the acquired data can be recorded first and then displayed after recording, or the recording and display can be performed simultaneously when the data is acquired, that is, the two are executed in parallel; it is worth noting that in actual applications, flexible adjustments can be made according to specific application scenarios, and the present invention does not make specific limitations on this.

[0039] Case 2, including at least the following steps, see Figure 2 As shown:

[0040] Step S201: Process the acquired data according to preset processing rules to obtain processing results.

[0041] Step S202: Display the processing results.

[0042] It should be understood that, usually, after the system process obtains data in the system frame buffer according to the ADB command, it may also involve using the data for corresponding processing to obtain the final processing result, so that the staff can judge whether the relevant functions on the second device are running normally, how well they run, etc. According to the final processing result, therefore, in one implementation, after the system process obtains data in the system frame buffer according to the ADB command, the obtained data may also be processed according to the processing rules to obtain the processing result, and further, the processing result may be displayed.

[0043] It should be noted that the ADB commands in the embodiment of the present invention include but are not limited to obtaining the value of the counter corresponding to the number of frame refreshes, obtaining the corresponding value of the CPU running time from power-on to the current time, etc.; that is, the data obtained by the system process in the system frame buffer according to the ADB command in the embodiment of the present invention include but are not limited to the value of the counter corresponding to the number of frame refreshes, the corresponding value of the CPU running time from power-on to the current time, etc. It is worth noting that this is an example description based on two specific ADB commands. In actual applications, it is necessary to make flexible adjustments according to specific application scenarios, and the present invention does not make specific limitations on this.

[0044] It should also be noted that the preset processing rules in the embodiments of the present invention include but are not limited to calculating the corresponding parameters per unit time from the acquired data, for example, obtaining the value of the counter corresponding to the number of frame refreshes, then the preset processing rule may be to calculate the number of frame refreshes per unit time, that is, to obtain the frame rate, or obtaining the corresponding value of the CPU running time from power-on to the current, then the preset processing rule may be to calculate the CPU occupancy rate, that is, to obtain the CPU occupancy rate, etc. It is also worth noting that here are two specific preset processing rules for example description, in actual application, it is necessary to make flexible adjustments according to the specific application scenario, and the present invention does not make specific limitations on this.

[0045] For better understanding, in the embodiment of the present invention, an ADB command including obtaining the value of a counter corresponding to the number of frame refresh times is used as an example for explanation; wherein:

[0046] In one implementation, the system process obtaining data in the system frame buffer according to the ADB command may include: the system process executes the ADB command to obtain the value of the counter corresponding to the frame refresh number in the system frame buffer. At this time, the above-mentioned situation 1 may be selected, that is, recording and / or directly displaying the obtained value of the counter corresponding to the frame refresh number.

[0047] In one implementation, the system process obtaining data in the system frame buffer according to the ADB command may include: the system process executes the ADB command to obtain the value of the counter corresponding to the number of frame refreshes in the system frame buffer. At this time, the above-mentioned situation 2 may be selected, that is, the obtained data is processed according to the preset processing rules to obtain the processing result, and the processing result is displayed; wherein:

[0048] Processing the acquired data according to the preset processing rules to obtain the processing result includes: calculating the number of frame refreshes in a unit time period according to the value of the counter corresponding to the number of frame refreshes; displaying the calculation result includes: displaying the number of frame refreshes in a unit time period; wherein, calculating the number of frame refreshes in a unit time period according to the value of the counter corresponding to the number of frame refreshes includes at least the following steps, see Figure 3 As shown:

[0049] Step S301: Calculate the difference between the frame refresh times corresponding to two different moments and the difference between the two moments.

[0050] Step S302: Divide the difference in the number of frame refreshes by the time difference to obtain the number of frame refreshes per unit time.

[0051] For better understanding, a specific example is provided here for illustration; for example, at the first moment t1, the value of the frame refresh number obtained is k1, and at the second moment t2, the value of the frame refresh number obtained is k2. At this time, the difference k=k2-k1 between the first moment t1 and the second moment t2 is calculated, and the difference between the two moments is t=t2-t1. Then k / t represents the number of refreshes per unit time, and k / t can be displayed as needed, so that subsequent relevant staff can determine whether the frame refresh number on the second device is normal based on the displayed k / t, and further, determine whether it is faster, moderate, slower, etc. when it is normal.

[0052] The data acquisition method provided by the embodiment of the present invention starts the system process in the kernel and receives the ADB command. The system process running in the kernel can obtain data in the system frame buffer according to the ADB command, which solves the problem that the method of obtaining data from the system frame buffer in the related art is relatively single, and there are certain permission issues and data cannot be obtained in some scenarios. In short, the data acquisition method provided by the embodiment of the present invention enriches the method of obtaining data in the system frame buffer and ensures the accuracy of obtaining data in the system frame buffer. In this way, the phenomenon that the data cannot be obtained from the system frame buffer in some scenarios (such as game scenarios) through specific instructions in the related art is avoided, which greatly reduces the troubles of the relevant staff, brings them many conveniences, and improves the satisfaction of the relevant staff.

[0053] Furthermore, the data acquisition method provided in the embodiment of the present invention starts the system process on the second device such as an Android smart phone by receiving a startup instruction from a first device such as a computer, and issues an ADB command with the help of test software installed on the second device, so that the system process obtains the corresponding data from the system frame buffer according to the ADB command. The process is simple, easy to implement and conducive to deployment. At the same time, the second device does not need ROOT, and can obtain the data in the system frame buffer online as well as offline. The ADB commands in the test software can be flexibly set, so that the corresponding data can be flexibly obtained from the system frame buffer, which has high flexibility and improves the satisfaction of test-related personnel.

[0054] Furthermore, the data acquisition method provided by the embodiment of the present invention is more intuitive and clear, by directly displaying the corresponding data obtained from the system frame buffer or displaying the processing results after processing the corresponding data, which is convenient for viewing by test-related personnel and further improves the satisfaction of test-related personnel.

[0055] Embodiment 2:

[0056] The embodiment of the present invention is based on the first embodiment, and takes a specific data acquisition method as an example to further illustrate the present invention. Figure 4 As shown:

[0057] Step S401: The mobile phone receives the startup instruction sent by the computer, and starts the system process of the mobile phone according to the startup instruction.

[0058] In one embodiment, the game application on the mobile phone has been running, that is, the subsequent step is to obtain relevant data on the running of the game application from the system frame buffer.

[0059] In one embodiment, other applications on the mobile phone may also be running, such as a video playback application or a real-time video call application, that is, the relevant data of the video playback application or the real-time video call application running is subsequently obtained from the system frame buffer.

[0060] It is worth noting that in actual applications, the specific application that needs to be tested shall prevail.

[0061] It should be noted that the system process started on the mobile phone according to the start instruction is a process in the kernel.

[0062] Step S402: receiving an ADB command, wherein the ADB command is used to instruct to obtain a value of a counter corresponding to the number of frame refresh times from a system frame buffer.

[0063] It should be understood that the ADB command is issued by the test software installed on the mobile phone, that is, the mobile phone application can be tested through the test software on the mobile phone, and the relevant data of the application operation can be obtained from the system frame buffer, and the ADB command includes obtaining the value of the counter corresponding to the number of frame refresh times.

[0064] In one embodiment, the FpsInfo.fps() function can be designed in the test software, and the execAdbCmd() function of the AdbTools() function can be executed to realize the function of obtaining the value of the counter corresponding to the number of frame refresh times in the system frame buffer through the ADB command, wherein the execAdbCmd() function realizes the capture of shell commands, which is realized by the adb connection() function. The adb connection transmits commands by establishing a socket object and a crypto object, and calls AdbProtocol() to interpret the input and output data of the socket; and the getFrameNum() function can also be designed in the test software, and the number of interface refreshes of the system frame buffer from the first moment to the second moment can be obtained by executing the shell command dumpsys SurfaceFlinger "Flips".

[0065] It is worth noting that in actual applications, the specific ADB command instructions shall prevail, and the test software needs to be designed accordingly according to the specific ADB commands.

[0066] Step S403: the system process executes the ADB command to obtain the values ​​of the counter corresponding to the number of frame refresh times in the system frame buffer at two different times in the system frame buffer.

[0067] Step S404: Calculate the difference between the frame refresh times corresponding to two different moments and the difference between the two moments.

[0068] Step S405: Divide the difference in the number of frame refreshes by the time difference to obtain the number of frame refreshes per unit time.

[0069] Step S406: Display the number of frame refreshes within a unit time period.

[0070] In one embodiment, the number of frame refreshes within a unit time period can be displayed in the test application interface, such as referring to Figure 5 As shown, it is a schematic diagram of an interface showing that the number of frame refreshes of game application A in a unit time period is k / t in a test application interface.

[0071] In one embodiment, the value of the counter corresponding to the frame refresh times obtained from the system frame buffer may also be directly displayed in the test application interface.

[0072] It should be understood that the number of frame refreshes in the embodiment of the present invention is only the number of frame refreshes in a unit time calculated by the difference between the number of frame refreshes obtained at two different times and the time. In actual applications, the number of frame refreshes can also be obtained by taking the average of the number of frame refreshes obtained in multiple unit times. This improves the accuracy of the number of frame refreshes in a unit time period, thereby improving the accuracy of the test software in testing mobile phone applications.

[0073] The data acquisition method provided by the embodiment of the present invention starts the system process in the kernel of the second device such as a smart phone by receiving a startup instruction from a first device such as a computer, and issues an ADB command with the help of test software installed on the second device, so that the system process running in the kernel obtains the corresponding data of the game operation from the system frame buffer according to the ADB command. The process is simple, easy to implement and conducive to deployment. At the same time, the second device does not need ROOT, and can obtain the data in the system frame buffer online as well as offline. The ADB command in the test software can be flexibly set, so that the corresponding data can be flexibly obtained from the system frame buffer, which has high flexibility and improves the satisfaction of test-related personnel.

[0074] Embodiment three:

[0075] The present invention provides a data acquisition device. Figure 6-1 As shown, the data acquisition device provided by the embodiment of the present invention includes: a starting module 601, a receiving module 602 and an acquisition module 603, wherein:

[0076] The startup module 601 is used to start the system process, which is a process in the kernel;

[0077] The receiving module 602 is used to receive an Android Debug Bridge ADB command, where the ADB command is used to instruct to obtain data from a system frame buffer;

[0078] The acquisition module 603 is used for the system process to acquire data in the system frame buffer according to the ADB command.

[0079] In one embodiment, the receiving module 602 is further used to receive a startup instruction sent by the first device; further, the startup module 601 starts a system process in the kernel of the second device according to the startup instruction, wherein the first device and the second device are different devices.

[0080] In one embodiment, the ADB command includes but is not limited to obtaining the value of a counter corresponding to the number of frame refreshes, obtaining the value of a counter corresponding to the number of frame refreshes, obtaining the value of a CPU running time from power-on to the current time, etc.; wherein, when the ADB command includes obtaining the value of a counter corresponding to the number of frame refreshes, the acquisition module 603 utilizes the system process to execute the ADB command to obtain the value of a counter corresponding to the number of frame refreshes in the system frame buffer.

[0081] In one embodiment, see Figure 6-2 As shown, the data acquisition device also includes: a display module 604, wherein the display module 604 is used to record and / or directly display the acquired data after the system process acquires the data in the system frame buffer according to the ADB command; and / or, after the system process acquires the data in the system frame buffer according to the ADB command, it processes the acquired data according to preset processing rules to obtain a processing result, and displays the processing result.

[0082] In one embodiment, the acquisition module 603 respectively obtains the value of the counter corresponding to the frame refresh times in the system frame buffer at two different times, and the display module 604 calculates the difference between the frame refresh times corresponding to the two different times and the difference between the two times, and divides the difference between the frame refresh times by the time difference to obtain the frame refresh times per unit time, that is, the display frame refresh times.

[0083] It is worth noting that in order to avoid redundant description, all examples in Embodiments 1 to 2 are not fully described in the embodiments of the present invention. It should be clear that all examples in Embodiments 1 to 2 are applicable to the embodiments of the present invention.

[0084] The embodiment of the present invention provides a method of starting a system process in the kernel and receiving an ADB command. The system process running in the kernel can obtain data in the system frame buffer according to the ADB command, which solves the problem that the method of obtaining data from the system frame buffer in the related art is relatively single, and there are certain permission issues and the data cannot be obtained in some scenarios. Therefore, compared with the data acquisition device in the related art, the data acquisition device provided by the embodiment of the present invention enriches the method of obtaining data in the system frame buffer and ensures the accuracy of obtaining data in the system frame buffer. In this way, the phenomenon that the data cannot be obtained from the system frame buffer in some scenarios (such as game scenarios) through specific instructions in the related art is avoided, which greatly reduces the troubles of the relevant staff, brings them many conveniences, and improves their satisfaction.

[0085] Embodiment 4:

[0086] The embodiment of the present invention provides a terminal, see Figure 7 As shown, the terminal provided by the embodiment of the present invention includes a processor 701 , a memory 702 , and a communication bus 703 .

[0087] The communication bus 703 in the embodiment of the present invention is used to realize the connection and communication between the processor 701 and the memory 702, and the processor 701 is used to execute one or more programs stored in the memory 702 to implement the following steps:

[0088] Start a system process, where the system process is a process in the kernel;

[0089] Receive an Android Debug Bridge ADB command, where the ADB command is used to instruct to obtain data from a system frame buffer;

[0090] The system process obtains data in the system frame buffer according to the ADB command.

[0091] It is worth noting that in order to avoid redundant description, all examples in Embodiments 1 to 2 are not fully described in the embodiments of the present invention. It should be clear that all examples in Embodiments 1 to 2 are applicable to the embodiments of the present invention.

[0092] An embodiment of the present invention further provides a storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the data acquisition method in embodiments one to two.

[0093] The storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0094] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the above disclosed methods can be implemented as software (which can be implemented with computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit.

[0095] In addition, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.

[0096] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A data acquisition method, comprising: Start a system process, where the system process is a process in the kernel; Receive an Android Debug Bridge ADB command, where the ADB command is used to instruct to obtain data from a system frame buffer, and the ADB command includes obtaining a value of a counter corresponding to the number of frame refresh times; The system process acquires data in the system frame buffer according to the ADB command, including: the system process executes the ADB command to acquire the value of the counter corresponding to the frame refresh times in the system frame buffer.

2. The data acquisition method according to claim 1, characterized in that: Before starting the system process, the method further includes: Receiving a start instruction sent by the first device; The startup system process includes: A system process in the second device is started according to the start instruction, wherein the first device and the second device are different devices.

3. The data acquisition method according to claim 1 or 2, characterized in that: After the system process acquires data in the system frame buffer according to the ADB command, the system process further includes: The acquired data is recorded and / or directly displayed.

4. The data acquisition method according to claim 1 or 2, characterized in that: After the system process acquires data in the system frame buffer according to the ADB command, the system process further includes: Processing the acquired data according to preset processing rules to obtain a processing result; The processing result is displayed.

5. The data acquisition method according to claim 4, characterized in that: The step of processing the acquired data according to the preset processing rules to obtain the processing result includes: Calculate the number of frame refreshes within a unit time period according to the value of the counter corresponding to the number of frame refreshes; The displaying of the processing result comprises: Displays the number of frame refreshes per unit time period.

6. The data acquisition method according to claim 5, characterized in that: The calculating the number of frame refreshes within a unit time period according to the value of the counter corresponding to the number of frame refreshes comprises: Calculate the difference between the frame refresh times corresponding to two different moments, and the difference between the two moments; The frame refresh times per unit time are obtained by dividing the difference in frame refresh times by the time difference.

7. A data acquisition device, characterized in that: The data acquisition device comprises: a starting module, a receiving module and an acquisition module; The startup module is used to start the system process, and the system process is a process in the kernel; The receiving module is used to receive an Android Debug Bridge ADB command, where the ADB command is used to instruct to obtain data from a system frame buffer, and the ADB command includes obtaining a value of a counter corresponding to the number of frame refresh times; The acquisition module is used for the system process to acquire data in the system frame buffer according to the ADB command, including: the system process executes the ADB command to acquire the value of the counter corresponding to the frame refresh number in the system frame buffer.

8. A terminal, characterized in that: The terminal includes: a processor, a memory and a communication bus; The communication bus is used to realize the connection and communication between the processor and the memory; The processor is used to execute one or more computer programs stored in the memory to implement the steps of the data acquisition method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the steps of the data acquisition method according to any one of claims 1 to 6.