CN109040419A - Record screen method, apparatus, mobile terminal and storage medium - Google Patents

Record screen method, apparatus, mobile terminal and storage medium Download PDF

Info

Publication number
CN109040419A
CN109040419A CN201810597253.XA CN201810597253A CN109040419A CN 109040419 A CN109040419 A CN 109040419A CN 201810597253 A CN201810597253 A CN 201810597253A CN 109040419 A CN109040419 A CN 109040419A
Authority
CN
China
Prior art keywords
layer
current interface
layers
screenshotss
target
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
Application number
CN201810597253.XA
Other languages
Chinese (zh)
Other versions
CN109040419B (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810597253.XA priority Critical patent/CN109040419B/en
Publication of CN109040419A publication Critical patent/CN109040419A/en
Application granted granted Critical
Publication of CN109040419B publication Critical patent/CN109040419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Storage Device Security (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the present application discloses a kind of record screen method, apparatus, mobile terminal and storage medium; this method comprises: during recording screen; when detecting that current interface includes the target figure layer for needing to carry out safeguard protection, it is set as at least partly figure layer in the All Layers of the current interface including the target figure layer to forbid the figure layer of screenshotss;Then the current interface is recorded again, to obtain the recorded file of the corresponding not content including the target figure layer of current interface.This method, to needing the interface for carrying out safeguard protection to protect, can prevent that interface content to be protected is needed to be recorded, promote the safety of record screen during user records and shields.

Description

Record screen method, apparatus, mobile terminal and storage medium
Technical field
This application involves technical field of mobile terminals, more particularly, to a kind of record screen method, apparatus, mobile terminal and Storage medium.
Background technique
Mobile terminal, such as mobile phone have become one of most common consumer electronic product in people's daily life.With The increase of demand of the people to mobile terminal, mobile terminal realize function it is also more and more.Wherein, recording screen picture is One more important function of mobile terminal.Recording screen picture is to record the operation on mobile terminal, is usually come It says, multiple interface contents in recording process can be recorded by recording screen picture.But it is recorded to interface content When, privacy content, secure content of user etc. may be recorded, cause the image file recorded when playing, cause user The leakage such as privacy content, secure content.
Summary of the invention
In view of the above problems, the embodiment of the present application proposes a kind of record screen method, apparatus, mobile terminal and storage medium, Privacy of user can be protected while recording screen, improve safety.
In a first aspect, the embodiment of the present application provides a kind of record screen method, which comprises during recording screen, inspection It will include institute in the All Layers of the current interface when to measure current interface include the target figure layer for needing to carry out safeguard protection At least partly figure layer for stating target figure layer is set as forbidding the figure layer of screenshotss;The current interface is recorded, to be worked as The recorded file of the corresponding not content including the target figure layer of front interface.
Second aspect, the embodiment of the present application provide a kind of record screen device, described device include: figure layer setup module and Record execution module, wherein the figure layer setup module is for detecting that current interface includes the mesh for needing to carry out safeguard protection It will include that at least partly figure layer of target figure layer is set as forbidding screenshotss in the All Layers of the current interface when marking on a map layer Figure layer;The recording execution module does not include institute so that it is corresponding to obtain current interface for recording to the current interface State the recorded file of the content of target figure layer.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including touch screen, memory and processor, The touch screen and the memory are couple to the processor, the memory store instruction, when described instruction is by described The processor executes the record screen method that above-mentioned first aspect provides when reason device execution.
Fourth aspect, the embodiment of the present application also provides a kind of computers of program code that can be performed with processor can Read storage medium, which is characterized in that said program code makes the processor execute the record screen side that above-mentioned first aspect provides Method.
Compared with the existing technology, record screen method, apparatus, mobile terminal and storage medium provided by the present application, by recording During screen, when detecting that current interface includes the target figure layer for needing to carry out safeguard protection, by the All Layers of current interface In include the target figure layer at least partly figure layer be set as forbidding the figure layer of screenshotss, then current interface is recorded again, To obtain the recorded file of the corresponding not content including the target figure layer of current interface.So that during recording screen, when When including the figure layer protected in front interface, can not the content of target figure layer to current interface record, realization Protection to the content of current interface makes the content for not showing target figure layer in current interface in the file recorded, protects user The safety of information.
These aspects or other aspects of the application can more straightforward in the following description.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows a kind of interface schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 2 shows another interface schematic diagrams of mobile terminal provided by the embodiments of the present application;
Fig. 3 shows the flow chart for the record screen method that a kind of embodiment of the application proposes;
Fig. 4 shows the flow chart of the record screen method of the application another kind embodiment proposition;
Fig. 5 shows another interface schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 6 shows the flow chart of step S310 in the record screen method of another embodiment of the application proposition;
Fig. 7 shows the structural block diagram of the record screen device of the embodiment of the present application proposition;
Fig. 8 shows a kind of structural block diagram of mobile terminal provided by the embodiments of the present application;
Fig. 9 shows the mobile terminal for executing the record screen method according to the embodiment of the present application of the embodiment of the present application Block diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Currently, when needing to record the operation on mobile terminal, it will usually use the function for recording screen picture Energy.Recording screen picture is what the screenshotss technology based on mobile terminal carried out, and recording screen picture can be regarded as dynamic screenshotss Process, i.e., video file is generated according to the screenshot of multiframe sequentially in time.
In the existing technology for recording screen picture, has part figure layer and be prohibited record screen, be recorded in the figure layer Recorded file when being shown (broadcasting), the corresponding region of the figure layer is black region, that is, is not present in the image recorded out The content of the figure layer.
Wherein, the realization principle of the above-mentioned figure layer for being prohibited record screen is the figure layer with Secure (safety) attribute, i.e., should The FLAG (mark) of the corresponding window of figure layer is FLAG_SECURE.By setting FLAG_ for the FALG of the window of figure layer SECURE can be such that the figure layer forbids by screenshotss.
The effect of above-mentioned FLAG_SECURE are as follows: if being provided with the mark, show that equipment has the video output of safety And it can show safe interface, it can also show shielded buffer area.If this not set mark, shows equipment Video output that may be unsafe, user may see a region on the screen, and the region be not secure interface or The content of protected buffer area.
Wherein, secure interface is in for preventing application program from appearing in screenshot capture or checking on non-security display Now to the content in these interfaces.Shielded buffer area is used for similar purpose by security video decoder.In mobile terminal Application program the window with safety surface is created by specified FLAG_SECURE window mark.
The effect that above-mentioned part figure layer is shown in the file recorded out is black, is for information security, by it It is set as with Secure attribute.But the Secure attribute of figure layer is that application developers define, not all application Developer can be arranged to the interface protected band Secure attribute.For example, the figure layer of safe input method is to have Secure attribute, it will recognise that Password Input space when interface for password input carries out Password Input and pop up safe input Method, safe input method have Secure attribute, so the effect shown in the file of record screen is the keyboard layout of safe input method Layer be black region, but Password Input frame in or can all show or each character show after hide again, this will lead to The leakage of the encrypted message of user.
The interface schematic diagram of interface for password input, Password Input when showing record screen please refer to Fig. 1 and Fig. 2, Fig. 1 Interface includes the figure layer A1 and safe input method figure layer A2 in Password Input region, and Fig. 2 shows in the prior art in Fig. 1 The interface schematic diagram of the bandwagon effect for the screen recording image that interface is recorded, the A1 in Fig. 2 is corresponding with the A1 in Fig. 1, in Fig. 2 A2 is corresponding with the A2 in Fig. 1.As can be seen that safe input method figure layer A2 is due to having Secure attribute, safe input method Figure layer A2 will not be by screenshotss into recording image, and safe input method figure layer A2 can be shown with a color region, and password is defeated Enter the figure layer A1 in region due to without Secure attribute, then can by screenshotss to recording in image, i.e., with the region the A1 phase in Fig. 1 Together.
Therefore, although in the technology of current recording screen picture, although certain figure layers can be arranged by having application vendor With Secure attribute, to prevent it from by screenshotss, but since most of application vendors will not be to needing interface to be protected to be arranged Secure attribute will lead to the leakage when document presentation is shielded in record such as privacy information or security information of user, bring damage to user It loses.
In view of the above-mentioned problems, inventor is by studying for a long time and proposing record screen side provided by the embodiments of the present application Method, device, mobile terminal and storage medium are detecting interface Zhong Bao by detecting to the interface during record screen When including the figure layer for needing to carry out safeguard protection, then it is set as the target figure layer in the All Layers of current interface to forbid screenshotss Figure layer prevents the interface for the figure layer protected from preventing privacy information or security information of user etc. from revealing by screenshotss. Wherein, record screen method is described in detail in subsequent embodiment.
In one embodiment, referring to Fig. 3, the process that Fig. 3 shows record screen method provided by the embodiments of the present application is shown It is intended to.The record screen method is detecting that interface includes needing to carry out safety by detecting to the interface during record screen When the figure layer of protection, then be set as the target figure layer in the All Layers of current interface to forbid the figure layer of screenshotss, make to need into The interface of the figure layer of row protection by screenshotss, cannot prevent privacy information or security information of user etc. from revealing.Specifically implementing In example, the record screen method is applied to record screen device 200 as shown in Figure 7 and the movement configured with the record screen device 200 Terminal (Fig. 8).It will illustrate the detailed process of the present embodiment by taking mobile terminal as an example below, it will of course be understood that, this implementation Mobile terminal applied by example can be smart phone, tablet computer, wearable electronic equipment etc., not do specific limit herein It is fixed.It will be explained in detail below for process shown in Fig. 3, above-mentioned record screen method specifically may include following step It is rapid:
Step S110: during recording screen, when detecting that current interface includes the target figure layer for needing to carry out safeguard protection, It is set as at least partly figure layer in the All Layers of the current interface including the target figure layer to forbid the figure layer of screenshotss.
In the embodiment of the present application, during recording screen picture, the current interface shown to it carries out mobile terminal Detection, it is specific to detect whether current interface includes the target figure layer for needing to carry out safeguard protection.Wherein, it needs to carry out safeguard protection Interface in target figure layer can be the information such as the privacy information for being related to user, security information interface figure layer, such as it is close The figure layer of user information involved in the interfaces such as code login interface, account set interface, account register interface.Specific detection can be with It whether include needing to carry out in the current interface shown according to the determining mobile terminal of the feature of figure layer, attribute, content etc. in interface The target figure layer of protection.
Further, mobile terminal can be when the interface of its display changes, such as from the one of some application program When a interface changes to another interface, in another example changing to the interface of another application program from the interface of some application program When, then in such as display interface when being particularly shown content and changing, whether detect in current interface includes being pacified The target figure layer of full guard.All interfaces during recording screen picture are detected to realize, with detection record screen Whether each interface in the process includes the target figure layer for needing to carry out safeguard protection.
It is thus possible to obtain in current interface whether include need to carry out safeguard protection target figure layer detection knot Fruit, so as to the subsequent processing for determining the need for carrying out the figure layer of current interface safeguard protection according to testing result.
It whether is including after the target figure layer for needing to carry out safeguard protection detects, if detecting to work as to current interface Front interface includes the target figure layer for needing to carry out safeguard protection, then carries out safeguard protection to the figure layer of current interface.Specifically to working as The figure layer of front interface carries out safeguard protection, and at least partly figure layer in the All Layers of current interface including target figure layer is set It is set to the figure layer for forbidding screenshotss.
It is understood that target figure layer, which can be, to be worked as there may be a figure layer or multiple figure layers in current interface Need to carry out the figure layer of the content of safeguard protection involved in the All Layers of front interface.Therefore, the institute of current interface can be read There is figure layer, be set as at least partly figure layer in the All Layers of current interface including target figure layer to forbid the figure layer of screenshotss, To make target figure layer can not be by screenshotss, i.e., there is no the figure layers in subsequent file corresponding with current interface being recorded Content show the content of the figure layer can not in recorded file.Therefore it realizes and safeguard protection is carried out to the figure layer, i.e., to current The safeguard protection that interface carries out.
If detecting current interface not includes the target figure layer for needing to carry out safeguard protection, do not need to current interface Figure layer carry out safeguard protection processing, i.e., do not execute in the All Layers to current interface include target figure layer at least partly Figure layer is set as forbidding the movement of the figure layer of screenshotss, the operation of record screen can be directly executed, so that the All Layers of current interface Content be all recorded in recorded file.
It in the embodiment of the present application, will include at least partly figure layer setting of target figure layer in the All Layers of current interface To forbid the figure layer of screenshotss can be, set target figure layer to forbid the figure layer of screenshotss.It is of course also possible to by current interface Target figure layer and other figure layers in addition to other figure layers are set as forbidding the figure layer of screenshotss together in All Layers.
It as a kind of mode, sets target figure layer to forbid the figure layer of screenshotss, can be the corresponding window of target figure layer The traffic sign placement of mouth is safety sign, and target figure layer be arranged can not by the FLAG of the corresponding window of target figure layer by screenshotss For FLAG_SECURE.For example, can pass through
getWindow().setFlags(LayoutParams.FLAG_SECURE,LayoutParams.FLAG_ SECURE), or
GetWindow () .addFlags (WindowManager.LayoutParams.FLAG_SECURE), or
GetWindow () .setFlags (WindowManager.LayoutParams.FLAG_SECURE, 0), realizing will Target figure layer is set as forbidding the figure layer of screenshotss.
Alternatively, it sets the target figure layer of current interface to that the figure layer of screenshotss is forbidden to be also possible to cut Shield interface read figure layer in, the target figure layer in current interface replaces with pre-stored default figure layer, make screenshotss interface without Method reads the content of the target figure layer, can only read the content of default figure layer, so that there is no current in the file recorded The content of the target figure layer at interface.
In the embodiment of the present application, default figure layer can be the figure layer of the content without protection in need, for example, it may be The figure layer that multicolour pattern is formed, being also possible to entire figure layer is a colored figure layer.Certainly, figure layer is preset in the embodiment of the present application In be not intended as limiting, or other figure layers, for example, it is also possible to which being customized by the user image forms default figure layer.To, Make it is subsequent current interface is recorded, the content of target figure layer can not be recorded, the content of target figure layer is by default figure layer Hold and replace, does not influence bandwagon effect when showing to the recorded file at the interface, promote user experience.
Step S120: recording the current interface, does not include the target figure so that it is corresponding to obtain current interface The recorded file of the content of layer.
Include the figure layer for needing to carry out safeguard protection in current interface, then will include in the All Layers of current interface At least partly figure layer of target figure layer is set as after forbidding the figure layer of screenshotss, i.e., the processing of safeguard protection is carried out to current interface Later, then the recording to current interface can be implemented.
When recording, the figure layer data that screenshotss interface reads current interface are saved, and obtain the corresponding record screen of current interface File is the video file recorded.Since the target figure layer of current interface is arranged to forbid the figure layer of screenshotss, so screenshotss connect Mouth can not read the data of the target figure layer of current interface, so that there is no the current interfaces in the record screen file that record screen protection is deposited The content of target figure layer.
Record screen method provided by the embodiments of the present application, by recording process, to including needing to carry out safeguard protection In the interface of figure layer, at least partly figure layer in All Layers including target figure layer is set as forbidding the figure layer of screenshotss, then again It is recorded, to realize in recording process, the safeguard protection at the interface of the figure layer including needing to carry out safeguard protection makes Need to carry out file that the content of the target figure layer of safeguard protection in the file of screenshotss to recording, that is, is not recorded when playing not The content of above-mentioned target figure layer can be shown, to realize that the information of the need protection to user is protected, prevents the weight of user Want information leakage.
In one embodiment, referring to Fig. 4, the process that Fig. 4 shows record screen method provided by the embodiments of the present application is shown It is intended to.It will be explained in detail below for process shown in Fig. 4, the record screen method can specifically include following steps:
Step S210: record screen during, detect in current interface include forbid screenshotss safe input method figure layer when, The All Layers of the current interface are disposed as forbidding the figure layer of screenshotss, and by the All Layers of the current interface Through to forbid the figure layer of screenshotss to be marked.
In the input interface of other identity informations such as Password Input, account input, identification card number, such as login interface In, after the input frame that user clicks login interface, it will pop up the keyboard of safe input method, for the key entry of user password.
Wherein, above-mentioned after the input frame that user clicks login interface, the keyboard of the safe input method of pop-up can have Secure attribute, i.e. the figure layer region of safe input method can not be by screenshotss, and user is to the keyboard of input method during shielding record Button operation can not be recorded.
But in these interfaces, it is only capable of protecting button operation, the information input frame in interface still can be cut Screen, causes the input content in information input frame by screenshotss, leads to the leakage of input content.
Therefore, in the embodiment of the present application, it can detecte with mobile terminal during recording screen picture and work as prezone Whether there is the safe input method figure layer for forbidding screenshotss in the All Layers in face, that is, detects whether the safe input method of pop-up, with Determine whether current interface includes the figure layer for needing to carry out safeguard protection.It is understood that when having safe input method pop-up, then Expression current interface is input interface, and the corresponding figure layer in input display area in input interface is then to need to carry out safe guarantor The figure layer of shield.
In the embodiment of the present application, due to when popping up safe input method, needing the newly-built safety with Secure attribute Input method figure layer, therefore the system of mobile terminal can detecte and whether newly have the safe input method figure with Secure attribute Layer, that is, forbid the safe input method figure layer of screenshotss, to detect in current interface with the presence or absence of the safe input method for having security attribute Figure layer.When detecting the newly-built safe input method figure layer with Secure attribute, that is, detects to have in current interface and forbid screenshotss Safe input method figure layer.
When detecting current interface includes needing to carry out the figure layer of safeguard protection, then to the All Layers of current interface Target figure layer is set as forbidding the figure layer of screenshotss, and the interface of current information input is protected, and makes the mesh of current interface The content of layer of marking on a map can not be by the recorded file of screenshotss to recording.
In the embodiment of the present application, the All Layers of current interface can be set to the figure layer with Secure attribute, All Layers are disposed as to forbid the figure layer of screenshotss, target figure layer and other figure layers is made to be all set to forbid screenshotss Figure layer.To after the All Layers of current interface are set as forbidding the figure layer of screenshotss, the All Layers of current interface (including Target figure layer) current interface can not be made to be protected by screenshotss into recorded file.
In the embodiment of the present application, the All Layers of current interface are disposed as forbidding the figure layer of screenshotss, can be, it will The traffic sign placement of the window of the All Layers of current interface is safety sign;It is also possible to the figure layer for reading screenshotss interface, by The All Layers of current interface replace with default figure layer.Specifically, setting forbids the figure layer of screenshotss to be referred to last embodiment Middle that the mode for forbidding the figure layer of screenshotss is arranged, details are not described herein.
In the embodiment of the present application, during setting forbidding the figure layer of screenshotss for the All Layers of current interface, Original figure layer and the original figure layer without Secure attribute with Secure attribute in All Layers can be obtained first, Can obtain in All Layers it is original be forbid screenshotss figure layer and it is original can with the figure layer of screenshotss, then by it is original without The figure layer of Secure attribute is set as the figure layer with Secure attribute, sets the All Layers of current interface to realize Forbid the figure layer of screenshotss.
Furthermore it is also possible to forbid the figure layer of screenshotss to be marked the above-mentioned original figure layer with Secure attribute, with Restore convenient for the subsequent All Layers to current interface.It is understood that being all provided with by the All Layers of current interface Before being set to the figure layer for forbidding screenshotss, in the All Layers in current interface, the figure layer being marked represents its and original has The figure layer of Secure attribute, the figure layer without label represent its original figure layer without Secure attribute, therefore to working as After the recording of front interface is completed, need to cancel the Secure attribute of the original figure layer without Secure attribute, and itself The Secure attribute of figure layer with Secure attribute does not have to then cancel, to restore All Layers.
Step S220: recording the current interface, does not include the target figure so that it is corresponding to obtain current interface The recorded file of the content of layer.
It is recorded after being set as forbidding the figure layer of screenshotss by the All Layers of current interface, then to current interface.
When recording, the figure layer data that screenshotss interface reads current interface are saved, and obtain the corresponding record screen of current interface File is the video file recorded.Since the All Layers of current interface are all set to forbid the figure layer of screenshotss, so screenshotss Interface can not read the data of any figure layer of current interface, so that there is no the current interfaces in the record screen file that record screen protection is deposited Target figure layer content.Any content of current interface is not present in file to record, so that user is in current interface The information of operation and the input of all information inputs can not be recorded, and realize the protection of the information inputted for user.
Interface schematic diagram when carrying out record screen to interface for password input, password are shown please refer to Fig. 1 and Fig. 5, Fig. 1 Input interface includes the figure layer A1 and safe input method figure layer A2 in Password Input region, and Fig. 5 shows the embodiment of the present application and mentions The interface schematic diagram of the bandwagon effect of the screen recording image that the interface for password input in Fig. 1 is recorded supplied, A1 in Fig. 5 with A1 in Fig. 1 is corresponding, and the A2 in Fig. 5 is corresponding with the A2 in Fig. 1.As can be seen that shielding using record provided by the embodiments of the present application After method carries out record screen to interface for password input, both without the content of safe input method figure layer A2 in the screen picture of recording, There is no the content of the figure layer A1 in Password Input region, A1 and A2 are shown with a certain color region, thus realize for The protection of the content of interface for password input.
Step S230: the figure layer based on the label restores the All Layers, to obtain the All Layers Original figure layer.
In the embodiment of the present application, after being recorded to current interface, i.e., the interface protected is carried out After recording, the interface after current interface may not be the interface for needing to carry out safeguard protection, that is, the boundary for needing normally to record Face, and current interface is identical as the big multi-layer image at interface later, therefore after recording to current interface, it can be to current interface All Layers restored, with guarantee after interface normal recording.
For example, user after login interface has inputted information, enters after the interface of " login ", need pair The content at next interface is recorded, and the interface of login interface and " login " has many identical figure layers, if All Layers in login interface are not restored, then certain figure layers in the interface " logged in " are due to being arranged to Forbid the figure layer of screenshotss, then can not normally be recorded.
In the embodiment of the present application, All Layers are restored based on the figure layer marked in step S210, to obtain There is the original figure layer of figure layer, may include:
Obtain other figure layers in the All Layers in addition to the figure layer of the label;Other described figure layers are respectively provided with For allow screenshotss figure layer, to obtain the original figure layer of the All Layers.
It is understood that the figure layer marked in step S210 is to be set as forbidding cutting in the All Layers to current interface Before the figure layer of screen, just it is prohibited the figure layer of screenshotss, i.e., the original figure layer with Secure attribute.Obtain all of current interface Other figure layers in figure layer in addition to the figure layer of label, other figure layers are to be set as forbidding cutting to the All Layers of current interface Allow before the figure layer of screen by the figure layer of screenshotss, i.e., the original figure layer without Secure attribute.Therefore can by it is above-mentioned other The Secure attribute of figure layer cancels, it is made to be reduced to allow the figure layer of screenshotss, and the figure layer marked has Secure due to original Attribute is reduced to original graph for the All Layers of current interface to realize so its Secure attribute can be kept Layer.
In the embodiment of the present application, can be when detecting that safe input method figure layer is destroyed, i.e., safe input method keyboard is received When rising, All Layers are restored based on the figure layer marked in step S210, to obtain the original figure layer of All Layers.It utilizes Safe input method figure layer destroys the trigger condition as reduction figure layer, and the timeliness and accuracy of the reduction of figure layer can be improved.
Record screen method provided by the embodiments of the present application, by whether thering is the safety for forbidding screenshotss to input in detection current interface When method figure layer, sets the All Layers of current interface to forbid the figure layer of screenshotss, then current interface is recorded again.From And protect the interface in recording process interface when, can not to the interface carry out screenshotss, make record file In be not present the interface content, realize for record screen in user information protection.In addition, after being recorded to the interface, by this The All Layers at interface are reduced to original figure layer, allow to normally be recorded, and guarantee the normal recording of screen picture.
In one embodiment, the record screen method can specifically include following steps:
Step S310: during recording screen, when detecting that current interface includes the target figure layer for needing to carry out safeguard protection, It is set as at least partly figure layer in the All Layers of the current interface including the target figure layer to forbid the figure layer of screenshotss.
In the embodiment of the present application, during recording screen picture, the current interface shown to it carries out mobile terminal Detection, it is specific to detect whether current interface includes the target figure layer for needing to carry out safeguard protection, detecting that current interface includes It will include at least partly figure layer of target figure layer in the All Layers of current interface when needing to carry out the target figure layer of safeguard protection It is set as forbidding the figure layer of screenshotss.
As one of the embodiment of the present application embodiment, detecting that current interface includes needing to carry out safeguard protection Target figure layer when, by the All Layers of current interface include target figure layer at least partly figure layer be set as forbidding screenshotss Figure layer may include:
When the Text Entry for detecting current interface obtains focus, the input attribute of the Text Entry is obtained; Judge whether the input attribute is cryptographic properties;It will include mesh in the All Layers of current interface if it is cryptographic properties At least partly figure layer of layer of marking on a map is set as forbidding the figure layer of screenshotss.
It is understood that when the interface to Password Input carries out record screen, important information of the encrypted message as user It should be protected.When inputting password, needs to click input frame and then password is inputted.Therefore, it can detecte current Whether the Text Entry at interface obtains focus, i.e. whether detection input frame is clicked.Specifically, text input when the user clicks When frame is ready for input, onfocus event (focus trigger event) can be generated, therefore, if capturing Text Entry group The onfocus event (focus trigger event) that part generates, it is determined that detect that Text Entry obtains focus.
Further, when the Text Entry for detecting current interface obtains focus, the input of Text Entry is obtained Attribute judges whether text input frame is input to judge whether text input frame is the input frame for carrying out Password Input The figure layer of password.
In addition, can be and detect there may be a Text Entry or multiple Text Entries in current interface When any Text Entry obtains focus, the input attribute of Text Entry is obtained.
In the embodiment of the present application, the input attribute of Text Entry can be obtained by the adb order of system, for example, Adb shell dumpsys input_method | grep inputType obtains input attribute inputType.
In the input attribute for getting Text Entry and then judge whether the input attribute is cryptographic properties.Wherein, Cryptographic properties indicate that text input frame is Password Input.
When the input attribute of above-mentioned Text Entry is cryptographic properties, then it represents that the figure layer of text input frame is password The figure layer of input, i.e. current interface include needing to carry out the target figure layer of safeguard protection, it is therefore desirable to be pacified to current interface Full guard.
For example, being inputType=0x81 imeOptions=in the input attribute inputType of Text Entry When 0x4000006 privateImeOptions=null, it can determine that the input attribute of text input frame is preset attribute, In another example being inputType=0xe1 imeOptions=0x4000006 in the input attribute inputType of Text Entry When privateImeOptions=null, it can determine that the input attribute of text input frame is preset attribute, in another example, The input attribute inputType of Text Entry is inputType=0x12 imeOptions=0x4000006 When privateImeOptions=null, it can determine that the input attribute of text input frame is preset attribute, for another example The input attribute inputType of Text Entry is inputType=0x91 imeOptions=0x4000006 When privateImeOptions=null, it can determine that the input attribute of text input frame is preset attribute.
To when detecting the input attribute for obtaining the Text Entry of focus is preset attribute, by current interface At least partly figure layer in All Layers including target figure layer is set as forbidding the figure layer of screenshotss.
As the another embodiment in the embodiment of the present application, detecting that current interface includes needing to carry out safe guarantor When the target figure layer of shield, it is set as at least partly figure layer in the All Layers of current interface including target figure layer to forbid screenshotss Figure layer, may include:
It detects and whether there is preset keyword information in current interface;It, then will be current if there is preset keyword information At least partly figure layer in the All Layers at interface including target figure layer is set as forbidding the figure layer of screenshotss.
It is understood that need user information to be protected mostly related to text information when shielding generally for record, such as Have in interface for password input text " password ", identification card number input interface has text " identification card number ", and there is text at the interface of address list Word " address list " etc. it is a variety of with need to carry out keyword corresponding to the interface of safeguard protection, can according to the actual situation and user Demand determine that keyword is stored in mobile terminal.Specific preset keyword is not intended as limiting in the embodiment of the present application It is fixed.
The text in current interface is extracted using participle technique, and splits into multiple words, then judges current interface again Text in whether have keyword.There are when preset keyword information in judging current interface, indicate that current interface includes It needs to carry out the target figure layer of safeguard protection, then will include at least partly figure layer of target figure layer in the All Layers of current interface It is set as forbidding the figure layer of screenshotss.Determine whether current interface includes needing to carry out safeguard protection using the keyword in interface Target figure layer, it is simple and efficient, and readily satisfy actual demand.
As another embodiment in the embodiment of the present application, detecting that current interface includes needing to carry out safe guarantor When the target figure layer of shield, it is set as at least partly figure layer in the All Layers of current interface including target figure layer to forbid screenshotss Figure layer, may include:
Whether detection current interface is the interface for reading local file;If it is the interface for reading local file, will work as At least partly figure layer in the All Layers of front interface including target figure layer is set as forbidding the figure layer of screenshotss.
It is understood that the letter that user is protected can equally be carried by reading the figure layer at the interface of local file Breath, such as shooting time, title of document files of specific photo, photo in user terminal etc..Therefore, can shield in record Whether Cheng Zhong, detection current interface are the interface for reading local file, can specifically detect that calling is read during recording screen When the interface of local file, current interface is determined as to read the interface of local file.Certainly, reading local file determined above The mode at interface be not intended as limiting in the embodiment of the present application.
Thus when detecting current interface is to read the interface of local file, it can be by the All Layers of current interface In include target figure layer at least partly figure layer be set as forbidding the figure layer of screenshotss.
As the another embodiment in the embodiment of the present application, detecting that current interface includes needing to carry out safe guarantor When the target figure layer of shield, set at least partly figure layer in the All Layers of the current interface including the target figure layer to The figure layer for forbidding screenshotss may include:
Obtain the application type of the corresponding application program of current interface;Judge whether the application type is default using class Type;It will include at least partly figure layer setting of target figure layer in the All Layers of current interface if it is default application type For the figure layer for forbidding screenshotss.
It is understood that the application program of mobile terminal has multiclass, such as the application of payment class, social category application, game Class application etc..In the multiclass application program of mobile terminal, the privacy letter of many users involved in possible some type of application Breath, security information etc., such as Alipay.If by it is this kind of using when interface record, can by the file of recording Need to carry out the information of safeguard protection with these for getting user.
Therefore, can determine whether the current interface in recording process includes needing to carry out according to the type of application program The target figure layer of safeguard protection.It is possible, firstly, to read the type identifier of the corresponding application program of current interface, wherein type Identifier represents the type of application program;The application type of the corresponding application program of current interface is determined further according to type identifier It whether is default application type;It will include target figure layer in the All Layers of current interface if it is default application type At least partly figure layer is set as forbidding the figure layer of screenshotss.Default application type is not intended as limiting in the embodiment of the present application, example Such as default application type may include payment class application, class application of chatting.
In the embodiment of the present application, Fig. 6 is referred to, will include at least portion of target figure layer in the All Layers of current interface Component layer is set as forbidding the figure layer of screenshotss, may include:
Step S311: All Layers included by default display area are obtained from the All Layers of current interface, are preset Display area includes the target figure layer.
When detecting current interface includes the target figure layer for needing to carry out safeguard protection, then to all figures of current interface Layer in include target figure layer at least partly figure layer be set as forbidding the figure layer of screenshotss, by the interface of current information input into Row protection, makes the content of the target figure layer of current interface can not be by the recorded file of screenshotss to recording.
In the embodiment of the present application, default display area corresponding to available target figure layer, then to default display All Layers included by region carry out safeguard protection, i.e., are set as forbidding the figure layer of screenshotss to the figure layer of default display area. Wherein, default display area can be display area corresponding to target figure layer, be also possible to include corresponding to target figure layer The display area of region and its peripheral region.Certainly, specifically default display area is not intended as limiting in the embodiment of the present application It is fixed.
Firstly, obtaining All Layers included by the default display area in the All Layers of current interface.
Step S312: it sets All Layers included by default display area to forbid the figure layer of screenshotss.
After getting All Layers included by default display area, which includes target figure layer, then may be used To be set as forbidding the figure layer of screenshotss by All Layers included by the default display area, that is, have the figure of Secure attribute Layer, prevent All Layers included by the default display area are from by the recorded file of screenshotss to recording.
It only sets All Layers included by default display area to forbid the embodiment of the figure layer of screenshotss, Ke Yiti The efficiency of figure layer setting is risen, to make entirely to record screen method more smooth.
Step S320: recording the current interface, does not include the target figure so that it is corresponding to obtain current interface The recorded file of the content of layer.
It is being set as above-mentioned target figure layer to forbid the figure layer of screenshotss and then is starting to record current interface.
When recording, the figure layer data that screenshotss interface reads current interface are saved, and obtain the corresponding record screen of current interface File is the video file recorded.Since the target figure layer of current interface is arranged to forbid the figure layer of screenshotss, so screenshotss connect Mouth can not read the data of the target figure layer of current interface, so that there is no the current interfaces in the record screen file that record screen protection is deposited The content of target figure layer realizes the protection to user information that is, so that the content of default display area can not be recorded.
Certainly, in the embodiment of the present application, after step S320, the mode being also referred in last embodiment, i.e., The All Layers of current interface are disposed as to forbid the mode of the figure layer of screenshotss, then current interface is recorded again.
In addition, the Secure attribute of above-mentioned target figure layer can also be cancelled after being recorded to current interface, with Obtain the original figure layer of current interface.
Record screen method provided by the embodiments of the present application, it is logical to have supplied whether a variety of determining current interfaces include needing to carry out safety The mode of the figure layer of protection provides the condition that the interface in a variety of pairs of recording process carries out safeguard protection, adequately protect use The relevant information at family.Additionally, it is provided being set as forbidding screenshotss just for the figure layer for the default display area for including target figure layer Figure layer mode, make figure layer setting it is more efficient, thus make record screen it is more smooth.
In one embodiment, referring to Fig. 7, Fig. 7 shows the module of record screen device 200 provided by the embodiments of the present application Block diagram.It will be illustrated below for block diagram shown in Fig. 7, record screen device 200 includes: figure layer setup module 210 and records Execution module 220.Wherein: figure layer setup module 210 is used for during recording screen, detects that current interface includes being pacified When the target figure layer of full guard, at least partly figure layer in the All Layers of current interface including target figure layer is set as forbidding The figure layer of screenshotss;Execution module 220 is recorded for recording to current interface, does not include mesh so that it is corresponding to obtain current interface Mark on a map layer content recorded file.
As the first embodiment, figure layer setup module 210 can be specifically used for: detect to include prohibiting in current interface It will include at least partly figure layer setting of target figure layer in the All Layers of current interface only when the safe input method figure layer of screenshotss For the figure layer for forbidding screenshotss.
As second of embodiment, figure layer setup module 210 can be specifically used for: in the text for detecting current interface When input frame obtains focus, the input attribute of Text Entry is obtained;Judge to input whether attribute is cryptographic properties;If it is close Code attribute, then be set as at least partly figure layer in the All Layers of current interface including target figure layer to forbid the figure of screenshotss Layer.
Further, figure layer setup module 210 can also be specifically used for: by the mark of the window of the All Layers of current interface Will is set as safety sign.
In the embodiment of the present application, figure layer setup module 210 can also be specifically used for: the figure layer that screenshotss interface is read, Default figure layer is replaced with by the All Layers of current interface.
In the embodiment of the present application, figure layer setup module 210 can also be specifically used for: will be in the All Layers of current interface Original is that the figure layer of screenshotss is forbidden to be marked;After being recorded to current interface, method further include: the figure layer based on label All Layers are restored, to obtain the original figure layer of All Layers.
Further, figure layer setup module 210 restores All Layers based on the figure layer of label, to obtain all figures The original figure layer of layer, comprising: obtain other figure layers in All Layers in addition to the figure layer of label;Other figure layers are disposed as Allow the figure layer of screenshotss, to obtain the original figure layer of All Layers.
In the embodiment of the present application, figure layer setup module 210 can also be specifically used for: from the All Layers of current interface All Layers included by default display area are obtained, default display area includes target figure layer;Default display area is wrapped The All Layers included are set as forbidding the figure layer of screenshotss.
In conclusion compared with the existing technology, record screen method, apparatus, mobile terminal and storage medium provided by the present application, By during recording screen, detecting that current interface includes when needing to carry out the figure layer of safeguard protection, by all of current interface At least partly figure layer in figure layer including target figure layer is set as forbidding the figure layer of screenshotss, then records again to current interface System, to obtain the recorded file of the corresponding not content including the target figure layer of current interface.So that in record screen process In, when current interface includes the target figure layer protected, can not the content of target figure layer to current interface remember The protection to the content of current interface is realized in record, is made the content that current interface is not present in the file recorded, is protected user information Safety.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is all differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.For arbitrary processing mode described in embodiment of the method, in device reality Apply in example can no longer be repeated in Installation practice by corresponding processing modules implement one by one.
Referring to Fig. 8, based on above-mentioned record screen method, apparatus, the embodiment of the present application also provides a kind of mobile terminal 100 comprising electronic body portion 10, the electronic body portion 10 include shell 12 and the main display being arranged on the shell 12 Screen 120.Metal can be used in the shell 12, such as steel, aluminium alloy are made.In the present embodiment, the main display 120 usually packet Display panel 111 is included, may also comprise for responding the circuit etc. for carrying out touch control operation to the display panel 111.The display Panel 111 can be a liquid crystal display panel (Liquid Crystal Display, LCD), in some embodiments, described Display panel 111 is a touch screen 109 simultaneously.
Please refer to Fig. 9, in actual application scenarios, the mobile terminal 100 can be used as intelligent mobile phone terminal into It exercises and uses, the electronic body portion 10 also typically includes one or more (only showing one in figure) processors in this case 102, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module 118, power module 122.It will appreciated by the skilled person that structure shown in Fig. 9 is only to illustrate, not to described The structure in electronic body portion 10 causes to limit.For example, the electronic body portion 10 may also include it is more than shown in Fig. 98 or Less component, or with the configuration different from shown in Fig. 8.
It will appreciated by the skilled person that every other component belongs to for the processor 102 It is coupled between peripheral hardware, the processor 102 and these peripheral hardwares by multiple Peripheral Interfaces 124.The Peripheral Interface 124 can Based on following standard implementation: Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/ Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display The display controller of panel 111 or storage control for connecting memory.In addition, these controllers can also be from described It detaches, and is integrated in the processor 102 or in corresponding peripheral hardware in Peripheral Interface 124.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, thereby executing various function application and data processing.For example, memory The corresponding software program of 104 storage record screen methods provided by the above embodiment and module, processor 102 operationally state implementation When the corresponding software program of record screen method and module that example provides, record screen method provided by the above embodiment is executed.It is described to deposit Reservoir 104 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, the memory 104 can further comprise opposite In the remotely located memory of the processor 102, these remote memories can pass through network connection to the electronic body Portion 10 or the main display 120.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, movement Communication network and combinations thereof.
The RF module 106 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus It is communicated with communication network or other equipment.The RF module 106 may include various existing for executing these functions Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The RF module 106 can be carried out with various networks such as internet, intranet, wireless network Communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, wireless Local area network or Metropolitan Area Network (MAN).Various communication standards, agreement and technology can be used in above-mentioned wireless network, including but not limited to Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code Divisionmultiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/ Or IEEE 802.11n), the networking telephone (Voiceover internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Voicefrequency circuit 110, earpiece 101, sound jack 103, microphone 105 provide user and the electronic body portion jointly Audio interface between 10 or the main display 120.Specifically, the voicefrequency circuit 110 receives from the processor 102 Voice data is converted to electric signal by voice data, by electric signal transmission to the earpiece 101.The earpiece 101 is by electric signal Be converted to the sound wave that human ear can be heard.The voicefrequency circuit 110 receives electric signal also from the microphone 105, by electric signal Voice data is converted to, and gives the processor 102 to be further processed data transmission in network telephony.Audio data can be with It is obtained from the memory 104 or through the RF module 106.In addition, audio data also can store to the storage It is sent in device 104 or by the RF module 106.
The setting of sensor 114 is in the electronic body portion 10 or in the main display 120, the sensor 114 example includes but is not limited to: light sensor 114F, operation sensor, pressure sensor 114G, acceleration of gravity pass Sensor and other sensors.
Wherein, pressure sensor 114G can detecte the sensor by pressing the pressure generated in mobile terminal 100.That is, Pressure sensor 114G detection is by the contact between user and mobile terminal or presses the pressure generated, such as the ear by user The pressure that contact or pressing between mobile terminal generate.Therefore, pressure sensor 114G may be used to determine user with Whether contacted or pressed between mobile terminal 100 and the size of pressure.
Referring to Fig. 9, specifically in the embodiment shown in fig. 9, the light sensor 114F and the pressure Sensor 114G is arranged adjacent to the display panel 111.The light sensor 114F can have object close to the main display When shielding 120, such as when the electronic body portion 10 is moved in one's ear, the processor 102 closes display output.
As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and accelerate The size of degree can detect that size and the direction of gravity when static, can be used to identify the application of 100 posture of mobile terminal (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.. In addition, the electronic body portion 10 can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, herein no longer It repeats,
In the present embodiment, the input module 118 may include the touch screen being arranged on the main display 120 109, the touch screen 109 collects the touch operation of user on it or nearby, and (for example user is any using finger, stylus etc. Operation of the suitable object or attachment on the touch screen 109 or near the touch screen 109), and according to presetting The corresponding attachment device of driven by program.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller. Wherein, the touch orientation of the touch detecting apparatus detection user, and touch operation bring signal is detected, it transmits a signal to The touch controller;The touch controller receives touch information from the touch detecting apparatus, and by the touch information It is converted into contact coordinate, then gives the processor 102, and order that the processor 102 is sent can be received and executed. Furthermore, it is possible to realize the touching of the touch screen 109 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Touch detection function.In addition to the touch screen 109, in other change embodiments, the input module 118 can also include it His input equipment, such as key 107.The key 107 for example may include the character keys for inputting character, and for triggering The control button of control function.The example of the control button includes " returning to main screen " key, power on/off key etc..
The information and the electronics that the main display 120 is used to show information input by user, is supplied to user The various graphical user interface of body part 10, these graphical user interface can by figure, text, icon, number, video and its Any combination is constituted, in an example, the touch screen 109 may be disposed on the display panel 111 to it is described Display panel 111 constitutes an entirety.
The power module 122 is used to provide power supply to the processor 102 and other each components.Specifically, The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit, Power-fail detection circuit, inverter, indicator of the power supply status and any other and the electronic body portion 10 or the master The generation, management of electric power and the relevant component of distribution in display screen 120.
The mobile terminal 100 further includes locator 119, and the locator 119 is for determining 100 institute of mobile terminal The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the mobile terminal 100 using positioning service, The positioning service, it should be understood that the location information of the mobile terminal 100 is obtained by specific location technology (as passed through Latitude coordinate), it is marked on the electronic map by the technology or service of the position of positioning object.
It should be understood that above-mentioned mobile terminal 100 is not limited to intelligent mobile phone terminal, should refer to can moved Computer equipment used in dynamic.Specifically, mobile terminal 100, refers to the mobile computer for being equipped with intelligent operating system Equipment, mobile terminal 100 include but is not limited to smart phone, smartwatch, tablet computer, etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (mobile terminal), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the application In each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also two A or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product when selling or using, also can store in a computer readable storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (12)

1. a kind of record screen method, which is characterized in that the described method includes:
During recording screen, when detecting that current interface includes the target figure layer for needing to carry out safeguard protection, described it will work as prezone At least partly figure layer in the All Layers in face including the target figure layer is set as forbidding the figure layer of screenshotss;
The current interface is recorded, to obtain the recording of the corresponding not content including the target figure layer of current interface File.
2. the method according to claim 1, wherein described detect that current interface includes needing to carry out safe guarantor When the figure layer of shield, at least partly figure layer in the All Layers of the current interface including the target figure layer is set as forbidding The figure layer of screenshotss, comprising:
Detect in current interface include forbid screenshotss safe input method figure layer when, will be in the All Layers of the current interface At least partly figure layer including the target figure layer is set as forbidding the figure layer of screenshotss.
3. the method according to claim 1, wherein described detect that current interface includes needing to carry out safe guarantor When the figure layer of shield, at least partly figure layer in the All Layers of the current interface including the target figure layer is set as forbidding The figure layer of screenshotss, comprising:
When the Text Entry for detecting current interface obtains focus, the input attribute of the Text Entry is obtained;
Judge whether the input attribute is cryptographic properties;
It will include at least partly figure layer of the target figure layer in the All Layers of the current interface if it is cryptographic properties It is set as forbidding the figure layer of screenshotss.
4. method according to any one of claim 1-3, which is characterized in that will be in the All Layers of the current interface At least partly figure layer including the target figure layer is set as forbidding the figure layer of screenshotss, comprising:
The All Layers of the current interface are disposed as to forbid the figure layer of screenshotss.
5. according to the method described in claim 4, it is characterized in that, the All Layers of the current interface are disposed as forbidding The figure layer of screenshotss, comprising:
It is safety sign by the traffic sign placement of the window of the All Layers of the current interface.
6. according to the method described in claim 4, it is characterized in that, the All Layers of the current interface are disposed as forbidding The figure layer of screenshotss, comprising:
The figure layer that screenshotss interface is read replaces with default figure layer by the All Layers of the current interface.
7. according to the method described in claim 4, it is characterized in that, by the target figure layer in the All Layers of the current interface It is set as forbidding the figure layer of screenshotss, further includes:
It will be original to forbid the figure layer of screenshotss to be marked in the All Layers of the current interface;
After being recorded to the current interface, the method also includes:
Figure layer based on the label restores the All Layers, to obtain the original figure layer of the All Layers.
8. the method according to the description of claim 7 is characterized in that the figure layer based on the label carries out the All Layers Reduction, to obtain the original figure layer of the All Layers, comprising:
Obtain other figure layers in the All Layers in addition to the figure layer of the label;
Other described figure layers are disposed as to allow the figure layer of screenshotss, to obtain the original figure layer of the All Layers.
9. method according to any one of claim 1-3, which is characterized in that all figures by the current interface At least partly figure layer in layer including the target figure layer is set as forbidding the figure layer of screenshotss, comprising:
All Layers included by default display area, the default viewing area are obtained from the All Layers of the current interface Domain includes the target figure layer;
All Layers included by the default display area are set as forbidding the figure layer of screenshotss.
10. a kind of record screen device, which is characterized in that described device include: figure layer setup module and record execution module, In,
It, will be described when the figure layer setup module is used to detect that current interface includes the target figure layer for needing to carry out safeguard protection At least partly figure layer in the All Layers of current interface including target figure layer is set as forbidding the figure layer of screenshotss;
The recording execution module does not include described so that it is corresponding to obtain current interface for recording to the current interface The recorded file of the content of target figure layer.
11. a kind of mobile terminal, which is characterized in that including touch screen, memory and processor, the touch screen is deposited with described Reservoir is couple to the processor, the memory store instruction, the when executed by the processor processing Device executes such as the described in any item methods of claim 1-9.
12. a kind of computer-readable storage medium for the program code that can be performed with processor, which is characterized in that the journey Sequence code makes the processor execute such as the described in any item methods of claim 1-9.
CN201810597253.XA 2018-06-11 2018-06-11 Screen recording method and device, mobile terminal and storage medium Active CN109040419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810597253.XA CN109040419B (en) 2018-06-11 2018-06-11 Screen recording method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810597253.XA CN109040419B (en) 2018-06-11 2018-06-11 Screen recording method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109040419A true CN109040419A (en) 2018-12-18
CN109040419B CN109040419B (en) 2021-01-12

Family

ID=64612702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810597253.XA Active CN109040419B (en) 2018-06-11 2018-06-11 Screen recording method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109040419B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187943A (en) * 2019-04-15 2019-08-30 努比亚技术有限公司 A kind of record screen method, terminal and computer readable storage medium
CN110417991A (en) * 2019-06-18 2019-11-05 华为技术有限公司 A kind of record screen method and electronic equipment
CN110825289A (en) * 2019-10-31 2020-02-21 北京字节跳动网络技术有限公司 Method and device for operating user interface, electronic equipment and storage medium
CN111131882A (en) * 2019-12-30 2020-05-08 联想(北京)有限公司 Screen recording method and device and electronic equipment
CN111314773A (en) * 2020-01-22 2020-06-19 广州虎牙科技有限公司 Screen recording method and device, electronic equipment and computer readable storage medium
CN112181556A (en) * 2020-09-21 2021-01-05 北京字跳网络技术有限公司 Terminal control processing method and device, electronic equipment and storage medium
CN112423095A (en) * 2020-11-02 2021-02-26 广州博冠信息科技有限公司 Game video recording method and device, electronic equipment and storage medium
CN112417533A (en) * 2020-11-26 2021-02-26 江苏通付盾信息安全技术有限公司 Anti-screenshot method and device, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060277472A1 (en) * 2005-06-07 2006-12-07 Sony Computer Entertainment Inc. Screen display program, computer readable recording medium recorded with screen display program, screen display apparatus, portable terminal apparatus, and screen display method
CN102004878A (en) * 2010-11-22 2011-04-06 北京北信源软件股份有限公司 Anti-screenshot technology-based file data protection method
CN106529310A (en) * 2016-10-31 2017-03-22 珠海市魅族科技有限公司 Method and device for inhibiting screen capture
CN106650441A (en) * 2016-11-01 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Screen recording method and device
CN107426222A (en) * 2017-07-28 2017-12-01 广东欧珀移动通信有限公司 Information protecting method, device, storage medium and electronic equipment
CN107733773A (en) * 2016-08-10 2018-02-23 中兴通讯股份有限公司 Information protecting method, protection information dispensing device and protection information reception device
CN107958168A (en) * 2017-12-19 2018-04-24 广东欧珀移动通信有限公司 Record screen method, apparatus and terminal
CN108038396A (en) * 2017-12-05 2018-05-15 广东欧珀移动通信有限公司 Record screen method, apparatus and terminal
US20180137835A1 (en) * 2016-11-14 2018-05-17 Adobe Systems Incorporated Removing Overlays from a Screen to Separately Record Screens and Overlays in a Digital Medium Environment
CN108052835A (en) * 2017-12-14 2018-05-18 广东欧珀移动通信有限公司 Record screen document play-back method, device and terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060277472A1 (en) * 2005-06-07 2006-12-07 Sony Computer Entertainment Inc. Screen display program, computer readable recording medium recorded with screen display program, screen display apparatus, portable terminal apparatus, and screen display method
CN102004878A (en) * 2010-11-22 2011-04-06 北京北信源软件股份有限公司 Anti-screenshot technology-based file data protection method
CN107733773A (en) * 2016-08-10 2018-02-23 中兴通讯股份有限公司 Information protecting method, protection information dispensing device and protection information reception device
CN106529310A (en) * 2016-10-31 2017-03-22 珠海市魅族科技有限公司 Method and device for inhibiting screen capture
CN106650441A (en) * 2016-11-01 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Screen recording method and device
US20180137835A1 (en) * 2016-11-14 2018-05-17 Adobe Systems Incorporated Removing Overlays from a Screen to Separately Record Screens and Overlays in a Digital Medium Environment
CN107426222A (en) * 2017-07-28 2017-12-01 广东欧珀移动通信有限公司 Information protecting method, device, storage medium and electronic equipment
CN108038396A (en) * 2017-12-05 2018-05-15 广东欧珀移动通信有限公司 Record screen method, apparatus and terminal
CN108052835A (en) * 2017-12-14 2018-05-18 广东欧珀移动通信有限公司 Record screen document play-back method, device and terminal
CN107958168A (en) * 2017-12-19 2018-04-24 广东欧珀移动通信有限公司 Record screen method, apparatus and terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187943A (en) * 2019-04-15 2019-08-30 努比亚技术有限公司 A kind of record screen method, terminal and computer readable storage medium
CN110417991A (en) * 2019-06-18 2019-11-05 华为技术有限公司 A kind of record screen method and electronic equipment
CN110417991B (en) * 2019-06-18 2021-01-29 华为技术有限公司 Screen recording method and electronic equipment
CN110825289A (en) * 2019-10-31 2020-02-21 北京字节跳动网络技术有限公司 Method and device for operating user interface, electronic equipment and storage medium
US11875023B2 (en) 2019-10-31 2024-01-16 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for operating user interface, electronic device, and storage medium
CN111131882A (en) * 2019-12-30 2020-05-08 联想(北京)有限公司 Screen recording method and device and electronic equipment
CN111314773A (en) * 2020-01-22 2020-06-19 广州虎牙科技有限公司 Screen recording method and device, electronic equipment and computer readable storage medium
CN112181556A (en) * 2020-09-21 2021-01-05 北京字跳网络技术有限公司 Terminal control processing method and device, electronic equipment and storage medium
CN112181556B (en) * 2020-09-21 2024-04-19 北京字跳网络技术有限公司 Terminal control processing method and device, electronic equipment and storage medium
CN112423095A (en) * 2020-11-02 2021-02-26 广州博冠信息科技有限公司 Game video recording method and device, electronic equipment and storage medium
CN112417533A (en) * 2020-11-26 2021-02-26 江苏通付盾信息安全技术有限公司 Anti-screenshot method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109040419B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN109040419A (en) Record screen method, apparatus, mobile terminal and storage medium
CN110689460B (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN104992096B (en) A kind of data guard method and mobile terminal
CN109002759A (en) text recognition method, device, mobile terminal and storage medium
CN105281906A (en) Safety authentication method and device
CN109918930A (en) A kind of information protecting method and terminal device
CN108632460A (en) Right management method, device, mobile terminal and storage medium
CN108712561A (en) Right management method, device, mobile terminal and storage medium
CN109918944B (en) Information protection method and device, mobile terminal and storage medium
CN108446211A (en) Browser exception collection method, device, mobile terminal and storage medium
CN108763892A (en) Right management method, device, mobile terminal and storage medium
CN105554752A (en) Hotspot sharing method and related equipment
CN110149628B (en) Information processing method and terminal equipment
CN108255674A (en) multi-process browser process log collecting method, device and mobile terminal
CN110557499B (en) Information processing method and device and mobile terminal
CN110933113A (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN108737638A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN108197264A (en) Webpage accelerates display methods, device, mobile terminal and storage medium
CN110851823A (en) Data access method, device, terminal and storage medium
CN110221882A (en) Display methods, device, mobile terminal and storage medium
CN110796552A (en) Risk prompting method and device
CN108647070B (en) Information reminding method and device, mobile terminal and computer readable medium
CN107192937A (en) Fingerprint chip detecting method and device, electronic equipment and storage medium
CN109005102A (en) Information processing method, device and electronic device
CN108763884A (en) Right management method, device, mobile terminal and storage medium

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