CN109918348B - Cleaning method, terminal and computer readable storage medium for application browsing record - Google Patents

Cleaning method, terminal and computer readable storage medium for application browsing record Download PDF

Info

Publication number
CN109918348B
CN109918348B CN201910240274.0A CN201910240274A CN109918348B CN 109918348 B CN109918348 B CN 109918348B CN 201910240274 A CN201910240274 A CN 201910240274A CN 109918348 B CN109918348 B CN 109918348B
Authority
CN
China
Prior art keywords
record
cleaning
browsing
current
application
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
CN201910240274.0A
Other languages
Chinese (zh)
Other versions
CN109918348A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910240274.0A priority Critical patent/CN109918348B/en
Publication of CN109918348A publication Critical patent/CN109918348A/en
Application granted granted Critical
Publication of CN109918348B publication Critical patent/CN109918348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a cleaning method for application browsing records, a terminal and a computer readable storage medium, wherein the method comprises the following steps: when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction; when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database; and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted. According to the scheme, the content types required to be cleaned by the terminal user are set as the cleaning database, so that the information which is cached in the browsing process and corresponds to the content required to be cleaned is cleaned, leakage of the terminal operation behaviors of the terminal user is avoided, and the use safety of the terminal is improved.

Description

Cleaning method, terminal and computer readable storage medium for application browsing record
Technical Field
The present invention relates to the field of intelligent terminals, and in particular, to a cleaning method for application browsing records, a terminal, and a computer readable storage medium.
Background
Along with the development of intelligent terminals and network technologies, the degree of dependence of people on terminals such as mobile phones, tablet computers and the like is higher and higher; various types of application software are installed in terminals for social contact through the application software, such as installed WeChat, microblog, QQ, etc.
At present, each application software has a caching mechanism in the use process, and the browsed and looked-up picture files or video files are cached in the terminal; when the terminal user subsequently has the viewing requirement again, the cached content can be directly called from the terminal for the terminal user to view, and the terminal user does not need to download again. When the same personnel related to the terminal user use the application software, whether the terminal user checks the picture file or the video file can be judged by judging whether the picture file or the video file is cached or not.
Although the buffer storage mode facilitates the viewing operation of the terminal user, for some picture files or video files which are viewed by the terminal user, other people may not know that the files are viewed by the terminal user, and at the moment, the buffer storage can enable other people to easily know that the files are viewed by the terminal user, so that the terminal user leaks the terminal operation behavior, and the terminal use safety is low.
Disclosure of Invention
The invention mainly aims to provide a cleaning method, a terminal and a computer readable storage medium for application browsing records, and aims to solve the problems that in the prior art, application software installed in the terminal caches pictures and video files watched by a terminal user, leakage of terminal operation behaviors of the terminal user is easy to cause, and the use safety of the terminal is low.
In order to achieve the above object, the present invention provides a method for cleaning application browsing records, which includes the following steps:
when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted.
Optionally, the step of determining, according to the cleaning database, whether the record to be deleted exists in the current browsing record generated based on the current browsing application includes:
Invoking the cleaning database, reading the browsing application identifier of the current browsing application, and judging whether a target application identifier corresponding to the browsing application identifier exists in each application identifier of the cleaning database;
if a target application identifier corresponding to the browsing application identifier exists, judging whether a record to be deleted exists in the current browsing record according to a browsing content identifier of the current browsing record generated based on the current browsing application;
and if the target application identifier corresponding to the browsing application identifier does not exist, reading a current browsing record generated based on the current browsing application, and judging whether a record to be deleted exists in the current browsing record according to a matching relationship between the current browsing record and the cleaning feature in the cleaning database.
Optionally, the step of determining whether the record to be deleted exists in the current browsing record according to the matching relationship between the current browsing record and the cleaning feature in the cleaning database includes:
reading the cleaning characteristics in the cleaning database, comparing the current browsing record with the cleaning characteristics, and generating the similarity between the current browsing record and the cleaning characteristics;
Comparing the similarity with a preset threshold value, and judging whether the matching relationship is successful in matching;
and if the matching relation is successful, judging that the record to be deleted exists in the current browsing record.
Optionally, the step of reading the cleaning features in the cleaning database is preceded by:
reading a history deletion record of cleaning operation based on the cleaning database, and dividing the history deletion record into a picture attribute record and a video attribute record;
according to a preset picture rule, reading a plurality of picture characteristics in each picture attribute record, and screening common picture characteristics in the plurality of picture characteristics;
dividing each video attribute record into a plurality of picture frames, reading a plurality of frame characteristics in each picture frame according to the preset picture rule, and screening common frame characteristics in a plurality of frame characteristics;
and determining the common picture feature and the common frame feature as the cleaning feature.
Optionally, the step of comparing the current browsing record with the cleaning feature, and generating the similarity between the current browsing record and the cleaning feature includes:
Reading the attribute identification of the current browsing record, and determining the record attribute of the current browsing record according to the attribute identification;
when the recording attribute is a picture attribute, extracting a current picture feature in the current browsing record, comparing the current picture feature with the common picture feature, and generating similarity between the current browsing record and the cleaning feature;
when the recording attribute is a video attribute, dividing the current browsing record into a plurality of current picture frames, and extracting current frame characteristics in each current picture frame;
and comparing the current frame characteristics with the common frame characteristics to generate the similarity between the current browsing record and the cleaning characteristics.
Optionally, the step of determining whether the record to be deleted exists in the current browsing record according to the browsing content identifier of the current browsing record generated based on the current browsing application includes:
reading a browsing content identifier of a current browsing record generated based on the current browsing application, comparing the browsing content identifier with a cleaning content identifier corresponding to the target application identifier, and judging whether target content identifiers corresponding to the browsing content identifiers exist in the cleaning content identifiers or not;
If the target content identifier corresponding to the browse content identifier exists, judging that the record to be deleted exists in the current browse record, and determining the current browse record carrying the target content identifier as the record to be deleted;
and if the target content identifier corresponding to the browse content identifier does not exist, judging that the record to be deleted does not exist in the current browse record.
Optionally, if the record to be deleted exists in the current browsing record, the step of cleaning the record to be deleted includes:
when the record to be deleted exists in the current browsing record, determining a record type corresponding to the record to be deleted;
reading the record times corresponding to the record types in the cleaning database, and judging whether the record times are larger than a preset time threshold;
if the record to be deleted is larger than a preset frequency threshold, cleaning the record to be deleted;
and if the record to be deleted is not greater than the preset frequency threshold, outputting prompt information for cleaning the record to be deleted, and cleaning the record to be deleted when a cleaning instruction sent based on the prompt information is received.
Optionally, if the record to be deleted exists in the current browsing record, the step of cleaning the record to be deleted includes:
Extracting current cleaning characteristics in the record to be deleted, and adding the current cleaning characteristics into the cleaning database to update the cleaning database.
In addition, to achieve the above object, the present invention also proposes a terminal including: memory, processor, communication bus, and application browsing record cleanup program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a cleaning program of the application browsing record, so as to implement the following steps:
when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium storing one or more programs executable by one or more processors for:
When a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted.
According to the application browsing record cleaning method, when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction; when the exit operation of the current browsing application is detected, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database; and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted. The selection cleaning instruction in the scheme comprises an application which is selected by a user and needs to be cleaned by browsing records, and a content type which needs to be cleaned in the selected application; the method comprises the steps of forming a cleaning database according to a selection cleaning instruction, wherein the cleaning database is essentially formed by forming an application needing cleaning of browsing records and the type of content needing cleaning in each application into a database; after the terminal user finishes browsing and viewing the application installed in the terminal and exits from generating the current browsing record of the browsing, invoking a cleaning database to judge whether a record to be deleted which needs cleaning operation exists in the current browsing record, and if so, deleting the record to be deleted; the content types required to be cleaned by the terminal user are set as the cleaning database so as to clean the information cached in the browsing process and corresponding to the content required to be cleaned, and when people related to the terminal user view the application browsed by the terminal user, the cache of the content required to be cleaned in the application is cleaned, so that the viewing operation of the terminal user cannot be reflected, the leakage of the terminal user to the terminal operation behavior is avoided, and the use safety of the terminal is improved.
Drawings
FIG. 1 is a schematic diagram of the hardware architecture of an alternative terminal for implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a wireless communication system of the terminal shown in fig. 1;
FIG. 3 is a flowchart illustrating a first embodiment of a method for cleaning application browsing records according to the present invention;
FIG. 4 is a schematic view of a scene of setting cleaning content in the cleaning method using browsing records according to the present invention;
fig. 5 is a schematic view of a scene of deleting an application in a cleaning database by using a cleaning method of browsing records.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a fixed terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a mobile type terminal in addition to elements particularly used for a fixed purpose.
Referring to fig. 1, which is a schematic hardware structure of a terminal implementing various embodiments of the present invention, the terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110 (e.g., CPU), a communication bus 1002, and a power supply 111. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and that the terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Such as adding user interfaces, network interfaces, cameras, etc. Wherein the user interface may comprise a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
The following describes the components of the terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The terminal 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. In addition, other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like can be configured, and are not described herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, text data, etc.) created according to the use of the terminal, and the like. In addition, memory 109 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 volatile solid-state storage device.
The processor 110 is a control center of the terminal, and connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The communication bus 1002 is used to enable connected communication between the processor 110 and the memory 109. The memory 109 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 109 may alternatively be a storage device separate from the aforementioned processor 110.
The terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the terminal 100 may further include a bluetooth module or the like, which is not described herein.
As shown in fig. 1, an operating system, a network communication module, and a cleaning program for application browsing records may be included in the memory 109 as one type of computer storage medium. The operating system is a program that manages and controls the terminal hardware and software resources, supporting the execution of cleaning programs and other software and/or programs that the application browses the records. The network communication module is used to enable communication between components within the memory 109 and with other hardware and software in the terminal.
In the terminal shown in fig. 1, the processor 110 is configured to execute a cleaning program of the application browsing record stored in the memory 109, and implement the following steps:
when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted.
Further, the step of determining, according to the cleaning database, whether a record to be deleted exists in the current browsing record generated based on the current browsing application includes:
invoking the cleaning database, reading the browsing application identifier of the current browsing application, and judging whether a target application identifier corresponding to the browsing application identifier exists in each application identifier of the cleaning database;
if a target application identifier corresponding to the browsing application identifier exists, judging whether a record to be deleted exists in the current browsing record according to a browsing content identifier of the current browsing record generated based on the current browsing application;
And if the target application identifier corresponding to the browsing application identifier does not exist, reading a current browsing record generated based on the current browsing application, and judging whether a record to be deleted exists in the current browsing record according to a matching relationship between the current browsing record and the cleaning feature in the cleaning database.
Further, the step of determining whether the record to be deleted exists in the current browsing record according to the matching relationship between the current browsing record and the cleaning feature in the cleaning database includes:
reading the cleaning characteristics in the cleaning database, comparing the current browsing record with the cleaning characteristics, and generating the similarity between the current browsing record and the cleaning characteristics;
comparing the similarity with a preset threshold value, and judging whether the matching relationship is successful in matching;
and if the matching relation is successful, judging that the record to be deleted exists in the current browsing record.
Further, before the step of reading the cleaning characteristics in the cleaning database, the processor 110 is configured to execute a cleaning program of the application browsing record stored in the memory 109, to implement the following steps:
Reading a history deletion record of cleaning operation based on the cleaning database, and dividing the history deletion record into a picture attribute record and a video attribute record;
according to a preset picture rule, reading a plurality of picture characteristics in each picture attribute record, and screening common picture characteristics in the plurality of picture characteristics;
dividing each video attribute record into a plurality of picture frames, reading a plurality of frame characteristics in each picture frame according to the preset picture rule, and screening common frame characteristics in a plurality of frame characteristics;
and determining the common picture feature and the common frame feature as the cleaning feature.
Further, the step of comparing the current browsing record with the cleaning feature, and generating the similarity between the current browsing record and the cleaning feature includes:
reading the attribute identification of the current browsing record, and determining the record attribute of the current browsing record according to the attribute identification;
when the recording attribute is a picture attribute, extracting a current picture feature in the current browsing record, comparing the current picture feature with the common picture feature, and generating similarity between the current browsing record and the cleaning feature;
When the recording attribute is a video attribute, dividing the current browsing record into a plurality of current picture frames, and extracting current frame characteristics in each current picture frame;
and comparing the current frame characteristics with the common frame characteristics to generate the similarity between the current browsing record and the cleaning characteristics.
Further, the step of judging whether the record to be deleted exists in the current browsing record according to the browsing content identifier of the current browsing record generated based on the current browsing application includes:
reading a browsing content identifier of a current browsing record generated based on the current browsing application, comparing the browsing content identifier with a cleaning content identifier corresponding to the target application identifier, and judging whether target content identifiers corresponding to the browsing content identifiers exist in the cleaning content identifiers or not;
if the target content identifier corresponding to the browse content identifier exists, judging that the record to be deleted exists in the current browse record, and determining the current browse record carrying the target content identifier as the record to be deleted;
and if the target content identifier corresponding to the browse content identifier does not exist, judging that the record to be deleted does not exist in the current browse record.
Further, if the record to be deleted exists in the current browsing record, the step of cleaning the record to be deleted includes:
when the record to be deleted exists in the current browsing record, determining a record type corresponding to the record to be deleted;
reading the record times corresponding to the record types in the cleaning database, and judging whether the record times are larger than a preset time threshold;
if the record to be deleted is larger than a preset frequency threshold, cleaning the record to be deleted;
and if the record to be deleted is not greater than the preset frequency threshold, outputting prompt information for cleaning the record to be deleted, and cleaning the record to be deleted when a cleaning instruction sent based on the prompt information is received.
Further, after the step of cleaning the record to be deleted if the record to be deleted exists in the current browsing record, the processor 110 is configured to execute a cleaning program of the application browsing record stored in the memory 109, so as to implement the following steps:
extracting current cleaning characteristics in the record to be deleted, and adding the current cleaning characteristics into the cleaning database to update the cleaning database.
The specific implementation manner of the terminal is basically the same as the following embodiments of the method for cleaning the application browsing record, and will not be repeated here.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the mobile terminal hardware structure and the communication device structure, the invention provides each embodiment of the cleaning method for the application browsing record.
Referring to fig. 3, the present invention provides a method for cleaning application browsing records, in a first embodiment of the method for cleaning application browsing records, the method for cleaning application browsing records includes:
step S10, when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
the method for cleaning the application browsing records is applied to a control center of the terminal, and is suitable for cleaning browsing records cached by application software in the terminal, wherein the application software is an application installed in the terminal by a terminal user, such as WeChat, microblog, QQ and the like; the cached browsing records are records in which the terminal user browses and views each application installed in the type and the network is relied on to cache each checked image, document, video and other files. The buffer memory does not distinguish the types of the files, so long as the files which are checked by the terminal user are buffered, when the subsequent terminal user checks the checked files again, the buffered files in the terminal are directly called for display, and the requirement of checking the files again by the terminal user can be met. Also for personnel associated with the end user, such as the end user's girlfriend, men's friends, wife, husband, mother or father, etc.; and when the terminal of the terminal user is taken, opening the application in the terminal, clicking the files such as pictures, documents, videos and the like in the application, if the files are directly opened without downloading, characterizing that the terminal user has checked the files before, and if the files are required to be downloaded without buffering, characterizing that the terminal user has not checked the files before.
Therefore, a person related to the terminal user can judge whether the terminal user looks over the files such as pictures, documents, videos and the like through whether the files are cached in the application; for some files, the end user does not want others to know that they have viewed the file. If the friends are both parties of men and women, the men like to watch the girl pictures and pay attention to investment financing, and the women do not like to watch the girl pictures and pay attention to investment financing; women like to buy clothes and cosmetics, while men do not like the shopping behavior; thus, for a friend of a man, it is not desirable for the friend of a woman to know his or her behavior of watching a picture of girl and paying attention to investment financing, and for the friend of a woman, it is not desirable for the friend of a man to know his or her behavior of browsing shopping videos or shopping popularization pictures. Therefore, in order to meet the demands of different terminal users on terminal use, a mechanism is provided for cleaning the content which the terminal user does not want other personnel to know to view, namely, the terminal user sets the content which needs to be cleaned, and when browsing records related to the content are generated and cached in the application which is subsequently viewed, the cleaning operation is performed on the content in the cache.
Specifically, a selection page for selecting the required cleaning content is arranged in the terminal, and when the terminal user has the requirement of selecting the required cleaning content, the selection page is started by long-pressing or double-clicking an icon corresponding to the selection page. Referring to fig. 4, the selection page includes various application icons, such as a WeChat icon, a QQ icon, etc., capable of supporting cache cleaning, corresponding to the content types, such as pictures or videos, under WeChat, capable of supporting cleaning in various applications included under the various application icons; after selecting an application icon which needs to be cleaned by buffering, the terminal user jumps to a content type page which corresponds to the application icon and can support cleaning, and the content type which needs to be cleaned can be selected in the content type page. Triggering a virtual key for confirming selection after the selection of the application and the content type is completed, and sending a triggering instruction of the virtual key to a control center as a selection cleaning instruction for browsing records in each application; after receiving the instruction for selecting and cleaning, the control center can determine the application and the content type of the buffer cleaning required by the terminal user according to the carried application identifier and the content type identifier. In order to meet the cleaning requirement of the terminal user, the application and the content type for selecting the representation required to be cleaned by the cleaning instruction are formed into a cleaning database, and the cleaning database is used as a cleaning rule to clean the browsing records generated by the subsequent terminal user browsing application.
It should be noted that, the end user can update the cleaning database according to the own requirement; when an application is added to the cleaning database as a new application needing cleaning, a cleaning instruction is triggered to be selected, and the new application can be added to the cleaning database. Correspondingly, when some application is deleted from the cleaning database, the same triggering and selecting cleaning instruction is used for jumping to the selected page through triggering and selecting the cleaning instruction; referring to fig. 5, an application to be deleted among the selected applications displayed on the selected page is dragged to a deletion box to be deleted. According to the autonomous setting of the cleaning database according to the self requirements of the terminal users, the different cleaning requirements of different terminal users can be conveniently realized, and the flexibility of terminal use is improved.
Step S20, when the exit operation of the current browsing application is detected, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
further, the application started and viewed by the terminal user at the current moment is used as the current browsing application, and when the exiting operation of the current browsing application sent by the terminal user is detected, the terminal user is stated to finish the browsing operation of the current browsing application, and the generated browsing record for viewing the current browsing application is cached in the terminal. The exit operation may be an operation of directly returning to the main page, or selecting an exit option to exit, or closing a process to exit, which is not limited. A buffer unit is preset in the terminal, and a buffer path for buffering the browsing record to the buffer unit is formed; cache units and cache paths corresponding to different applications are different; in the using process of the current browsing application, a caching unit and a caching path corresponding to the current browsing application are determined, and then the caching path is started to cache the browsing record generated by the current browsing application into the caching unit, so that the browsing record is cached into the terminal.
Furthermore, the browsing record generated by the current browsing application is used as the current browsing record, the content which needs to be cleaned may or may not exist in the current browsing record, the content which needs to be cleaned is used as the record to be deleted, and whether the record to be deleted exists in the current browsing record is determined by the cleaning database. Specifically, the cleaning database is called, and the current browsing record is compared with each item of content set in the cleaning database to generate a comparison result; and judging whether a record to be deleted which needs to be cleaned exists in the current browsing record generated based on the current browsing application according to the comparison result. If the comparison result shows that a certain record exists in the current browsing record and corresponds to a certain content in the cleaning database, the certain record is indicated to exist in the cleaning database and is a record to be deleted; otherwise, if the comparison result shows that any record does not exist in the current browsing record and each content in the cleaning database corresponds, the current browsing record is indicated to be not exist in the cleaning database, and the record to be deleted does not exist in the current browsing record.
And step S30, if the record to be deleted exists in the current browsing record, cleaning the record to be deleted.
Further, if it is determined that the record to be deleted exists in the current browsing record, the record to be deleted is that the terminal user does not want other related personnel to know the content which the terminal user has viewed, so that the record to be deleted is deleted. And generating a cleaning thread according to the cache unit and the cache path of the current browsed record during deletion, and cleaning the record to be deleted by the cleaning thread according to the cache path into the cache unit. After the record to be deleted is cleaned, when the record to be deleted is checked later, the record to be deleted needs to be downloaded again through a network; other personnel related to the terminal user do not know that the terminal user checks the record to be deleted, and unnecessary trouble caused by the fact that the operation behavior of the terminal user on the terminal is known by other related personnel is avoided.
According to the application browsing record cleaning method, when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction; when the exit operation of the current browsing application is detected, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database; and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted. The selection cleaning instruction in the scheme comprises an application which is selected by a user and needs to be cleaned by browsing records, and a content type which needs to be cleaned in the selected application; the method comprises the steps of forming a cleaning database according to a selection cleaning instruction, wherein the cleaning database is essentially formed by forming an application needing cleaning of browsing records and the type of content needing cleaning in each application into a database; after the terminal user finishes browsing and viewing the application installed in the terminal and exits from generating the current browsing record of the browsing, invoking a cleaning database to judge whether a record to be deleted which needs cleaning operation exists in the current browsing record, and if so, deleting the record to be deleted; the content types required to be cleaned by the terminal user are set as the cleaning database so as to clean the information cached in the browsing process and corresponding to the content required to be cleaned, and when people related to the terminal user view the application browsed by the terminal user, the cache of the content required to be cleaned in the application is cleaned, so that the viewing operation of the terminal user cannot be reflected, the leakage of the terminal user to the terminal operation behavior is avoided, and the use safety of the terminal is improved.
Further, in another embodiment of the method for cleaning a browsing record of the present invention, the step of determining, according to the cleaning database, whether a record to be deleted exists in the current browsing record generated based on the current browsing application includes:
step S21, calling the cleaning database, reading the browsing application identifier of the current browsing application, and judging whether a target application identifier corresponding to the browsing application identifier exists in each application identifier of the cleaning database;
step S22, if a target application identifier corresponding to the browsing application identifier exists, judging whether a record to be deleted exists in the current browsing record according to the browsing content identifier of the current browsing record generated based on the current browsing application;
furthermore, applications requiring cache cleaning and content types requiring cleaning in each application are set in the cleaning database, wherein each application exists in the form of application identification, and the content types in each application exist in the form of cleaning content identification. Meanwhile, each application installed in the terminal carries an identifier representing the uniqueness of each application so as to distinguish among the applications, and the identifier carried in the current browsing application is used as a browsing application identifier. In the process of judging whether a record to be deleted which needs to be cleaned exists in a current browsing record generated by a current browsing application, firstly, calling a cleaning database, and reading all application identifiers in the cleaning database to determine all applications which currently support cache cleaning through all application identifiers; and then reading the browsing application identifier of the current browsing application, comparing the browsing application identifier with each application identifier in the cleaning database, and judging whether a target application identifier corresponding to the browsing application identifier exists in each application identifier, namely judging whether the browsing application identifier exists in the application identifier.
Further, if it is determined that the browsing application identifier exists in the application identifiers, that is, when the target application identifier consistent with the browsing application identifier exists in the application identifiers in the database, the current browsing application viewed by the terminal user is the application needing to be subjected to browsing record cleaning. Considering that the cleaned content is different between different applications supporting cleaning, one part of the browsing records generated based on the applications supporting cleaning is the record needing cleaning, namely the content type added to the cleaning database is selected, and the other part of the browsing records is the record not needing cleaning, namely the content type added to the database is not selected. After determining that the current browsing application is an application requiring cleaning of browsing records, it is also required to determine whether there is a record requiring cleaning in the browsing records generated by the current browsing application, that is, whether there is a record corresponding to the content type added to the cleaning database. Specifically, in order to distinguish between different types of browsing records, each browsing record is allocated with a content identifier for representing the type of each browsing record while each browsing record is generated; and reading the content identifier carried by the current browsing record as a browsing content identifier, and judging whether a record to be deleted which needs to be cleaned exists in the current browsing record according to the browsing content identifier. The step of judging whether the record to be deleted exists in the current browsing record according to the browsing content identifier of the current browsing record generated based on the current browsing application comprises the following steps:
Step S221, reading a browsing content identifier of a current browsing record generated based on the current browsing application, comparing the browsing content identifier with a cleaning content identifier corresponding to the target application identifier, and judging whether a target content identifier corresponding to the browsing content identifier exists in each cleaning content identifier;
step S222, if the target content identifier corresponding to the browse content identifier exists, judging that a record to be deleted exists in the current browse record, and determining the current browse record carrying the target content identifier as the record to be deleted;
step S223, if the target content identifier corresponding to the browse content identifier does not exist, judging that the record to be deleted does not exist in the current browse record.
Furthermore, because the content types required to be cleaned by each application in the cleaning database exist in the form of cleaning content identifiers, after the content identifiers carried by the current browsing record are read as browsing content identifiers, the cleaning content identifiers corresponding to the target application identifiers in the cleaning database are read. And comparing the browse content identifier with each clear content identifier, and judging whether the browse content identifier exists in the clear content identifier, namely judging whether the target content identifier corresponding to the browse content identifier exists in each clear content identifier. If the browse content identifier is determined to exist in the clear content identifier by comparison, the presence of the target content identifier in the clear content identifier indicates that a record to be deleted which needs to be cleared exists in the current browse record, and the record carrying the target content identifier in the current browse record is the record to be deleted. If the fact that the target content identifier does not exist in the clearing content identifier is judged, the fact that the current browsing application is an application needing to clear browsing records is indicated, but the generated browsing records are not the content types needing to be cleared, and therefore the fact that the record to be deleted does not exist in the current browsing records is judged.
And S23, if the target application identifier corresponding to the browsing application identifier does not exist, reading a current browsing record generated based on the current browsing application, and judging whether a record to be deleted exists in the current browsing record according to the matching relation between the current browsing record and the cleaning feature in the cleaning database.
Further, if the browse application identifier is compared with each application identifier in the cleaning database, and it is determined that the target application identifier corresponding to the browse application identifier does not exist in the cleaning database, it is indicated that the current browse application is not an application requiring browse record cleaning. It is considered that although the current browsing application is not set as an application requiring the browsing record cleaning, there may be content in the generated browsing record which is not desired to be known to the relevant person to be viewed by the end user, so that the content in the browsing record needs to be identified and the end user is reminded to clean so as to avoid causing unnecessary trouble. Specifically, in the past, the cleaning database extracts the characteristics of each record to be deleted and generates cleaning characteristics in the process of cleaning each record to be deleted; after determining that the target application identifier does not exist in the cleaning database, further reading the current browsing record generated by the current browsing application, matching the current browsing record with the cleaning characteristics, and judging whether the record to be deleted exists in the current browsing record according to the matching relation between the current browsing record and the cleaning characteristics. The step of judging whether the record to be deleted exists in the current browsing record or not according to the matching relation between the current browsing record and the cleaning feature in the cleaning database comprises the following steps:
Step S231, reading the cleaning features in the cleaning database, comparing the current browsing record with the cleaning features, and generating the similarity between the current browsing record and the cleaning features;
step S232, comparing the similarity with a preset threshold value, and judging whether the matching relationship is successful;
step S233, if the matching relationship is successful, determining that the record to be deleted exists in the current browsing record.
Furthermore, each cleaning characteristic in the cleaning database is read, and the current browsing record and the cleaning characteristic are compared to generate the similarity between the current browsing record and the cleaning characteristic. The similarity characterizes the similarity degree between the current browsing record and the cleaning feature, and the number of similar features and the number of dissimilar features between the current browsing record and the cleaning feature can be determined by extracting the feature of the content corresponding to the current browsing record and comparing the feature with the cleaning feature; and determining a similarity value between the number of similar features and the number of dissimilar features, and taking the similarity value as the similarity. In addition, a preset threshold value representing the similarity is preset, the comparison between the preset threshold value and the similarity is called, and whether the preset threshold value is smaller than or equal to the similarity is judged; if the similarity is smaller than or equal to the similarity, the similarity between the current browsing record and the cleaning feature is higher, and the matching relationship between the current browsing record and the cleaning feature is judged to be successful; if the similarity is not smaller than or equal to the similarity, the similarity degree between the current browsing record and the cleaning feature is lower, and the matching relationship between the current browsing record and the cleaning feature is judged to be matching failure. If the matching relation is successful, the record with higher similarity with the record to be deleted which is cleaned before exists in the current browsing record is indicated; and the record with higher similarity is used as the record to be cleaned in the current browsing record, and the record to be deleted is judged to exist in the current browsing record. And when the matching relation is failed in matching, the fact that no record with higher similarity with the record to be deleted cleaned before exists in the current browsing record is indicated, and the fact that no record to be deleted exists in the current browsing record is judged.
Further, in another embodiment of the present invention, the step of reading the cleaning feature in the cleaning database includes:
step S234, reading a history deletion record of cleaning operation based on the cleaning database, and dividing the history deletion record into a picture attribute record and a video attribute record;
step S235, reading a plurality of picture features in each picture attribute record according to a preset picture rule, and screening common picture features in the plurality of picture features;
step S236, dividing each video attribute record into a plurality of picture frames, reading a plurality of frame features in each picture frame according to the preset picture rule, and screening out common frame features in a plurality of frame features;
step S237, determining the common picture feature and the common frame feature as the cleaning feature.
In this embodiment, each record to be deleted for cleaning the database in the past is read as a history deletion record, and the history deletion record is divided into a picture attribute record and a video attribute record according to different attributes of each record to be deleted; and when the record to be deleted forming the history deletion record is a picture file, dividing the record to be deleted into the type of the picture attribute record, and when the record to be deleted forming the history record is a video file, dividing the record to be deleted into the type of the video attribute record.
In addition, preset picture rules for extracting picture features are preset, for example, the characters of 'beauty', 'investment', 'buying and buying', and the like in the picture are taken as one of the preset picture rules, and the exposed waist, legs, and the like in the picture are taken as one of the preset picture rules. Calling the comparison of each picture in the preset picture rule and the picture attribute record, and reading the characteristic as the picture characteristic in the picture attribute record when the characteristic which is the same as any one rule in the preset picture rule exists in the picture; after the comparison of each picture in each picture attribute record is completed, a plurality of picture features corresponding to each picture in the picture attribute record are formed. Considering that the picture features corresponding to the pictures are different, namely the features related to the picture features are various; and in order to form a unified judging rule, screening the common characteristics in the plurality of picture characteristics to obtain the common picture characteristics for representing the commonality in the picture attribute records. If the investment word is related to a plurality of pictures in the picture attribute record, the investment can be used as a common picture characteristic; when the common picture features are formed, the preset picture number is set, and when at least the pictures with the preset picture number in the picture attribute record contain the same picture features, the picture features are used as the common picture features.
It will be appreciated that a video attribute record consists essentially of pictures from frame to frame, so that the video attribute record may be divided into a plurality of picture frames by the number of frames, i.e., one video attribute record is divided into a plurality of pictures. And then, extracting the characteristics of each picture frame as frame characteristics according to a preset picture rule, and screening the characteristics of each frame to form common frame characteristics corresponding to the video attribute records. The common frame feature is formed in the same manner as the common picture feature, and will not be described in detail herein.
Further, the common picture feature and the common frame feature are formed into the cleaning feature together, and different feature identifiers are used for distinguishing, so that whether the record to be deleted exists in the current browsing record or not can be judged according to the similarity between the cleaning feature and the current browsing record. Specifically, the step of comparing the current browsing record with the cleaning feature, and generating the similarity between the current browsing record and the cleaning feature includes:
step a1, reading an attribute identifier of the current browsing record, and determining a record attribute of the current browsing record according to the attribute identifier;
step a2, when the record attribute is a picture attribute, extracting a current picture feature in the current browsing record, and comparing the current picture feature with the common picture feature to generate a similarity between the current browsing record and the cleaning feature;
Step a3, when the recording attribute is a video attribute, dividing the current browsing record into a plurality of current picture frames, and extracting current frame characteristics in each current picture frame;
and a step a4 of comparing the current frame characteristics with the common frame characteristics to generate the similarity between the current browsing record and the cleaning characteristics.
Still further, the content characterized by the end user browsing in the current browsing record may be a picture, or may be video, or even both; the different content corresponds to different attribute identifications. Reading the attribute identification of the current browsing record to determine the record attribute of the current browsing record according to the attribute identification; when the attribute identifier characterizes the picture content, the recording attribute is a picture attribute, and when the attribute identifier characterizes the video content, the recording attribute is a video attribute. For the picture attribute, extracting current picture features in the current browsing record according to a preset picture rule, comparing the current picture features with common picture features, and determining the number of similar features and the number of dissimilar features between the current picture features and the common picture features; further, adding the number of similar features and the number of dissimilar features to generate an adding result; and then the quantity of the similar features and the addition result are used for carrying out ratio to generate the similarity between the current browsing record and the cleaning feature. For the video attribute, dividing the current browsing record into a plurality of current picture frames; and extracting the current frame characteristics in the current picture frame according to a preset picture rule, comparing the current frame characteristics with common frame characteristics, determining the quantity of similar characteristics and the quantity of dissimilar characteristics between the current frame characteristics and the common frame characteristics, and generating the similarity between the current browsing record and the cleaning characteristics according to the quantity of similar characteristics and the quantity of dissimilar characteristics. The current browsing record is divided into a video file and a picture file to be respectively processed, and the characteristic difference caused by the file difference is fully considered, so that the judgment of whether the record to be deleted exists in the current browsing record can be more accurate.
Further, in another embodiment of the method for cleaning a browsing record of the present invention, if the record to be deleted exists in the current browsing record, the step of cleaning the record to be deleted includes:
step S31, when the record to be deleted exists in the current browsing record, determining a record type corresponding to the record to be deleted;
step S32, reading the record times corresponding to the record types in the cleaning database, and judging whether the record times are larger than a preset time threshold;
step S33, if the number of times of record deletion is larger than a preset number of times threshold, cleaning the record to be deleted;
and step S34, if the number of times of cleaning is not greater than a preset number of times threshold, outputting prompt information for cleaning the record to be deleted, and cleaning the record to be deleted when a cleaning instruction sent based on the prompt information is received.
Understandably, the content viewed by the end user using the application at different times has a difference, so that the generated browsing records have a difference, and the records to be deleted in the current browsing record generated at different times are not identical. In the process of cleaning the record to be deleted, a cleaning reminding mechanism is arranged for improving the cleaning accuracy and the automation degree. Specifically, when it is determined that the record to be deleted exists in the current browsing record, a record type corresponding to the record to be deleted is further determined, wherein the record type represents the type of the record content in the record to be deleted. Meanwhile, the cleaning database counts the record types of the record to be deleted, which are cleaned each time, after determining the record type of the record to be deleted currently, the target type corresponding to the record type in the database to be cleaned is determined, and the record times corresponding to the target type, namely the record times corresponding to the record type in the cleaning database, are read.
In addition, a preset frequency threshold is preset, the recording frequency is compared with the preset frequency threshold, and whether the recording frequency is larger than the preset frequency threshold or not is judged; if the content of the record to be deleted is larger than the content of the record to be deleted, the record to be deleted is cleaned for a plurality of times, and the content of the record to be deleted is determined for the terminal user, so that the record to be deleted is cleaned automatically. When the number of times of recording is not greater than a preset number of times threshold, the fact that the record to be deleted currently cleaned does not have excessive cleaning operation in the past is a content which cannot be determined whether the terminal user needs to clean; and outputting prompt information for cleaning the record to be deleted so as to prompt a terminal user whether to determine that the record to be deleted needs to be cleaned. If the terminal user sends a cleaning instruction according to the prompt information, cleaning the record to be deleted, and simultaneously accumulating and updating the record times of the record type in the cleaning database. If the terminal user sends an instruction of not cleaning according to the prompt information, the record to be deleted is not cleaned, so that error cleaning is avoided.
Further, because the records to be cleaned generated at different moments are not identical, certain newly-appearing cleaning characteristics exist; the current cleaning characteristics in the record to be cleaned are extracted according to a preset image extraction technology, and the current cleaning characteristics are added into the cleaning database to update the cleaning database. When updating, judging whether all the characteristics in the current cleaning characteristics exist in the cleaning database, and if all the characteristics exist in the cleaning database, stopping updating; if a feature in the features does not exist in the cleaning database, the feature is added to the cleaning database to update the cleaning database. The accuracy of the judgment of the subsequent newly-appearing features can be ensured by updating the cleaning database, and the judgment of the subsequent record to be deleted is facilitated.
The present invention provides a computer-readable storage medium storing one or more programs, the one or more programs further executable by one or more processors for:
when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
and if the record to be deleted exists in the current browsing record, cleaning the record to be deleted.
Further, the step of determining, according to the cleaning database, whether a record to be deleted exists in the current browsing record generated based on the current browsing application includes:
invoking the cleaning database, reading the browsing application identifier of the current browsing application, and judging whether a target application identifier corresponding to the browsing application identifier exists in each application identifier of the cleaning database;
if a target application identifier corresponding to the browsing application identifier exists, judging whether a record to be deleted exists in the current browsing record according to a browsing content identifier of the current browsing record generated based on the current browsing application;
And if the target application identifier corresponding to the browsing application identifier does not exist, reading a current browsing record generated based on the current browsing application, and judging whether a record to be deleted exists in the current browsing record according to a matching relationship between the current browsing record and the cleaning feature in the cleaning database.
Further, the step of determining whether the record to be deleted exists in the current browsing record according to the matching relationship between the current browsing record and the cleaning feature in the cleaning database includes:
reading the cleaning characteristics in the cleaning database, comparing the current browsing record with the cleaning characteristics, and generating the similarity between the current browsing record and the cleaning characteristics;
comparing the similarity with a preset threshold value, and judging whether the matching relationship is successful in matching;
and if the matching relation is successful, judging that the record to be deleted exists in the current browsing record.
Further, prior to the step of reading the cleaning features in the cleaning database, the one or more programs may be further executable by one or more processors for:
Reading a history deletion record of cleaning operation based on the cleaning database, and dividing the history deletion record into a picture attribute record and a video attribute record;
according to a preset picture rule, reading a plurality of picture characteristics in each picture attribute record, and screening common picture characteristics in the plurality of picture characteristics;
dividing each video attribute record into a plurality of picture frames, reading a plurality of frame characteristics in each picture frame according to the preset picture rule, and screening common frame characteristics in a plurality of frame characteristics;
and determining the common picture feature and the common frame feature as the cleaning feature.
Further, the step of comparing the current browsing record with the cleaning feature, and generating the similarity between the current browsing record and the cleaning feature includes:
reading the attribute identification of the current browsing record, and determining the record attribute of the current browsing record according to the attribute identification;
when the recording attribute is a picture attribute, extracting a current picture feature in the current browsing record, comparing the current picture feature with the common picture feature, and generating similarity between the current browsing record and the cleaning feature;
When the recording attribute is a video attribute, dividing the current browsing record into a plurality of current picture frames, and extracting current frame characteristics in each current picture frame;
and comparing the current frame characteristics with the common frame characteristics to generate the similarity between the current browsing record and the cleaning characteristics.
Further, the step of judging whether the record to be deleted exists in the current browsing record according to the browsing content identifier of the current browsing record generated based on the current browsing application includes:
reading a browsing content identifier of a current browsing record generated based on the current browsing application, comparing the browsing content identifier with a cleaning content identifier corresponding to the target application identifier, and judging whether target content identifiers corresponding to the browsing content identifiers exist in the cleaning content identifiers or not;
if the target content identifier corresponding to the browse content identifier exists, judging that the record to be deleted exists in the current browse record, and determining the current browse record carrying the target content identifier as the record to be deleted;
and if the target content identifier corresponding to the browse content identifier does not exist, judging that the record to be deleted does not exist in the current browse record.
Further, if the record to be deleted exists in the current browsing record, the step of cleaning the record to be deleted includes:
when the record to be deleted exists in the current browsing record, determining a record type corresponding to the record to be deleted;
reading the record times corresponding to the record types in the cleaning database, and judging whether the record times are larger than a preset time threshold;
if the record to be deleted is larger than a preset frequency threshold, cleaning the record to be deleted;
and if the record to be deleted is not greater than the preset frequency threshold, outputting prompt information for cleaning the record to be deleted, and cleaning the record to be deleted when a cleaning instruction sent based on the prompt information is received.
Further, after the step of cleaning the record to be deleted if the record to be deleted exists in the current browsing record, the one or more programs may be further executed by one or more processors to:
extracting current cleaning characteristics in the record to be deleted, and adding the current cleaning characteristics into the cleaning database to update the cleaning database.
The specific implementation manner of the computer readable storage medium of the present invention is basically the same as the above embodiments of the cleaning method for application browsing records, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (8)

1. The method for cleaning the application browsing records is characterized by comprising the following steps of:
when a selection cleaning instruction for browsing records in each application is received, a cleaning database is formed according to the selection cleaning instruction;
when detecting the exit operation of the current browsing application, judging whether a record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database;
if the record to be deleted exists in the current browsing record, cleaning the record to be deleted;
the step of judging whether the record to be deleted exists in the current browsing record generated based on the current browsing application according to the cleaning database comprises the following steps:
Invoking the cleaning database, reading the browsing application identifier of the current browsing application, and judging whether a target application identifier corresponding to the browsing application identifier exists in each application identifier of the cleaning database;
if a target application identifier corresponding to the browsing application identifier exists, judging whether a record to be deleted exists in the current browsing record according to a browsing content identifier of the current browsing record generated based on the current browsing application;
if the target application identifier corresponding to the browsing application identifier does not exist, reading a current browsing record generated based on the current browsing application, and judging whether a record to be deleted exists in the current browsing record according to a matching relationship between the current browsing record and cleaning features in the cleaning database;
the step of judging whether the record to be deleted exists in the current browsing record according to the matching relation between the current browsing record and the cleaning feature in the cleaning database comprises the following steps:
reading the cleaning characteristics in the cleaning database, comparing the current browsing record with the cleaning characteristics, and generating the similarity between the current browsing record and the cleaning characteristics;
Comparing the similarity with a preset threshold value, and judging whether the matching relationship is successful in matching;
and if the matching relation is successful, judging that the record to be deleted exists in the current browsing record.
2. The method of cleaning application browsing records of claim 1, wherein the step of reading cleaning features in the cleaning database is preceded by:
reading a history deletion record of cleaning operation based on the cleaning database, and dividing the history deletion record into a picture attribute record and a video attribute record;
according to a preset picture rule, reading a plurality of picture characteristics in each picture attribute record, and screening out common picture characteristics in the plurality of picture characteristics;
dividing each video attribute record into a plurality of picture frames, reading a plurality of frame characteristics in each picture frame according to the preset picture rule, and screening common frame characteristics in the plurality of frame characteristics;
and determining the common picture feature and the common frame feature as the cleaning feature.
3. The method of claim 2, wherein the step of comparing the current navigation record with the cleaning feature to generate a similarity between the current navigation record and the cleaning feature comprises:
Reading the attribute identification of the current browsing record, and determining the record attribute of the current browsing record according to the attribute identification;
when the recording attribute is a picture attribute, extracting a current picture feature in the current browsing record, comparing the current picture feature with the common picture feature, and generating similarity between the current browsing record and the cleaning feature;
when the recording attribute is a video attribute, dividing the current browsing record into a plurality of current picture frames, and extracting current frame characteristics in each current picture frame;
and comparing the current frame characteristics with the common frame characteristics to generate the similarity between the current browsing record and the cleaning characteristics.
4. The method for cleaning up application browsing records according to claim 1, wherein said step of determining whether a record to be deleted exists in the current browsing record according to a browsing content identifier of the current browsing record generated based on the current browsing application comprises:
reading a browsing content identifier of a current browsing record generated based on the current browsing application, comparing the browsing content identifier with a cleaning content identifier corresponding to the target application identifier, and judging whether target content identifiers corresponding to the browsing content identifiers exist in the cleaning content identifiers or not;
If the target content identifier corresponding to the browse content identifier exists, judging that the record to be deleted exists in the current browse record, and determining the current browse record carrying the target content identifier as the record to be deleted;
and if the target content identifier corresponding to the browse content identifier does not exist, judging that the record to be deleted does not exist in the current browse record.
5. The method for cleaning up application browsing records according to any one of claims 1 to 4, wherein the step of cleaning up the record to be deleted if the record to be deleted exists in the current browsing record includes:
when the record to be deleted exists in the current browsing record, determining a record type corresponding to the record to be deleted;
reading the record times corresponding to the record types in the cleaning database, and judging whether the record times are larger than a preset time threshold;
if the record to be deleted is larger than a preset frequency threshold, cleaning the record to be deleted;
and if the record to be deleted is not greater than the preset frequency threshold, outputting prompt information for cleaning the record to be deleted, and cleaning the record to be deleted when a cleaning instruction sent based on the prompt information is received.
6. The method for cleaning up application browsing records according to claim 5, wherein if the record to be deleted exists in the current browsing record, the step of cleaning up the record to be deleted includes:
extracting current cleaning characteristics in the record to be deleted, and adding the current cleaning characteristics into the cleaning database to update the cleaning database.
7. A terminal, the terminal comprising: memory, processor, communication bus, and application browsing record cleanup program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute a cleaning program of the application browsing record to implement the steps of the method for cleaning application browsing records according to any one of claims 1-6.
8. A computer readable storage medium, wherein a cleaning program for an application browsing record is stored on the computer readable storage medium, which when executed by a processor implements s steps of the method for cleaning an application browsing record according to any one of claims 1-6.
CN201910240274.0A 2019-03-26 2019-03-26 Cleaning method, terminal and computer readable storage medium for application browsing record Active CN109918348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910240274.0A CN109918348B (en) 2019-03-26 2019-03-26 Cleaning method, terminal and computer readable storage medium for application browsing record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910240274.0A CN109918348B (en) 2019-03-26 2019-03-26 Cleaning method, terminal and computer readable storage medium for application browsing record

Publications (2)

Publication Number Publication Date
CN109918348A CN109918348A (en) 2019-06-21
CN109918348B true CN109918348B (en) 2023-09-19

Family

ID=66967114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910240274.0A Active CN109918348B (en) 2019-03-26 2019-03-26 Cleaning method, terminal and computer readable storage medium for application browsing record

Country Status (1)

Country Link
CN (1) CN109918348B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112149019A (en) * 2020-09-15 2020-12-29 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and computer-readable medium for displaying information
CN114065086B (en) * 2021-10-09 2022-11-11 广州市良策网络技术有限公司 Block chain-based internet browsing history data management method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801755A (en) * 2011-05-27 2012-11-28 腾讯科技(深圳)有限公司 Application management method and application platform
CN103034498A (en) * 2012-12-13 2013-04-10 广东欧珀移动通信有限公司 Method and system for collating application programs
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN105589926A (en) * 2015-11-27 2016-05-18 深圳市美贝壳科技有限公司 Method for clearing cache files of mobile terminal in real time
CN106126708A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 A kind of method and apparatus of the file deleting terminal storage
CN106325942A (en) * 2016-08-25 2017-01-11 维沃移动通信有限公司 Application program data processing method and mobile terminal
CN106528442A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Cache cleaning method and device
CN107145572A (en) * 2017-05-05 2017-09-08 广东欧珀移动通信有限公司 Data processing method, device, computer equipment and storage medium
CN107562652A (en) * 2017-08-07 2018-01-09 努比亚技术有限公司 A kind of method, computer-readable medium and equipment for clearing up caching rubbish
WO2018040167A1 (en) * 2016-08-31 2018-03-08 广州市乐商软件科技有限公司 Data caching method and apparatus
CN109388624A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 Distributed document delet method, device, system and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9262464B2 (en) * 2013-04-24 2016-02-16 Piriform Ltd. Cleaner with browser monitoring

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801755A (en) * 2011-05-27 2012-11-28 腾讯科技(深圳)有限公司 Application management method and application platform
CN103034498A (en) * 2012-12-13 2013-04-10 广东欧珀移动通信有限公司 Method and system for collating application programs
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN105589926A (en) * 2015-11-27 2016-05-18 深圳市美贝壳科技有限公司 Method for clearing cache files of mobile terminal in real time
CN106126708A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 A kind of method and apparatus of the file deleting terminal storage
CN106325942A (en) * 2016-08-25 2017-01-11 维沃移动通信有限公司 Application program data processing method and mobile terminal
WO2018040167A1 (en) * 2016-08-31 2018-03-08 广州市乐商软件科技有限公司 Data caching method and apparatus
CN106528442A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Cache cleaning method and device
CN107145572A (en) * 2017-05-05 2017-09-08 广东欧珀移动通信有限公司 Data processing method, device, computer equipment and storage medium
CN107562652A (en) * 2017-08-07 2018-01-09 努比亚技术有限公司 A kind of method, computer-readable medium and equipment for clearing up caching rubbish
CN109388624A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 Distributed document delet method, device, system and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Android智能手机信息安全管理***的研究";俞航坚;《中国优秀硕士学位论文全文数据库(信息科技辑)》;全文 *
"Dynamic cache cleaning on Android";Sean Finley 等;2013 IEEE International Conference on Communications (ICC);全文 *
"基于SDN的重复数据删除方法研究";冯周;《中国优秀硕士学位论文全文数据库(信息科技辑)》;全文 *
Reiley Jeyapaul 等."Smart cache cleaning: Energy efficient vulnerability reduction in embedded processors".2011Proceedings of the 14th international Conference on Compilers, Architectures and Synthesis for Embedded Systems.2011,全文. *

Also Published As

Publication number Publication date
CN109918348A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN108769787B (en) Video automatic caching method, terminal and computer readable storage medium
CN109040441B (en) Application body-separating display method, mobile terminal and computer readable storage medium
CN110134306B (en) Data sharing method and device and computer readable storage medium
CN110180181B (en) Method and device for capturing wonderful moment video and computer readable storage medium
CN107317689B (en) Message processing method, electronic equipment and computer storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN109918348B (en) Cleaning method, terminal and computer readable storage medium for application browsing record
CN109389394B (en) Multi-screen payment control method, equipment and computer readable storage medium
CN108200287B (en) Information processing method, terminal and computer readable storage medium
CN112346824B (en) Screen projection application control method and device and computer readable storage medium
CN107360211B (en) Information flow information offline method, related equipment and computer storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN109918015B (en) Terminal response method, terminal and computer readable storage medium
CN108566476B (en) Information processing method, terminal and computer readable storage medium
CN114442886A (en) Data processing method, intelligent terminal and storage medium
CN110275667B (en) Content display method, mobile terminal, and computer-readable storage medium
CN113835586A (en) Icon processing method, intelligent terminal and storage medium
CN109558503B (en) Expression pack display method, mobile terminal and computer readable storage medium
CN113254212A (en) Processing method, mobile terminal and storage medium
CN107562317B (en) Display method and terminal
CN108196926B (en) Platform content identification method, terminal and computer readable storage medium
CN112163148A (en) Information display method, mobile terminal and storage medium
CN109951607B (en) Content processing method, terminal and computer readable storage medium
CN110110138B (en) Preservation method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant