CN107391356A - Interim card information acquisition method, device and computer-readable recording medium - Google Patents
Interim card information acquisition method, device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107391356A CN107391356A CN201710619453.6A CN201710619453A CN107391356A CN 107391356 A CN107391356 A CN 107391356A CN 201710619453 A CN201710619453 A CN 201710619453A CN 107391356 A CN107391356 A CN 107391356A
- Authority
- CN
- China
- Prior art keywords
- interim card
- card information
- binary executable
- mobile terminal
- file
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3452—Performance evaluation by statistical analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3017—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Probability & Statistics with Applications (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The disclosure is directed to a kind of interim card information acquisition method, device and computer-readable recording medium, belong to technical field of measurement and test.Methods described includes:Binary executable is sent to mobile terminal, binary executable is used to carry out interim card acquisition of information based on primary process;Test starting command is sent to mobile terminal, test starting command is used to indicate running of mobile terminal binary executable;Obtain the interim card information counted by mobile terminal.The binary executable for being used to count interim card information in the disclosure is run with primary process in an operating system, it can not be disposed by operating system, can always in the presence of and run in operating system, so as to completely count on the interim card information that operating system occurs during operation, statistics is more comprehensive.And process and the decoupling of debugging acid finger daemon of interim card information are counted, is avoided in statistic processes because of situations such as the defects of debugging acid finger daemon blocks, hang-up causes statistics failure.
Description
Technical field
The disclosure is directed to technical field of measurement and test, specifically on a kind of interim card information acquisition method, device and meter
Calculation machine readable storage medium storing program for executing.
Background technology
Interim card refers to that the not smooth situations of operation such as picture is stagnated, sound is interrupted occurs in mobile terminal.Exist to weigh terminal
Interim card situation during operation application is, it is necessary to obtain interim card information when running of mobile terminal is applied, and weigh by interim card information
Interim card situation.
The process for obtaining interim card information is generally realized by the intercommunication of control terminal and mobile terminal:Specifically,
Control terminal can installation and debugging instrument, debugging acid finger daemon has been pre-created in the operating system of mobile terminal, when obtaining
Taking mobile terminal, mobile terminal will be based on debugging acid finger daemon and debugging when running the interim card information during applying
Instrument establishes connection, when controlling terminal to get the instruction of interim card acquisition of information, can indicate that debugging acid finger daemon obtains card
Information, mobile terminal can run debugging acid finger daemon, and interim card situation when being applied to operation counts, and passes through this
Connection, the interim card information that statistics obtains is exported to debugging acid, interim card information is shown by control terminal.
The content of the invention
In order to solve problem present in correlation technique, present disclose provides a kind of interim card information acquisition method, device and
Computer-readable recording medium.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of interim card information acquisition method, methods described include:
Binary executable is sent to mobile terminal, the binary executable is used to enter based on primary process
Row interim card acquisition of information;
Test starting command is sent to the mobile terminal, the test starting command is used to indicate the mobile terminal fortune
The row binary executable;
Obtain the interim card information counted by the mobile terminal.
In a kind of possible implementation, before the transmission binary executable to mobile terminal, the side
Method also includes:
Obtain source file to be compiled;
The source file is compiled as binary executable, the binary executable need based on it is primary enter
Cheng Yunhang.
It is described to include to mobile terminal transmission binary executable in alternatively possible implementation:
The store instruction that file is sent to the mobile terminal is performed, the store instruction can perform including the binary system
The title of file and the specified address for storing the binary executable in the mobile terminal, it is described to specify
Address is /data/local/tmp files.
It is described to obtain the interim card information that is counted by the mobile terminal in alternatively possible implementation, including:
The instruction that pulls that file is pulled from the mobile terminal is performed, it is described to pull instruction for indicating from the movement eventually
Goal-selling file in end reads the interim card information that statistics obtains.
In alternatively possible implementation, predetermined period and/or preset times are carried in the test starting command,
The predetermined period is used to indicate the mobile terminal every the predetermined period, and performing once the operation binary system can
The step of performing file, the preset times are used for the number for indicating the acquisition for mobile terminal interim card information.
It is described before the transmission binary executable to mobile terminal in alternatively possible implementation
Method also includes:
Test instruction is obtained, the test instruction is used to indicate to test the mobile terminal.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of interim card information acquisition method, methods described include:
Receive control terminal send binary executable, the binary executable be used for based on it is primary enter
Cheng Jinhang interim card acquisition of information;
The test starting command that the control terminal is sent is received, the test starting command is used to indicate the movement eventually
Run the binary executable in end;
The binary executable is run, obtains interim card information.
In a kind of possible implementation, the binary executable for receiving control terminal transmission includes:
The binary executable is received, and is stored in specified address, the specified address is /data/local/
Tmp files.
In alternatively possible implementation, after the binary executable for receiving control terminal and sending,
Methods described also includes:
When it is determined that debugging acid finger daemon has the authority of establishment file in the specified address, pass through the tune
Trial work has finger daemon, the step of performing the reception binary executable, and be stored in specified address.
In alternatively possible implementation, the operation binary executable, interim card information, bag are obtained
Include:
When it is determined that the process of specifying has the authority for starting the file in the specified address, opened by the specified process
Move the binary executable;
Create the primary process for running the binary executable;
By the primary process, interim card information is obtained.
In alternatively possible implementation, the operation binary executable, obtain interim card information it
Afterwards, methods described also includes:
The goal-selling file interim card information being stored in the mobile terminal;
Request is pulled based on the control terminal, the interim card information in the goal-selling file is sent to the control
Terminal processed.
In alternatively possible implementation, the test starting command carries predetermined period, the operation described two
System executable file, interim card information is obtained, including:
Every the predetermined period, the operation binary executable is performed once, obtains interim card information
Step;And/or
The test starting command carries preset times, the operation binary executable, obtains interim card letter
Breath, including:
The binary executable is run, obtains interim card information, the number until obtaining interim card information reaches described
Preset times.
In alternatively possible implementation, the operation binary executable, interim card information, bag are obtained
Include:
The binary executable is run based on the primary process, calls the output intent of drawing statistical fractals to obtain
Take and export the interim card information.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of interim card information acquisition device, described device include:
Sending module, for sending binary executable to mobile terminal, the binary executable is used for
Interim card acquisition of information is carried out based on primary process;
The sending module, it is additionally operable to send test starting command to the mobile terminal, the test starting command is used
In binary executable described in the instruction running of mobile terminal;
Acquisition module, it is additionally operable to obtain the interim card information counted by the mobile terminal.
In a kind of possible implementation, the acquisition module, it is additionally operable to obtain source file to be compiled;
Described device also includes:Collector, for the source file to be compiled as into binary executable, described two
System executable file needs to run based on primary process.
In alternatively possible implementation, the sending module, it is additionally operable to perform to mobile terminal transmission text
The store instruction of part, the store instruction include the title of the binary executable and in the mobile terminals
The specified address of the middle storage binary executable, the specified address are /data/local/tmp files.
In alternatively possible implementation, the acquisition module, file is pulled for performing from the mobile terminal
Pull instruction, it is described to pull instruction and be used to indicating to read the card that statistics obtains from the goal-selling file in the mobile terminal
Information.
In alternatively possible implementation, predetermined period and/or preset times are carried in the test starting command,
The predetermined period is used to indicate the mobile terminal every the predetermined period, and performing once the operation binary system can
The step of performing file, the preset times are used for the number for indicating the acquisition for mobile terminal interim card information.
In alternatively possible implementation, the acquisition module, it is additionally operable to obtain test instruction, the test instruction
For indicating to test the mobile terminal.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of interim card information acquisition device, described device include:
Receiving module, the binary executable sent for receiving control terminal, the binary executable
For carrying out interim card acquisition of information based on primary process;
The receiving module, it is additionally operable to receive the test starting command that the control terminal is sent, the startup test refers to
Make for indicating binary executable described in the running of mobile terminal;
Acquisition module, for running the binary executable, obtain interim card information.
In a kind of possible implementation, the receiving module, it is additionally operable to receive the binary executable, and
Specified address is stored in, the specified address is /data/local/tmp files.
In alternatively possible implementation, the receiving module, it is additionally operable to when determination debugging acid finger daemon tool
When having the authority of establishment file in the specified address, by the debugging acid finger daemon, perform described in the reception
Binary executable, and the step of be stored in specified address.
In alternatively possible implementation, the acquisition module, including:
Start submodule, for when it is determined that the process of specifying has the authority for starting the file in the specified address, leading to
Cross binary executable described in the specified process initiation;
Submodule is created, the primary process of the binary executable is run for creating;
Acquisition submodule, for by the primary process, obtaining interim card information.
In alternatively possible implementation, described device also includes:Memory module, for the interim card information to be deposited
The goal-selling file being stored in the mobile terminal;
The sending module, for pulling request based on the control terminal, by the card in the goal-selling file
Information of pausing is sent to the control terminal.
In alternatively possible implementation, the test starting command carries predetermined period, the acquisition module, uses
In every the predetermined period, perform once the operation binary executable, obtain interim card information the step of;
And/or
The test starting command carries preset times, the acquisition module, for running the executable text of the binary system
Part, interim card information is obtained, until the number for obtaining interim card information reaches the preset times.
In alternatively possible implementation, the acquisition module, for based on the primary process operation described two
System executable file, the output intent of drawing statistical fractals is called to obtain and export the interim card information.
According to the 5th of the embodiment of the present disclosure the aspect, there is provided a kind of interim card information acquisition device, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Binary executable is sent to mobile terminal, the binary executable is used to enter based on primary process
Row interim card acquisition of information;
Test starting command is sent to the mobile terminal, the test starting command is used to indicate the mobile terminal fortune
The row binary executable;
Obtain the interim card information counted by the mobile terminal.
According to the 6th of the embodiment of the present disclosure the aspect, there is provided a kind of interim card information acquisition device, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Receive control terminal send binary executable, the binary executable be used for based on it is primary enter
Cheng Jinhang interim card acquisition of information;
The test starting command that the control terminal is sent is received, the test starting command is used to indicate the movement eventually
Run the binary executable in end;
The binary executable is run, obtains interim card information.
According to the 7th of the embodiment of the present disclosure the aspect, there is provided a kind of computer-readable recording medium, be stored thereon with meter
Calculation machine program, it is characterised in that the step of first aspect methods described is realized when described program is executed by processor.
According to the eighth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with meter
Calculation machine program, it is characterised in that the step of second aspect methods described is realized when described program is executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The method, apparatus and computer-readable recording medium that the present embodiment provides, control terminal send two to mobile terminal
System executable file, mobile terminal can run the binary executable by primary process, perform statistics interim card letter
The process of breath, because the binary executable for counting interim card information is run with primary process in an operating system, its
Can not be disposed by operating system, can always in the presence of and run in operating system, so as to completely count on behaviour
Make the interim card information that system occurs during operation, statistics is more comprehensive.And count the process and debugging acid of interim card information
Finger daemon decouples, i.e., need not rely on debugging acid finger daemon, avoid in statistic processes due to debugging acid finger daemon
Situations such as blocking, debugging acid finger daemon are hung up causes the defects of statistics failure, improves the efficiency for obtaining interim card information.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of schematic diagram of implementation environment according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of interim card information acquisition method according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of interim card information acquisition method according to an exemplary embodiment;
Fig. 4 A are a kind of flow charts of interim card information acquisition method according to an exemplary embodiment;
Fig. 4 B are a kind of flow charts of interim card information acquisition method according to an exemplary embodiment;
Fig. 5 A are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment;
Fig. 5 B are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment;
Fig. 6 A are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment;
Fig. 6 B are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment;
Fig. 6 C are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of interim card information acquisition device according to an exemplary embodiment.
Embodiment
It is right with reference to embodiment and accompanying drawing for the purpose, technical scheme and advantage of the disclosure are more clearly understood
The disclosure is described in further details.Here, the exemplary embodiment of the disclosure and its illustrate to be used to explain the disclosure, but simultaneously
Not as the restriction to the disclosure.
Fig. 1 is a kind of schematic diagram of implementation environment according to an exemplary embodiment, as shown in figure 1, the implementation ring
Border includes control terminal 101 and mobile terminal 102, and the control terminal 101 and mobile terminal 102 can be by establishing the side connected
Formula is communicated.
The connection can be wired connection or wireless connection, and the wired connection can be USB (UniversalSerial
Bus, USB) connection, the wireless connection can be Wireless Fidelity (Wireless Fidelity, WI-FI) connection,
Bluetooth, data network connection etc..
The control terminal 101 is used to test mobile terminal 102, is existed with obtaining the operating system of mobile terminal 102
Interim card information during operation.Further, the mobile terminal 102 can be the mobile terminal of installation open operating system,
Correspondingly, the interim card information of acquisition be mobile terminal 102 under the control of open operating system, run application interim card letter
Breath, the open operating system can be Android (Android) operating system.
Wherein, the control terminal 101 can be desktop computer, notebook computer etc., mobile terminal 102 can be mobile phone,
Tablet personal computer etc..
Fig. 2 is a kind of flow chart of interim card information acquisition method according to an exemplary embodiment.The embodiment
Executive agent is control terminal, and referring to Fig. 2, this method includes:
In step 201, binary executable is sent to mobile terminal, the binary executable is used to be based on
Primary process carries out interim card acquisition of information.
In step 202, test starting command is sent to the mobile terminal, the test starting command is used to indicate the movement
The terminal operating binary executable.
In step 203, the interim card information counted by the mobile terminal is obtained.
The method that the embodiment of the present disclosure provides, control terminal sends binary executable to mobile terminal, mobile whole
End can run the binary executable by primary process, the process of statistics interim card information be performed, due to for counting
The binary executable of interim card information is run with primary process in an operating system, and it can not be removed by operating system
Fall, can always in the presence of and run in operating system, occur so as to completely count on operating system during operation
Interim card information, statistics it is more comprehensive.And count process and the decoupling of debugging acid finger daemon of interim card information, i.e., need not be according to
Rely debugging acid finger daemon, avoid in statistic processes due to the blocking of debugging acid finger daemon, debugging acid finger daemon
Situations such as hang-up, causes the defects of statistics failure, improves the efficiency for obtaining interim card information.
In a kind of possible implementation, before this sends binary executable to mobile terminal, this method is also
Including:
Obtain source file to be compiled;
The source file is compiled as binary executable, the binary executable needs to transport based on primary process
OK.
In alternatively possible implementation, this sends binary executable to mobile terminal includes:
The store instruction that file is sent to the mobile terminal is performed, the store instruction includes the binary executable
Title and the specified address for storing the binary executable in the terminal, this specifies address as/data/
Local/tmp files.
In alternatively possible implementation, interim card information that the acquisition is counted by the mobile terminal, including:
Perform from what the mobile terminal pulled file and pull instruction, this pulls instruction and is used for instruction from the mobile terminal
Goal-selling file reads the interim card information that statistics obtains.
In alternatively possible implementation, predetermined period and/or preset times are carried in the test starting command, should
Predetermined period is used to indicate the mobile terminal every the predetermined period, performs once the step of the operation binary executable
Suddenly, the preset times are used for the number for indicating the acquisition for mobile terminal interim card information.
In alternatively possible implementation, before this sends binary executable to mobile terminal, this method
Also include:
Test instruction is obtained, the test is instructed for indicating to test the mobile terminal.
Fig. 3 is a kind of flow chart of interim card information acquisition method according to an exemplary embodiment.The embodiment
Executive agent is mobile terminal, and referring to Fig. 3, this method includes:
In step 301, the binary executable that control terminal is sent is received, the binary executable is used for
Interim card acquisition of information is carried out based on primary process.
In step 302, the test starting command of control terminal transmission is received, the test starting command is used to indicate this
The running of mobile terminal binary executable.
In step 303, the binary executable is run, obtains interim card information.
The method that the embodiment of the present disclosure provides, control terminal sends binary executable to mobile terminal, mobile whole
End can run the binary executable by primary process, the process of statistics interim card information be performed, due to for counting
The binary executable of interim card information is run with primary process in an operating system, and it can not be removed by operating system
Fall, can always in the presence of and run in operating system, occur so as to completely count on operating system during operation
Interim card information, statistics it is more comprehensive.And count process and the decoupling of debugging acid finger daemon of interim card information, i.e., need not be according to
Rely debugging acid finger daemon, avoid in statistic processes due to the blocking of debugging acid finger daemon, debugging acid finger daemon
Situations such as hang-up, causes the defects of statistics failure, improves the efficiency for obtaining interim card information.
In a kind of possible implementation, the binary executable that reception control terminal is sent includes:
The binary executable is received, and is stored in specified address, this specifies address as/data/local/tmp texts
Part presss from both sides.
, should after the binary executable that reception control terminal is sent in alternatively possible implementation
Method also includes:
When it is determined that debugging acid finger daemon is with the authority of establishment file in specifying address at this, pass through the debugging work
Has finger daemon, the step of performing the reception binary executable, and be stored in specified address.
In alternatively possible implementation, the operation binary executable, interim card information is obtained, including:
When it is determined that the process of specifying has the authority for starting the file in the specified address, specify process initiation should by this
Binary executable;
Create the primary process for running the binary executable;
By the primary process, interim card information is obtained.
In alternatively possible implementation, the operation binary executable, should after obtaining interim card information
Method also includes:
The goal-selling file interim card information being stored in the mobile terminal;
Request is pulled based on the control terminal, the interim card information in the goal-selling file is sent to control end
End.
In alternatively possible implementation, the test starting command carries predetermined period, and the operation binary system can
File is performed, obtains interim card information, including:
Every the predetermined period, once operation binary executable is performed, the step of obtaining interim card information;
And/or
The test starting command carries preset times, the operation binary executable, obtains interim card information, bag
Include:
The binary executable is run, obtains interim card information, it is default that the number until obtaining interim card information reaches this
Number.
In alternatively possible implementation, the operation binary executable, interim card information is obtained, including:
The binary executable is run based on the primary process, calls the output intent of drawing statistical fractals to obtain simultaneously
Export the interim card information.
In the scheme for the acquisition interim card information that correlation technique provides, mobile terminal can run debugging acid finger daemon statistics
Interim card information, and interim card information is exported by debugging acid to control terminal by debugging acid finger daemon, in this scheme
The acquisition efficiency of interim card information is very low.
The reason is that on the one hand, because the code of debugging acid finger daemon in itself has inherent shortcoming, counting
Often occur the problem of various unexpected in journey, such as situations such as process blocking, process hang-up so that statistics is interrupted or number
According to inaccuracy.On the other hand, with the variation of mobile terminal operating system, often there is the tune in mobile terminal operating system
Trial work has finger daemon and controls the situation of the debugging acid poor compatibility of terminal, causes mobile terminal and control terminal not to grow
Time is communicated.And mobile terminal is during interim card information is counted, debugging acid finger daemon can't it is mobile eventually
The interim card information that end local terminal storage has counted, but directly interim card information is exported and gives control terminal, once lost with testing tool
Go to communicate, the interim card information counted will all lose.Especially, during once interim card information is obtained, mobile terminal needs
When periodically repeatedly counting interim card information, usual timing statisticses can be longer, this be easier to due to debugging acid finger daemon and
Communication disruption between debugging acid, cause the procedure failure for counting interim card information.
And the embodiment of the present disclosure provides a kind of scheme of new acquisition interim card information, in this scenario, interim card will be obtained
Each instruction needed for information process is encapsulated as a binary executable, should by the operation of primary process by mobile terminal
Binary executable, complete to obtain the process of interim card information.Instruction included by the binary executable can be by
Tester voluntarily compiles, and can compatible several operation systems, it is relatively stable to run the process of the binary executable,
It is not easy the situation for process blocking occur and process is hung up.In addition, mobile terminal is in statistic processes, after interim card information is obtained
Local terminal can be directly stored in, without in real time to control terminal send interim card information, also just without in real time with control terminal
Connection is kept, the interim card information loss for causing to have counted will not be disconnected due to being connected in statistic processes with control terminal.
The embodiment of the present disclosure can apply to count the scene of interim card information when running of mobile terminal is applied, in the scene
In, by the interim card information during instruction acquisition for mobile terminal operation application of control terminal, and obtain the interim card letter of mobile terminal statistics
Breath.The interim card information can reflect the interim card situation of a certain third-party application of mobile terminal installation, then tester can root
According to the performance of the interim card information analysis third-party application, to be improved to third-party application.In addition, interim card information can also
Reflect the interim card situation of the system application of mobile terminal, then the property that tester can apply according to the interim card information analysis system
Can, to be improved to the operating system of mobile terminal.
Fig. 4 A are a kind of flow charts of interim card information acquisition method according to an exemplary embodiment.The embodiment
Interaction agent includes control terminal and mobile terminal, and referring to Fig. 4 A, this method includes:
In step 401, terminal compiling binary executable is controlled.
Because mobile terminal will run binary executable to count interim card information, in order to be somebody's turn to do in subsequent process
Binary executable, it is compiled using control terminal-pair source file in this step, to obtain binary executable.
Wherein, this step may comprise steps of 4011-4012:
4011st, source file to be compiled is obtained.
Control terminal can install developing instrument, and the developing instrument is used to write source file.In the mistake of operation developing instrument
Cheng Zhong, tester can carry out compilation operation in control terminal, and developing instrument can detect compilation operation, the source write
File.The developing instrument can be C++, C, java, Visual Basic etc..Certainly, control terminal can directly obtain
The source file write in advance, such as the source file that other-end is sent is obtained, source file is downloaded from server, user is obtained and imports
Source file etc..
4012nd, source file is compiled as by binary executable by compilation tool.
In practical application, for the angle of file type, file includes binary executable, apk files, jar
File etc., for the angle of process type, process includes primary (native) process, Android process etc..Different types of text
Part can be run by different types of process, such as binary executable needs to run by primary process, apk files peace
Need to run by Android process after dress.It is easy in mobile terminal system low memory and the priority of Android process is relatively low
(kill) is killed to discharge Installed System Memory, the priority of primary process is higher, will not also be killed even if during Installed System Memory deficiency
Extremely.
, will not be due to the process of operation when under the circumstances, in order to ensure that subsequent movement terminal counts interim card information
It is killed and causes statistic processes to fail, source file can be compiled as binary executable in this step, then subsequent movement
Terminal can carry out interim card acquisition of information by primary process.
Wherein, the compilation tool is used to compile source file, can be gcc (GNU Compiler Collection, GNU volumes
Translate device external member).The process for compiling binary executable actually can be by setting include $ in compilation tool
(BUILD_E7ECUTABLE) instruction is realized.With the entitled main.cpp of source file, binary executable it is entitled
Exemplified by graphicDump, compilation process can be:An Android.mk file is configured in compilation tool,
Code below block is set in Android.mk files, then source file main.cpp can be compiled as binary system and can perform by compilation tool
File graphicDump.
LOCAL_SRC_FILES:=main.cpp;
LOCAL_MODULE:=graphicDum;
include$(BUILD_E7ECUTABLE);
It should be noted that this step 401 is only optional step, in practical application, control terminal can also be obtained directly
Compiled binary executable, such as the binary executable that other-end is sent is obtained, under server
Binary executable is carried, obtains binary executable that user imports etc..
In step 402, terminal is controlled to obtain test instruction.
After control terminal obtains binary executable, when tester wants test mobile terminal, Ke Yi
Triggering test instruction in terminal is controlled, then controls terminal to get test instruction, for example, control terminal can detect input
Test instruction, or display test interface, when the confirmation operation of startupoptions in detecting to test interface, get test
Instruction.Wherein, test instruction is used to indicate to test mobile terminal.
It should be noted that this step 402 is only optional step, in practical application, control terminal can be surveyed without obtaining
Examination instruction, but directly perform following step 403.
In step 403, terminal is controlled to send binary executable to mobile terminal.
Control terminal and mobile terminal can pre-establish connection, and control terminal can be sent out by the connection to mobile terminal
Send binary executable.Further, control terminal can perform the store instruction that file is sent to mobile terminal, and this is deposited
Storage instruction carries the title of binary executable and the finger for storing the binary executable in mobile terminal
Address is determined, so that mobile terminal stores the binary executable in address is specified.In addition, the store instruction can also be taken
Path with binary executable and specified address, the path refer to control the terminal storage binary executable
Address, the path can include the title of binary executable.
Wherein, specify address as/data/local/tmp files, be either other addresses in mobile terminal or
For default address.Store instruction can be that adb push are instructed.Using the entitled graphicDump of binary executable as
Example, control terminal can perform following store instruction:
adb push graphicDump/data/local/tmp/graphicDump;
Need to illustrate first point is the process of binary executable to be sent for triggering control terminal, control is eventually
End can be during Run Script file, when store instruction to be performed, can it is determined that to send binary system to mobile terminal
File is performed, the script file, which includes control terminal, will complete to test each instruction needed for mobile terminal process, control terminal
Each instruction can be successively read, it is automatic to perform corresponding operate.Or control terminal to work as and detect depositing for user's input
During storage instruction, it is determined that to send the binary executable to mobile terminal.Or control terminal can show test circle
Face, when the confirmation operation of delivery option in detecting to test interface, it is determined that the binary system is sent to mobile terminal to be held
Style of writing part.
The second point for needing to illustrate is that the binary executable can be stored in default storage address by control terminal
In, when sending binary executable to mobile terminal, the binary executable in the default storage address is replicated,
And the binary executable replicated is sent to mobile terminal.
In step 404, after mobile terminal receives the binary executable that control terminal is sent, specifying ground
The binary executable is stored in location.
This step 404 is corresponding with above-mentioned steps 403.Wherein, if control terminal performs the storage including specifying address
Instruction, mobile terminal can store binary executable in address is specified.Further, mobile terminal can be with Start-up and Adjustment
Instrument finger daemon, by debugging acid finger daemon specify address in storage file.
Address is specified for this, it is contemplated that in practical application, the operating system of mobile terminal would generally be to the various of process
Authority is strictly controlled, i.e. when it is determined that certain process has the authority for performing certain operation, can just allow the process to perform
The operation, it otherwise can refuse the process and perform the operation.And/data/local/tmp files are one for operating system
Individual special file, this document folder are Googles for the ease of developer is debugged to mobile terminal and is that debugging passage is protected
The file stayed, and impart this document and press from both sides more authorities.
With reference to the design, in order to ensure debugging acid finger daemon can succeed store binary system in this specifies address can
Perform file, will not produce due to without specify address creation file authority, by operating system refuse situation, this reality
Specified address of the general/data/local/tmp files as mobile terminal storage binary executable in example is applied, due to
Debugging acid finger daemon has an authority in/data/local/tmp file establishment files, thus debugging acid guard into
Journey can be with/data/local/tmp files storage binary executable.It that is to say, when mobile terminal determines debugging acid
Finger daemon has in the authority of establishment file during this specifies address, by the debugging acid finger daemon, by the binary system
Executable file is stored in this and specifies address.
Determine that debugging acid finger daemon has the mistake of the authority of establishment file in this specifies address on mobile terminal
Journey, mobile terminal can store the security strategy of various processes, and the corresponding process of security strategy instruction allows the various behaviour performed
Make.When debugging acid finger daemon will specify address in storage file when, mobile terminal can check debugging acid guard into
The security strategy of journey, when security strategy indicates to allow debugging acid finger daemon in establishment file in specifying address, it is determined that adjusting
Trial work tool finger daemon has the authority of the establishment file in address is specified.Wherein, the security strategy of debugging acid finger daemon
It can be TE (Type Enforcement, security strategy) file, the system/sepolicy mesh of mobile terminal can be stored in
Under record.
Using debugging acid finger daemon as adbd processes, exemplified by the security strategy of debugging acid finger daemon is adbd.te,
When adbd processes will store binary executable in/data/local/tmp files, the operation system of mobile terminal
System can read adbd.te, when reading code below in adbd.te, determine that adbd processes have in/data/
The authority of binary executable is stored in local/tmp files.
#adb push/pull/data/local/tmp;
allow adbd shell_data_file:file create_file_perm;
It should be noted that above-mentioned steps 403 and step 404 actually can by debugging acid that control terminal is installed and
The debugging acid finger daemon of running of mobile terminal is realized, that is, controls terminal to send binary system to mobile terminal by debugging acid
Executable file, mobile terminal can be connect with Start-up and Adjustment instrument finger daemon during debugging acid finger daemon is run
Receive binary executable.Wherein, debugging acid can be adb (Android Debug Bridge, Android debugging bridge), adjust
Trial work tool finger daemon can be adbd (adbdaemon, adb finger daemon).
In step 405, terminal is controlled to send test starting command to the mobile terminal.
The test starting command is used to indicate that the mobile terminal runs the binary executable by primary process, controls
Terminal processed can obtain the test starting command, and send the test starting command to mobile terminal.For example, control terminal can be with
The test starting command of user's input, or when detecting the operation of the confirmation to the test interface of display, obtain and start test
Instruction.Wherein, the test starting command can be that adb shell are instructed.
In a kind of possible implementation, test starting command can carry predetermined period, and the predetermined period is used to refer to
Show that the mobile terminal every the predetermined period, performs the step that the binary executable is once run by the primary process
Suddenly.The default value that the predetermined period can be set for tester, such as half an hour.Or the predetermined period can be by user
Manually it is configured.
Process for setting predetermined period by user, user can take when input test instructs in test instructs
With the predetermined period, control terminal obtains the predetermined period in being instructed from test, and carries and be somebody's turn to do in test starting command
Predetermined period.Or user can carry the predetermined period when inputting test starting command in test starting command, control
The test starting command for carrying the predetermined period directly can be sent to mobile terminal by terminal processed.
In addition, the test starting command can also carry preset times, the preset times are used to indicate that the mobile terminal obtains
Take the number of the interim card information.The default value that the preset times can be set for tester, for example, 3 times.Or this is default
Number can be manually configured by user, set the process of the preset times similar with setting the process of predetermined period,
This is not repeated.
So that test starting command is adb shell instructions as an example, the code of test starting command can be as follows:
adb shell"./data/local/tmp/graphicDump-t$TIME-n$N"&;
Wherein, TIME is predetermined period, and N is preset times.
In a step 406, mobile terminal receives the test starting command that control terminal is sent, and two are run by primary process
System executable file, obtain interim card information.
In practical application, when mobile terminal receives test starting command, can first pass through specified process initiation binary system can
File is performed, primary process is created, the binary executable is run by the primary process.
Wherein, this specifies process to be used to start binary executable, for example, shell processes, and primary process is used for
The binary executable is run, the mark identified as the primary process of binary executable can be used.To open
Exemplified by dynamic test instruction is adb shell instructions, binary executable is graphicDump, mobile terminal receives adb
When shell is instructed, shell processes (specified process) can be started, run shell processes to start graphicDump, then create
GraphicDump processes, graphicDump is run by graphicDump processes.Wherein, the graphicDump processes of establishment
Type be primary process.
Further, mobile terminal can when it is determined that specify process have start specify address in file authority when,
Again by specifying process initiation binary executable.For example, mobile terminal can check the security strategy of specified process, sentence
Severed finger determines whether process has the authority for starting and specifying file in address, when it is determined that the process of specifying, which has to start, specifies address Chinese
During the authority of part, it is allowed to specify process initiation to specify the binary executable in address.Wherein, specified address can be/
Data/local/tmp files, the security strategy for specifying process can be TE files, can be stored in mobile terminal
Under system/sepolicy catalogues.
To specify process as shell processes, exemplified by the security strategy for specifying process is shell.te, when shell processes will
During binary executable in startup/data/local/tmp files, the operating system of mobile terminal can be read
Shell.te, when reading code below in shell.te, determine that shell processes have startup/data/local/tmp
The authority of file in file.
#Access/data/local/tmp;
allow shell shell_data_file:file r7_file_perms;
For acquisition for mobile terminal and the process of output interim card information, mobile terminal can call drawing to count
(graphicsstats) output (dump) method of service, obtains and exports interim card information.For example, mobile terminal can count
This start between current point in time, run some application during draw totalframes, interim card totalframes and card
The total duration paused, as interim card information.Wherein, the application can be system application or be third-party application.
Wherein, when test starting command carries predetermined period, mobile terminal can every predetermined period, by this it is primary enter
The Cheng Yunhang binary executables, obtain interim card information.Such as predetermined period is half an hour, then primary process can be every half
Hour, a binary executable is read, so as to obtain interim card information by running the binary executable.
When the test starting command carries preset times, mobile terminal can run the binary system by the primary process can
File is performed, obtains interim card information, the number until obtaining the interim card information reaches the preset times.For example, preset times are
N, then primary process can count read binary executable number, whenever a binary executable is read,
Number can be added 1, until have read n times binary executable, that is, untill having counted n times interim card information.
It should be noted that interim card information can be stored in goal-selling file by mobile terminal, goal-selling text
Part can be used for recording interim card information.For example, output order can be included in binary executable, output order instruction
The goal-selling file of interim card information is stored, such as carries title or the path of goal-selling file, so that mobile terminal exists
The interim card information that local terminal storage has counted.
Wherein it is possible to directly using some file pre-established in mobile terminal as goal-selling file, output
Instruction can be indicated to store interim card information in the goal-selling file, then after primary process gets output order, counted on
During interim card information, directly interim card information can be output in the goal-selling file.Or output order can indicate movement eventually
Hold as one file of interim card information creating, the file of establishment as goal-selling file and stored into interim card information, then it is primary enter
After journey gets output order, goal-selling file can be created, and export interim card information to this after interim card information is counted on
In goal-selling file.Wherein, the goal-selling file can be a text, and the path of goal-selling file can be with
For/sdcard/graphic.
In step 407, terminal is controlled to obtain the interim card information counted by the mobile terminal.
Control terminal, which can perform, pulls instruction, and the interim card information is pulled from mobile terminal, and this pulls instruction and is used to indicate
The interim card information for counting and obtaining is read from the goal-selling file in the mobile terminal.Wherein, control terminal can be to movement eventually
End transmission pulls request, and mobile terminal can pull request based on this, and the interim card information in goal-selling file is sent into control
Terminal processed, or, control terminal can also read interim card information from the goal-selling file of mobile terminal by other means.
In addition, the process that execution pulls instruction can be realized by control terminal by debugging acid.
This, which pulls instruction, can carry title or the path of goal-selling file, be instructed with pulling instruction for adb pull,
The path of goal-selling file is exemplified by/sdcard/graphic, pulling instruction can be as follows:
adb-s$ANDROID_SERIAL pull/sdcard/graphic;
Need to illustrate first point is, during mobile terminal counts interim card information, if current system internal memory is small
In memory threshold, low memory management mechanism (Low Memory Killer) can be triggered, the low memory management mechanism is used to kill and worked as
The process of preceding operation, Installed System Memory is discharged, to ensure that current Installed System Memory reaches the memory threshold again.And the low internal memory pipe
Reason mechanism will not kill primary process, would not also have influence on the process of statistics interim card information.
This is because, low memory management mechanism can determine what is killed according to the oom_adj for each process currently run
Process, some process oom_adj value is bigger, represents that the priority of process is lower, and the low easier kill of memory management mechanism should
Process.Wherein, oom_adj span can be [- 17,15], when process is visible process, oom_adj 0, and process
For background process when, oom_adj 2.And the oom_adj of primary process is -17, value is minimum, therefore low memory management mechanism is not
Primary process can be killed.
The step of second point for needing to illustrate is and controls terminal to perform in the embodiment of the present disclosure actually can be by control terminal
Run Script file realizes that the script file includes test instruction, test starting command, store instruction and pulls instruction, controls
Terminal can get test instruction, test starting command successively and pull instruction during script file is read, and automatically
Perform corresponding step.
Need to illustrate is thirdly that control terminal can show the interim card information after interim card information is got, so as to
Tester knows interim card information in time, and exploitation analysis is carried out according to interim card information.
Need to illustrate the 4th point be, the present embodiment is to control terminal to perform to pull instruction and from default in mobile terminal
In file destination exemplified by reading interim card information.In another embodiment, interim card information can be stored in default mesh by mobile terminal
After marking file, goal-selling file is uploaded to given server, control terminal can download the default mesh from given server
File is marked, reading obtains interim card information.
Referring to Fig. 4 B, it illustrates a kind of method flow diagram of the embodiment of the present disclosure, in an exemplary scenario, with control
Terminal processed is computer, and mobile terminal is exemplified by mobile phone, the embodiment of the present disclosure is actual to be may comprise steps of:
(1), tester writes the source file of statistics interim card information using developing instrument on computers, then by compiling work
Tool, binary executable is compiled under Android source code environment.
(2), computer performs adb push instructions, and binary executable is stored in/data/loca/tmp by mobile phone
In.
(3), computer performs adb shell instructions, handset starting binary executable.
(4), primary process corresponding to the handset starting binary executable, timing acquisition interim card information, and will card
Information of pausing is exported in the goal-selling file into mobile phone.
(5), computer performs adb pull instructions, and interim card information is pulled from the goal-selling file, so that exploitation is analyzed.
The method that the embodiment of the present disclosure provides, control terminal sends binary executable to mobile terminal, mobile whole
End can run the binary executable by primary process, the process of statistics interim card information be performed, due to for counting
The binary executable of interim card information is run with primary process in an operating system, and it can not be removed by operating system
Fall, can always in the presence of and run in operating system, occur so as to completely count on operating system during operation
Interim card information, statistics it is more comprehensive.And count process and the decoupling of debugging acid finger daemon of interim card information, i.e., need not be according to
Rely debugging acid finger daemon, avoid in statistic processes due to the blocking of debugging acid finger daemon, debugging acid finger daemon
Situations such as hang-up, causes the defects of statistics failure, improves the efficiency for obtaining interim card information.
Further, mobile terminal in statistic processes can in the interim card information that has counted of local terminal storage, be not in by
In causing the situation that the interim card information that has counted loses with control terminal communication disruption, the efficiency for obtaining interim card information is improved.
Further, it is a binary executable by the compiling of instruction counted needed for the process of interim card information, with
Mobile terminal is set to run the binary executable by primary process, because the priority of primary process is higher, even if moving
During the low memory of dynamic terminal, primary process will not also be killed, and not interfere with the process of statistics interim card information so that statistics
The process of interim card information is more reliable.
It is possible to further general/data/local/tmp files as the specified of storage binary executable
Location, because debugging acid finger daemon has the authority of the establishment file in data/local/tmp files, it can ensure to adjust
Trial work tool finger daemon successfully stores binary executable.Further, since the process of specifying, which has, starts data/local/
The authority of file in tmp files, can ensure specify process successfully start binary executable, avoid due to
Process does not have corresponding authority, leads to not the situation for performing respective operations.
Further, mobile terminal can obtain interim card information every predetermined period, and the predetermined period can be entered by user
Row is set, so as to meet the needs of user's timing acquisition interim card information.Block in addition, mobile terminal can obtain according to preset times
Information, the preset times can be configured by user, disclosure satisfy that user quantitatively obtains the demand of interim card information, extend
The mode of interim card information is obtained, improves the flexibility for obtaining interim card information.
Fig. 5 A are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment., should referring to Fig. 5 A
Device includes sending module 501, acquisition module 502.
Sending module 501, for sending binary executable to mobile terminal, the binary executable is used for
Interim card acquisition of information is carried out based on primary process;
The sending module 501, it is additionally operable to send test starting command to the mobile terminal, the test starting command is used to refer to
Show the running of mobile terminal binary executable;
Acquisition module 502, it is additionally operable to obtain the interim card information counted by the mobile terminal.
The device that the embodiment of the present disclosure provides, control terminal sends binary executable to mobile terminal, mobile whole
End can run the binary executable by primary process, the process of statistics interim card information be performed, due to for counting
The binary executable of interim card information is run with primary process in an operating system, and it can not be removed by operating system
Fall, can always in the presence of and run in operating system, occur so as to completely count on operating system during operation
Interim card information, statistics it is more comprehensive.And count process and the decoupling of debugging acid finger daemon of interim card information, i.e., need not be according to
Rely debugging acid finger daemon, avoid in statistic processes due to the blocking of debugging acid finger daemon, debugging acid finger daemon
Situations such as hang-up, causes the defects of statistics failure, improves the efficiency for obtaining interim card information.
In a kind of possible implementation, the acquisition module 502, it is additionally operable to obtain source file to be compiled;
Referring to Fig. 5 B, the device also includes:Collector 503, for the source file to be compiled as into the executable text of binary system
Part, the binary executable need to run based on primary process
In alternatively possible implementation, the sending module 501, it is additionally operable to perform to mobile terminal transmission file
Store instruction, the title of the store instruction including the binary executable and for store in the terminal this two
The specified address of system executable file, this specifies address as/data/local/tmp files.
In alternatively possible implementation, the acquisition module 502, file is pulled for performing from the mobile terminal
Instruction is pulled, this pulls instruction and is used to indicate to read the interim card letter for counting and obtaining from the goal-selling file in the mobile terminal
Breath.
In alternatively possible implementation, predetermined period and/or preset times are carried in the test starting command, should
Predetermined period is used to indicate the mobile terminal every the predetermined period, performs once the step of the operation binary executable
Suddenly, the preset times are used for the number for indicating the acquisition for mobile terminal interim card information.
In alternatively possible implementation, acquisition module 502, it is additionally operable to obtain test instruction, test instruction is used
Mobile terminal is tested in instruction.
Fig. 6 A are a kind of block diagrams of interim card information acquisition device according to an exemplary embodiment., should referring to Fig. 6 A
Device includes receiving module 601, acquisition module 602.
Receiving module 601, the binary executable sent for receiving control terminal, the binary executable
For carrying out interim card acquisition of information based on primary process;
The receiving module 601, is additionally operable to receive the test starting command of control terminal transmission, and the test starting command is used
In instruction running of mobile terminal binary executable;
Acquisition module 602, for running the binary executable, obtain interim card information.
The device that the embodiment of the present disclosure provides, control terminal sends binary executable to mobile terminal, mobile whole
End can run the binary executable by primary process, the process of statistics interim card information be performed, due to for counting
The binary executable of interim card information is run with primary process in an operating system, and it can not be removed by operating system
Fall, can always in the presence of and run in operating system, occur so as to completely count on operating system during operation
Interim card information, statistics it is more comprehensive.And count process and the decoupling of debugging acid finger daemon of interim card information, i.e., need not be according to
Rely debugging acid finger daemon, avoid in statistic processes due to the blocking of debugging acid finger daemon, debugging acid finger daemon
Situations such as hang-up, causes the defects of statistics failure, improves the efficiency for obtaining interim card information.
In a kind of possible implementation, the receiving module 601, it is additionally operable to receive the binary executable, and
Specified address is stored in, this specifies address as/data/local/tmp files.
In alternatively possible implementation, the receiving module 601, it is additionally operable to when determination debugging acid finger daemon tool
Have in the authority of establishment file during this specifies address, by the debugging acid finger daemon, performing the reception binary system can
The step of performing file, and being stored in specified address.
In alternatively possible implementation, referring to Fig. 6 B, the acquisition module 602, including:
Start submodule, for when it is determined that the process of specifying has the authority for starting the file in the specified address, passing through
This specifies the process initiation binary executable;
Submodule is created, the primary process of the binary executable is run for creating;
Acquisition submodule, for by the primary process, obtaining interim card information.
In alternatively possible implementation, referring to Fig. 6 C, the device also includes:Memory module 603, for this to be blocked
Information of pausing is stored in the goal-selling file in the mobile terminal;
Sending module 604, for pulling request based on the control terminal, by the interim card information in the goal-selling file
It is sent to the control terminal.
In alternatively possible implementation, the test starting command carries predetermined period, the acquisition module 602, uses
In every the predetermined period, once operation binary executable is performed, the step of obtaining interim card information;And/or
Test starting command carrying preset times, the acquisition module 602, for running the binary executable,
Interim card information is obtained, until the number for obtaining interim card information reaches the preset times.
In alternatively possible implementation, the acquisition module 602, for running the binary system based on the primary process
Executable file, the output intent of drawing statistical fractals is called to obtain and export the interim card information.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the disclosure, herein no longer
Repeat one by one.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:Above-described embodiment provide interim card information acquisition device when obtaining interim card information, only more than
The division progress of each functional module is stated for example, in practical application, can be as needed and by above-mentioned function distribution by difference
Functional module complete, terminal will be controlled to be divided into different functional modules from the internal structure of mobile terminal, with complete with
The all or part of function of upper description.In addition, interim card information acquisition device and interim card acquisition of information that above-described embodiment provides
Embodiment of the method belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Fig. 7 is a kind of block diagram of interim card information acquisition device 700 according to an exemplary embodiment.For example, device
700 can be mobile phone, computer, digital broadcast apparatus, messaging devices, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Reference picture 7, device 700 can include following one or more assemblies:Processing component 702, memory 704, power supply
Component 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of input/output (I/O), sensor cluster 714, and
Communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 702 can refer to including one or more processors 720 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 702 can include one or more modules, just
Interaction between processing component 702 and other assemblies.For example, processing component 702 can include multi-media module, it is more to facilitate
Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown
Example includes the instruction of any application program or method for being operated on device 700, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 700.
Multimedia groupware 708 is included in the screen of one output interface of offer between described device 700 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 708 includes a front camera and/or rear camera.When device 700 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 710 is configured as output and/or input audio signal.For example, audio-frequency assembly 710 includes a Mike
Wind (MIC), when device 700 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 704 or via communication set
Part 716 is sent.In certain embodiments, audio-frequency assembly 710 also includes a loudspeaker, for exports audio signal.
I/O interfaces 712 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented
Estimate.For example, sensor cluster 714 can detect opening/closed mode of device 700, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 700, and sensor cluster 714 can be with 700 1 components of detection means 700 or device
Position change, the existence or non-existence that user contacts with device 700, the orientation of device 700 or acceleration/deceleration and device 700
Temperature change.Sensor cluster 714 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 714 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 714 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device
700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 716 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing above-mentioned control terminal or movement
Interim card information acquisition method performed by terminal.
In the exemplary embodiment, a kind of computer-readable recording medium including instructing is additionally provided, such as including referring to
The memory 704 of order, above-mentioned instruction can be performed to complete the above method by the processor 720 of device 700.For example, the calculating
Machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices
Deng.
The embodiment of the present disclosure additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, program
The interim card information acquisition method performed by control terminal in above-described embodiment is realized when being executed by processor.
The embodiment of the present disclosure additionally provides another computer-readable recording medium, is stored thereon with computer program, journey
The interim card information acquisition method performed by mobile terminal in above-described embodiment is realized when sequence is executed by processor.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (30)
1. a kind of interim card information acquisition method, it is characterised in that methods described includes:
Binary executable is sent to mobile terminal, the binary executable is used to be blocked based on primary process
Pause acquisition of information;
Test starting command is sent to the mobile terminal, the test starting command is used to indicate the running of mobile terminal institute
State binary executable;
Obtain the interim card information counted by the mobile terminal.
2. according to the method for claim 1, it is characterised in that it is described to mobile terminal send binary executable it
Before, methods described also includes:
Obtain source file to be compiled;
The source file is compiled as binary executable, the binary executable needs to transport based on primary process
OK.
3. according to the method for claim 1, it is characterised in that it is described to send binary executable to mobile terminal,
Including:
The store instruction that file is sent to the mobile terminal is performed, the store instruction includes the binary executable
Title and specified address for storing the binary executable in the mobile terminal, the specified address
For/data/local/tmp files.
4. according to the method for claim 1, it is characterised in that the interim card counted by the mobile terminal that obtains is believed
Breath, including:
The instruction that pulls that file is pulled from the mobile terminal is performed, it is described to pull instruction for indicating from the mobile terminal
Goal-selling file read the obtained interim card information of statistics.
5. according to the method for claim 1, it is characterised in that in the test starting command carry predetermined period and/or
Preset times, the predetermined period are used to indicate that the mobile terminal every the predetermined period, performs the once operation institute
The step of stating binary executable, the preset times are used for the number for indicating the acquisition for mobile terminal interim card information.
6. according to the method for claim 1, it is characterised in that it is described to mobile terminal send binary executable it
Before, methods described also includes:
Test instruction is obtained, the test instruction is used to indicate to test the mobile terminal.
7. a kind of interim card information acquisition method, it is characterised in that methods described includes:
The binary executable that control terminal is sent is received, the binary executable is used to enter based on primary process
Row interim card acquisition of information;
The test starting command that the control terminal is sent is received, the test starting command is used to indicate the mobile terminal fortune
The row binary executable;
The binary executable is run, obtains interim card information.
8. according to the method for claim 7, it is characterised in that described to receive the executable text of binary system that control terminal is sent
Part, including:
The binary executable is received, and is stored in specified address, the specified address is /data/local/tmp texts
Part presss from both sides.
9. according to the method for claim 8, it is characterised in that described to receive the executable text of binary system that control terminal is sent
After part, methods described also includes:
When it is determined that debugging acid finger daemon has the authority of establishment file in the specified address, pass through the debugging work
Has finger daemon, the step of performing the reception binary executable, and be stored in specified address.
10. according to the method for claim 8, it is characterised in that the operation binary executable, obtain card
Information, including:
When it is determined that the process of specifying has the authority for starting the file in the specified address, pass through the specified process initiation institute
State binary executable;
Create the primary process for running the binary executable;
By the primary process, interim card information is obtained.
11. according to the method for claim 8, it is characterised in that the operation binary executable, obtain card
After information of pausing, methods described also includes:
The goal-selling file interim card information being stored in the mobile terminal;
Request is pulled based on the control terminal, the interim card information in the goal-selling file is sent to the control eventually
End.
12. according to the method for claim 7, it is characterised in that the test starting command carries predetermined period, the fortune
The row binary executable, interim card information is obtained, including:
Every the predetermined period, the operation binary executable is performed once, the step of obtaining interim card information;
And/or
The test starting command carries preset times, the operation binary executable, obtains interim card information, bag
Include:
The binary executable is run, obtains interim card information, the number until obtaining interim card information reaches described default
Number.
13. according to the method for claim 7, it is characterised in that the operation binary executable, obtain card
Information, including:
The binary executable is run, calls the output intent of drawing statistical fractals, obtains and exports the interim card letter
Breath.
14. a kind of interim card information acquisition device, it is characterised in that described device includes:
Sending module, for sending binary executable to mobile terminal, the binary executable is used to be based on
Primary process carries out interim card acquisition of information;
The sending module, it is additionally operable to send test starting command to the mobile terminal, the test starting command is used to refer to
Show binary executable described in the running of mobile terminal;
Acquisition module, it is additionally operable to obtain the interim card information counted by the mobile terminal.
15. device according to claim 14, it is characterised in that
The acquisition module, it is additionally operable to obtain source file to be compiled;
Described device also includes:Collector, for the source file to be compiled as into binary executable, the binary system
Executable file needs to run based on primary process.
16. device according to claim 14, it is characterised in that the sending module, be additionally operable to perform to the movement
Terminal sends the store instruction of file, and the store instruction includes the title of the binary executable and in institute
The specified address that the binary executable is stored in mobile terminal is stated, the specified address is /data/local/tmp
File.
17. device according to claim 14, it is characterised in that the acquisition module, for performing from described mobile whole
End pulls the instruction that pulls of file, described to pull instruction for indicating from the goal-selling file reading system in the mobile terminal
Count obtained interim card information.
18. device according to claim 14, it is characterised in that in the test starting command carry predetermined period and/
Or preset times, the predetermined period are used to indicate that the mobile terminal every the predetermined period, performs the once operation
The step of binary executable, the preset times are used for time for indicating the acquisition for mobile terminal interim card information
Number.
19. device according to claim 14, it is characterised in that the acquisition module, be additionally operable to obtain test instruction, institute
Test instruction is stated to be used to indicate to test the mobile terminal.
20. a kind of interim card information acquisition device, it is characterised in that described device includes:
Receiving module, the binary executable sent for receiving control terminal, the binary executable are used for
Interim card acquisition of information is carried out based on primary process;
The receiving module, it is additionally operable to receive the test starting command that the control terminal is sent, the test starting command is used
In binary executable described in the instruction running of mobile terminal;
Acquisition module, for running the binary executable, obtain interim card information.
21. device according to claim 20, it is characterised in that the receiving module, be additionally operable to receive the binary system
Executable file, and specified address is stored in, the specified address is /data/local/tmp files.
22. device according to claim 21, it is characterised in that the receiving module, be additionally operable to when determination debugging acid
Finger daemon has in the specified address during authority of establishment file, by the debugging acid finger daemon, performs institute
The step of stating and receive the binary executable, and being stored in specified address.
23. device according to claim 21, it is characterised in that the acquisition module, including:
Start submodule, for when it is determined that the process of specifying has the authority for starting the file in the specified address, passing through institute
State binary executable described in specified process initiation;
Submodule is created, the primary process of the binary executable is run for creating;
Acquisition submodule, for by the primary process, obtaining interim card information.
24. device according to claim 21, it is characterised in that described device also includes:Memory module, for by described in
Interim card information is stored in the goal-selling file in the mobile terminal;
Sending module, for pulling request based on the control terminal, the interim card information in the goal-selling file is sent out
Give the control terminal.
25. device according to claim 20, it is characterised in that the test starting command carries predetermined period, described
Acquisition module, it is additionally operable to every the predetermined period, performs once the operation binary executable, obtain interim card
The step of information;And/or
The test starting command carries preset times, the acquisition module, is additionally operable to run the binary executable,
Interim card information is obtained, until the number for obtaining interim card information reaches the preset times.
26. device according to claim 20, it is characterised in that the acquisition module, be additionally operable to based on it is described it is primary enter
Binary executable described in Cheng Yunhang, the output intent of drawing statistical fractals is called, obtains and exports the interim card information.
A kind of 27. interim card information acquisition device, it is characterised in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Binary executable is sent to mobile terminal, the binary executable is used to be blocked based on primary process
Pause acquisition of information;
Test starting command is sent to the mobile terminal, the test starting command is used to indicate the running of mobile terminal institute
State binary executable;
Obtain the interim card information counted by the mobile terminal.
A kind of 28. interim card information acquisition device, it is characterised in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The binary executable that control terminal is sent is received, the binary executable is used to enter based on primary process
Row interim card acquisition of information;
The test starting command that the control terminal is sent is received, the test starting command is used to indicate the mobile terminal fortune
The row binary executable;
The binary executable is run, obtains interim card information.
29. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that described program is processed
The step of device realizes the interim card information acquisition method described in claim 1 to any one of claim 6 when performing.
30. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that described program is processed
The step of device realizes the interim card information acquisition method described in claim 7 to any one of claim 13 when performing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619453.6A CN107391356B (en) | 2017-07-26 | 2017-07-26 | Method and device for acquiring stuck information and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619453.6A CN107391356B (en) | 2017-07-26 | 2017-07-26 | Method and device for acquiring stuck information and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107391356A true CN107391356A (en) | 2017-11-24 |
CN107391356B CN107391356B (en) | 2020-09-25 |
Family
ID=60341101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710619453.6A Active CN107391356B (en) | 2017-07-26 | 2017-07-26 | Method and device for acquiring stuck information and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391356B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189344A (en) * | 2018-09-17 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of logical volume management method, system, equipment and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7096388B2 (en) * | 2001-08-08 | 2006-08-22 | Avaya Technology Corp. | Fault tolerance software system with periodic external self-test failure detection |
CN102779257A (en) * | 2012-06-28 | 2012-11-14 | 奇智软件(北京)有限公司 | Security detection method and system of Android application program |
WO2013075014A1 (en) * | 2011-11-18 | 2013-05-23 | Unisys Corporation | Systems and methods for debugging just-in-time static translation in an emulated system |
CN104331357A (en) * | 2014-10-10 | 2015-02-04 | 北京金山安全软件有限公司 | Application program abnormity detection method and device and mobile terminal |
CN104679631A (en) * | 2015-03-23 | 2015-06-03 | 重庆蓝岸通讯技术有限公司 | Testing method and system for equipment based on Android system |
CN105243007A (en) * | 2015-10-13 | 2016-01-13 | 广东欧珀移动通信有限公司 | Aging testing method and apparatus for memory in mobile terminal |
CN105589783A (en) * | 2014-11-18 | 2016-05-18 | 广州市动景计算机科技有限公司 | Application program lag problem data obtaining method and device |
-
2017
- 2017-07-26 CN CN201710619453.6A patent/CN107391356B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7096388B2 (en) * | 2001-08-08 | 2006-08-22 | Avaya Technology Corp. | Fault tolerance software system with periodic external self-test failure detection |
WO2013075014A1 (en) * | 2011-11-18 | 2013-05-23 | Unisys Corporation | Systems and methods for debugging just-in-time static translation in an emulated system |
CN102779257A (en) * | 2012-06-28 | 2012-11-14 | 奇智软件(北京)有限公司 | Security detection method and system of Android application program |
CN104331357A (en) * | 2014-10-10 | 2015-02-04 | 北京金山安全软件有限公司 | Application program abnormity detection method and device and mobile terminal |
CN105589783A (en) * | 2014-11-18 | 2016-05-18 | 广州市动景计算机科技有限公司 | Application program lag problem data obtaining method and device |
CN104679631A (en) * | 2015-03-23 | 2015-06-03 | 重庆蓝岸通讯技术有限公司 | Testing method and system for equipment based on Android system |
CN105243007A (en) * | 2015-10-13 | 2016-01-13 | 广东欧珀移动通信有限公司 | Aging testing method and apparatus for memory in mobile terminal |
Non-Patent Citations (1)
Title |
---|
GIMITE: "Run native executable in Android App", 《HTTP://GIMITE.NET/EN/INDEX.PHP?RUN%20NATIVE%20EXECUTABLE%20IN%20ANDROID%20APP#HDDD196E》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189344A (en) * | 2018-09-17 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of logical volume management method, system, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107391356B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110262818A (en) | The hot update method of Java code, device, electronic equipment and storage medium | |
CN107391218A (en) | Compilation Method and device, electronic equipment and computer-readable recording medium | |
CN104020990B (en) | Date selects control display methods and device | |
CN107423106A (en) | The method and apparatus for supporting more frame grammars | |
CN107193678A (en) | Interim card method for determining reason, device and storage medium | |
CN106484593A (en) | Log processing method, device and electronic equipment | |
CN107193653A (en) | Method for allocating bandwidth resources, device and storage medium | |
CN112241361A (en) | Test case generation method and device and problem scene automatic reproduction method and device | |
CN107729000A (en) | Application program installation kit generation method and device | |
CN106851695A (en) | A kind of methods, devices and systems for testing network speed | |
CN107544802A (en) | device identification method and device | |
CN106528255A (en) | Class loading method and device | |
CN106775903A (en) | Java.policy update method and device | |
CN106537288B (en) | The method and device of self-starting is applied in control | |
CN104932970A (en) | Monitoring method and device of memory leakage | |
CN107562500A (en) | Debugging apparatus, method and apparatus | |
CN105607979A (en) | Network interconnection control method and device | |
CN107391356A (en) | Interim card information acquisition method, device and computer-readable recording medium | |
CN107506496A (en) | Scrap cleaning method, device and computer-readable recording medium | |
CN104951337B (en) | File increment update method and device | |
CN107239236A (en) | Method for writing data and device | |
CN109213580A (en) | Using exchange method and device | |
CN106778125A (en) | unlocking method, device and equipment | |
CN106528113A (en) | File compiling method and apparatus | |
CN106339452A (en) | Event responding method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |