CN106293783B - Installation package cleaning method and equipment - Google Patents

Installation package cleaning method and equipment Download PDF

Info

Publication number
CN106293783B
CN106293783B CN201510251340.6A CN201510251340A CN106293783B CN 106293783 B CN106293783 B CN 106293783B CN 201510251340 A CN201510251340 A CN 201510251340A CN 106293783 B CN106293783 B CN 106293783B
Authority
CN
China
Prior art keywords
cleaning
installation package
terminal application
application installation
creation time
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
CN201510251340.6A
Other languages
Chinese (zh)
Other versions
CN106293783A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510251340.6A priority Critical patent/CN106293783B/en
Publication of CN106293783A publication Critical patent/CN106293783A/en
Application granted granted Critical
Publication of CN106293783B publication Critical patent/CN106293783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and equipment for cleaning an installation package; the embodiment of the invention acquires the cleaning strategy information of a user, wherein the cleaning strategy information indicates the creation time range of the terminal application installation package needing to be cleaned, then traverses the local system directory and subfiles to scan out the terminal application installation package, and determines whether the terminal application installation package meets the cleaning strategy information, if so, the terminal application installation package is taken as a cleaning candidate object, otherwise, the step of traversing the system directory and the subfiles is returned to be executed until the traversal is finished, thereby realizing that the installation package with a certain time dimension is automatically and flexibly selected according to the requirements of the user to carry out the cleaning purpose, and adopting the scheme can greatly improve the cleaning efficiency and improve the cleaning effect.

Description

Installation package cleaning method and equipment
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for cleaning an installation package.
Background
Along with the popularization of intelligent mobile terminals, the types of terminal applications are more and more extensive, and the terminal applications bring convenience to life of people and bring problems to users, for example, too many terminal applications occupy too much storage space and memory space, and the like, and the service performance of the mobile terminal is greatly reduced. Therefore, it is necessary to regularly arrange these terminal applications, for example, to uninstall an installation package of an expired or no longer used terminal application.
In the prior art, generally, during uninstallation, a system may default to select an installation package of an installed terminal application as a cleaning object, or may select cleaning objects of all installation packages. During the research and practice process of the prior art, the inventor of the present invention finds that the prior scheme is not flexible enough to realize, and not only the cleaning efficiency is low, but also the cleaning effect is not good.
Disclosure of Invention
The embodiment of the invention provides a method and a device for cleaning an installation package, which can be used for flexibly cleaning the installation package according to the requirements of users, improving the cleaning efficiency and improving the cleaning effect.
The embodiment of the invention provides a method for cleaning an installation package, which comprises the following steps:
acquiring cleaning strategy information of a user, wherein the cleaning strategy information indicates a creation time range of a terminal application installation package needing to be cleaned;
traversing the local system directory and the sub-files to scan out the terminal application installation package;
determining whether the terminal application installation package meets the cleaning strategy information;
if so, taking the terminal application installation package as a cleaning candidate object;
if not, returning to the step of traversing the system directory and the subfiles to scan the terminal application installation package until the traversal is finished.
Correspondingly, an embodiment of the present invention further provides a device for cleaning an installation package, including:
the terminal application installation package cleaning method comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring cleaning strategy information of a user, and the cleaning strategy information indicates a creation time range of a terminal application installation package needing to be cleaned;
the scanning unit is used for traversing the local system directory and the sub-files so as to scan out the terminal application installation package;
the processing unit is used for determining whether the terminal application installation package meets the cleaning strategy information; if so, taking the terminal application installation package as a cleaning candidate object; if not, returning to execute the traversal of the system directory and the subfiles to scan the operation of the terminal application installation package until the traversal is finished.
The embodiment of the invention acquires the cleaning strategy information of a user, then traverses the local system directory and subfiles to scan out the terminal application installation package, and determines whether the terminal application installation package meets the cleaning strategy information, if so, the terminal application installation package is used as a cleaning candidate object, otherwise, the step of traversing the system directory and the subfiles is returned to be executed until the traversal is finished, thereby realizing the purpose of automatically and flexibly selecting the installation package with a certain time dimension according to the requirement of the user to clean. According to the scheme, users do not need to select one by one, so that the cleaning efficiency can be greatly improved; moreover, because the scheme can traverse the local system directory and the sub-files, all installation packages which accord with the time dimension can be found out, including the installation packages which are unloaded by the user, and installation packages which are subjected to silent downloading (namely, installation packages which are not actively downloaded by the user), so that the cleaning is more thorough, the cleaning effect is greatly improved, more storage space can be saved for the user, and the performance of the mobile terminal is favorably improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a method for cleaning an installation package according to an embodiment of the present invention;
FIG. 2 is another flowchart of a method for cleaning an installation package according to an embodiment of the present invention;
FIG. 3a is a schematic structural diagram of a cleaning apparatus for installation packages according to an embodiment of the present invention;
FIG. 3b is another schematic structural diagram of a cleaning apparatus for an installation package according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method and a device for cleaning an installation package. The details will be described below, respectively.
The first embodiment,
In this embodiment, a description will be given from the perspective of a cleaning device of an installation package, where the cleaning device of the installation package may be specifically integrated in a device such as a mobile terminal, and the mobile terminal may be specifically a device such as a mobile phone or a tablet computer.
A method of cleaning an installation package, comprising: acquiring cleaning strategy information of a user, wherein the cleaning strategy information indicates a creation time range of a terminal application installation package needing to be cleaned; traversing a local system directory and subfiles to scan out a terminal application installation package; determining whether the terminal application installation package meets the cleaning strategy information; if so, taking the terminal application installation package as a cleaning candidate object; if not, returning to the step of traversing the system directory and the subfiles to scan the terminal application installation package until the traversal is finished.
As shown in fig. 1, the flow of the cleaning method for the installation package may specifically be as follows:
101. and acquiring the cleaning strategy information of the user.
The cleaning strategy information indicates the creating time range of the terminal application installation package which needs to be cleaned, and in addition, the cleaning strategy information can also indicate other information such as the downloading type of the terminal application installation package which needs to be cleaned.
The cleaning policy information may be preset according to a requirement of an actual application, that is, before the cleaning policy information of the user is acquired, the cleaning method of the installation package may further include:
and setting cleaning strategy information of the user.
For example, setting information, such as setting information input by a user, may be acquired, and then cleaning policy information of the user may be set according to the setting information.
102. And traversing the local system directory and the sub-files to scan out the terminal application installation package (installation package for short). For example, the following may be specifically mentioned:
and acquiring the universal characteristic information of the terminal application installation package, and traversing the local system directory and the sub-files to scan files meeting the universal characteristic information to obtain the terminal application installation package.
For example, the common characteristic information of the terminal application installation package may be obtained by using APK as a file name suffix, and the like.
103. And determining whether the terminal application installation package meets the cleaning strategy information, if so, executing the step 104, otherwise, returning to the step 102, namely, returning to the step of executing traversing of the system directory and the subfiles to scan out the terminal application installation package until the traversing is finished.
For example, specifically, the creation time of the terminal application installation package may be determined, and it is determined whether the creation time is within the creation time range indicated by the cleaning policy information, and if so, it is determined that the terminal application installation package satisfies the cleaning policy information; if not, determining that the terminal application installation package does not meet the cleaning strategy information.
For another example, if the cleaning policy information further indicates a download type of the terminal application installation package that needs to be cleaned, at this time, the step "determining whether the terminal application installation package satisfies the cleaning policy information" may include:
determining the creation time and the downloading type of the terminal application installation package;
judging whether the creation time is within the creation time range indicated by the cleaning strategy information and whether the downloading type is the downloading type of the terminal application installation package needing cleaning;
if the creation time is within the creation time range indicated by the cleaning strategy information and the download type is the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package meets the cleaning strategy information;
and if the creation time is not within the creation time range indicated by the cleaning strategy information or the download type is not the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package does not meet the cleaning strategy information.
The download type may be set according to the requirement of the actual application or the preference of the user, for example, the download type may include silent download (i.e. non-user active download), automatic download, already unloaded, latest download, and the like.
104. When the cleaning policy information is satisfied, the terminal application installation package is used as a candidate cleaning object, for example, a hook can be marked on an option corresponding to the terminal application installation package on a cleaning interface to indicate that the option is selected, and the like.
After that, the user may perform a cleaning operation according to the cleaning candidate object, that is, after the step "taking the terminal application installation package as the cleaning candidate object", the cleaning method of the installation package may further include:
and receiving a cleaning instruction triggered by a user according to the cleaning candidate object, determining a cleaning object from the cleaning candidate object according to the cleaning instruction, and cleaning the cleaning object.
The user can directly use all the cleaning candidate objects as cleaning objects and perform cleaning, and can also select a plurality of cleaning candidate objects from the plurality of cleaning candidate objects to perform cleaning.
As can be seen from the above, in the embodiment, the cleaning policy information of the user is obtained, then the local system directory and the subfiles are traversed to scan out the terminal application installation package, and whether the terminal application installation package meets the cleaning policy information is determined, if yes, the terminal application installation package is used as a candidate cleaning object, otherwise, the step of traversing the system directory and the subfiles is returned to be executed until the traversal is completed, so that the installation package with a certain time dimension is automatically and flexibly selected according to the user requirement, and the purpose of cleaning is achieved. According to the scheme, users do not need to select one by one, so that the cleaning efficiency can be greatly improved; moreover, because the scheme can traverse the local system directory and the sub-files, all installation packages which accord with the time dimension can be found out, including the installation packages which are unloaded by the user, and some installation packages which are subjected to silent downloading and the like, so that the cleaning is more thorough, the cleaning effect is greatly improved, more storage space can be saved for the user, and the performance of the mobile terminal is favorably improved.
Example II,
The method described in the first embodiment is further illustrated by way of example.
In this embodiment, a case where the cleaning apparatus of the installation package is specifically integrated in a mobile terminal will be described as an example.
As shown in fig. 2, a specific flow of the method for cleaning the installation package may be as follows:
201. the mobile terminal acquires the cleaning strategy information of the user.
The cleaning strategy information indicates the creating time range of the terminal application installation package which needs to be cleaned, and in addition, the cleaning strategy information can also indicate other information such as the downloading type of the terminal application installation package which needs to be cleaned. The cleaning strategy information can be preset according to the requirements of practical application, and is not described herein again.
202. The mobile terminal obtains the general characteristic information of the terminal application installation package.
For example, a general terminal application installation package uses APK as a file name suffix, so that the file name suffix may be used as the general feature information, and for convenience of description, in the embodiment of the present invention, the file name suffix is used as the general feature information.
203. And traversing the local system directory and the sub-files to scan the files which accord with the universal characteristic information to obtain the terminal application installation package.
For example, a local system directory and a local subfile may be traversed to scan out a file with an APK suffix to a file name, so as to obtain a terminal application installation package.
204. The mobile terminal determines the creation time of the terminal application installation package.
205. The mobile terminal determines whether the creation time is within the creation time range indicated by the cleaning policy information, if so, it is determined that the terminal application installation package meets the cleaning policy information, and then step 206 is executed; if not, determining that the terminal application installation package does not meet the cleaning strategy information, and then returning to execute the step 203.
For example, if the creation time range indicated by the cleaning policy information is N days ago, it may be determined whether the creation time is N days ago, and if so, it is determined that the terminal application installation package satisfies the cleaning policy information; if not, determining that the terminal application installation package does not meet the cleaning strategy information.
In addition, if the cleaning policy information further indicates a download type of the terminal application installation package that needs to be cleaned, in step 204, in addition to the creation time of the terminal application installation package, a download type of the terminal application installation package needs to be determined, and in this step (i.e., step 205), it needs to be determined whether the download type of the installation package is the download type of the terminal application installation package that needs to be cleaned, that is, at this time, whether the terminal application installation package meets the cleaning policy information may be determined according to the following manner, as follows:
judging whether the creation time is within the creation time range indicated by the cleaning strategy information and whether the downloading type is the downloading type of the terminal application installation package needing cleaning;
if the creation time is within the creation time range indicated by the cleaning strategy information and the download type is the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package meets the cleaning strategy information;
and if the creation time is not within the creation time range indicated by the cleaning strategy information or the download type is not the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package does not meet the cleaning strategy information.
For example, if the creation time range indicated by the cleaning policy information is N days ago and the download type is silent download, it may be determined whether the creation time is N days ago, and it has already been determined whether the download type of the installation package is silent download, and if the creation time is N days ago and the download type is silent download, it is determined that the terminal application installation package satisfies the cleaning policy information; otherwise, if the creation time is not N days ago or the download type is not silent download, determining that the terminal application installation package does not meet the cleaning strategy information.
206. When the cleaning policy information is satisfied, the mobile terminal takes the terminal application installation package as a cleaning candidate object, and then executes step 207.
For example, a hook may be marked on the cleaning interface for an option corresponding to the terminal application installation package to indicate that the option is selected, and the like.
207. The mobile terminal determines whether the traversal is completed, if so, executes step 208, otherwise, returns to execute step 203.
208. And the mobile terminal receives a cleaning instruction triggered by the user according to the cleaning candidate object, determines the cleaning object from the cleaning candidate object according to the cleaning instruction, and cleans the cleaning object.
The user can directly use all the cleaning candidate objects as cleaning objects to clean the cleaning objects, and can also select a plurality of cleaning candidate objects from a plurality of cleaning candidate objects to clean the cleaning objects.
As can be seen from the above, in this embodiment, the cleaning policy information of the user is obtained, then, the local system directory and the subfiles are traversed to scan out the terminal application installation package, and it is determined whether the terminal application installation package meets the cleaning policy information, if so, the terminal application installation package is used as a candidate cleaning object, otherwise, the step of traversing the system directory and the subfiles is returned to be executed until the traversal is completed, so that the purpose of automatically and flexibly selecting an installation package of a certain time dimension according to the user's requirement to perform cleaning is achieved. According to the scheme, users do not need to select one by one, so that the cleaning efficiency can be greatly improved; moreover, because the scheme can traverse the local system directory and the sub-files, all installation packages which accord with the time dimension can be found out, including the installation packages which are unloaded by the user, some installation packages which are downloaded in a silent mode and the like, so that the cleaning is more thorough, the cleaning effect is greatly improved, more storage space can be saved for the user, and the performance of the mobile terminal is favorably improved.
Example III,
Correspondingly, an embodiment of the present invention further provides a device for cleaning an installation package, as shown in fig. 3, the device for cleaning an installation package includes an obtaining unit 301, a scanning unit 302, and a processing unit 303, as follows:
(1) an acquisition unit 301;
an obtaining unit 301, configured to obtain cleaning policy information of a user.
The cleaning strategy information indicates the creating time range of the terminal application installation package which needs to be cleaned, and in addition, the cleaning strategy information can also indicate other information such as the downloading type of the terminal application installation package which needs to be cleaned.
The cleaning policy information may be preset according to the requirement of the actual application, that is, the cleaning apparatus for the installation package may further include a setting unit 304, as follows:
the setting unit 304 may be configured to set the cleaning policy information of the user.
For example, the setting unit 304 may acquire setting information, such as setting information input by a user, and then set the cleaning policy information of the user according to the setting information.
(2) A scanning unit 302;
the scanning unit 302 is configured to traverse the local system directory and the sub-file to scan out the terminal application installation package.
For example, the scanning unit 302 may be specifically configured to obtain general feature information of the terminal application installation package, and traverse through a local system directory and sub-files to scan out a file that meets the general feature information, so as to obtain the terminal application installation package.
For example, the common characteristic information of the terminal application installation package may be obtained by using APK as a file name suffix, and the like.
(3) A processing unit 303;
a processing unit 303, configured to determine whether the terminal application installation package satisfies the cleaning policy information; if so, taking the terminal application installation package as a cleaning candidate object; if not, returning to execute the traversal of the system directory and the subfiles to scan the operation of the terminal application installation package until the traversal is finished. For example, the following may be specific:
the processing unit 303 may be specifically configured to determine a creation time of the terminal application installation package; judging whether the creation time is within the creation time range indicated by the cleaning strategy information; if so, determining that the terminal application installation package meets the cleaning strategy information; if not, determining that the terminal application installation package does not meet the cleaning strategy information.
For another example, if the cleaning policy information further indicates a download type of the terminal application installation package that needs to be cleaned, at this time, the processing unit 303 may specifically be configured to:
determining the creation time and the downloading type of the terminal application installation package;
judging whether the creation time is within the creation time range indicated by the cleaning strategy information and whether the downloading type is the downloading type of the terminal application installation package needing cleaning;
if the creation time is within the creation time range indicated by the cleaning strategy information and the download type is the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package meets the cleaning strategy information;
and if the creation time is not within the creation time range indicated by the cleaning strategy information or the download type is not the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package does not meet the cleaning strategy information.
The download type may be set according to the requirement of the actual application or the preference of the user, for example, the download type may include silent download (i.e. non-user active download), automatic download, already unloaded, latest download, and the like.
Thereafter, the user may perform a cleaning operation according to the cleaning candidate object, that is, the cleaning apparatus of the installation package may further include a cleaning unit 305, as follows:
the cleaning unit 305 may be configured to receive a cleaning instruction triggered by a user according to the cleaning candidate object, determine a cleaning object from the cleaning candidate object according to the cleaning instruction, and clean the cleaning object.
The user can directly use all the cleaning candidate objects as cleaning objects and perform cleaning, and can also select a plurality of cleaning candidate objects from the plurality of cleaning candidate objects to perform cleaning.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
The cleaning device of the installation package can be specifically integrated in a mobile terminal and other devices, and the mobile terminal can be specifically a mobile phone or a tablet computer and other devices.
As can be seen from the above, the obtaining unit 301 of the cleaning apparatus for an installation package of this embodiment may obtain the cleaning policy information of the user, then the scanning unit 302 traverses the local system directory and subfiles to scan out the terminal application installation package, and the processing unit 303 determines whether the terminal application installation package meets the cleaning policy information, if so, the terminal application installation package is used as a candidate object for cleaning, otherwise, the step of traversing the system directory and the subfiles is returned to execute until the traversal is completed, so that the installation package of a certain time dimension is automatically and flexibly selected according to the user's requirement, so as to perform the cleaning purpose. According to the scheme, users do not need to select one by one, so that the cleaning efficiency can be greatly improved; moreover, because the scheme can traverse the local system directory and the sub-files, all installation packages which accord with the time dimension can be found out, including the installation packages which are unloaded by the user, and some installation packages which are subjected to silent downloading and the like, so that the cleaning is more thorough, the cleaning effect is greatly improved, more storage space can be saved for the user, and the performance of the mobile terminal is favorably improved.
Example four,
Correspondingly, the embodiment of the invention also provides a terminal, which integrates any installation package cleaning device provided by the embodiment of the invention. As shown in fig. 4, the terminal may include Radio Frequency (RF) circuitry 401, memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, audio circuitry 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 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 Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then sent to another terminal, for example, via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
acquiring cleaning strategy information of a user, wherein the cleaning strategy information indicates a creation time range of a terminal application installation package needing to be cleaned; traversing a local system directory and subfiles to scan out a terminal application installation package; determining whether the terminal application installation package meets the cleaning strategy information; if so, taking the terminal application installation package as a cleaning candidate object; if not, returning to the step of traversing the system directory and the subfiles to scan the terminal application installation package until the traversal is finished.
For example, the operation of determining whether the terminal application installation package satisfies the cleaning policy information may specifically be as follows:
determining the creation time of the terminal application installation package, judging whether the creation time is within the creation time range indicated by the cleaning strategy information, and if so, determining that the terminal application installation package meets the cleaning strategy information; if not, determining that the terminal application installation package does not meet the cleaning strategy information.
For another example, if the cleaning policy information further indicates a download type of the terminal application installation package that needs to be cleaned, at this time, the operation "determining whether the terminal application installation package satisfies the cleaning policy information" may include:
determining the creation time and the downloading type of the terminal application installation package;
judging whether the creation time is within the creation time range indicated by the cleaning strategy information and whether the downloading type is the downloading type of the terminal application installation package needing cleaning;
if the creation time is within the creation time range indicated by the cleaning strategy information and the download type is the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package meets the cleaning strategy information;
and if the creation time is not within the creation time range indicated by the cleaning strategy information or the download type is not the download type of the terminal application installation package needing cleaning, determining that the terminal application installation package does not meet the cleaning strategy information.
The download type may be set according to the requirement of the actual application or the preference of the user, for example, the download type may include silent download (i.e. non-user active download), automatic download, already unloaded, latest download, and the like.
In addition, after the terminal application installation package is used as a cleaning candidate object, the user may perform a cleaning operation according to the cleaning candidate object, that is, the processor 408 may further execute instructions for:
and receiving a cleaning instruction triggered by a user according to the cleaning candidate object, determining a cleaning object from the cleaning candidate object according to the cleaning instruction, and cleaning the cleaning object.
The user can directly use all the cleaning candidate objects as cleaning objects and perform cleaning, and can also select a plurality of cleaning candidate objects from the plurality of cleaning candidate objects to perform cleaning.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the terminal of this embodiment acquires the cleaning policy information of the user, then traverses the local system directory and the subfiles to scan out the terminal application installation package, and determines whether the terminal application installation package satisfies the cleaning policy information, if so, the terminal application installation package is used as a candidate cleaning object, otherwise, the step of traversing the system directory and the subfiles is returned to the execution step until the traversal is completed, so that the purpose of automatically and flexibly selecting an installation package of a certain time dimension according to the user's requirement is achieved to perform cleaning. According to the scheme, users do not need to select one by one, so that the cleaning efficiency can be greatly improved; moreover, because the scheme can traverse the local system directory and the sub-files, all installation packages which accord with the time dimension can be found out, including the installation packages which are unloaded by the user, and some installation packages which are subjected to silent downloading and the like, so that the cleaning is more thorough, the cleaning effect is greatly improved, more storage space can be saved for the user, and the performance of the mobile terminal is favorably improved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method and the device for cleaning the installation package provided by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for cleaning an installation package is characterized by comprising the following steps:
receiving setting information input by a user, and setting cleaning strategy information of the user according to the setting information, wherein the cleaning strategy information indicates a creation time range and a downloading type of a terminal application installation package needing cleaning, the creation time range and the downloading type are set according to the requirements of actual application or the preference of the user, and the downloading type comprises silent downloading, automatic downloading, unloading and latest downloading;
acquiring the cleaning strategy information of the user, and traversing a local system directory and subfiles to scan a terminal application installation package which accords with a certain time dimension; the terminal application installation package comprises an uninstalled installation package and the silent downloaded installation package;
determining the creation time and the downloading type of the terminal application installation package;
judging whether the creation time is within the creation time range indicated by the cleaning strategy information and whether the downloading type is the downloading type of the terminal application installation package needing to be cleaned;
if the creation time is within the creation time range indicated by the cleaning strategy information and the download type is the download type of the terminal application installation package needing cleaning, taking the terminal application installation package as a cleaning candidate object meeting the cleaning strategy information and displaying the cleaning candidate object on a cleaning interface;
if the creation time is not within the creation time range indicated by the cleaning strategy information or the downloading type is not the downloading type of the terminal application installation package needing to be cleaned, determining that the terminal application installation package does not meet the cleaning strategy information, and returning to the step of traversing system directories and subfiles to scan out the terminal application installation package which accords with a certain time dimension until the traversing is finished;
receiving a cleaning instruction triggered by a user according to the cleaning candidate object;
and taking at least one of all cleaning candidate objects as a cleaning object according to the cleaning instruction, and cleaning the cleaning object.
2. The method of claim 1, wherein traversing local system directories and subfiles to scan out end application installation packages that conform to a time dimension comprises:
acquiring general characteristic information of a terminal application installation package;
and traversing the local system directory and the sub-files to scan the files which accord with a certain time dimension and the general characteristic information to obtain the terminal application installation package.
3. A cleaning apparatus for an installation kit, comprising:
the system comprises a setting unit, a processing unit and a processing unit, wherein the setting unit is used for receiving setting information input by a user and setting cleaning strategy information of the user according to the setting information, the cleaning strategy information indicates a creation time range and a download type of a terminal application installation package needing to be cleaned, the creation time range and the download type are set according to the requirement of actual application or the preference of the user, and the download type comprises silent download, automatic download, uninstalled download and latest download;
an obtaining unit, configured to obtain cleaning policy information of the user;
the scanning unit is used for traversing the local system directory and the sub-files so as to scan the terminal application installation package which accords with a certain time dimension; the terminal application installation package comprises an uninstalled installation package and the silent downloaded installation package;
the processing unit is used for determining the creation time and the downloading type of the terminal application installation package; judging whether the creation time is within the creation time range indicated by the cleaning strategy information and whether the downloading type is the downloading type of the terminal application installation package needing to be cleaned; if the creation time is within the creation time range indicated by the cleaning strategy information and the download type is the download type of the terminal application installation package needing cleaning, taking the terminal application installation package as a cleaning candidate object meeting the cleaning strategy information and displaying the cleaning candidate object on a cleaning interface; if the creation time is not within the creation time range indicated by the cleaning strategy information or the downloading type is not the downloading type of the terminal application installation package needing to be cleaned, determining that the terminal application installation package does not meet the cleaning strategy information, and returning to execute traversing system directories and subfiles to scan out the operation of the terminal application installation package until the traversing is finished;
and the cleaning unit is used for receiving a cleaning instruction triggered by a user according to the cleaning candidate objects, taking at least one of all the cleaning candidate objects as a cleaning object according to the cleaning instruction, and cleaning the cleaning object.
4. The apparatus of claim 3,
the scanning unit is specifically configured to acquire universal feature information of the terminal application installation package, traverse local system directories and sub-files, and scan files that meet a certain time dimension and meet the universal feature information to obtain the terminal application installation package.
5. A terminal comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operations of the cleaning method for installation packages according to any one of claims 1 to 2.
6. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method for cleaning an installation package according to any one of claims 1 to 2.
CN201510251340.6A 2015-05-15 2015-05-15 Installation package cleaning method and equipment Active CN106293783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510251340.6A CN106293783B (en) 2015-05-15 2015-05-15 Installation package cleaning method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510251340.6A CN106293783B (en) 2015-05-15 2015-05-15 Installation package cleaning method and equipment

Publications (2)

Publication Number Publication Date
CN106293783A CN106293783A (en) 2017-01-04
CN106293783B true CN106293783B (en) 2022-06-03

Family

ID=57632312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510251340.6A Active CN106293783B (en) 2015-05-15 2015-05-15 Installation package cleaning method and equipment

Country Status (1)

Country Link
CN (1) CN106293783B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563759B (en) * 2018-04-17 2022-05-24 泰康保险集团股份有限公司 Method for clearing login user, device storage medium and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4908849B2 (en) * 2006-01-11 2012-04-04 富士通セミコンダクター株式会社 File deletion method, file opening method, file deletion program, and file opening program
CN103761306B (en) * 2014-01-22 2017-08-04 广东欧珀移动通信有限公司 A kind of intelligent terminal file clean-up method and device
CN104156414B (en) * 2014-07-30 2018-01-23 珠海市君天电子科技有限公司 A kind of method for cleaning of garbage files, device and terminal
CN104331376B (en) * 2014-11-14 2018-07-27 北京奇虎科技有限公司 The method for cleaning and device of the installation kit stored in mobile terminal
CN104462264A (en) * 2014-11-21 2015-03-25 北京奇虎科技有限公司 Method and device for clearing junk files in operating system
CN104572819B (en) * 2014-12-02 2017-02-22 深圳市腾讯计算机系统有限公司 Clearing method and system for junk data

Also Published As

Publication number Publication date
CN106293783A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN107094294B (en) Network connection method and device
CN104518953B (en) Method for deleting message, instant communication terminal and system
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN106775833B (en) Device driver loading method, terminal and system
CN106775827B (en) Application program updating method and device and computer equipment
CN104572819A (en) Clearing method and system for junk data
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
WO2015078342A1 (en) Method for acquiring memory information, and terminal
WO2015081905A1 (en) Data update method, user terminal, and data update system
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN107317828B (en) File downloading method and device
CN106095423B (en) Method, terminal and server for providing browsing service
CN106919458B (en) Method and device for Hook target kernel function
CN105808043A (en) Setting method of terminal application and mobile terminal
CN106682189B (en) File name display method and device
CN106374988B (en) Method, device and terminal for configuring inter-downlink-band carrier aggregation
CN107766351B (en) File directory identification method and device
CN106303616B (en) Play control method, device and terminal
CN107463395B (en) Component calling method and device
CN105159655B (en) Behavior event playing method and device
CN108228357B (en) Memory cleaning method and mobile terminal
CN107122204B (en) Application unloading state detection method and device
CN106933626B (en) Application association method and device
CN106293783B (en) Installation package cleaning method and equipment
CN106445594B (en) System application installation method and device and terminal equipment

Legal Events

Date Code Title Description
C06 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