CN113946386B - Screen capture control method and device, computer equipment and storage medium - Google Patents

Screen capture control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113946386B
CN113946386B CN202111558413.8A CN202111558413A CN113946386B CN 113946386 B CN113946386 B CN 113946386B CN 202111558413 A CN202111558413 A CN 202111558413A CN 113946386 B CN113946386 B CN 113946386B
Authority
CN
China
Prior art keywords
screen capture
image
target application
application program
processed
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.)
Active
Application number
CN202111558413.8A
Other languages
Chinese (zh)
Other versions
CN113946386A (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.)
Beijing Zhizhangyi Technology Co ltd
Original Assignee
Beijing Zhizhangyi 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 Beijing Zhizhangyi Technology Co ltd filed Critical Beijing Zhizhangyi Technology Co ltd
Priority to CN202111558413.8A priority Critical patent/CN113946386B/en
Publication of CN113946386A publication Critical patent/CN113946386A/en
Application granted granted Critical
Publication of CN113946386B publication Critical patent/CN113946386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a screen capture control method and device, computer equipment and a storage medium. Acquiring a screen capture request of a third party for a target application program; determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in a target application according to a screen capture control configuration file acquired from a server in advance; and processing the screen capture request according to the first working state and/or the second working state. The embodiment of the invention realizes the improvement of the screen capture control efficiency.

Description

Screen capture control method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a screen capture control method and device, computer equipment and a storage medium.
Background
With the high-speed development of mobile terminal equipment, enterprise employees can conveniently process work at the mobile terminal, and meanwhile, the risk of enterprise data leakage is increased, wherein the employees share information to other people through screen capturing, and the method is a common information leakage mode.
At present, in order to prevent information leakage caused by screen capture sharing, a common scheme is that an application program prohibits screen capture through a system interface.
And the screen capture is forbidden through the system interface, and the state of a screen capture forbidding switch cannot be dynamically changed.
Disclosure of Invention
The embodiment of the invention provides a screen capture control method and device, computer equipment and a storage medium, and aims to improve the screen capture control efficiency.
In a first aspect, an embodiment of the present invention provides a screen capture control method, where the method includes:
acquiring a screen capture request of a third party for a target application program;
determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in a target application program according to a screen capture control configuration file acquired from a server in advance;
and processing the screen capture request according to the first working state and/or the second working state.
In a second aspect, an embodiment of the present invention further provides a screen capture control apparatus, where the apparatus includes:
the request acquisition module is used for acquiring a screen capture request of a third party for the target application program;
the switch state acquisition module is used for determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in a target application program according to a screen capture control configuration file acquired from a server in advance;
and the request processing module is used for processing the screen capturing request according to the first working state and/or the second working state.
In a third aspect, a computer device, the computer device comprising:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the screen capture control method provided by the embodiment of the invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the screen capture control method provided by the embodiments of the present invention.
According to the invention, the first working state of the screen capture operation switch and the second working state of the screen capture data auditing switch in the target application program are determined according to the screen capture control configuration file which is obtained from the server in advance, the screen capture request of the target application program is processed by the obtained third party, the screen capture request of the target application program can be dynamically obtained through the screen capture control configuration file which is obtained from the server, at least one working state can be set according to different conditions, different processing is carried out on the screen capture request, the problem that the screen capture is forbidden through a system interface, and the state of the screen capture prohibition switch cannot be dynamically changed is solved, and the effect of improving the screen capture control efficiency is realized.
Drawings
Fig. 1 is a flowchart of a screen capture control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a screen capture control method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a screenshot auditing method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a screen capture control device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a screen capture control method according to an embodiment of the present invention, where the present embodiment is applicable to a case where a screen capture request is processed, and the method may be executed by a screen capture control device, and the device may be implemented in a software and/or hardware manner. The device can be configured in the intelligent equipment and executed by the intelligent equipment, and the method specifically comprises the following steps:
and step 110, acquiring a screen capture request of a third party for the target application program.
The target application program refers to an application program which needs to control a screen capture request, and illustratively, the target application program can be a special application program which is used by an enterprise for information interaction of internal employees of the enterprise, and enterprise information leakage can be prevented by controlling the screen capture request of the target application program. The third party may be other applications in the smart device where the target application is located, such as a screen recording master, a WeChat meeting or an Tencent meeting, or may be the smart device, and the smart device may capture a screen of an interface of the smart device through a specific shortcut key or gesture, such as double-clicking the screen. The intelligent device is an intelligent terminal capable of performing information interaction through a network, illustratively, the intelligent device can be a mobile phone, a tablet computer or a desktop computer, and a target application program is installed in the intelligent device. The screen capture request refers to a request for performing a screen capture operation on a target application program, and specifically, the screen capture request may be a request for capturing window information at a certain time, for example, a screen capture request for chatting the window information, or a request for continuously capturing the window information at a certain time period, that is, a screen recording request, for example, recording a teleconference video.
And step 120, determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in the target application program according to a screen capture control configuration file acquired from the server in advance.
The screen capture control configuration file is configured at the server, and is used for implementing screen capture control on the target application program in a containerization integration manner, specifically, used for controlling the on-off state of a first working state of a screen capture operation switch in the target application program and the on-off state of a second working state of a screen capture data auditing switch, for example, prohibiting the screen capture function from being used for the target application program or allowing the screen capture function to be used for the target application program, and the screen capture control configuration file can be set at the server to dynamically control the on-off states of the first working state and the second working state in the target application program, for example, when an enterprise carries out a conference room related to enterprise core technology through the target application program, the first working state is set to be closed, that is, screen capture of the target application program is prohibited; in daily work, the first working state is set to be opened, namely, screen capture of the target application program is allowed. The on-off state of the first operating state is used for indicating whether the screen capture function is allowed to be used for the target application program, and specifically, the on-off state of the first operating state comprises an off state and an on state. The on-off state of the second working state is used for indicating whether screen capture data is checked or not, and specifically, the on-off state of the second working state comprises a closing state and an opening state. It should be noted that, the first operating state of the screen capture operation switch and the second operating state of the screen capture data auditing switch in the target application program are controlled by two independent parts in the configuration file, the switch states of the first operating state and the second operating state cannot be simultaneously turned on, and if the states are simultaneously turned on, the first operating state is preferentially executed, and the second operating state is not executed.
The screen capture control configuration file is obtained from the server, the control of the screen capture operation of the target application program is realized in a containerization integration mode, the target application program does not need to integrate an SDK (Software Development Kit), namely, the target application program automatically obtains the control of the screen capture operation through the configuration file, and the target application program does not need to realize the function, so that corresponding Development and test work is not needed, the labor cost is saved, and the configuration file of the server end can be dynamically modified, thereby realizing the dynamic control of the screen capture operation of the target application program, and improving the screen capture control efficiency.
In an optional embodiment, the screen capture control method further includes: and updating the screen capture control configuration file according to the address of the server side configuration file in the screen capture control configuration file.
The target application program is internally provided with a screen capture control configuration file corresponding to the server-side screen capture control configuration file, the screen capture control configuration file comprises a server-side configuration file address, the target application program acquires the screen capture control configuration file from the server according to the server-side configuration file address and updates the screen capture control configuration file internally arranged in the target application program, and illustratively, the screen capture control configuration file is updated, so that when the server-side configuration file is changed, an update task is sent to the target application program, and the target application program acquires and updates the screen capture control configuration file; it may also be that an update frequency is preset, and the target application acquires and updates the screen capture control configuration file according to the preset update frequency, for example, the screen capture control configuration file is updated every 10 minutes.
The screen capture control configuration file is updated according to the address of the server side configuration file in the screen capture control configuration file, so that the screen capture control configuration file can be dynamically changed and applied to the target application program, and the screen capture operation of the target application program is dynamically controlled.
And step 130, processing the screen capture request according to the first working state and/or the second working state.
Correspondingly processing the acquired screen capturing request according to the on-off state of the first working state and/or the second working state acquired from the screen capturing control configuration file, illustratively, for the first working state, if the on-off state of the first working state is on, responding to the screen capturing request of a third party, and performing screen capturing operation on the target application program; if the switch state of the first working state is closed, rejecting the screen capturing request and failing to perform screen capturing operation on the target application program; for the second working state, if the switching state of the second working state is on, the screen capture data in the intelligent equipment is checked; and if the switch state of the second working state is closed, the screen capture data in the intelligent equipment is not checked.
In an optional embodiment, the processing of the screen capture request according to the switch state of the first working state comprises: if the switch state of the first working state is closed, rejecting the screen capturing request; and if the switch state of the first working state is on, responding to the screen capture request to obtain a screen capture image, and storing the screen capture image in a local media database.
If the switch state of the first operating state is off, rejecting a screen capture request for the target application program, that is, prohibiting a screen capture operation on the target application program, and exemplarily rejecting the screen capture request for the target application program by means of java dynamic proxy, specifically, proxying an IWindowManager static object s windows manager service in a target application program end, intercepting an openSession method of IWindowManager, performing java dynamic proxy on a return value IWindowSession thereof, and returning the proxy object, wherein among three methods of relayout, relayoutfurtranslate and addtodisplayformat in iwindowstation, there are window manager parameters, layoutparams parameters, modifying a flags field of the parameters, and more specifically, adding a flag: window manager, layout params, flag _ SECURE, that prohibits screen capture operations on a target application. And if the switch state of the first working state is on, responding to a screen capturing request, performing screen capturing operation on the target application program to obtain a screen capturing image, obtaining an image name of the screen capturing image according to a default rule of the intelligent device, and storing the image name into a local media database of the intelligent device, such as an album of a mobile phone, according to a default storage path of the intelligent device.
According to the technical scheme of the embodiment, the first working state of the screen capture operation switch and the second working state of the screen capture data auditing switch in the target application program are determined according to the screen capture control configuration file which is obtained from the server in advance, the screen capture request of the target application program is processed by the obtained third party, the screen capture request of the target application program can be dynamically processed by the target application program through the screen capture control configuration file which is obtained from the server, at least one working state can be set according to different conditions, different processing is carried out on the screen capture request, the problem that the screen capture is forbidden through a system interface, and the state of the screen capture switch cannot be dynamically changed is solved, and the effect of improving the screen capture control efficiency is achieved.
Example two
Fig. 2 is a flowchart of a screen capture control method according to a second embodiment of the present invention, where the technical solution of this embodiment is further refined on the basis of the above technical solution, specifically, a screen capture request is processed according to a first working state and/or a second working state, and the refinement is as follows: if the switch state of the second working state is on, acquiring at least one screen capture image to be processed of the target application program from the local media database in the background running process of the target application program; determining whether the screen capturing time of the screen capturing image to be processed belongs to the foreground operation time period of the target application program; and if so, determining that the checking result of the screenshot image to be processed is passed. The method comprises the following steps:
and step 210, acquiring a screen capture request of a third party for the target application program.
And step 220, checking the first working state of the screen capture operation switch and the second working state of the screen capture data checking switch in the target application program according to the screen capture control configuration file acquired from the server in advance.
And step 230, if the switch state of the second working state is on, acquiring at least one screen capture image to be processed of the target application program from the local media database in the background running process of the target application program.
The second working state is used for checking whether the screen capture operation of the target application program occurs during the foreground operation period and generating screen capture data, and the on-off state indicates whether the screen capture data is checked, specifically, the on-off state comprises an off state and an on state, and the on state indicates that the screen capture data is checked; the closed state means that the screenshot data is not reviewed. And if the switch state of the second working state is on, triggering the verification of the screenshot data when the target application program is in the background running process, and specifically, when the target application program is converted from foreground running to background running, namely the target application program is in the background running process, acquiring at least one to-be-processed screenshot image of the target application program from a local media database of the intelligent device where the target application program is located. The screen capture image to be processed is an image which is generated by waiting to check whether the screen capture operation is performed on the target application program. The local media database is a local database for storing media files in the intelligent device. And if the on-off state of the second working state is on, checking whether the screenshot image to be processed is the screenshot data generated by the target application program in the foreground operation period, and acquiring at least one screenshot image to be processed generated by the target application program in the local media database according to the media file name.
In an alternative embodiment, obtaining at least one to-be-processed screenshot image of a target application from a local media database includes: determining the type of the image updated in the local media database; and acquiring N screen capture images which belong to the image type and are updated at the front time from a local media database as screen capture images to be processed.
Monitoring a local media database of the intelligent device, acquiring a file name of an updated image when data of the local media database is updated, and judging the type of the updated image, wherein the image type specifically comprises a picture and a video. According to the updated image type, screen capture images with the same type as the updated image type are obtained from the local media database, the N screen capture images with the previous update time are the N screen capture images with the previous update time closer to the current time, specifically, the N screen capture images are obtained by performing descending sorting according to the update time of the screen capture images, namely the N screen capture images with the previous update time. The first N captured images are taken as to-be-processed captured images, where N is a preset number, for example, when the updated image type is a video, considering that the video recording duration is long, and generally the middle of the recording is not interrupted, that is, a plurality of recorded screen images are not generated in the recording process, the first 5 recorded screen images can be taken as to-be-processed captured images, that is, N is 5.
By acquiring the type of the updated image and acquiring the first N screen capture images of the type in the media database, the latest image can be processed preferentially, and the processing speed of screen capture examination is increased.
And step 240, determining whether the screen capturing time of the screen capturing image to be processed belongs to the foreground operation time interval of the target application program.
Specifically, the intelligent device may monitor a full life cycle of the target application program and record time points of foreground and background switching events of the target application program, and exemplarily, may create an ArrayList to record time points of all foreground and background events in the running process of the target application program, thereby determining a time period when the target application program is in a foreground running state. The screen capturing time of the screen capturing image to be processed is obtained and compared with the time points of the foreground and background events of the target application program recorded in the ArrayList, specifically, if the screen capturing time is in the time period from the background switching to the foreground of the target application program to the background switching from the foreground, the screen capturing time is in the foreground running time period of the target application program, otherwise, the screen capturing time is not in the foreground running time period of the target application program.
And step 250, if the image belongs to the image, determining that the checking result of the screenshot image to be processed is passed.
If the screen capture time of the screen capture image to be processed is in the foreground operation time period of the target application program, the target application program is in the foreground operation when the screen capture image is generated, and the screen capture image to be processed can be judged to be an image generated by a third party through screen capture operation during the foreground operation of the target application program. And the auditing result is an image generated by performing screen capture operation on the target application program for the screen capture image to be processed. If the current screen capture time does not belong to the preset running time period, the screen capture time of the screen capture image to be processed is not in the preset running time period of the target application program, the screen capture image to be processed is not an image generated by screen capture operation of the target application program, and the auditing is finished.
In an optional implementation example, after determining that the review result of the screenshot image to be processed is passed, the method further includes: determining whether the screenshot image to be processed is uploaded to a server; if not, acquiring a screenshot file uploading address from the screenshot control configuration file, and uploading the screenshot image to be processed to the server according to the screenshot file uploading address.
Whether the screenshot image to be processed is uploaded to the server or not is inquired from a local database of the intelligent device, if not, namely the screenshot image to be processed is not uploaded to the server, the screenshot file uploading address is analyzed from the screenshot control configuration file, the screenshot image to be processed is uploaded to the server according to the uploading address and stored, and in an exemplary mode, after the screenshot image to be processed is uploaded to the server, the screenshot image to be processed is marked to be uploaded in the local database, and repeated uploading is avoided. The local database is a database for recording screen capture events and is used for recording storage paths and uploading marks of screen capture images, and optionally, the local database may be a media library, which is not specifically limited in the present invention. Meanwhile, after the file is uploaded to the server, the user is prompted that the screenshot record is generated, and illustratively, the user can be prompted in a popup mode, for example, the popup displays that "your screenshot behavior is recorded, please carefully use the screenshot image".
By determining whether the screenshot image to be processed is uploaded to the server or not and uploading the screenshot image to be processed to the server when the screenshot image to be processed is not uploaded to the server, repeated uploading of the screenshot image to be processed is avoided, and waste of storage resources of the server is avoided.
In the embodiment, the on-off state of the second working state is acquired when the target application program is in the background running process, the to-be-processed screenshot image in the local media library of the intelligent device is acquired in the on state, the verification result is determined to be passed when the screenshot time of the to-be-processed screenshot image is in the foreground running of the target application program, and the accuracy of the verification of the to-be-processed screenshot image is improved through the foreground running time of the target application program and the verification of the to-be-processed screenshot image.
EXAMPLE III
Fig. 3 is a flowchart of a screen capture auditing method according to a third embodiment of the present invention, where a technical solution of this embodiment is a specific implementation flow of the screen capture auditing method in the foregoing technology, and specifically, the screen capture auditing method includes:
step 310, begin. And starting to operate the intelligent equipment, connecting the target application program with the network, acquiring the screen capture control configuration file of the server, updating the built-in screen capture control configuration file of the target application program, and operating the built-in screen capture control configuration file of the target application program if the target application program cannot be connected with the network.
Step 320, initialize the target application foreground and background runtime list. The foreground and background running time list is used for recording foreground and background switching time of the target application program, and is initialized firstly, and then the foreground and background running time of the target application program is recorded. For example, the lifecycle of all pages in the smart device may be monitored through application.activityllifecyclecallbacks, and thus, a foreground and background switching event of the target application program may be obtained, and specifically, time points of all foreground and background events in the running process of the target application program may be recorded through ArrayList, so that it may be determined in which time periods the target application program is in a foreground running state.
Step 330, initialize the media library monitoring module. The media library monitoring module is used for monitoring the updating of the media library in the intelligent equipment and initializing the media library monitoring module after the intelligent equipment runs. The media library monitoring module is realized by constructing an Observer which registers and monitors the changes of the pictures and videos of the media library, and the specific method comprises the following steps:
i. self-defining to realize the subclass MediaContentObserver of ContentObserver;
register snoop using context _ getcontentresolver (). registtercontentserver method, snoop changes of pictures and videos in the external storage and the internal storage of the media library, specifically, the uniform resource identifiers of the snoop CONTENTs include media store. And when the update of the media library is monitored, acquiring an updated image.
And step 340, updating whether the image is a picture. And judging whether the updated image type is a picture, if so, entering step 341, otherwise, if not, the updated image type is a video, and entering step 342.
Step 341, inquiring and filtering the pictures in the media library. And inquiring the pictures in the media library, acquiring the pictures containing keywords of 'Screen', 'Screen record' or 'screen capture' in the picture file names, and taking the acquired pictures as screen capture images to be processed.
Step 342, query and filter the videos in the media library. And inquiring videos in the media library, acquiring 5 videos with the latest time in the media library according to the timestamp of the video file, and taking the acquired videos as screen capture images to be processed.
And step 350, sorting in a descending order. And acquiring the time stamps of the screenshot images to be processed, and sequencing according to the descending order of time.
And step 360, whether the running time is matched with the foreground running time of the target application program. And inquiring a list of the foreground and background time of the target application program according to the to-be-processed screenshot images after sequencing and the acquired time stamps of the to-be-processed screenshot images in sequence, and judging whether the time stamps are matched with the foreground running time period of the target application program. If yes, go to step 370; if not, go to step 390.
Step 370, whether it has been uploaded. Inquiring whether the screenshot image to be processed is uploaded to a server or not in a local database of the intelligent device, if so, entering a step 390, and if not, entering a step 380.
And 380, recording screen capture events. The screenshot image to be processed is a screenshot image generated by a target application program, a screenshot image uploading address is obtained from a screenshot control configuration file, the screenshot image to be processed is uploaded to a server according to the screenshot image uploading address, a corresponding image storage path is recorded to a local database of the intelligent device, and the screenshot image to be processed is marked as the uploaded screenshot image. Meanwhile, popping up a popup window to prompt the user that a screen capture record is generated.
And step 390, ending. And finishing the audit work.
In the embodiment, screenshot verification of the screenshot image to be processed is realized through a specific screenshot verification flow chart of the screenshot image to be processed, and quick and accurate verification of the screenshot behavior can be realized by monitoring newly added pictures and videos of a media library, verifying the screenshot behavior of the target application program in combination with the foreground running time period of the target application program, uploading and recording related images, and prompting a user that a screenshot record is generated.
Example four
Fig. 4 is a schematic structural diagram of a screen capture control device according to a fourth embodiment of the present invention, where the fourth embodiment is a corresponding device for implementing the screen capture control method according to the foregoing embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, and may be generally integrated in a computer device. The screen capture control device includes:
a request obtaining module 410, configured to obtain a screen capture request of a third party for a target application;
the switch state acquisition module 420 is configured to determine a first working state of a screen capture operation switch and a second working state of a screen capture data audit switch in a target application program according to a screen capture control configuration file acquired from a server in advance;
and the request processing module 430 is configured to process the screen capture request according to the first operating state and/or the second operating state.
According to the technical scheme of the embodiment, the first working state of the screen capture operation switch and the second working state of the screen capture data auditing switch in the target application program are determined according to the screen capture control configuration file which is obtained from the server in advance, the screen capture request of the target application program is processed by the obtained third party, the screen capture request of the target application program can be dynamically processed by the target application program through the screen capture control configuration file which is obtained from the server, at least one working state can be set according to different conditions, different processing is carried out on the screen capture request, the problem that the screen capture is forbidden through a system interface, and the state of the screen capture switch cannot be dynamically changed is solved, and the effect of improving the screen capture control efficiency is achieved.
Optionally, the request processing module 430 includes:
the to-be-processed screenshot image acquisition unit is used for acquiring at least one to-be-processed screenshot image of the target application program from the local media database in the background running process of the target application program if the switch state of the second working state is on;
the screen capture time determining unit is used for determining whether the screen capture time of the screen capture image to be processed belongs to the foreground operation time period of the target application program;
and the auditing result passing unit is used for determining that the auditing result of the screenshot image to be processed is passed if the screenshot image to be processed belongs to the selected screenshot image.
Optionally, the to-be-processed screenshot image obtaining unit includes:
the image type determining subunit is used for determining the image type updated in the local media database;
and the to-be-processed screenshot image determining subunit is used for acquiring the N screenshot images which belong to the image type and are updated at the previous time from the local media database, and using the N screenshot images as to-be-processed screenshot images.
Optionally, the request processing module 430 further includes:
the image uploading determining unit is used for determining whether the screenshot image to be processed is uploaded to the server;
and the image uploading unit is used for acquiring the screenshot file uploading address from the screenshot control configuration file if the screenshot file is not the current screenshot file uploading address, and uploading the screenshot image to be processed to the server according to the screenshot file uploading address.
Optionally, the request processing module 430 includes:
the screen capture request rejection unit is used for rejecting the screen capture request if the switch state of the first working state is closed;
and the screen capture request responding unit is used for responding to the screen capture request to obtain a screen capture image and storing the screen capture image into the local media database if the switch state of the first working state is on.
Optionally, the screen capture control device further comprises;
and the configuration file updating module is used for updating the screen capture control configuration file according to the server side configuration file address in the screen capture control configuration file.
The device can execute the screen capture control method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the screen capture control method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer apparatus according to a fifth embodiment of the present invention, as shown in fig. 5, the computer apparatus includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the computer device may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, the memory 520, the input device 530 and the output device 540 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5.
The memory 520, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the request acquisition module 410, the switch state acquisition module 420, and the request processing module 430) corresponding to the screen capture control method in the embodiments of the present invention. The processor 510 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 520, that is, implements the above-described screen capture control method.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 540 may include a display device such as a display screen.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a screen capture control method, including:
acquiring a screen capture request of a third party for a target application program;
determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in a target application according to a screen capture control configuration file acquired from a server in advance;
and processing the screen capture request according to the first working state and/or the second working state.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the screen capture control method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A screen capture control method, the method comprising:
acquiring a screen capture request of a third party for a target application program;
determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in a target application program according to a screen capture control configuration file acquired from a server in advance;
processing a screen capture request according to the first working state and/or the second working state;
the processing of the screen capture request according to the first working state and/or the second working state comprises:
if the switch state of the second working state is on, acquiring at least one screen capture image to be processed of the target application program from a local media database in the background running process of the target application program;
determining whether the screen capturing time of the screen capturing image to be processed belongs to the foreground operation time period of the target application program;
if the current screenshot image belongs to the first screenshot image, determining that the auditing result of the screenshot image to be processed is passed;
wherein the acquiring at least one to-be-processed screenshot image of a target application from a local media database comprises:
determining the type of the image updated in the local media database;
and acquiring N screen capture images which belong to the image type and are updated at the previous time from a local media database as the screen capture images to be processed.
2. The method of claim 1, wherein after determining that the review result of the screenshot image to be processed is passed, further comprising:
determining whether the screenshot image to be processed is uploaded to a server;
if not, acquiring a screenshot image uploading address from the screenshot control configuration file, and uploading the screenshot image to be processed to a server according to the screenshot image uploading address.
3. The method of claim 1, wherein processing the screen capture request according to the first operating state comprises:
if the switch state of the first working state is closed, rejecting the screen capturing request;
and if the switch state of the first working state is on, responding to a screen capture request to obtain a screen capture image, and storing the screen capture image in a local media database.
4. The method of claim 1, further comprising;
and updating the screen capture control configuration file according to the address of the server side configuration file in the screen capture control configuration file.
5. A screen capture control apparatus, comprising:
the request acquisition module is used for acquiring a screen capture request of a third party for the target application program;
the switch state acquisition module is used for determining a first working state of a screen capture operation switch and a second working state of a screen capture data auditing switch in a target application program according to a screen capture control configuration file acquired from a server in advance;
the request processing module is used for processing the screen capturing request according to the first working state and/or the second working state;
wherein, the request processing module comprises:
the to-be-processed screenshot image acquisition unit is used for acquiring at least one to-be-processed screenshot image of the target application program from the local media database in the background running process of the target application program if the switch state of the second working state is on;
the screen capture time determining unit is used for determining whether the screen capture time of the screen capture image to be processed belongs to the foreground operation time period of the target application program;
the checking result passing unit is used for determining that the checking result of the screenshot image to be processed is passed if the screenshot image to be processed belongs to the selected screenshot image;
wherein, the screen capture image acquisition unit to be processed comprises:
the image type determining subunit is used for determining the image type updated in the local media database;
and the to-be-processed screenshot image determining subunit is used for acquiring the N screenshot images which belong to the image type and are updated at the previous time from the local media database, and using the N screenshot images as the to-be-processed screenshot images.
6. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the screen capture control method of any one of claims 1-4.
7. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the screen capture control method of any one of claims 1-4.
CN202111558413.8A 2021-12-20 2021-12-20 Screen capture control method and device, computer equipment and storage medium Active CN113946386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111558413.8A CN113946386B (en) 2021-12-20 2021-12-20 Screen capture control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111558413.8A CN113946386B (en) 2021-12-20 2021-12-20 Screen capture control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113946386A CN113946386A (en) 2022-01-18
CN113946386B true CN113946386B (en) 2022-03-29

Family

ID=79339298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111558413.8A Active CN113946386B (en) 2021-12-20 2021-12-20 Screen capture control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113946386B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377109A (en) * 2012-04-13 2013-10-30 国际商业机器公司 Computer implemented method and system
CN103685735A (en) * 2013-11-22 2014-03-26 毛秀允 Method for preventing mobile terminal from illegal screen capture
CN104219330A (en) * 2014-09-29 2014-12-17 北京神州绿盟信息安全科技股份有限公司 Method and system for auditing screen record based on WEB proxy
CN106294159A (en) * 2016-08-12 2017-01-04 腾讯科技(深圳)有限公司 A kind of method controlling screenshotss and screenshotss control device
CN106372473A (en) * 2016-09-02 2017-02-01 深圳中兴网信科技有限公司 Screen capturing method, screen capturing device, terminal and server
TW201828142A (en) * 2017-01-19 2018-08-01 阿里巴巴集團服務有限公司 Information input method and device prohibiting the interface of screenshot and/or screen recording when the input environment of the secret information is recognized
CN108494864A (en) * 2018-03-29 2018-09-04 新华三技术有限公司 A kind of data processing method, device and machine readable storage medium
CN111522726A (en) * 2020-04-24 2020-08-11 北京安码科技有限公司 Method, system, electronic equipment and storage medium for realizing multi-virtual machine operation real-time screen recording and auditing
CN112528320A (en) * 2020-12-03 2021-03-19 北京指掌易科技有限公司 IOS-based screen recording prevention method and device, electronic equipment and storage medium
CN113486413A (en) * 2021-07-23 2021-10-08 统信软件技术有限公司 Anti-screenshot processing method, computing device and readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10007963B2 (en) * 2015-11-10 2018-06-26 International Business Machines Corporation Context-based provision of screenshot modifications
US10237621B2 (en) * 2016-03-24 2019-03-19 Dish Technologies Llc Direct capture and sharing of screenshots from video programming
CN106170135A (en) * 2016-08-22 2016-11-30 安徽拓通信科技集团股份有限公司 A kind of monitoring method preventing program backstage from automatically sending note
CN107222618A (en) * 2017-05-24 2017-09-29 深圳天珑无线科技有限公司 Terminal screenshotss method and device
CN109254709A (en) * 2017-07-13 2019-01-22 阿里巴巴集团控股有限公司 Screenshotss processing method, device, equipment and machine readable media
CN108509533B (en) * 2018-03-15 2019-08-16 平安科技(深圳)有限公司 Control method, device, equipment and the computer storage medium of screenshotss sharing files
CN109033850A (en) * 2018-06-29 2018-12-18 深信服科技股份有限公司 A kind of processing method of screenshot picture, device, terminal and computer storage medium
CN109085975A (en) * 2018-08-06 2018-12-25 Oppo广东移动通信有限公司 Screenshotss method, apparatus, storage medium and electronic device
US10943018B2 (en) * 2018-11-08 2021-03-09 Citrix Systems, Inc. Systems and methods for screenshot mediation based on policy
CN110134568A (en) * 2019-04-30 2019-08-16 广州华多网络科技有限公司 A kind of application program launching time detection method, device and equipment
CN111814180A (en) * 2020-06-30 2020-10-23 中天掌金(北京)科技有限公司 Method for ensuring safety of financial App local operating environment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377109A (en) * 2012-04-13 2013-10-30 国际商业机器公司 Computer implemented method and system
CN103685735A (en) * 2013-11-22 2014-03-26 毛秀允 Method for preventing mobile terminal from illegal screen capture
CN104219330A (en) * 2014-09-29 2014-12-17 北京神州绿盟信息安全科技股份有限公司 Method and system for auditing screen record based on WEB proxy
CN106294159A (en) * 2016-08-12 2017-01-04 腾讯科技(深圳)有限公司 A kind of method controlling screenshotss and screenshotss control device
CN106372473A (en) * 2016-09-02 2017-02-01 深圳中兴网信科技有限公司 Screen capturing method, screen capturing device, terminal and server
TW201828142A (en) * 2017-01-19 2018-08-01 阿里巴巴集團服務有限公司 Information input method and device prohibiting the interface of screenshot and/or screen recording when the input environment of the secret information is recognized
CN108494864A (en) * 2018-03-29 2018-09-04 新华三技术有限公司 A kind of data processing method, device and machine readable storage medium
CN111522726A (en) * 2020-04-24 2020-08-11 北京安码科技有限公司 Method, system, electronic equipment and storage medium for realizing multi-virtual machine operation real-time screen recording and auditing
CN112528320A (en) * 2020-12-03 2021-03-19 北京指掌易科技有限公司 IOS-based screen recording prevention method and device, electronic equipment and storage medium
CN113486413A (en) * 2021-07-23 2021-10-08 统信软件技术有限公司 Anti-screenshot processing method, computing device and readable storage medium

Also Published As

Publication number Publication date
CN113946386A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN107133309B (en) Method and device for storing and querying process example, storage medium and electronic equipment
US10084637B2 (en) Automatic task tracking
CN112235253B (en) Data asset carding method, device, computer equipment and storage medium
CN110610376A (en) Behavior data response method and device, computer equipment and storage medium
JP2022064311A (en) Computer implemented method, computer program, and computer system (selective display of sensitive data)
CN111258565A (en) Method, system, server and storage medium for generating small program
CN110442782B (en) Cloud resource retrieval method and device
CN113946386B (en) Screen capture control method and device, computer equipment and storage medium
CN112256563A (en) Android application stability testing method and device, electronic equipment and storage medium
CN114564249B (en) Recommendation scheduling engine, recommendation scheduling method and computer readable storage medium
CN115793911A (en) Data processing method and device, electronic equipment and storage medium
CN112182581B (en) Application testing method, device, application testing equipment and storage medium
CN115033469A (en) Website system performance test method and device, equipment and storage medium
CN112596841B (en) Interface language switching method, device, equipment and storage medium
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN109086116B (en) Communication tool speech real-time monitoring method and device based on auxiliary function service
CN111400060A (en) Equipment linkage method, device, server and medium
CN110166505B (en) Session record storage method, device, equipment and storage medium
CN111176959A (en) Early warning method, system and storage medium for cross-domain application server
CN112486815B (en) Analysis method and device of application program, server and storage medium
CN105446721B (en) Terminal system and implementation method thereof
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN112115303B (en) Data processing method and device
EP3933617A1 (en) Method, apparatus, device and storage medium for customizing personalized rules for entities
CN117389655A (en) Task execution method, device, equipment and storage medium in cloud native environment

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