CN108090173A - Delet method, device, terminal and the storage medium of record screen file - Google Patents

Delet method, device, terminal and the storage medium of record screen file Download PDF

Info

Publication number
CN108090173A
CN108090173A CN201711341487.XA CN201711341487A CN108090173A CN 108090173 A CN108090173 A CN 108090173A CN 201711341487 A CN201711341487 A CN 201711341487A CN 108090173 A CN108090173 A CN 108090173A
Authority
CN
China
Prior art keywords
record screen
terminal
file
screen
exception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711341487.XA
Other languages
Chinese (zh)
Inventor
张烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711341487.XA priority Critical patent/CN108090173A/en
Publication of CN108090173A publication Critical patent/CN108090173A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/577Assessing vulnerabilities and evaluating computer system security

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application discloses a kind of delet method, device, terminal and storage medium for recording screen file, belongs to field of terminal technology.The described method includes:Record screen open command is received, records the image of screen display;The operating condition of monitoring terminal during record is shielded;If not monitoring that the terminal operating is abnormal during record screen, after record screen is terminated, the record screen file of generation is deleted.The operating condition of the application monitoring terminal while the image of screen display is recorded, if terminal operating exception is not monitored during record screen, then after record screen is terminated, the record screen file of generation is deleted, since terminal can automatically delete the invalid record screen file generated when there is not operation exception during terminal record screen, it is deleted manually without user, therefore the invalid record screen file that terminal can effectively be avoided to be stored is more and more, the memory space of a large amount of occupied terminals.

Description

Delet method, device, terminal and the storage medium of record screen file
Technical field
The invention relates to field of terminal technology, more particularly to a kind of delet method, device, terminal for recording screen file And storage medium.
Background technology
Record screen, also referred to as film recording or screen recording refer to that acquisition terminal entirely shows picture or display picture middle finger Determine the image data in region, coded image data is obtained into the technology of video file.
In order to which intelligent terminal is made more to stablize, technical staff just needs to test out as much as possible in the development phase of project Loophole (bug) then goes to repair.In order to allow technical staff's quick positioning terminal operation exception the reason for, during the test, Terminal can carry out test process record screen, and the generation record screen file after test, once terminal is transported during test Row is abnormal, process of the terminal from normal operation to operation exception is learnt by recording screen file convenient for technical staff, so as to effectively fixed The reason for position terminal operating is abnormal.
If terminal off-duty is abnormal during record is shielded, then the record screen file pair that terminal is generated after test It is invalid for technical staff.
The content of the invention
The embodiment of the present application provides a kind of delet method, device, terminal and storage medium for recording screen file, can be used for Avoid the invalid record screen file that terminal is stored more and more, the problem of the memory space of a large amount of occupied terminals.The technology Scheme is as follows:
In a first aspect, a kind of delet method for recording screen file is provided, the described method includes:
Record screen open command is received, records the image of screen display;
The operating condition of monitoring terminal during record is shielded;
If not monitoring that the terminal operating is abnormal during record screen, after record screen is terminated, by the record screen of generation File is deleted.
Second aspect, provides a kind of deletion device for recording screen file, and described device includes:
Receiving module records screen open command for receiving, records the image of screen display;
First monitoring modular, for the operating condition of the monitoring terminal during record screen;
Removing module, if for not monitoring that the terminal operating is abnormal during record screen, after record screen is terminated, The record screen file of generation is deleted.
The third aspect provides a kind of terminal, and the terminal includes processor, memory and folding display screen, described to deposit At least one instruction is stored in reservoir, described instruction is loaded by the processor and performed to realize as described in relation to the first aspect The delet method of record screen file.
Fourth aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium Order, described instruction are loaded by processor and are performed to realize the delet method of record screen file as described in relation to the first aspect.
The advantageous effect that technical solution provided by the embodiments of the present application is brought is:
By the operating condition of the monitoring terminal while image of screen display is recorded, if do not supervised during record screen Terminal operating exception is measured, then after record screen is terminated, the record screen file of generation is deleted, since terminal will can be recorded in terminal automatically The invalid record screen file generated when not occurring operation exception during screen is deleted, and deletes, therefore can have manually without user It is more and more to imitate the invalid record screen file that terminal is avoided to be stored, the memory space of a large amount of occupied terminals.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the structure diagram for the terminal 100 that one exemplary embodiment of the application is provided;
Fig. 2 is the flow chart of the delet method for the record screen file that one exemplary embodiment of the application provides;
Fig. 3 A are the flow charts of the delet method of the record screen file of the application another exemplary embodiment offer;
Fig. 3 B are the flow charts for the record screen file delet method by generation that one exemplary embodiment of the application provides;
Fig. 3 C are the schematic diagrames for the deletion prompting that one exemplary embodiment of the application provides;
Fig. 4 A are the flow charts of the delet method for the record screen file that the application further exemplary embodiment provides;
Fig. 4 B are whether the application program for the judgement operation exception that one exemplary embodiment of the application provides is before The flow chart of the application program method of platform operating status;
Fig. 5 is the structure diagram of the deletion device for the record screen file that one exemplary embodiment of the application provides.
Specific embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
In the following description when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different attached drawings represent same or similar Element.Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application Formula.On the contrary, they are only the device consistent with some aspects being described in detail in such as the appended claims, the application and side The example of method.
In the description of the present invention, it is to be understood that term " first ", " second " etc. are only used for description purpose, without It is understood that indicate or imply relative importance.In the description of the present invention, it is necessary to which explanation, provides unless otherwise specific And restriction, term " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected or be detachably connected, Or it is integrally connected;Can be mechanical connection or electrical connection;It can be directly connected, intermediary can also be passed through It is indirectly connected.For the ordinary skill in the art, the tool of above-mentioned term in the present invention can be understood with concrete condition Body meaning.In addition, in the description of the present invention, unless otherwise indicated, " multiple " refer to two or more."and/or" is retouched The incidence relation of affiliated partner is stated, expression may have three kinds of relations, for example, A and/or B, can represent:Individualism A, together When there are A and B, these three situations of individualism B.It is a kind of relation of "or" that character "/", which typicallys represent forward-backward correlation object,.
The invention relates to noun and noun specific explanations it is as follows:
Android operation system:By the behaviour of a kind of freedom and open source code based on Linux that Google of the U.S. produces Make system, be mainly used for mobile equipment.
Application program:It referred to as applies, in Android operation system, an application program generally includes at least one program groups Part.Program assembly is divided into four kinds:Activity (English:Activity) component, service (English:Service) component, content carry Donor (English:Content Provider) component and radio receiver (English:Broadcast Receiver) component.Its In, Activity components are the component being responsible in Android application program with user interaction, it is provided visually for Android application program The user interface of change.One Android application program can include zero to multiple Activity components.
Record screen:Also referred to as film recording or screen recording refers to that gathering entire screen or screen specifies the picture number in region According to coded image data is obtained the technology of video file.
Wherein, it is regional area specified in entire screen that screen, which specifies region,.It is that terminal is write from memory that the screen, which specifies region, Recognize setting or that User Defined is set;For example, screen specify region be entire screen left-half region or The region of the right half part of the entire screen of person.The embodiment of the present application is not limited this.
Record screen file:The video file that display content in terminal-pair screen obtains after being recorded a video.The display content is Interior perhaps screen shown by entire screen specifies the content shown by region.
It should be noted that it is recorded a video in the present embodiment using record screen file as the content shown by the entire screen of terminal-pair It is illustrated exemplified by the video file obtained afterwards.
In correlation technique, after screen is recorded, the record screen file of generation can be stored in record screen file by terminal automatically. In order to allow technical staff's quick positioning terminal operation exception the reason for, during the test, terminal can carry out test process Record screen, and the generation record screen file after test, if terminal off-duty is abnormal during record is shielded, then terminate in test The record screen file that terminal is generated afterwards is invalid for technical staff.If technical staff does not delete invalid record screen in time File, the invalid record screen file that terminal is stored then can be more and more, the memory space of a large amount of occupied terminals.It not yet carries at present The terminal in test is effectively in during screen is recorded according to the operating status of itself for a kind of, is automatically deleted invalid record screen The method of file.
For this purpose, this application provides a kind of delet method, device, terminal and storage medium for recording screen file, in solution State problem present in correlation technique.In the technical solution that the application provides, by while the image of screen display is recorded The operating condition of monitoring terminal if not monitoring terminal operating exception during record screen, after record screen is terminated, will generate Record screen file delete, due to terminal can automatically will terminal record screen during operation exception not occur when generate it is invalid Record screen file is deleted, and is deleted manually without user, therefore can effectively avoid invalid record screen file that terminal stored increasingly It is more, the memory space of a large amount of occupied terminals.
Before the embodiment of the present application is explained, first the application scenarios of the embodiment of the present application are illustrated. Fig. 1 shows the structure diagram for the terminal 100 that one exemplary embodiment of the application is provided.
The terminal 100 is to be equipped with the terminal of record screen application program.The record screen application program is that have the function of answering for record screen Use program.
Optionally, which is system program or third party application.Wherein, third party application It is the application program that the third party in addition to user and operating system makes.
Optionally, other application programs in addition to application program is shielded in record are also equipped in terminal 100, for example, branch Pay program, antivirus applet, the application program with graph and image processing, the application program with word processing function, tool There is application program of media play function etc..
Terminal 100 can be mobile phone, tablet computer, E-book reader, multimedia play equipment, wearable device, knee Mo(u)ld top half pocket computer and desktop computer etc..The record screen process realization that terminal 100 is used for by recording screen application program is following The delet method for the record screen file that each embodiment of the method provides.
Optionally, which includes one or more such as lower component:Processor 110 and memory 120.
Processor 110 can include one or more processing core.Processor 110 utilizes various interfaces and connection Various pieces in entire elevator dispatching equipment, by running or performing the instruction being stored in memory 120, program, code Collection or instruction set and calling are stored in the data in memory 120, perform the various functions of elevator dispatching equipment and processing number According to.Optionally, processor 110 Digital Signal Processing (Digital Signal Processing, DSP) may be employed, scene can Program gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (Central Processing Unit, CPU) and one or more of modem etc. combination.Wherein, the main processing operation systems of CPU System and application program etc.;Modem is used to handle wireless communication.It is understood that above-mentioned modem can not also It is integrated into processor 110, is realized separately through chip piece.
Optionally, realize that following each embodiment of the method provides when processor 110 performs the program instruction in memory 120 Record screen file delet method.
Memory 120 can include random access memory (Random Access Memory, RAM), can also include read-only Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non- transitory computer-readable storage medium).Memory 120 can be used for store instruction, program, generation Code, code set or instruction set.Memory 120 may include storing program area and storage data field, wherein, storing program area can store Be used to implement operating system instruction, at least one function instruction, be used to implement the finger of following each embodiment of the method Order etc.;Storage data field can store data arrived involved in following each embodiment of the method etc..
In order to avoid invalid record screen file that terminal is stored is more and more, the memory space of a large amount of occupied terminals, this Application embodiment provides a kind of delet method, device, terminal and storage medium for recording screen file.In the following, using schematical Embodiment illustrates.
It please refers to Fig.2, the stream of the delet method of file is shielded it illustrates the record that one exemplary embodiment of the application provides Cheng Tu.The present embodiment is illustrated with the delet method of the record screen file applied to implementation environment illustrated in fig. 1.The record screen The delet method of file includes:
Step 201, record screen open command is received, records the image of screen display.
After screen process is recorded including terminal reception record screen open command, since starting record and shielding function, according to default sampling frequency The image that rate records screen display records the process for shielding function until terminating.
Optionally, when terminal detects the first trigger action corresponding to the first default entrance, generation record screen open command, And record screen function is started according to record screen open command.
Wherein, the first pre- entrance is the entrance provided in the main interface of record screen application, alternatively, being that record screen application is corresponding outstanding The entrance that floating window is shown after deployment.First default entrance is for starting the operable control of record screen function.Schematically, The type of one default entrance includes at least one of button, controllable entry, sliding block.The present embodiment is to the first default entrance Position and type do not limit.
First trigger action is to start the first user's operation for presetting the corresponding record screen function of entrance for triggering.Schematically , the first trigger action includes the group of any one or more in clicking operation, slide, pressing operation, long-press operation It closes.
Optionally, the first trigger action further includes other possible realization methods.In a kind of possible realization method, the One trigger action is realized with speech form.For example, user is in the terminal with the corresponding language of the first default entrance of speech form input Sound signal after terminal gets voice signal, carries out the voice signal parsing and obtains voice content, when being deposited in voice content In the keyword that the presupposed information with the first default entrance matches, i.e., terminal determines that the first default entrance is triggered, and opens Dynamic record screen function.
In alternatively possible realization method, the first trigger action is realized in the form of shaking operation, shakes behaviour Work refers to the operation for rocking terminal.For example, user rocks terminal, corresponding, terminal shakes operation according to what is detected, determines It shakes the corresponding first default entrance of operation to be triggered, starts record screen function.Realization of the present embodiment to the first trigger action Mode does not limit.
Terminal gathers screen-picture, which is after record screen function is started according to preset sample frequency It is terminal default setting or that User Defined is set;For example, preset sample frequency is per second for 30 frames.The present embodiment pair The concrete numerical value of sample frequency does not limit.
Step 202, record shield during monitoring terminal operating condition.
Optionally, terminal obtains the interaction data of the input/output end port (input/output, I/O) of display screen, according to Interaction data judges whether the operating status of terminal is abnormality.
Wherein, terminal determines terminal according to the data value of the interaction data to prestore and the correspondence of regime values scope Operating status whether be abnormality.For example, when the corresponding data value of a certain interaction data is not in regime values scope, eventually End then determines that the operating status of the terminal is abnormality.
Wherein, terminal can obtain the interaction data sent to display screen, can also obtain the interaction number of display screen output According to.
Step 203, if not monitoring terminal operating exception during record screen, after record screen is terminated, by generation Record screen file is deleted.
In order to which intelligent terminal is made more to stablize, technical staff just needs to test out as much as possible in the development phase of project Then bug goes to repair, that is to say, that be that terminal operating is different during the test for the effective Lu Luping files of technical staff The record screen file generated when often.Therefore if not monitoring terminal operating exception during record screen, terminating record screen if the terminal Afterwards, the record screen file of generation is deleted.
Optionally, when terminal receives record screen halt instruction, record screen is terminated.
Optionally, when terminal detects the second trigger action corresponding to the second default entrance, grasped according to the second triggering Make generation record screen halt instruction, and terminate record screen.
Wherein, the second default entrance is for terminating the operable control of record screen function.Second trigger action is for touching Hair terminates the second user's operation for presetting the corresponding record screen function of entrance.The associated description of second default entrance can analogy with reference to the The correlative detail of one default entrance, the associated description of the second trigger action can analogy refer to the correlative detail of the first trigger action, Details are not described herein.
In conclusion operation feelings of the embodiment of the present application by the monitoring terminal while image of screen display is recorded If not monitoring terminal operating exception during record screen, after record screen is terminated, the record screen file of generation is deleted for condition, Since terminal can automatically delete the invalid record screen file generated when there is not operation exception during terminal record screen, nothing User is needed to delete manually, therefore the invalid record screen file that terminal can effectively be avoided to be stored is more and more, a large amount of occupied terminals Memory space.
A is please referred to Fig.3, the delet method of the record screen file provided it illustrates the application another exemplary embodiment Flow chart.The present embodiment is illustrated with the delet method of the record screen file applied to implementation environment illustrated in fig. 1.The record The delet method of screen file includes:
Step 301, record screen open command is received, records the image of screen display.
Step 302, the monitoring abnormal log file during record screen.
Terminal during operation, by file monitor monitor in real time the establishment of corresponding abnormal log file, modification, The operations such as mobile.
Step 303, if monitoring terminal operating exception during record screen, after record screen is terminated, bound targets are different Chang Zhi and the record screen file of generation, and prompt terminal operation exception.
It is added into due to whenever terminal operating exception, can generate a abnormal log in abnormal log file, therefore When monitoring the update of abnormal log file, then terminal operating exception is judged.
Record screen file and target abnormal log can be effectively combined for the ease of technical staff, is analyzed abnormal, when After terminal judges terminal operating exception, the target abnormal log being added into recently in abnormal log file can be obtained, and is being terminated After record screen, the target abnormal log and the record screen file of generation, and prompt terminal operation exception are bound.
Step 304, if not monitoring terminal operating exception during record screen, after record screen is terminated, by generation Record screen file is deleted.
If the update of abnormal log file is not detected in terminal during record is shielded, terminal off-duty exception is judged.
It should be noted that step 301 is similar with step 201 in the present embodiment, step 301 specific descriptions can refer to step 201, details are not described herein.
In conclusion operation feelings of the embodiment of the present application by the monitoring terminal while image of screen display is recorded If not monitoring terminal operating exception during record screen, after record screen is terminated, the record screen file of generation is deleted for condition, Since terminal can automatically delete the invalid record screen file generated when there is not operation exception during terminal record screen, nothing User is needed to delete manually, therefore the invalid record screen file that terminal can effectively be avoided to be stored is more and more, a large amount of occupied terminals Memory space.
In the present embodiment, abnormal log is added into due to whenever terminal operating exception, can generate a abnormal log In file, therefore when terminal monitoring to abnormal log file updates, you can judge that terminal operating is abnormal.
In a kind of mode in the cards, Fig. 3 B show that one exemplary embodiment of the application provides by generation The flow chart of record screen file delet method.B is please referred to Fig.3, step 304 can be replaced by step 304a to step 304b.
Step 304a, if not monitoring terminal operating exception during record screen, after record screen is terminated, display is used for The deletion prompting of the record screen file of generation is deleted, and starts timer, deletion prompting is included for the generation that unerases The cancellation control of record screen file.
In the case where one kind is special, technical staff needs to obtain the record screen file generated during terminal off-duty exception, is When avoiding terminal due to not monitoring terminal operating exception during record screen, record screen file is deleted by mistake, in terminal terminates to record After screen, it can show to delete the deletion prompting of the record screen file of generation, to prompt the user whether that screen is recorded in the deletion for cancelling terminal The operation of file.
Fig. 3 C are the schematic diagrames for the deletion prompting that one exemplary embodiment of the application provides.As shown in Figure 3 C, terminal is shown Show deletion prompting 31, show that text information 32 " will delete record screen file 01, whether PLSCONFM, which is cancelled, is deleted in prompting 31 is deleted Division operation!" to prompt the title of record screen file that user will delete and the display suppression control 33 in prompting 31 is deleted, After user, which triggers, cancels control 33, terminal, which unerases, records screen file 01.
Step 304b after timer reaches preset duration, is not triggered if cancelling control, by the record screen text of generation Part is deleted.
After timer reaches preset duration, it is triggered if cancelling control, cancels and delete the record screen file of generation Operation.
Optionally, referring also to such as Fig. 3 C, delete shown in prompting 31 duration and preset duration that timer recorded it Between difference 34, with prompt user trigger cancel the remaining effective time of control.
It should be noted that the specific duration of preset duration can be 3s, 5s, 10s etc., the set-up mode of preset duration can With can also be by artificially setting by systemic presupposition, the present embodiment do the specific market of preset duration and set-up mode any It limits.
In the present embodiment, when not monitoring terminal operating exception during record screen in order to avoid terminal, record screen is deleted by mistake File after terminal terminates record screen, can show to delete the deletion prompting of the record screen file of generation, to prompt the user whether to take The operation of the deletion record screen file of fpc terminal.
A is please referred to Fig.4, the delet method of file is shielded it illustrates the record that the application further exemplary embodiment provides Flow chart.The present embodiment is illustrated with the delet method of the record screen file applied to implementation environment illustrated in fig. 1.The record The delet method of screen file includes:
Step 401, record screen open command is received, records the image of screen display.
Step 402, the monitoring abnormal log file during record screen.
Step 403, when monitoring the update of abnormal log file, the target being added into recently in abnormal log file is obtained Abnormal log.
It is added into due to whenever terminal operating exception, can generate a abnormal log in abnormal log file, therefore The abnormal log that the abnormal log being added into recently in abnormal log file generates when being the nearest operation exception of terminal.At one In illustrative example, be stored in abnormal log file " 38 divide during 22 days 15 November in 2017 " generation abnormal log 01, The abnormal log 02 of " 02 divides during 22 days 12 November in 2017 " generation and the exception of " 04 divides during 12 days 03 November in 2017 " generation Daily record 03, the target abnormal log that abnormal log 01 is determined as being added into recently in abnormal log file by terminal.
Step 404, the exception call stack information recorded in target abnormal log is obtained, determines the type of operation exception.
Mark, Exception Type, the exception of the abnormal module for causing terminal operating exception have been recorded in exception call stack information Generate the information such as moment.After terminal obtains the exception call stack information in target abnormal log file, according to exception call stack The Exception Type recorded in information determines the type of terminal operating exception.
Wherein, the type of terminal operating exception includes kernel exception, system program and the application exception of terminal, system Service at least one of exception and Network Abnormal.
System file relevant with operating system and detection are at least stored with by taking kernel exception as an example, in system kernel The driving file of external equipment, normal read-write external equipment, based on kernel exception may caused by mobile phone problem have system reboot, Systemic breakdown, abnormal shutdown etc..
The file being required to when the os starting of terminal or operation in calling or read-write system kernel, if in system File in core occurs damaging or abnormal, operating system then can not normal call this document, cause terminal in the record screen text of recording Occur abnormal during part, for example the operating system of terminal system reboot occurs or system occurs in the operating system of terminal It paralyses or terminal is because phenomena such as abnormal shutdown occurs in the file corruption in system kernel.
Step 405, whether the application program for judging operation exception is the application program in background operation state.
Since during screen is recorded, the corresponding picture of application program in background operation state can't be shown in On the screen of terminal, that is to say, that when the application program in background operation state occurs abnormal, be not in record screen file Application program picture shown when occurring abnormal, therefore when terminal determines that the type of operation exception is application exception When, it is also necessary to whether the application program for judging operation exception is the application program in background operation state.
Step 406, if the application program of operation exception is the application program in background operation state, terminating to record After screen, the record screen file of generation is deleted.
If the application program of operation exception is the application program in background operation state, illustrate that the terminal does not transport this Picture shown by the application program of row exception is entered into screen file, and after record screen is terminated, terminal is literary by the record screen of generation Part is deleted.
It should be noted that in the present embodiment step 401 to step 402 and step 301 to step 302 similar, step 401 Step 301 is can refer to step 302 to step 402 specific descriptions, and details are not described herein.
In conclusion operation feelings of the embodiment of the present application by the monitoring terminal while image of screen display is recorded If not monitoring terminal operating exception during record screen, after record screen is terminated, the record screen file of generation is deleted for condition, Since terminal can automatically delete the invalid record screen file generated when there is not operation exception during terminal record screen, nothing User is needed to delete manually, therefore the invalid record screen file that terminal can effectively be avoided to be stored is more and more, a large amount of occupied terminals Memory space.
In the present embodiment, after terminal gets the exception call stack information in target abnormal log file, according to abnormal tune The type of terminal operating exception is determined with the Exception Type recorded in stack information.
In a kind of mode in the cards, B is please referred to Fig.4, it illustrates one exemplary embodiments of the application to provide Judgement operation exception application program whether be the application program method in front stage operation state flow chart.
Step 407, front stage operation activity is monitored.
Optionally, after terminal receives record screen open command, front stage operation is monitored by the way of active poll Activity。
Step 408, when front stage operation activity generates application operation event, the corresponding application of application operation event will be generated Program is determined to be in the application program of front stage operation state.
Terminal determines whether generation application operation event according to front stage operation Activity, will generate application operation event Application program be determined to be in the application program of front stage operation state, so as to monitor the application journey in front stage operation state Sequence.Wherein, Activity is a kind of component for including user interface, the interaction being used to implement between user, each using journey Sequence can include multiple Activity, and each Activity corresponds to a kind of user interface.Front stage operation Activity is to be located at most The corresponding component of user interface on upper strata.The user interface of top layer is the use that user sees on the screen in using terminal Family interface.
It is new whenever starting one by operating system for exemplified by Android operation system, Activity can be stacked Activity, new Activity will be covered on former Activity;Started using the storage of Activity stacks Activity, Activity stack are a kind of data structures that last in, first out, in default situations, often start an Activity, The Activity will the stacking in Activity stacks, and in stack top location, the Activity in stack top location is foreground Run Activity.When front stage operation Activity changes, the Activity of stack top location is in Activity stacks Also can change.
It should be noted that except new Activity can be located at stack top, the Activity in a Geju City is switched to foreground During operation, which can also re-move stack top.
B still referring to FIG. 4, when it is application exception that terminal, which determines the type of operation exception, step 405 can be replaced by Step 405a to step 405b.
Step 405a, whether the application program for judging operation exception is to generate the corresponding application program of application operation event.
Step 405b, if the application program of operation exception is not the corresponding application program of generation application operation event, The application program of operation exception is determined to be in the application program of background operation state.
Terminal obtains the mark for the application program for causing terminal operating exception from exception call stack information, this is applied journey The mark of the mark of sequence application program corresponding with generating application operation event is matched, if the mark of two application programs Identical, then the application program for illustrating operation exception is to generate the corresponding application program of application operation event.Due to generating application The corresponding application program of run case is the application program in front stage operation state, therefore works as the application program of operation exception not During application program corresponding for generation application operation event, terminal is that can determine that the application program of operation exception to be transported in backstage The application program of row state.
In the present embodiment, during screen is recorded, the corresponding picture of application program in background operation state can't It is shown on the screen of terminal, therefore when it is application exception that terminal, which determines the type of operation exception, it is also necessary to judge fortune Whether the abnormal application program of row is the application program in front stage operation state, if the application program of operation exception be in Then after record screen is terminated, the record screen file of generation is deleted for the application program of background operation state.
Following is the application device embodiment, can be used for performing the application embodiment of the method.It is real for the application device The details not disclosed in example is applied, refer to the application embodiment of the method.
Fig. 5 is refer to, it illustrates the knots for deleting device for the record screen file that one exemplary embodiment of the application provides Structure schematic diagram.The deletion device of the record screen file can be by special hardware circuit, alternatively, software and hardware is implemented in combination with as figure Terminal in 1 all or part of, the deletion device of the record screen file includes:Receiving module 501, the first monitoring modular 502 With removing module 503.
Receiving module 501 records screen open command for receiving, records the image of screen display;
First monitoring modular 502, for the operating condition of the monitoring terminal during record screen;
Removing module 503, if for not monitoring terminal operating exception during record screen, after record screen is terminated, The record screen file of generation is deleted.
In the alternative embodiment provided based on embodiment illustrated in fig. 5, which is additionally operable to Monitoring abnormal log file during record screen;
The device further includes:
Determination module, for when monitoring the update of abnormal log file, judging that terminal operating is abnormal.
In the alternative embodiment provided based on embodiment illustrated in fig. 5, when monitoring the update of abnormal log file, The device further includes:First acquisition module.
First acquisition module, for obtaining the target abnormal log being added into recently in abnormal log file;
The device further includes:Binding module.
Binding module if for monitoring terminal operating exception during record screen, after record screen is terminated, binds mesh Mark abnormal log and the record screen file of generation, and prompt terminal operation exception.
In the alternative embodiment provided based on embodiment illustrated in fig. 5, which further includes:Second acquisition module and Parsing module.
Second acquisition module, for when monitoring the update of abnormal log file, acquisition to be added into abnormal log text recently Target abnormal log in part;
Parsing module for obtaining the exception call stack information recorded in target abnormal log, determines the class of operation exception Type, the type of operation exception are included in system program and application exception, system service exception and Network Abnormal at least It is a kind of;
The device further includes:Determination module and removing module.
Determination module, for when the type of operation exception is application exception, after record screen is terminated, judging that operation is different Whether normal application program is the application program in front stage operation state;
Removing module, if being the application program in front stage operation state for the application program of operation exception, After terminating record screen, the record screen file of generation is deleted.
In the alternative embodiment provided based on embodiment illustrated in fig. 5, which further includes:Second monitoring modular, Second monitoring modular and determining module.
Second monitoring modular, for monitoring front stage operation activity;
Determining module, for when front stage operation activity generates application operation event, application operation event will be generated and corresponded to Application program be determined to be in the application program of front stage operation state;
The determination module, including:Identifying unit and determination unit.
Identifying unit, for judging whether the application program of operation exception is that generation application operation event is corresponding using journey Sequence;
Determination unit, if corresponding using journey not to generate application operation event for the application program of operation exception The application program of operation exception is then determined to be in the application program of background operation state by sequence.
In the alternative embodiment provided based on embodiment illustrated in fig. 5, which further includes:Display is single Member and deletion unit.
Display unit for showing to delete the deletion prompting of the record screen file of generation, and starts timer, and deletion carries Show the cancellation control of the record screen file for the generation that includes unerasing;
Unit is deleted, for after timer reaches preset duration, not being triggered if cancelling control, by the record of generation Shield file to delete.
Correlative detail can be combined referring to figs. 2 to embodiment of the method shown in Fig. 4.Wherein, receiving module 501 is additionally operable to realize Any other implicit or disclosed and relevant function of receiving step in above method embodiment;First monitoring modular 502 is also used It is any other implicit or disclosed with the relevant function of monitoring step in above method embodiment in realizing;Removing module 503 is also It is used to implement any other implicit or disclosed and relevant function of monitoring step in above method embodiment.
It should be noted that the device that above-described embodiment provides, when realizing its function, only with above-mentioned each function module Division for example, in practical application, can be completed as needed and by above-mentioned function distribution by different function modules, The internal structure of equipment is divided into different function modules, to complete all or part of function described above.In addition, The apparatus and method embodiment that above-described embodiment provides belongs to same design, and specific implementation process refers to embodiment of the method, this In repeat no more.
The application also provides a kind of computer-readable medium, is stored thereon with program instruction, and the program instruction is by processor The delet method for the record screen file that above-mentioned each embodiment of the method provides is realized during execution.
Present invention also provides it is a kind of comprising instruction computer program product, when run on a computer so that Computer performs the delet method of the record screen file described in above-mentioned each embodiment of the method.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that it is completely or partially walked in the document handling method of realization above-described embodiment Suddenly it can be completed by hardware, relevant hardware can also be instructed to complete by program, the program can be stored in In a kind of computer readable storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..More than Described is only the preferred embodiment of the application, all within spirit herein and principle not to limit the application, is made Any modification, equivalent substitution, improvement and etc., should be included within the protection domain of the application.

Claims (10)

1. a kind of delet method for recording screen file, which is characterized in that the described method includes:
Record screen open command is received, records the image of screen display;
The operating condition of monitoring terminal during record is shielded;
If not monitoring that the terminal operating is abnormal during record screen, after record screen is terminated, by the record screen file of generation It deletes.
2. according to the method described in claim 1, it is characterized in that, it is described record shield during monitoring terminal operating condition, Including:
The monitoring abnormal log file during record screen;
The method further includes:
When monitoring the abnormal log file update, judge that the terminal operating is abnormal.
It is 3. described according to the method described in claim 2, it is characterized in that, when monitoring abnormal log file update Method further includes:
Obtain the target abnormal log being added into recently in the abnormal log file;
If monitoring that the terminal operating is abnormal during record screen, after record screen is terminated, the method further includes:
Bind the record screen file of the target abnormal log and the generation, and prompt terminal operation exception.
It is 4. described according to the method described in claim 2, it is characterized in that, when monitoring abnormal log file update Method further includes:
Obtain the target abnormal log being added into recently in the abnormal log file;
The exception call stack information recorded in the target abnormal log is obtained, determines the type of the operation exception, the fortune The abnormal type of row includes at least one of system program and application exception, system service exception and Network Abnormal;
When the type of the operation exception is application exception, described after record screen is terminated, the method further includes:
Whether the application program for judging operation exception is the application program in background operation state;
It, will after record screen is terminated if the application program of the operation exception is the application program in background operation state The record screen file of the generation is deleted.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
Monitor front stage operation activity;
When front stage operation activity generates application operation event, by the corresponding application program of the generation application operation event It is determined to be in the application program of front stage operation state;
Whether the application program for judging operation exception is the application program in background operation state, including:
Whether the application program for judging the operation exception is the corresponding application program of the generation application operation event;
If the application program of the operation exception is not the corresponding application program of the generation application operation event, by described in The application program of operation exception is determined to be in the application program of background operation state.
6. according to the method described in claim 1, it is characterized in that, the record screen file by generation is deleted, including:
The deletion for showing to delete the record screen file of the generation is prompted, and starts timer, and the deletion prompting includes For the cancellation control of the record screen file for the generation that unerases;
After the timer reaches preset duration, if the cancellation control is not triggered, by the record screen text of the generation Part is deleted.
7. a kind of deletion device for recording screen file, which is characterized in that described device includes:
Receiving module records screen open command for receiving, records the image of screen display;
First monitoring modular, for the operating condition of the monitoring terminal during record screen;
Removing module, if for not monitoring that the terminal operating is abnormal during record screen, after record screen is terminated, by life Into record screen file delete.
8. device according to claim 7, which is characterized in that
First monitoring modular is additionally operable to the monitoring abnormal log file during record screen;
Described device further includes:
Determination module, for when monitoring the abnormal log file update, judging that the terminal operating is abnormal.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and folding display screen, in the memory At least one instruction is stored with, described instruction is loaded by the processor and performed to realize as described in claim 1 to 6 is any Record screen file delet method.
10. a kind of computer readable storage medium, which is characterized in that at least one instruction, institute are stored in the storage medium State the delet method for the record screen file that instruction is loaded by processor and performed to realize as described in claim 1 to 6 is any.
CN201711341487.XA 2017-12-14 2017-12-14 Delet method, device, terminal and the storage medium of record screen file Pending CN108090173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711341487.XA CN108090173A (en) 2017-12-14 2017-12-14 Delet method, device, terminal and the storage medium of record screen file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711341487.XA CN108090173A (en) 2017-12-14 2017-12-14 Delet method, device, terminal and the storage medium of record screen file

Publications (1)

Publication Number Publication Date
CN108090173A true CN108090173A (en) 2018-05-29

Family

ID=62176349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711341487.XA Pending CN108090173A (en) 2017-12-14 2017-12-14 Delet method, device, terminal and the storage medium of record screen file

Country Status (1)

Country Link
CN (1) CN108090173A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462695A (en) * 2018-11-16 2019-03-12 努比亚技术有限公司 Terminal record screen method, apparatus, mobile terminal and readable storage medium storing program for executing
CN111866576A (en) * 2020-06-28 2020-10-30 泰康保险集团股份有限公司 On-line problem processing system and method
CN112230830A (en) * 2020-09-01 2021-01-15 盐城华旭光电技术有限公司 Screen capturing device and screen capturing method of touch screen equipment
CN112256474A (en) * 2020-09-11 2021-01-22 安徽中科新辰技术有限公司 Double-computer hot backup system for real-time software synchronization
CN115333844A (en) * 2022-08-17 2022-11-11 安天科技集团股份有限公司 Method and device for monitoring virus behavior, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197990A (en) * 2006-12-13 2008-06-11 四川川大智胜软件股份有限公司 Screen vision recording method irrelated with hardware and operating system platform
US20090077194A1 (en) * 2007-09-18 2009-03-19 Fujitsu Limited Data input terminal, method, and computer readable storage medium storing program thereof
CN105072401A (en) * 2015-08-07 2015-11-18 中国电子科技集团公司第三十二研究所 Extensible multi-seat screen recording management system and method
CN105183654A (en) * 2015-09-18 2015-12-23 厦门美图移动科技有限公司 Android automatic testing screen recording mechanism and system disengaged from PC
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
CN106534562A (en) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 File deletion method and apparatus
CN107180204A (en) * 2017-07-04 2017-09-19 惠州Tcl移动通信有限公司 A kind of method, storage device and mobile terminal for preventing information stolen
CN107402835A (en) * 2017-07-25 2017-11-28 广东欧珀移动通信有限公司 Abnormality eliminating method, device and the storage medium and mobile terminal of application program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197990A (en) * 2006-12-13 2008-06-11 四川川大智胜软件股份有限公司 Screen vision recording method irrelated with hardware and operating system platform
US20090077194A1 (en) * 2007-09-18 2009-03-19 Fujitsu Limited Data input terminal, method, and computer readable storage medium storing program thereof
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
CN105072401A (en) * 2015-08-07 2015-11-18 中国电子科技集团公司第三十二研究所 Extensible multi-seat screen recording management system and method
CN105183654A (en) * 2015-09-18 2015-12-23 厦门美图移动科技有限公司 Android automatic testing screen recording mechanism and system disengaged from PC
CN106534562A (en) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 File deletion method and apparatus
CN107180204A (en) * 2017-07-04 2017-09-19 惠州Tcl移动通信有限公司 A kind of method, storage device and mobile terminal for preventing information stolen
CN107402835A (en) * 2017-07-25 2017-11-28 广东欧珀移动通信有限公司 Abnormality eliminating method, device and the storage medium and mobile terminal of application program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462695A (en) * 2018-11-16 2019-03-12 努比亚技术有限公司 Terminal record screen method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109462695B (en) * 2018-11-16 2021-12-17 努比亚技术有限公司 Terminal screen recording method and device, mobile terminal and readable storage medium
CN111866576A (en) * 2020-06-28 2020-10-30 泰康保险集团股份有限公司 On-line problem processing system and method
CN112230830A (en) * 2020-09-01 2021-01-15 盐城华旭光电技术有限公司 Screen capturing device and screen capturing method of touch screen equipment
CN112256474A (en) * 2020-09-11 2021-01-22 安徽中科新辰技术有限公司 Double-computer hot backup system for real-time software synchronization
CN112256474B (en) * 2020-09-11 2022-12-13 安徽中科新辰技术有限公司 Double-computer hot backup system for real-time software synchronization
CN115333844A (en) * 2022-08-17 2022-11-11 安天科技集团股份有限公司 Method and device for monitoring virus behavior, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108090173A (en) Delet method, device, terminal and the storage medium of record screen file
CN103927198B (en) A kind of software method for cleaning and device
JP7138804B2 (en) INTERFACE DISPLAY METHOD AND DEVICE, TERMINAL AND COMPUTER PROGRAM
CN102799383B (en) Screen sectional drawing method and screen sectional drawing device for mobile terminals
CN111858522B (en) File sharing method, device, terminal and storage medium
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN106156344B (en) Page configuration method and device
CN107122289A (en) The method of system regression test, apparatus and system
CN108255719B (en) Application program dump file acquisition method and device and electronic equipment
CN106484593A (en) Log processing method, device and electronic equipment
CN108170844A (en) Storage method, device, terminal and the storage medium of record screen file
CN108073346A (en) A kind of record screen method, terminal and computer readable storage medium
CN102902515A (en) Software window processing method and device
CN107066188A (en) A kind of method and terminal for sending screenshot picture
CN104820683A (en) Terminal
CN107480001A (en) System recovery method and device
CN106126272A (en) File system discharging method and device
CN106790926A (en) A kind of contact management method and terminal
CN104834687A (en) Picture display method
CN107977436A (en) Filename generation method, device, terminal and the storage medium of record screen file
CN107846496A (en) A kind of method of calling record, terminal and computer-readable recording medium
CN103198252B (en) Device and method for the control information for managing the application program in portable terminal
CN110515814A (en) Full dose log collecting method, device and the mobile terminal of iOS client
CN104899059B (en) Operating system update method and device
CN106682467A (en) Hiding method for software, device and intelligent terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180529