CN106940774B - Virus scanning method and device - Google Patents

Virus scanning method and device Download PDF

Info

Publication number
CN106940774B
CN106940774B CN201710175105.4A CN201710175105A CN106940774B CN 106940774 B CN106940774 B CN 106940774B CN 201710175105 A CN201710175105 A CN 201710175105A CN 106940774 B CN106940774 B CN 106940774B
Authority
CN
China
Prior art keywords
virus
display interface
patterns
mobile terminal
module
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
CN201710175105.4A
Other languages
Chinese (zh)
Other versions
CN106940774A (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710175105.4A priority Critical patent/CN106940774B/en
Publication of CN106940774A publication Critical patent/CN106940774A/en
Application granted granted Critical
Publication of CN106940774B publication Critical patent/CN106940774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Virology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a virus scanning method and a device, which relate to the technical field of terminals, and the method comprises the following steps: acquiring a scanning instruction; starting virus scanning in response to the scanning instruction; when the virus exists, displaying N virus patterns on a display interface; wherein N is a natural number greater than 0; and controlling the N virus patterns to change on the display interface according to a preset rule. The method and the device for detecting the virus can enable a user to intuitively feel the existence of the virus and improve user experience.

Description

Virus scanning method and device
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a virus scanning method and apparatus.
Background
With the more and more perfect functions of the terminal, the popularization of the terminal in daily life is wider, viruses are abused, the functions of the terminal are disturbed, and the waste of resources and wealth is caused, so that the safety problem of the terminal use is paid high attention. In the related art, the virus scanning and processing process only provides a progress display or a virus list on a display interface in an interactive mode.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a virus scanning method and apparatus.
In order to achieve the above object, according to a first aspect of embodiments of the present disclosure, there is provided a virus scanning method, including:
acquiring a scanning instruction;
performing a virus scan in response to the scan instruction;
when the virus exists, displaying N virus patterns on a display interface; wherein N is a natural number greater than 0;
and controlling the N virus patterns to change on the display interface according to a preset rule.
In the embodiment, once the user issues the scanning instruction and finds the existence of the virus, the plurality of virus patterns are displayed on the display interface, so that the result of the scanning instruction is associated with the virus patterns on the display interface, the problem that the user cannot easily perceive the existence of the virus in the related technology can be solved, the user can intuitively perceive the existence of the virus, the prompt effect when the user finds the existence of the virus can be improved, and the user experience is enhanced.
Optionally, the method further includes:
when the change of the gravity direction of the mobile terminal is monitored, acquiring a current first gravity direction of the mobile terminal;
and controlling the N virus patterns to move towards the first gravity direction on the display interface.
In the embodiment, by monitoring the gravity direction of the mobile terminal, when the gravity direction of the mobile terminal changes, the virus pattern on the display interface is controlled to move towards the changing direction, so that the display mode of the virus pattern responds to the gravity direction of the mobile terminal, a user can participate in the scanning process, and the intelligence of human-computer interaction in the virus searching and killing process is improved.
Optionally, the method further includes:
monitoring whether the mobile terminal shakes;
when the mobile terminal is monitored to shake, determining a current first shaking frequency of the mobile terminal and the number M of the virus patterns currently displayed on the display interface; wherein M is less than or equal to N;
when the first shaking frequency is less than or equal to a first frequency threshold value, adjusting the sizes of the M virus patterns according to a preset scaling;
when the first shaking frequency is greater than the first frequency threshold and less than or equal to a second frequency threshold, displaying an animation of at least one of the virus pattern breakages on the display interface, wherein the at least one is less than M; after displaying the animation that at least one virus pattern is broken, executing the step of monitoring whether the mobile terminal shakes again;
when the first shaking frequency is larger than the second frequency threshold, displaying an animation that M virus patterns are broken on the display interface;
and when the number of the virus patterns currently displayed on the display interface is zero, displaying prompt information for prompting the completion of virus cleaning on the display interface.
In the embodiment, by monitoring the shaking frequency of the mobile terminal, the display mode of the virus image on the display interface is controlled according to the shaking frequency, when the first shaking frequency is less than or equal to a first frequency threshold, the scaling of the virus image is controlled, when the first shaking frequency is greater than the first frequency threshold and less than or equal to a second frequency threshold, the virus image is partially broken until all the virus images are broken, and when the first shaking frequency is greater than the second frequency threshold, the virus image is completely broken, so that the virus killing process responds to the shaking of the mobile terminal, and the display mode of the virus pattern responds to the shaking frequency of the mobile terminal, so that a user can participate in the virus killing process, intuitively feel the existence of the virus, and the intelligence of human-computer interaction in the virus checking and killing process is improved.
Optionally, the method further includes:
and outputting ringing or vibration to the mobile terminal when at least one animation with the broken virus patterns is displayed or M animations with the broken virus patterns are displayed.
In the embodiment, when the virus pattern is broken, the ringing is output or the mobile terminal is vibrated, so that the virus killing process of the user is reminded, the user can intuitively feel that the virus is cleared, the prompt effect when the virus is cleared can be improved, and the user experience is enhanced.
Optionally, the controlling the N virus patterns to change on the display interface according to a preset rule includes at least one of:
controlling the sizes of the N virus patterns to randomly change within a preset pattern size range;
and controlling the N virus patterns to randomly move on the display interface.
In the present embodiment, by setting the display mode of at least one of the size and the position of the virus pattern, the presentation mode in the case of finding a virus can be enriched, and the presentation effect can be enhanced.
Optionally, the method further includes:
and when the virus exists, setting the background color of the display interface to be a specified color.
In the embodiment, when the user issues the scanning instruction, once the virus is found, the background color of the display interface is controlled, so that the user is reminded, the prompting mode when the virus is found can be enriched, and the prompting effect is enhanced.
According to a second aspect of embodiments of the present disclosure, there is provided a virus scanning apparatus,
the device comprises: the system comprises an instruction acquisition module, a scanning module, a virus display module and a first control module;
the instruction acquisition module is configured to acquire a scanning instruction;
the scanning module is configured to respond to the scanning instruction and perform virus scanning;
the virus display module is configured to display N virus patterns on a display interface when the existence of the virus is found; wherein N is a natural number greater than 0;
the first control module is configured to control the N virus patterns to change on the display interface according to a preset rule.
Optionally, the apparatus further comprises: the gravity monitoring module and the second control module;
the gravity monitoring module is configured to acquire a current first gravity direction of the mobile terminal when the change of the gravity direction of the mobile terminal is monitored;
the second control module is configured to control the N virus patterns to move towards the first gravity direction on the display interface.
Optionally, the apparatus further comprises: the device comprises a shaking monitoring module, a measuring module and a third control module;
the shaking monitoring module is configured to monitor whether the mobile terminal shakes;
the measurement module is configured to determine a current first shaking frequency of the mobile terminal and the number M of the virus patterns currently displayed on the display interface when the mobile terminal is monitored to shake; wherein M is less than or equal to N;
the third control module is configured to adjust the sizes of the M virus patterns according to a preset scaling when the first shaking frequency is less than or equal to a first frequency threshold; when the first shaking frequency is greater than the first frequency threshold and less than or equal to a second frequency threshold, displaying an animation of at least one of the virus pattern breakages on the display interface, wherein the at least one is less than M; after displaying the animation of at least one virus pattern fragmentation, executing the steps executed by the measurement module again; when the first shaking frequency is larger than the second frequency threshold, displaying an animation that M virus patterns are broken on the display interface; and when the number of the virus patterns currently displayed on the display interface is zero, displaying prompt information for prompting the completion of virus cleaning on the display interface.
Optionally, the apparatus further comprises: a prompt module;
the prompting module is configured to output a ring or a vibration to the mobile terminal when at least one animation with the broken virus patterns is displayed or M animations with the broken virus patterns are displayed.
Optionally, the first control module is configured to perform at least one of:
controlling the sizes of the N virus patterns to randomly change within a preset pattern size range;
and controlling the N virus patterns to randomly move on the display interface.
Optionally, the apparatus further comprises: a fourth control module;
the fourth control module is configured to set the background color of the display interface to a specified color when the virus is found to be present.
According to a third aspect of embodiments of the present disclosure, there is provided a virus scanning apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a scanning instruction;
performing a virus scan in response to the scan instruction;
when the virus exists, displaying N virus patterns on a display interface; wherein N is a natural number greater than 0;
and controlling the N virus patterns to change on the display interface according to a preset rule.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the virus scanning method provided by the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when a user issues a scanning instruction, once the virus is found to exist, a plurality of virus patterns are displayed on the display interface, so that the result of the scanning instruction is associated with the virus patterns on the display interface, the problem that the user is difficult to perceive the existence of the virus in the related technology can be solved, the user can intuitively feel the existence of the virus, the prompt effect when the virus is found can be improved, and the user experience is enhanced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a virus scanning method in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another virus scanning method in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another virus scanning method in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating yet another virus scanning method in accordance with an exemplary embodiment;
FIG. 5 is a flow diagram illustrating yet another virus scanning method in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a virus scanning apparatus in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating another virus scanning apparatus in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating another virus scanning apparatus in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating yet another virus scanning apparatus in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating yet another virus scanning apparatus in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating a virus scanning apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before introducing the virus scanning method and apparatus provided by the present disclosure, an application scenario related to various embodiments of the present disclosure is first introduced. The application scenario comprises a mobile terminal, the mobile terminal supports virus scanning and virus killing functions, the mobile terminal can monitor the gravity direction and the shaking frequency of the mobile terminal, and for example, the mobile terminal can be provided with an acceleration sensor to monitor the change of the gravity direction and the shaking frequency. The mobile terminal may be, for example, a mobile terminal such as a smart phone, a tablet computer, a smart watch, and a PDA (Personal Digital Assistant). Therefore, in the following, in the embodiments of the present disclosure, a mobile terminal is taken as an example of a smart phone provided with an acceleration sensor, and various exemplary embodiments are described.
Fig. 1 is a flow chart illustrating a virus scanning method according to an exemplary embodiment, as shown in fig. 1, the virus scanning method including the steps of:
in step 101, a scan instruction is acquired.
For example, the mobile terminal has multiple modes of acquiring the scanning instruction, and taking a smart phone as an example, the modes can be set as follows: the scanning instruction is obtained according to the triggering of a preset gesture, a preset sound or a preset key (for example, a scanning key in an interface of the antivirus application) by the user. The scanning instruction can also be obtained according to a designated operation of the user on the display interface, for example, the user can perform a quick operation such as a long press, a double click or a zoom-in gesture on the display interface to obtain the scanning instruction.
In step 102, a virus scan is performed in response to a scan instruction.
It should be noted here that, in response to the scan instruction, the virus scanning process may be executed only in the background, or the current scanning progress and the current scanning result may be displayed on the display interface.
In step 103, when the virus is found to exist, displaying N virus patterns on the display interface, wherein N is a natural number greater than 0.
For example, since the number of viruses may be only one or multiple, the number of found viruses and the number of virus patterns displayed on the display interface may be unrelated or related, and when the number of found viruses and the number of virus patterns displayed on the display interface are related, a corresponding number of virus patterns may be displayed on the display interface based on a preset ratio according to the number of found viruses. For example, when 1 to 2 viruses are found, 1 virus pattern may be displayed on the display interface, when 3 to 5 viruses are found, 2 virus patterns may be displayed on the display interface, and when more than 5 viruses are found, 3 virus patterns may be displayed on the display interface. The time when the virus pattern is displayed on the display interface may be set to be displayed immediately when the virus is found to exist during the virus scanning process, or may be set to be displayed again when the virus scanning process is finished.
In step 104, the N virus patterns are controlled to change on the display interface according to a preset rule.
Optionally, the controlling the N virus patterns to change on the display interface according to the preset rule in step 104 may include at least one of:
controlling the sizes of the N virus patterns to randomly change within a preset pattern size range;
and controlling the N virus patterns to randomly move on the display interface.
For example, the first variation may set that the N virus patterns are randomly scaled within a preset range, the preset ranges of the N virus patterns may be different, the random scaling frequency may be different, or the variation rules of the N virus patterns may be synchronized. A second variation may be arranged such that the N virus patterns move randomly. The first preset rule and the second preset rule can be selected optionally, or can be combined with each other, so that the problem that a user cannot perceive the existence of viruses easily can be solved, the user can feel the existence of the viruses visually, the prompt effect when the viruses are found can be improved, and the user experience is enhanced.
FIG. 2 is a flow chart illustrating another virus scanning method according to an exemplary embodiment, as shown in FIG. 2, the method further comprising the steps of:
in step 105, when it is monitored that the gravity direction of the mobile terminal changes, a current first gravity direction of the mobile terminal is obtained.
For example, whether the gravity direction of the smartphone changes may be monitored by a gravity sensor in the smartphone, for example, to monitor whether the smartphone is currently in a landscape or portrait state, or to monitor the current tilt angle of the smartphone relative to the horizontal direction.
In step 106, the N virus patterns are controlled to move on the display interface towards a first gravity direction.
For example, when the gravity sensor monitors that the gravity direction of the smart phone changes, the gravity sensor judges that the smart phone is currently inclined to the right side of the display interface, and the right side of the display interface is taken as the first gravity direction, the N virus patterns are controlled to move to the right side of the display interface on the display interface, and the display mode enables a user to participate in the scanning process, so that interaction with the user is enhanced.
FIG. 3 is a flow chart illustrating another virus scanning method according to an exemplary embodiment, as shown in FIG. 3, the method further comprising the steps of:
in step 107, it is monitored whether the mobile terminal is shaken.
In step 108, when the mobile terminal is monitored to shake, determining a current first shaking frequency of the mobile terminal and the number M of virus patterns currently displayed on the display interface, wherein M is less than or equal to N.
In an example, the change of the acceleration of the smart phone can be monitored through an acceleration sensor in the smart phone, so that whether the smart phone shakes or not is judged, and then the current first shaking frequency of the smart phone is calculated according to the acceleration. When step 108 is executed for the first time, the number of virus patterns currently displayed on the display interface is the same as the number of virus patterns displayed on the display interface in step 103, that is, M is equal to N. When step 108 is performed again, M ≦ N at this time because some of the N virus patterns may have been fragmented during the previous execution of step 110.
In step 109, when the first shaking frequency is less than or equal to the first frequency threshold, the sizes of the M virus patterns are adjusted according to a preset scaling.
In step 110, when the first shaking frequency is greater than a first frequency threshold and less than or equal to a second frequency threshold, displaying an animation of at least one virus pattern breakage on a display interface, wherein at least one is less than M; after displaying the animation of the at least one virus pattern being broken, the step of monitoring whether the mobile terminal is shaken or not is performed again.
In step 111, when the first shaking frequency is greater than the second frequency threshold, displaying an animation of the broken M virus patterns on the display interface.
That is, the steps 109 to 111 can be understood as that the user can accelerate the disinfection process by shaking the mobile phone, and the higher the shaking frequency is, the faster the disinfection speed is, and conversely, the slower the disinfection speed is. Taking the first frequency threshold as 10Hz and the second frequency threshold as 30Hz as an example, when the first shaking frequency is less than or equal to 10Hz, the size of the M virus patterns may be enlarged (or reduced) according to a preset scaling scale to represent a response to the shaking of the smartphone.
And when the first shaking frequency is more than 10Hz and less than or equal to 30Hz, displaying at least one virus pattern broken animation on the display interface, wherein the number of the broken virus patterns is less than M, so that the response to the shaking of the smart phone is shown, showing the process that part of viruses are cleaned up to the user, and after the at least one virus pattern broken animation is displayed, executing the step 108 again. For example, in the present embodiment, when 10Hz < the first shaking frequency ≦ 30Hz, an animation in which the virus pattern is broken may be displayed, and then step 108 is performed again; alternatively, a threshold value may be set between 10Hz and 30Hz, for example, 20Hz, when 10Hz < the first shaking frequency ≦ 20Hz, an animation with broken virus patterns is displayed, and then step 108 is performed again, when 20Hz < the first shaking frequency ≦ 30Hz, two animation with broken virus patterns is displayed, and then step 108 is performed again.
When the first shaking frequency is more than 30Hz, displaying the animation that all virus patterns are broken on the current display interface.
The display mode of interacting the antivirus process and shaking the mobile phone enables the user to participate in the antivirus process, and interaction with the user in the antivirus process is increased.
In step 112, when the number of the currently displayed virus patterns on the display interface is zero, a prompt message for prompting completion of virus cleaning is displayed on the display interface.
For example, when no virus pattern exists on the display interface, prompt information for prompting completion of virus cleaning is displayed, and the prompt information may display a list of all cleaned viruses or may only prompt a user that the virus cleaning process is completed.
FIG. 4 is a flow chart illustrating yet another virus scanning method according to an exemplary embodiment, as shown in FIG. 4, the method further comprising:
in step 113, when displaying the animation of at least one broken virus pattern or displaying the animation of M broken virus patterns, outputting a ring or vibration to the mobile terminal.
For example, in order to increase the user experience on the virus cleaning process, when the animation with broken virus patterns is displayed, a ringing reminding mode or a vibration reminding mode can be cooperatively output to the smart phone according to the current setting of the smart phone, so as to remind the user of the virus cleaning process.
FIG. 5 is a flow chart illustrating yet another virus scanning method according to an exemplary embodiment, as shown in FIG. 5, the method further comprising:
in step 114, when the presence of a virus is found, the background color of the display interface is set to a specified color.
For example, in order to increase the user's intuitive perception of the existence of the virus, the background color of the display interface may be set to a specific color, for example, the background color of the display interface may be set to red when the existence of the virus is found. It should be noted that the time for setting the background color of the display interface may be set immediately when the virus is found to exist in the virus scanning process, or may be set again when the virus scanning process is finished.
In summary, according to the virus scanning method provided by this embodiment, when a user issues a scanning instruction, once a virus is found to exist, a plurality of virus patterns are displayed on the display interface, so that a result of the scanning instruction is associated with the virus patterns on the display interface, and a problem that the user is difficult to perceive the existence of the virus and overlooks internet security in the related art can be solved, so that the user can intuitively perceive the existence of the virus, and user experience is improved.
FIG. 6 is a block diagram illustrating a virus scanning apparatus according to an exemplary embodiment, as shown in FIG. 6, the apparatus comprising: an instruction acquisition module 201, a scanning module 202, a virus display module 203 and a first control module 204.
An instruction obtaining module 201 configured to obtain a scan instruction.
A scanning module 202 configured to start performing a virus scan in response to a scan instruction.
A virus display module 203 configured to display N virus patterns on the display interface when the virus is found to be present, wherein N is a natural number greater than 0.
The first control module 204 is configured to control the N virus patterns to change on the display interface according to a preset rule.
Fig. 7 is a block diagram illustrating another virus scanning apparatus according to an example embodiment, as shown in fig. 7, the apparatus further comprising: a gravity monitoring module 205 and a second control module 206.
The gravity monitoring module 205 is configured to acquire a current first gravity direction of the mobile terminal when it is monitored that the gravity direction of the mobile terminal changes.
A second control module 206 configured to control the N virus patterns to move on the display interface towards the first gravity direction.
Fig. 8 is a block diagram illustrating another virus scanning apparatus according to an example embodiment, as shown in fig. 8, the apparatus further comprising: a shake monitoring module 207, a measurement module 208 and a third control module 209.
A shake monitoring module 207 configured to monitor whether the mobile terminal is shaken.
The measuring module 208 is configured to determine a current first shaking frequency of the mobile terminal and the number M of virus patterns currently displayed on the display interface when the mobile terminal is monitored to shake, wherein M is less than or equal to N.
A third control module 209 configured to adjust sizes of the M virus patterns at a preset scaling when the first shaking frequency is less than or equal to the first frequency threshold; when the first shaking frequency is larger than a first frequency threshold and smaller than or equal to a second frequency threshold, displaying at least one virus pattern broken animation on the display interface, wherein at least one virus pattern broken animation is smaller than M. After displaying the animation of the at least one virus pattern disruption, the steps performed by the measurement module are performed again. And when the first shaking frequency is larger than a second frequency threshold value, displaying the animation of the broken M virus patterns on the display interface. When the number of the virus patterns currently displayed on the display interface is zero, prompt information for prompting the completion of virus cleaning is displayed on the display interface.
Fig. 9 is a block diagram illustrating yet another virus scanning apparatus according to an example embodiment, as shown in fig. 9, the apparatus further comprising: a prompt module 210.
And the prompting module 210 is configured to output a ring or a vibration to the mobile terminal when the animation of at least one virus pattern fragmentation or the animation of M virus pattern fragmentation is displayed.
Optionally, the first control module 204 is configured to perform at least one of:
and controlling the sizes of the N virus patterns to randomly change within a preset pattern size range.
And controlling the N virus patterns to randomly move on the display interface.
Fig. 10 is a block diagram illustrating yet another virus scanning apparatus according to an exemplary embodiment, as shown in fig. 10, the apparatus further comprising: a fourth control module 211.
And a fourth control module 211 configured to set a background color of the display interface to a designated color when the presence of the virus is found.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In summary, according to the virus scanning apparatus provided in this embodiment, when a user issues a scanning instruction, once a virus is found to exist, a plurality of virus patterns are displayed on the display interface, so that a result of the scanning instruction is associated with the virus patterns on the display interface, and a problem that the user is difficult to perceive the existence of the virus and therefore the user neglects internet security in the related art can be solved, so that the user can intuitively perceive the existence of the virus, and user experience is improved.
FIG. 11 is a block diagram illustrating a virus scanning apparatus 1100 according to an example embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the virus scanning method described in any of fig. 1-5. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the apparatus 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1106 provide power to the various components of device 1100. The power components 1106 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1100.
The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the apparatus 1100. For example, the sensor assembly 1114 may detect an open/closed state of the apparatus 1100, the relative positioning of components, such as a display and keypad of the apparatus 1100, the sensor assembly 1114 may also detect a change in position of the apparatus 1100 or a component of the apparatus 1100, the presence or absence of user contact with the apparatus 1100, orientation or acceleration/deceleration of the apparatus 1100, and a change in temperature of the apparatus 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The apparatus 1100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the virus scanning methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1104 comprising instructions, executable by the processor 1120 of the apparatus 1100 to perform the virus scanning method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Preferred embodiments of the present disclosure are described in detail above with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and other embodiments of the present disclosure may be easily conceived by those skilled in the art within the technical spirit of the present disclosure after considering the description and practicing the present disclosure, and all fall within the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. Meanwhile, any combination can be made between various different embodiments of the disclosure, and the disclosure should be regarded as the disclosure of the disclosure as long as the combination does not depart from the idea of the disclosure. The present disclosure is not limited to the precise structures that have been described above, and the scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A method of virus scanning, the method comprising:
acquiring a scanning instruction;
performing a virus scan in response to the scan instruction;
when the virus exists, displaying N virus patterns on a display interface; wherein N is a natural number greater than 0;
controlling the N virus patterns to change on the display interface according to a preset rule;
monitoring whether the mobile terminal shakes;
when the mobile terminal is monitored to shake, determining a current first shaking frequency of the mobile terminal and the number M of the virus patterns currently displayed on the display interface; wherein M is less than or equal to N;
when the first shaking frequency is less than or equal to a first frequency threshold value, adjusting the sizes of the M virus patterns according to a preset scaling;
when the first shaking frequency is larger than the first frequency threshold and smaller than or equal to a second frequency threshold, displaying an animation of the at least one virus pattern breakage on the display interface, wherein the number of the at least one virus pattern is smaller than M; after displaying the animation that at least one virus pattern is broken, executing the step of monitoring whether the mobile terminal shakes again;
when the first shaking frequency is larger than the second frequency threshold, displaying an animation that M virus patterns are broken on the display interface;
and when the number of the virus patterns currently displayed on the display interface is zero, displaying prompt information for prompting the completion of virus cleaning on the display interface.
2. The method of claim 1, further comprising:
when the change of the gravity direction of the mobile terminal is monitored, acquiring a current first gravity direction of the mobile terminal;
and controlling the N virus patterns to move towards the first gravity direction on the display interface.
3. The method of claim 1, further comprising:
and outputting a reminding instruction when at least one animation with the broken virus patterns is displayed or M animations with the broken virus patterns are displayed, wherein the reminding instruction is used for indicating the mobile terminal to ring or vibrate.
4. The method according to claim 1, wherein the controlling the N virus patterns to change on the display interface according to a preset rule comprises at least one of:
controlling the sizes of the N virus patterns to randomly change within a preset pattern size range;
and controlling the N virus patterns to randomly move on the display interface.
5. The method of claim 1, further comprising:
when the virus exists, setting the background color of the display interface as a specified color, wherein the specified color is used for prompting the user that the virus exists.
6. A virus scanning apparatus, the apparatus comprising: the system comprises an instruction acquisition module, a scanning module, a virus display module and a first control module;
the instruction acquisition module is configured to acquire a scanning instruction;
the scanning module is configured to respond to the scanning instruction and perform virus scanning;
the virus display module is configured to display N virus patterns on a display interface when the existence of the virus is found; wherein N is a natural number greater than 0;
the first control module is configured to control the N virus patterns to change on the display interface according to a preset rule;
the device further comprises: the device comprises a shaking monitoring module, a measuring module and a third control module;
the shaking monitoring module is configured to monitor whether the mobile terminal shakes;
the measurement module is configured to determine a current first shaking frequency of the mobile terminal and the number M of the virus patterns currently displayed on the display interface when the mobile terminal is monitored to shake; wherein M is less than or equal to N;
the third control module is configured to adjust the sizes of the M virus patterns according to a preset scaling when the first shaking frequency is less than or equal to a first frequency threshold; when the first shaking frequency is larger than the first frequency threshold and smaller than or equal to a second frequency threshold, displaying an animation of the at least one virus pattern breakage on the display interface, wherein the number of the at least one virus pattern is smaller than M; after displaying the animation of at least one virus pattern fragmentation, executing the steps executed by the measurement module again; when the first shaking frequency is larger than the second frequency threshold, displaying an animation that M virus patterns are broken on the display interface; and when the number of the virus patterns currently displayed on the display interface is zero, displaying prompt information for prompting the completion of virus cleaning on the display interface.
7. The apparatus of claim 6, further comprising: the gravity monitoring module and the second control module;
the gravity monitoring module is configured to acquire a current first gravity direction of the mobile terminal when the change of the gravity direction of the mobile terminal is monitored;
the second control module is configured to control the N virus patterns to move towards the first gravity direction on the display interface.
8. The apparatus of claim 6, further comprising: a prompt module;
the prompting module is configured to output a prompting instruction when at least one animation with the broken virus patterns is displayed or M animations with the broken virus patterns are displayed, wherein the prompting instruction is used for indicating the mobile terminal to ring or vibrate.
9. The apparatus of claim 6, wherein the first control module is configured to perform at least one of:
controlling the sizes of the N virus patterns to randomly change within a preset pattern size range;
and controlling the N virus patterns to randomly move on the display interface.
10. The apparatus of claim 6, further comprising: a fourth control module;
the fourth control module is configured to set the background color of the display interface to a specified color when the virus is found to exist, wherein the specified color is a color for prompting the user that the virus exists.
11. A virus scanning apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a scanning instruction;
performing a virus scan in response to the scan instruction;
when the virus exists, displaying N virus patterns on a display interface; wherein N is a natural number greater than 0;
controlling the N virus patterns to change on the display interface according to a preset rule
Monitoring whether the mobile terminal shakes;
when the mobile terminal is monitored to shake, determining a current first shaking frequency of the mobile terminal and the number M of the virus patterns currently displayed on the display interface; wherein M is less than or equal to N;
when the first shaking frequency is less than or equal to a first frequency threshold value, adjusting the sizes of the M virus patterns according to a preset scaling;
when the first shaking frequency is larger than the first frequency threshold and smaller than or equal to a second frequency threshold, displaying an animation of the at least one virus pattern breakage on the display interface, wherein the number of the at least one virus pattern is smaller than M; after displaying the animation that at least one virus pattern is broken, executing the step of monitoring whether the mobile terminal shakes again;
when the first shaking frequency is larger than the second frequency threshold, displaying an animation that M virus patterns are broken on the display interface;
and when the number of the virus patterns currently displayed on the display interface is zero, displaying prompt information for prompting the completion of virus cleaning on the display interface.
CN201710175105.4A 2017-03-22 2017-03-22 Virus scanning method and device Active CN106940774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710175105.4A CN106940774B (en) 2017-03-22 2017-03-22 Virus scanning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710175105.4A CN106940774B (en) 2017-03-22 2017-03-22 Virus scanning method and device

Publications (2)

Publication Number Publication Date
CN106940774A CN106940774A (en) 2017-07-11
CN106940774B true CN106940774B (en) 2020-03-17

Family

ID=59464432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710175105.4A Active CN106940774B (en) 2017-03-22 2017-03-22 Virus scanning method and device

Country Status (1)

Country Link
CN (1) CN106940774B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668077A (en) * 2008-09-02 2010-03-10 Lg电子株式会社 Mobile terminal to prevent virus infection and method of controlling operation of the mobile terminal
CN102591626A (en) * 2011-01-11 2012-07-18 腾讯科技(深圳)有限公司 Window display method and device of security class software
CN102902523A (en) * 2012-08-29 2013-01-30 珠海市君天电子科技有限公司 Display method and display system thereof for scan result interface of mobile device
US8490068B1 (en) * 2007-01-26 2013-07-16 Intuit Inc. Method and system for feature migration
CN105549846A (en) * 2015-12-10 2016-05-04 广东欧珀移动通信有限公司 Splitting method of sound box group and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8490068B1 (en) * 2007-01-26 2013-07-16 Intuit Inc. Method and system for feature migration
CN101668077A (en) * 2008-09-02 2010-03-10 Lg电子株式会社 Mobile terminal to prevent virus infection and method of controlling operation of the mobile terminal
CN102591626A (en) * 2011-01-11 2012-07-18 腾讯科技(深圳)有限公司 Window display method and device of security class software
CN102902523A (en) * 2012-08-29 2013-01-30 珠海市君天电子科技有限公司 Display method and display system thereof for scan result interface of mobile device
CN105549846A (en) * 2015-12-10 2016-05-04 广东欧珀移动通信有限公司 Splitting method of sound box group and mobile terminal

Also Published As

Publication number Publication date
CN106940774A (en) 2017-07-11

Similar Documents

Publication Publication Date Title
US9674395B2 (en) Methods and apparatuses for generating photograph
EP3182716A1 (en) Method and device for video display
RU2632160C2 (en) Method, device and terminal for displaying application messages
EP3046016A1 (en) Method and apparatus for switching display mode
EP3179711B1 (en) Method and apparatus for preventing photograph from being shielded
EP3188066A1 (en) A method and an apparatus for managing an application
US20170050114A1 (en) Method, terminal device, and storage medium for playing game in chatting interface
US10509540B2 (en) Method and device for displaying a message
US10025393B2 (en) Button operation processing method in single-hand mode
EP3136699A1 (en) Method and device for connecting external equipment
EP3125187A1 (en) Method and apparatus for recommending contact information
US20170064182A1 (en) Method and device for acquiring image file
US10425403B2 (en) Method and device for accessing smart camera
US20190235745A1 (en) Method and device for displaying descriptive information
EP2985991A1 (en) Method and device for time-lapse photographing
EP3379524A1 (en) View angle switching method and apparatus
CN108121631B (en) Screen abnormal state reminding method and device
CN107798309B (en) Fingerprint input method and device and computer readable storage medium
EP3015965A1 (en) Method and apparatus for prompting device connection
US20150116368A1 (en) Method and device for adjusting characters of application
CN106547462B (en) Photographing control method and device and mobile terminal
US10013151B2 (en) Method and terminal device for adjusting widget
CN106331328B (en) Information prompting method and device
EP3099023A1 (en) Method and device for sending message
CN107491238B (en) Display method and device of push information

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